$(document).ready(function(){
var tim;

$("div.cmsbox-revealer").animate({ left: "458px" },600);
// ------------------------ MAIN MENU
/*$("div.mm-box-expander").hover(function(){ 
							getmmnr=$(this).attr("mnr");
							$(this).stop().animate({ height: $(this).attr("set_height")+"px"},200);
							$(this).find("div.mm-title").addClass("title-ovr");
							$(this).addClass("expander-over");
							},
							function(){ $(this).stop().animate({ height: "29px"},200);
										$(this).find("div.mm-title").removeClass("title-ovr"); 
										$(this).removeClass("expander-over");
										});
*/
$("div.mm-title").hover(function(){ 
							
							getmmnr=$(this).attr("mnr");
							$(".expander-over").css("height","1px");
							
							if($("div.mm-box-expander[mnr="+getmmnr+"]").find("span").size()=="0") return;
							
							getleft=$(this).css("width").split("p");
							//alert(getleft[0] + " - " + getmmnr);
							setleft=(getmmnr*1) * (getleft[0]*1);
							if(setleft=="0") setleft="20";
							
							$("div.mm-box-expander[mnr="+getmmnr+"]").css("left",setleft+"px");
							$("div.mm-box-expander[mnr="+getmmnr+"]").stop().animate({ height: $("div.mm-box-expander[mnr="+getmmnr+"]").attr("set_height")+"px"},200);
							$("div.mm-box-expander[mnr="+getmmnr+"]").find("div.mm-title").addClass("title-ovr");
							$("div.mm-box-expander[mnr="+getmmnr+"]").addClass("expander-over");
							},
							function(){ 
							getmmnr=$(this).attr("mnr");
							
							tim=setTimeout(function(){
													$("div.mm-box-expander[mnr="+getmmnr+"]").stop().animate({ height: "1px"},200);
													//$("div.mm-box-expander[mnr="+getmmnr+"]").find("div.mm-title").removeClass("title-ovr"); 
													$("div.mm-box-expander[mnr="+getmmnr+"]").removeClass("expander-over");
													},1500);
										});
										
$("div.mm-box-expander").hover(function(){ clearTimeout(tim); },function(){ $(this).css("height","1px");$(this).removeClass("expander-over"); });

$("div.mm-item").hover(function(){
							$(this).addClass("subtitle-ovr");
							
							},function(){ $(this).removeClass("subtitle-ovr"); });

$("span.mm-txt,span.left-menu-sub-txt,div.mm-title,div.left-menu-title").click(function(){
                    document.location.href="index.php?pg="+$(this).attr("link");
										});
									
$("span.mm-txt2").click(function(){
                    document.location.href="index.php?pkt="+$(this).attr("link");
										});
										
$("a.lbox-link").lightBox();

});
