jQuery(document).ready(function($){ //slide out the tray trayHeight = $("#tray").height(); $("#header").css({ height: trayHeight+210 }); $("div#tray") .css({ position: "absolute", zIndex: 1, top: 210, padding: 0, height: 15 }) .animate({ height: trayHeight }, 600); //content $("#content").height($("#content").height()-60); //news & media homeleftHeight = $("#homeleft").height(); $("#homeleft") .css({ height: 15 }) .animate({ height: homeleftHeight }, 600); //portfolio thumbnails for(i=0; i<$(".portfolio-thumbs li").length; i++) { $(".portfolio-thumbs li:eq("+i+")").hide().animate({ borderWidth: 0 }, i*100).slideDown(600); } $(".portfolio-thumbs li div") .css({ cursor: "pointer" }) .each(function(){ $(this).data("href", $(this).find("a").attr("href")); }) .mouseover(function(){ $(this).find("img").stop().animate({ left: -145 }, 400); $(this).find("strong").stop().animate({ left: 155 }, 400); $(this).find("span").stop().animate({ left: 0 }, 400); }) .mouseout(function(){ $(this).find("img").stop().animate({ left: 0 }, 400); $(this).find("strong").stop().animate({ left: 0 }, 400); $(this).find("span").stop().animate({ left: -155 }, 400); }) .click(function(){ document.location = $(this).data("href"); }); //flash box $("#homeflash").flash({ src: "http://ikonmarketinggroup.com/wp-content/themes/kameleon/swf/homeflash.swf", width: 970, height: 250, wmode: "transparent", flashvars: { box1src: "http://ikonmarketinggroup.com/wp-content/themes/kameleon/swf/home-box1-teamquotes.swf", box1offset: -45, box2src: "http://ikonmarketinggroup.com/wp-content/themes/kameleon/images/blue/home-box2.jpg", box2offset: 0, boxcolor: 0xDAE9EB, boxcolor2: 0x0FC8E8 } }) .css({ position: "absolute", zIndex: 2 }) .wrap("
") .parent() .css({ height: 210 }); });