$(document).ready(function(){var d=true;if("undefined"!==typeof cms){d=cms.mode!=2}if(d){$("#container .box").click(function(){window.location=$("h2 a",this).attr("href")});$("#main div.box").hover(function(){$(this).stop(true,true).addClass("boxHover",300).children(":not(.title)").stop(true,true).fadeOut();$(this).children(".title").stop(true,true).addClass("titleHover1",300).delay(300).stop(false,true).addClass("titleHover2",300)},function(){$(this).children(".title").stop(true,true).removeClass("titleHover2 titleHover1",300);$(this).stop(false,true).delay(300).removeClass("boxHover",300).delay(300).children(":not(.title)").delay(300).stop(false,true).fadeIn()})}$(".fb").hover(function(){$(this).stop(false,true).toggleClass("fbHover",300)});if($("#menu .active a").length==1){var c=$.browser.msie?$("#menu .active a").width():$("#menu .active a").width()-24;setTimeout(function(){$("#menu .active").append('<span class="active" style="opacity: 0"></span>');$("#menu span.active").stop(true,true).css({width:c,left:$("#menu .active a").position().left}).animate({opacity:1},600)},100)}$("#menu li:not(.active) a").hover(function(){$("#menu span.active").stop(true,true).animate({width:$(this).width(),left:$(this).position().left},300);$(this).stop(false,true).animate({color:"#000"},300)},function(){$("#menu span.active").delay(1000).stop(false,true).animate({width:c,left:$("#menu .active a").position().left},300);$(this).stop(false,true).animate({color:"#C10038"},300)})});
