function makeVis(A){document.getElementById(A).style.visibility="visible";document.getElementById(A).style.display="block"}function makeInVis(A){document.getElementById(A).style.visibility="hidden";document.getElementById(A).style.display="none"}function eraseM(A,B){makeInVis("aboutD");makeInVis("contactD");makeInVis("pricingD");makeInVis("portrait");makeInVis("blogD");makeInVis("galleryD");document.getElementById(B).href="javascript:"+B+"();"}function clickB1(A,B){document.getElementById(B).href="javascript:eraseM(%27"+A+"%27,%27"+B+"%27);"}function resetB1(C,F,B,E,A,D){document.getElementById(F).href="javascript:"+F+"();";document.getElementById(E).href="javascript:"+E+"();";document.getElementById(D).href="javascript:"+D+"();"}function aboutB(){makeVis("aboutD");makeVis("portrait");makeInVis("galleryD");makeInVis("contactD");makeInVis("pricingD");clickB1("aboutD","aboutB");resetB1("contactD","contactB","pricingD","pricingB","galleryD","galleryB")}function contactB(){makeVis("contactD");makeInVis("portrait");makeInVis("galleryD");makeInVis("aboutD");makeInVis("pricingD");clickB1("contactD","contactB");resetB1("aboutD","aboutB","pricingD","pricingB","galleryD","galleryB")}function pricingB(){makeVis("pricingD");makeInVis("portrait");makeInVis("galleryD");makeInVis("aboutD");makeInVis("contactD");clickB1("pricingD","pricingB");resetB1("aboutD","aboutB","contactD","contactB","galleryD","galleryB")}function galleryB(){makeVis("galleryD");makeInVis("pricingD");makeInVis("portrait");makeInVis("aboutD");makeInVis("contactD");ajax("http://"+location.hostname+"/gallery/index.html","galleryD");ljs("css/gallery2.css","css");clickB1("galleryD","galleryB");resetB1("aboutD","aboutB","contactD","contactB","pricingD","pricingB")}var pos=0;if(screen.height>=1200){var Pix=["http://diamantephoto.com/images/bgs/1200/bg0.jpg","http://diamantephoto.com/images/bgs/1200/bg1.jpg","http://diamantephoto.com/images/bgs/1200/bg2.jpg","http://diamantephoto.com/images/bgs/1200/bg3.jpg","http://diamantephoto.com/images/bgs/1200/bg4.jpg","http://diamantephoto.com/images/bgs/1200/bg5.jpg"],cr="/1200/",galleryWIDTH=1356,bgWIDTH=1543}else{if(screen.height<1200&&screen.height>900){var Pix=["http://diamantephoto.com/images/bgs/1050/bg0.jpg","http://diamantephoto.com/images/bgs/1050/bg1.jpg","http://diamantephoto.com/images/bgs/1050/bg2.jpg","http://diamantephoto.com/images/bgs/1050/bg3.jpg","http://diamantephoto.com/images/bgs/1050/bg4.jpg","http://diamantephoto.com/images/bgs/1050/bg5.jpg"],cr="/1050/",galleryWIDTH=1056,bgWIDTH=1317}else{if(screen.height<1050&&screen.height>800){var Pix=["http://diamantephoto.com/images/bgs/900/bg0.jpg","http://diamantephoto.com/images/bgs/900/bg1.jpg","http://diamantephoto.com/images/bgs/900/bg2.jpg","http://diamantephoto.com/images/bgs/900/bg3.jpg","http://diamantephoto.com/images/bgs/900/bg4.jpg","http://diamantephoto.com/images/bgs/900/bg5.jpg"],cr="/900/",galleryWIDTH=906,bgWIDTH=1091}else{if(screen.height<900&&screen.height>768){var Pix=["http://diamantephoto.com/images/bgs/800/bg0.jpg","http://diamantephoto.com/images/bgs/800/bg1.jpg","http://diamantephoto.com/images/bgs/800/bg2.jpg","http://diamantephoto.com/images/bgs/800/bg3.jpg","http://diamantephoto.com/images/bgs/800/bg4.jpg","http://diamantephoto.com/images/bgs/800/bg5.jpg"],cr="/800/",galleryWIDTH=806,bgWIDTH=941}else{var Pix=["http://diamantephoto.com/images/bgs/768/bg0.jpg","http://diamantephoto.com/images/bgs/768/bg1.jpg","http://diamantephoto.com/images/bgs/768/bg2.jpg","http://diamantephoto.com/images/bgs/768/bg3.jpg","http://diamantephoto.com/images/bgs/768/bg4.jpg","http://diamantephoto.com/images/bgs/768/bg5.jpg"],cr="/768/",galleryWIDTH=700;bgWIDTH=893}}}}var timeDelay=15,howMany=Pix.length,PicCurrentNum=0,stopPix=0,PicCurrent=new Image();timeDelay*=1000;PicCurrent.src=Pix[PicCurrentNum];function startPix(){if(screen.width<=1440){document.getElementById("prt").src="/images/portrait_sm.png";document.getElementById("portrait").style.top="125px"}else{document.getElementById("prt").src="/images/portrait.png";document.getElementById("portrait").style.left="700px"}document.getElementById("page-bg").style.width=bgWIDTH+"px";document.getElementById("page-container").style.width=bgWIDTH+"px";document.getElementById("page-container").style.height=screen.height-175+"px";document.getElementById("page-bg").style.height=screen.height-175+"px";document.getElementById("corners").style.width=bgWIDTH+"px";document.getElementById("corners").style.height=screen.height-175+"px";document.getElementById("page-bg").style.backgroundImage="url("+Pix[0]+")";document.getElementById("corners").style.backgroundImage="url(http://diamantephoto.com/images/bgs"+cr+"corners.png)";document.getElementById("galleryD").style.width=galleryWIDTH+"px";document.getElementById("galleryD").style.top=screen.height-273+"px";document.getElementById("galleryD").style.backgroundImage="url(http://diamantephoto.com/images/bgs"+cr+"cr2.png)";setInterval("slideshow()",timeDelay)}function slideshow(){if(stopPix==1){return }else{PicCurrentNum++;if(PicCurrentNum==howMany){PicCurrentNum=0}PicCurrent.src=Pix[PicCurrentNum];document.getElementById("page-bg").style.backgroundImage="url("+PicCurrent.src+")"}}function ajax(A,C){if(window.XMLHttpRequest){req=new XMLHttpRequest();req.onreadystatechange=targetDiv(C);try{req.open("GET",A,true)}catch(B){alert(B)}req.send(null)}else{if(window.ActiveXObject){req=new ActiveXObject("Microsoft.XMLHTTP");if(req){req.onreadystatechange=targetDiv(C);req.open("GET",A,true);req.send()}}}}function targetDiv(A){return function(){if(req.readyState==4){if(req.status==200){document.getElementById(A).innerHTML=req.responseText}else{alert("Problem: "+req.statusText)}}}}function ljs(A,B){if(B=="js"){var C=document.createElement("script");C.setAttribute("type","text/javascript");C.setAttribute("src",A)}else{if(B=="css"){var C=document.createElement("link");C.setAttribute("rel","stylesheet");C.setAttribute("type","text/css");C.setAttribute("href",A)}}if(typeof C!="undefined"){document.getElementsByTagName("head")[0].appendChild(C)}}function repBG(B,A){stopPix=1;document.getElementById("page-bg").style.backgroundImage="url(http://diamantephoto.com/gallery/"+B+cr+A+".jpg)"};