Cufon.replace('#menu > li > a, #middle.subpage h2, table.order th, #content-tabs .nav li a',{fontFamily:'Myriad Pro Regular',hover:true});Cufon.replace('.slideshow h2, #scroller .boxes .box h4, #scroller .boxes .box .head strong, table.order.main th big, table.order.main th small',{fontFamily:'Myriad Pro Bold',hover:true});Cufon.replace('.slideshow h6',{fontFamily:'Myriad Pro Italic',hover:true});Cufon.replace('#container h3, #bottom h4, #sub h4, table.order td .scroll, .list-offer h2, .list-platform h2',{fontFamily:'Myriad Pro Semibold',hover:true});$(document).ready(function(){$('#menu > li').each(function(){var $ul=$(this).find('.submenu');var width=$(this).width();$ul.css('left',(-((110-width-40)/2))+'px')});$("#menu > li").mouseenter(function(){$(this).addClass("current-dynamic");$(this).find(".submenu").fadeIn(200);return false}).mouseleave(function(){$(this).removeClass("current-dynamic");$(this).find(".submenu").fadeOut(200);Cufon.refresh();return false});$("#sub > ul > li > h4 > a").click(function(){$(this).parent().parent().parent().find("ul").animate({height:"hide"},400);$(this).parent().parent().find("ul").animate({height:"toggle"},400)});$("table tr td a.scroll").click(function(){$(this).toggleClass("active");var curr=$(this).attr("rel");$("table").find("tbody."+curr).toggle();return false});$("table tr:nth-child(2n)").addClass("grey");$("#boxes ul li:nth-child(4n)").addClass("remove");$('.autoclear').click(function(){if(this.value==this.defaultValue){this.value=''}});$('.autoclear').blur(function(){if(this.value==''){this.value=this.defaultValue}});$('.gotop').click(function(){$('html, body').animate({scrollTop:0},'slow');return false})});
