function pW(){return window.innerWidth!=null?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:document.body!=null?document.body.clientWidth:document.body.offsetWidth!=null?document.body.offsetWidth:null}function pH(){return window.innerHeight!=null?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body!=null?document.body.clientHeight:document.body.offsetHeight!=null?document.body.offsetHeight:null}function resizeContent(b,k){var j=(b-700)*0.27,h=((b-419)*0.27)+70,g=((b-405)*0.27)+86,f=j-13;if(h<135){h=135}if(g<150){g=150}$("#content").css("margin","0px "+h+"px");$("#header img").css("margin-left",g+"px");if($("#portfolio").length>0){$("#portfolio").css("margin","0px "+h+"px")}if(f<10){f=10}$("#menu").css("left",f+"px");var d=(h+(f+119))*0.49;$(".fs img").css({margin:"0px "+d+"px"});var i=0,a=0;if(k/b>0.75){var c=k,e=k/0.75,a=(b-e)/2}else{if(k/b<0.75){var c=b*0.75,e=b,i=(k-c)/2}else{if(k/b==0.75){var c=k,e=b}}}$("#bg img").css({width:e+"px",height:c+"px",top:i+"px",left:a+"px"})}var html=$("html"),initW=html.width(),initH=html.height();html.hide();$(document).ready(function(){resizeContent(initW,initH);$(window).resize(function(b){resizeContent(pW(),pH())});var a=$(".drop").hasClass("down");if(!a){$("ul.drop").hide()}(html.hasClass("ie"))?html.show():html.delay(75).fadeIn("slow");$("#p1").click(function(){window.location.replace("index.php")});$("#p2").click(function(){$(".drop").slideToggle("middle",function(){$(this).clearQueue();(html.hasClass("ie"))?$(".nav").toggleClass("nav").toggleClass("nav"):""})});$("#p3").click(function(){window.location.replace("portfolio.php")});$("#p4").click(function(){window.location.replace("contact.php")})});
