function bindNavAction(){jQuery("#gn-step1 > a, #gn-step2 > a, #gn-step3 > a, #gn-step4 > a, #gn-step5 > a ").unbind("click");jQuery("#gn-step1 > a, #gn-step2 > a, #gn-step3 > a, #gn-step4 > a, #gn-step5 > a, ").css("opacity","1");var A=true;jQuery("#gn-step1 > a").bind("click",function(B){StepV1(CurrentPage,A);B.preventDefault();unbindNavAction()});jQuery("#gn-step2 > a").bind("click",function(B){StepV2(CurrentPage,A);B.preventDefault();unbindNavAction()});jQuery("#gn-step3 > a").bind("click",function(B){StepV3(CurrentPage,A);B.preventDefault();unbindNavAction()});jQuery("#gn-step4 > a").bind("click",function(B){StepV4(CurrentPage,A);B.preventDefault();unbindNavAction()});jQuery("#gn-step5 > a").bind("click",function(B){StepV5(CurrentPage,A);B.preventDefault();unbindNavAction()})}function unbindNavAction(){jQuery("#gn-step1 > a, #gn-step2 > a, #gn-step3 > a, #gn-step4 > a, #gn-step5 > a ").unbind("click");jQuery("#gn-step1 > a, #gn-step2 > a, #gn-step3 > a, #gn-step4 > a, #gn-step5 > a ").bind("click",function(){return false});jQuery("#gn-step1 > a, #gn-step2 > a, #gn-step3 > a, #gn-step4 > a, #gn-step5 > a, ").css("opacity","0.5")}jQuery(document).ready(function(){bindNavAction()});function getLastChar(A){return nextTabName.substr(A.length-1,1)}function PreloadImages(C,B,A,D){this.totalImages=0;this.totalUnderLoadImages=0;this.elementid=B;this.callback=D;this.numberImagesLoaded=0;this.callbackcalled=false;this.firstboxopened=false;this.tabNum=1;this.tabs=C;this.autoOpenFirstBox=true;this.previousTabNumber=A;this.debug=function(E){if(jQuery.browser.webkit){if(window.console){window.console.log(E)}else{if(console.log){console.log(E)}}}};this.onLoadFinished=function(){}}PreloadImages.prototype={init:function(){this.totalImages=jQuery("#"+this.elementid).find("img").not(".no_loading").length-1;this.tabNum=this.elementid.substr(this.elementid.length-1,1);this.setNumberImagesLoaded(0)},onBeforeLoad:function(){},processAfterLoad:function(){},prepareImagesToload:function(){jQuery("#"+this.elementid).find("img").not(".no_loading").each(function(A){jQuery(this).addClass("imageNotLoaded")})},setNumberImagesLoaded:function(A){this.numberImagesLoaded=A},setTotalUnderLoadImages:function(A){this.totalUnderLoadImages=A},processTotalUnderLoadImages:function(){myPreload=this;myPreload.setTotalUnderLoadImages(0);jQuery("#"+myPreload.elementid).find(".imageNotLoaded").each(function(A){if(jQuery(this).hasClass("wait_toload")||jQuery(this).hasClass("ImAGh")){myPreload.setTotalUnderLoadImages(myPreload.totalUnderLoadImages+1)}})},restoreImagesUnderLoad:function(){if(this.totalUnderLoadImages!==0){myPreload=this;jQuery("#"+myPreload.elementid).find(".imageNotLoaded").each(function(A){var C=jQuery(this).attr("title");var B="";if(jQuery(this).hasClass("wait_toload")||jQuery(this).hasClass("ImAGh")){jQuery(this).load(function(){var D=new Image();D.src=jQuery(this).attr("src");if(D.width!==0){var F=myPreload.numberImagesLoaded;myPreload.setNumberImagesLoaded(F+1);if(myPreload.numberImagesLoaded==myPreload.totalUnderLoadImages){myPreload.openFirstBox()}}else{if(jQuery.browser.webkit){var E=new Image();E.onload=function(){var G=myPreload.numberImagesLoaded;myPreload.setNumberImagesLoaded(G+1);if(myPreload.numberImagesLoaded==myPreload.totalUnderLoadImages){myPreload.openFirstBox()}};E.src=D.src}}});jQuery(this).attr("src",C);jQuery(this).attr("title","");jQuery(this).removeClass("imageNotLoaded")}})}else{this.openFirstBox()}},openFirstBox:function(){this.processAfterLoad();if(this.autoOpenFirstBox){if(!this.firstboxopened){this.firstboxopened=true;if(jQuery("#StepV"+this.elementid+" .opened").length===0){setTimeout("jQuery('#"+this.elementid+" .closed:first').trigger('click');",300)}}}this.executeCallback()},executeCallback:function(){if(!this.callbackcalled){if(typeof this.callback=="function"){if(jQuery.browser.webkit){this.debug("_")}this.callback.call(this,getLastChar(this.elementid),this.previousTabNumber)}}this.callbackcalled=true},restoreAllImages:function(){myPreload=this;jQuery("#"+myPreload.elementid).find(".imageNotLoaded").each(function(A){var B=jQuery(this).attr("title");jQuery(this).attr("src",B);jQuery(this).attr("title","");jQuery(this).removeClass("imageNotLoaded")})},run:function(){this.init();this.onBeforeLoad();this.prepareImagesToload();this.processTotalUnderLoadImages();this.restoreImagesUnderLoad();this.restoreAllImages();this.onLoadFinished()}};function gotoTopOfPage(){window.scrollTo(0,0)}function openAdjustBackground(B){var A="0px -15px";var C="0px 3px";if(jQuery.browser.webkit){A="0px -18px";C="0px 0px"}jQuery("#StepV"+B+" .closed").css("background-position",C);jQuery("#StepV"+B+" .opened").css("background-position",A)}function addEffects(C){jQuery("#StepV"+C+" .titleBox_rp").hover(function(){jQuery(this).css({color:"#ffffff",cursor:"pointer","text-decoration":"none"})},function(){jQuery(this).css({color:"#cccccc",cursor:"pointer","text-decoration":"underline"})});var A="png";if(jQuery.browser.msie&&(jQuery.browser.version=="6.0")){A="gif"}var B="0px -15px";var D="0px 3px";if(jQuery.browser.webkit){B="0px -18px";D="0px 0px";if(jQuery.browser.version<500){D="0px 0px";B="0px -16.5px"}}jQuery("#StepV"+C+" .closed").css("background-position",D);jQuery("#StepV"+C+" .opened").css("background-position",B);jQuery("#StepV"+C+" .closed").hover(function(){jQuery(this).addClass("highlighted");if(!jQuery.browser.msie){jQuery(this).css("background-position",B)}},function(){jQuery(this).removeClass("highlighted");if(!jQuery.browser.msie){jQuery(this).css("background-position",D)}});jQuery("#StepV"+C+" .opened").hover(function(){jQuery(this).addClass("highlighted");if(!jQuery.browser.msie){jQuery(this).css("background-position",D)}},function(){jQuery(this).removeClass("highlighted");if(!jQuery.browser.msie){jQuery(this).css("background-position",B)}})}function setHoverOn(){jQuery(this).parents(".drawer").find(".drawer-handle").css({"background-image":"url(http://images.noamdesign.com/RecentProjects/back/1-over.jpg)"})}function setHoverOff(){jQuery(this).parents(".drawer").find(".drawer-handle").css({"background-image":"url(http://images.noamdesign.com/RecentProjects/back/1.jpg)"})}function openBox(A){jQuery(A).parents(".drawer").find(".closed").unbind("mouseover",setHoverOn).unbind("mouseout",setHoverOff);jQuery(A).parents(".drawer").find(".closed").html("Close").removeClass("closed").addClass("opened");jQuery(A).parents(".drawer").find(".linerWeb").animate({opacity:"toggle",height:"toggle"},"slow","swing",{});jQuery(A).parents(".drawer").find(".opened").css("visibility","hidden");jQuery(A).parents(".drawer").find(".drawer-handle").unbind("mouseover",setHoverOn).unbind("mouseout",setHoverOff).unbind("click").css({"background-image":"url(http://images.noamdesign.com/RecentProjects/back/1-over.jpg)",cursor:"default"})}function closeBox(A){jQuery(A).parents(".drawer").find(".opened").html("View More").removeClass("opened").addClass("closed");jQuery(A).parents(".drawer").find(".closed").bind("mouseover",setHoverOn).bind("mouseout",setHoverOff);jQuery(A).parents(".drawer").find(".linerWeb").animate({opacity:"toggle",height:"toggle"},"slow","swing",{});jQuery(A).parents(".drawer").find(".closed").css("visibility","visible");jQuery(A).parents(".drawer").children(".drawer-handle").bind("mouseover",setHoverOn).bind("mouseout",setHoverOff).css({"background-image":"url(http://images.noamdesign.com/RecentProjects/back/1.jpg)",cursor:"default"})}function createBoxEffect(A){jQuery("#StepV"+A+" .closed, #StepV"+A+" .drawer-handle").bind("mouseover",setHoverOn).bind("mouseout",setHoverOff);jQuery("#StepV"+A+" .closed").bind("click",function(){openBox(this)});jQuery("#StepV"+A+" .titleBox_rp").bind("click",function(){if(jQuery(this).parents(".drawer").find(".closed").length>0){openBox(this)}else{closeBox(this)}})}function createEffects(A){openAdjustBackground(A);addEffects(A);createBoxEffect(A)}function TabLoadControl(E,D,C,B,A){this.arTabs=[E,D,C,B,A]}TabLoadControl.prototype.isLoaded=function(A){return(this.arTabs[A-1]===true)};TabLoadControl.prototype.isNotLoaded=function(A){return(this.arTabs[A-1]===false)};TabLoadControl.prototype.setLoaded=function(A){this.arTabs[A-1]=true};function TabSlideControl(E,D,C,B,A){this.arTabs=[E,D,C,B,A]}TabSlideControl.prototype.isSlidedUp=function(A){return(this.arTabs[A-1]===true)};TabSlideControl.prototype.setSlided=function(A){this.arTabs[A-1]=true};var slideControl=new TabSlideControl(false,false,false,false);var isIE6=false;var isIE7=false;if(jQuery.browser.msie&&(parseInt(jQuery.browser.version,10)==6)){if(!this.XMLHttpRequest){isIE6=true}}if(jQuery.browser.msie&&(parseInt(jQuery.browser.version,10)>=7)){isIE7=true}function getLastChar(A){return A.substr(A.length-1,1)}function changeTab(B){jQuery("#"+B).show();jQuery("#StepV1, #StepV2, #StepV3, #StepV4, #StepV5").not("#"+B).css("display","none");var A=getLastChar(B);if(slideControl.isSlidedUp(A)){jQuery("#StepV"+A).css("height","100%");jQuery("#Step"+A+"Marge").show()}gotoTopOfPage()}function goTo(A){setTimeout(A,10)}function setIE7Shade(A){if(isIE7){jQuery("#step"+A+"shade").css("height","90%")}}function Step1(){jQuery("#navibar").removeAttr("class").addClass("step1");changeTab("StepV1");if(jQuery.browser.msie){setIE7Shade(1);jQuery("#gn-step1").children("a").css("background-position","0 -116px");jQuery("#gn-step1").children("a").unbind("mouseover").unbind("mouseout");jQuery("#gn-step1").children("a").hover(function(){jQuery(this).css("background-position","0 -116px")},function(){jQuery(this).css("background-position","0 -116px")})}}function adjustStepIE(A){setIE7Shade(A);jQuery("#gn-step1").children("a").css("background-position","0 0px");jQuery("#gn-step1").children("a").hover(function(){jQuery(this).css("background-position","0 -58px")},function(){jQuery(this).css("background-position","0 0px")})}function Step2(){jQuery("#navibar").removeAttr("class").addClass("step2");changeTab("StepV2");if(jQuery.browser.msie){adjustStepIE(2)}}function Step3(){jQuery("#navibar").removeAttr("class").addClass("step3");changeTab("StepV3");if(jQuery.browser.msie){adjustStepIE(3)}}function Step4(){jQuery("#navibar").removeAttr("class").addClass("step4");changeTab("StepV4");if(jQuery.browser.msie){adjustStepIE(4)}}function Step5(){jQuery("#navibar").removeAttr("class").addClass("step5");changeTab("StepV5");if(jQuery.browser.msie){adjustStepIE(3)}}function hideShade(B,A,C){if(A){jQuery("#step"+B+"shade").css("background","#232323")}jQuery("#step"+B+"shade").animate({opacity:0},"slow",function(){try{if(C!==undefined){jQuery("#StepV"+C).fadeOut()}}catch(D){}jQuery("#step"+B+"shade").hide()})}function correctMSIEtab(A){if(jQuery.browser.msie){if(isIE6){}else{if((A==="1")||(A==="2")){jQuery("#step"+A+"shade").css("height","99%")}else{if(A==="3"){jQuery("#step"+A+"shade").css("height","99%")}else{jQuery("#step"+A+"shade").css("height","97%")}}}}}function loadTab(E,C,D,B){jQuery("#step"+C+"shade").show();correctMSIEtab(C);goTo("Step"+C+"();");if(tabs.isNotLoaded(C)){var A=new PreloadImages(tabs,"StepV"+C,D,function(F,G){jQuery("#StepV"+G).fadeOut();hideShade(F,true,G)});A.onBeforeLoad=beforeLoad;A.processAfterLoad=processEffects;A.onLoadFinished=function(){};jQuery("#StepV"+C).height(385);jQuery(".Step"+C+"Marge").hide();jQuery(".Step"+C+"Marge").load("/"+E+"/"+E+"Tab"+C+".php?header=true",null,function(){jQuery.get("/GetSideBar.php?tabid="+CurrentPage+"-"+C,function(F){jQuery("#sidebar").html(F);jQuery(".sdhome").corner()});jQuery("#StepV"+D).fadeOut();jQuery("#StepV"+D).hide();correctMSIEtab(C);jQuery(".Step"+C+"Marge").show();jQuery("#StepV"+C).animate({height:"100%"},2000);A.run()})}else{tabs.setLoaded(C);bindNavAction();hideShade(C,false);jQuery.get("/GetSideBar.php?tabid="+CurrentPage+"-"+C,function(F){jQuery("#sidebar").html(F);jQuery(".sdhome").corner()})}}function correctMSIEtabCurrent(A){if(jQuery.browser.msie){if(isIE6){}else{if((A=="1")||(A=="2")||(A=="3")){jQuery("#step"+A+"shade").css("height","99%")}else{jQuery("#step"+A+"shade").css("height","97%")}}}}jQuery.fn.extend({slideUp300:function(A,B){return this.animate({height:385},A,B)}});function showShade(E,D,C,B){var A=getLastChar(C);jQuery("#step"+E+"shade").css("background","#232323 url(http://images.noamdesign.com/RecentProjects/loading.gif) center 160px no-repeat");jQuery("#step"+E+"shade").show();correctMSIEtabCurrent(E);if(tabs.isNotLoaded(A)&&B){jQuery("#StepV"+E).slideUp300(1000,function(){jQuery("#Step"+E+"Marge").hide()})}jQuery("#step"+E+"shade").animate({opacity:1},750,function(){if(tabs.isNotLoaded(A)&&B){slideControl.setSlided(E);setTimeout(function(){loadTab(D,A,E,B)},300)}else{loadTab(D,A,E,B)}})}function loadContent(C,B,A){currentTab=jQuery("#navibar")[0].className;nCurrentTab=getLastChar(currentTab);if(isIE7){jQuery("#step"+nCurrentTab+"shade").css("height","99%")}showShade(nCurrentTab,C,B,A)}function initFirstShowShade(A){jQuery("#step"+A+"shade").show();jQuery("#step"+A+"shade").animate({opacity:1},"slow")}function StepV1(B,A){if(B!==""){loadContent(B,"step1",A)}else{goTo("Step1();")}}function StepV2(B,A){if(B!==""){loadContent(B,"step2",A)}else{goTo("Step2();")}}function StepV3(B,A){if(B!==""){loadContent(B,"step3",A)}else{goTo("Step3();")}}function StepV4(B,A){if(B!==""){loadContent(B,"step4",A)}else{goTo("Step4();")}}function StepV5(B,A){if(B!==""){loadContent(B,"step5",A)}else{goTo("Step5();")}}var NS4=(document.layers?true:false);var NETSCAPE=(navigator.appName=="Netscape");var miniaToClose;var ImGFadeTemps;var bBulle=false;var typeObj="ImG";var isFlash=false;var txtFlash="";function ImG(A,D){var E='<img src="http://images.noamdesign.com/RecentProjects/';var C='G.jpg" onclick="CloseImG();" title="Click to close" alt="" />';document.getElementById("ImG").innerHTML=E+A+C;var B=findPos(D);block("ImG");block("ImGCloser");document.getElementById("DetecteurDeSortie").style.left=B[0]+"px";document.getElementById("DetecteurDeSortie").style.top=B[1]+"px";block("DetecteurDeSortie");miniaToClose=D;miniaToClose.style.opacity="0.8";bBulle=true}function FlasH(A,C){typeObj=A;var B=findPos(C);block(typeObj);block("FlashCloser");document.getElementById("ExitDetector").style.left=B[0]+"px";document.getElementById("ExitDetector").style.top=B[1]+"px";block("ExitDetector");miniaToClose=C;miniaToClose.style.opacity="0.8";bBulle=true}function CloseFlash(){bBulle=false;none(typeObj);none("ExitDetector");none("FlashCloser");miniaToClose.style.opacity="1.0";typeObj="ImG"}function CloseImG(){bBulle=false;document.getElementById("ImG").style.visibility="hidden";none("ImG");none("DetecteurDeSortie");none("ImGCloser");document.getElementById("ImG").innerHTML="";miniaToClose.style.opacity="1.0"}function objShowAll(B,L){var E=document.getElementById(typeObj);var G;var F,D;var K,J;var I,A;var H=L;B=B-232;L=L+30;if(E){if(NETSCAPE){J=window.pageXOffset;K=window.pageYOffset;F=window.innerWidth;D=window.innerHeight;if(F>document.width){F=document.width}if(D>document.height){D=document.height}F+=J;D+=K;if(NS4){A=E.clip.width;I=E.clip.height}else{A=E.offsetWidth;I=E.offsetHeight}}else{if(navigator.appName=="Microsoft Internet Explorer"||document.documentElement&&document.documentElement.clientWidth&&!document.all){G=document.documentElement}else{G=document.body}J=G.scrollLeft;K=G.scrollTop;G.MaxX=J+G.clientWidth;G.MaxY=K+G.clientHeight;A=E.scrollWidth;I=E.scrollHeight}F-=A;D-=I;if(B>F){B=F}if(B<J){B=J}if(L>D){L=D}if(L<K){L=K}if(L==D){var C=D-H;L=D-C-I-2*8}document.getElementById(typeObj).style.top=L+"px";document.getElementById(typeObj).style.left=B+"px";document.getElementById(typeObj).style.visibility="visible"}}function whereMouse(B){var A;if(bBulle){if(NETSCAPE){x_=B.pageX;y_=B.pageY}else{if(document.documentElement&&document.documentElement.clientWidth){A=document.documentElement}else{A=document.body}x_=event.clientX+A.scrollLeft;y_=event.clientY+A.scrollTop}objShowAll(x_,y_)}}document.onmousemove=whereMouse;
