dojo.require("dojo.fx");var current_hash="#block1_anchor";$(function(){if($.browser.safari){$("html").css("overflow","hidden")}$(".bg").css("display","block");$("#block_last").css("display","block");var a={duration:1000,hash:true};if($.browser.msie){$(".block_anchor").css("height","0px");a.hash=false;$("#top_navigation a").click(function(b){current_hash=b.target.hash})}$("#top_navigation").localScroll(a);$("#top_navigation a").click(function(){var b=$($(this)[0].hash).css("background-color");dojo.fx.combine([dojo.animateProperty({node:"header_bg",duration:1400,properties:{backgroundColor:b}}),dojo.animateProperty({node:"footer",duration:1400,properties:{backgroundColor:b}}),dojo.animateProperty({node:dojo.query("html")[0],duration:900,properties:{backgroundColor:b}})]).play()});$(window).resize(window_resized);set_content_block_height();$(".bg_image").width(960)});function window_resized(a){set_content_block_height();if(!$.browser.msie){current_hash=window.location.hash}window.scrollTo(0,$(current_hash)[0].offsetTop+$("#header").height())}function set_content_block_height(){$("#main").height($("body").height()-$("#footer").height()-$("#header").height()+1)}function set_main_width(){if($("html").width()<$("#wrap").width()){$("#main").width($("html").width())}else{$("#main").width("100%")}};
