var canPostBack=true;function postToPartner(a,b,c){if((b!=null)&&(!isValidForm(b,c))){return false;}var d=document.forms[0];var e=d.elements;var f=e.length;for(var x=f-1;x>-1;x--){var g00=e[x];if(g00.type=="hidden"){if((g00.id.substring(0,8)!="__SCROLL")&&((g00.id.substring(0,2)=="__")||(g00.id.substring(0,2)=="VM"))){g00.parentNode.removeChild(g00);}else if(g00.id.substring(0,2)=="ct"){g00.value="";}}}d.encoding="application/x-www-form-urlencoded";if(a=="AWeber"){d.action="http://www.aweber.com/scripts/addlead.pl";}else if(a=="ConstantContact"){d.action="http://visitor.constantcontact.com/d.jsp";}else if(a=="GetResponse"){d.action="http://www.getresponse.com/cgi-bin/add.cgi";}return true;}function isValidForm(a,b){var c=a.length;for(x=0;x<c;x++){if(gE(a[x]).value==""){if(b!=null){alert(b);}else{alert("One or more of the required values is missing");}return false;}}return true;}function dsbleBtn(a){if((typeof Page_Validators!='undefined')&&(Page_Validators.length>0)){Page_ClientValidate(null);if(!Page_IsValid){return false;}}showUpdating();var b=a.cloneNode(false);b.disabled=true;a.parentNode.appendChild(b);a.style.display="none";return true;}function setScrollPos(){var a=(document.documentElement)? document.documentElement.scrollTop : document.body.scrollTop;gE(getSlideCtrls_vb("hidScrollTop")).value=a;window.scrollTo(0,0);}function resetScrollPos(){var a=(document.documentElement)? document.documentElement : document.body;var b=parseInt(gE(getSlideCtrls_vb("hidScrollTop")).value);setTimeout("scrollToPos('"+b+"')",0);}function scrollToPos(a){a=parseInt(a);window.scrollTo(0,a);}function gE(a){return document.getElementById(a);}function setAtt(a,b,c){gE(a).b=c;return;}function returnFalse(){if(typeof document.all!="undefined"){event.returnValue=false;}return false;}function getRoot(){var a=document.location.toString();a=a.replace("http://","");var b="";if(a.indexOf("www.")!=-1){a=a.replace("www.","");b="www.";}var c=new Array();c=a.split("/");var d;if(c[0]=="localhost"){d="/"+c[1];}else{d="http://"+b+c[0];}return d;}function overImage(a){gE(a).src=window[a+"_over"].src;return true;}function offImage(a){gE(a).src=window[a+"_up"].src;return true;}function downImage(a){gE(a).src=window[a+"_down"].src;return true;}function upImage(a){overImage(a);return true;}function checkEmail(a){var b=new RegExp(/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/i);if(b.test(a)){gE(errSpanID).style.display="none";}else{gE(errSpanID).style.display="inline";}return true;}function hideEmpties(){if((typeof isIE!="undefined")&&(isIE)){var a=document.getElementsByTagName("div");var b=a.length;for(var x=0;x<b;x++){if((a[x].className.length==0)&&(a[x].innerHTML.length==0)){a[x].className="hide";}else if((a[x].className=="hide")&&(a[x].innerHTML.length>0)){a[x].className="";}}}}function showUpdating(){if((typeof $find!='undefined')&&(typeof getPopElm_vb!='undefined')){var a=$find(getPopElm_vb("mpeUpdate"));if((a!=null)&&(a._backgroundElement.style.display=="none")){a._backgroundElement.style.left="0px";a._backgroundElement.style.top="0px";a.show();}}return true;}function clearUpdate(){if((typeof $find!='undefined')&&(typeof getPopElm_vb!='undefined')){if($find(getPopElm_vb("mpeUpdate"))){var a=$find(getPopElm_vb("mpeUpdate"));if(a._backgroundElement.style.display!="none"){a.hide();}}}}function stopFlickr(){try{document.execCommand("BackgroundImageCache",false,true);}catch(err){}}function addPageLoadFunction(a){if(typeof window.addEventListener!='undefined'){window.addEventListener('load',a,false);}else if(typeof document.addEventListener!='undefined'){document.addEventListener('load',a,false);}else if(typeof window.attachEvent!='undefined'){window.attachEvent('onload',a);}else{var b=window.onload;if(typeof window.onload!='function'){window.onload=anyFunction;}else{window.onload=function(){b();a();};}}}function getPostBackPermission(){if(canPostBack){canPostBack=false;return true;}return false;}function upAlbum(){if(!canPostBack){return false;}if(typeof SLIDES!='undefined'){navigateAway(SLIDES);}if(typeof killImages!='undefined'){killImages();}return true;}function getAlbumNameFromPath(a){var b=a.substring(0,a.lastIndexOf("/"));b=b.substring(b.lastIndexOf("/")+1);var c=new RegExp("_",'g');b=b.replace(c," ");if(b.substring(0,3)=="LH "){b=getExampleHeaderFromDirectoryName(b);}return b;}function getExampleHeaderFromDirectoryName(a){var b=a.replace("LH ", "");b=b.substring(0, b.lastIndexOf(" "));return b;}addPageLoadFunction(stopFlickr);