function MM_openBrWindow(C,A,B){openWin(C);return }function getAvailHeight(){screenx=screen.width;screeny=screen.height;if(document.getElementById&&!document.all){height=window.innerHeight;width=window.innerWidth}else{if(document.all){height=document.body.offsetHeight;width=document.body.offsetWidth}}return height}function openWin(B){try{var F,A,G,E;G=screen.width;E=screen.height;if(document.getElementById&&!document.all){A=window.innerHeight;F=window.innerWidth}else{if(document.all){A=document.body.offsetHeight;F=document.body.offsetWidth}}if(G<1050&&G>800){popupWidth=(parseInt)(screen.availWidth*0.8);popupHeight=(parseInt)(screen.availHeight*0.76);iW=(parseInt)(popupWidth-245);iH=(parseInt)(popupHeight-135)}else{if(G<=800){popupWidth=(parseInt)(screen.availWidth*0.95);popupHeight=(parseInt)(screen.availHeight*0.9);iW=(parseInt)(popupWidth-225);iH=(parseInt)(popupHeight-200)}else{popupWidth=840;popupHeight=675;iW=(parseInt)(popupWidth-215);iH=(parseInt)(popupHeight-150)}}wleft=(screen.width-popupWidth)/2;wtop=(screen.height-popupHeight)/2;var D="height="+popupHeight+",width="+popupWidth+",top="+wtop+"left="+wleft+",scrollbars=yes,resizable=yes";win=window.open(B+"?w="+iW+"&h="+iH,"opp",D);win.moveTo(wleft,wtop-50);if(parseInt(navigator.appVersion)>=4){win.window.focus()}}catch(C){var D="height=675,width=825,top=50left=50,scrollbars=yes,resizable=yes";win=window.open(B+"?w=475&h=475","opp",D);win.moveTo(50,50);if(parseInt(navigator.appVersion)>=4){win.window.focus()}}}function resizeWin(B,F){try{var E,A,G,D;G=screen.width;D=screen.height;popupWidth=B;popupHeight=F;wleft=(screen.width-popupWidth)/2;wtop=(screen.height-popupHeight)/2;window.moveTo(wleft,wtop-50);window.resizeTo(popupWidth,popupHeight)}catch(C){window.resizeTo(825,675)}}function gotoWin(B){try{var E,A,F,D;F=screen.width;D=screen.height;if(document.getElementById&&!document.all){A=window.innerHeight;E=window.innerWidth}else{if(document.all){A=document.body.offsetHeight;E=document.body.offsetWidth}}if(F<1050&&F>800){popupWidth=(parseInt)(screen.availWidth*0.8);popupHeight=(parseInt)(screen.availHeight*0.76);iW=(parseInt)(popupWidth-245);iH=(parseInt)(popupHeight-135)}else{if(F<=800){popupWidth=(parseInt)(screen.availWidth*0.95);popupHeight=(parseInt)(screen.availHeight*0.9);iW=(parseInt)(popupWidth-225);iH=(parseInt)(popupHeight-200)}else{popupWidth=840;popupHeight=675;iW=(parseInt)(popupWidth-215);iH=(parseInt)(popupHeight-150)}}wleft=(screen.width-popupWidth)/2;wtop=(screen.height-popupHeight)/2;window.resizeTo(popupWidth,popupHeight+80);document.location=B+"?w="+iW+"&h="+iH;window.moveTo(wleft,wtop-50)}catch(C){window.resizeTo(825,675);document.location=B+"?w=475&h=475";window.moveTo(wleft,wtop-50)}}function viewAll(){try{window.opener.focus();window.close()}catch(A){}}function MM_findObj(E,D){var C,B,A;if(!D){D=document}if((C=E.indexOf("?"))>0&&parent.frames.length){D=parent.frames[E.substring(C+1)].document;E=E.substring(0,C)}if(!(A=D[E])&&D.all){A=D.all[E]}for(B=0;!A&&B<D.forms.length;B++){A=D.forms[B][E]}for(B=0;!A&&D.layers&&B<D.layers.length;B++){A=MM_findObj(E,D.layers[B].document)}if(!A&&D.getElementById){A=D.getElementById(E)}return A}function YY_checkform(){var R=YY_checkform.arguments,F=true,G="",I="",C=false,L,M,J,P,H,Q,O,A,D,K,E,B,N,J;for(Q=1;Q<R.length;Q=Q+4){if(R[Q+1].charAt(0)=="#"){L=true;R[Q+1]=R[Q+1].substring(1)}else{L=false}M=MM_findObj(R[Q].replace(/\[\d+\]/ig,""));P=MM_findObj(R[Q+1].replace(/\[\d+\]/ig,""));G=M.value;H=R[Q+2];if(M.type=="text"||M.type=="password"||M.type=="hidden"){if(L&&G.length==0){C=true}if(G.length>0){if(H==1){A=R[Q+1].split("_");if(isNaN(G)||G<A[0]/1||G>A[1]/1){C=true}}else{if(H==2){D=new RegExp("^[\\w.=-]+@[\\w\\.-]+\\.[a-zA-Z]{2,4}$");if(!D.test(G)){C=true}}else{if(H==3){A=R[Q+1].split("#");J=G.match(A[0]);if(J){K=(J[A[1]])?J[A[1]]:1;E=J[A[2]]-1;B=J[A[3]];N=new Date(B,E,K);if(N.getFullYear()!=B||N.getDate()!=K||N.getMonth()!=E){C=true}}else{C=true}}else{if(H==4){A=R[Q+1].split("#");J=G.match(A[0]);if(!J){C=true}}else{if(H==5){if(P.length){P=P[R[Q+1].replace(/(.*\[)|(\].*)/ig,"")]}if(!P.checked){C=true}}else{if(H==6){if(G!=MM_findObj(R[Q+1]).value){C=true}}}}}}}}}else{if(!M.type&&M.length>0&&M[0].type=="radio"){J=R[Q].match(/(.*)\[(\d+)\].*/i);o2=(M.length>1)?M[J[2]]:M;if(H==1&&o2&&o2.checked&&P&&P.value.length/1==0){C=true}if(H==2){F=false;for(O=0;O<M.length;O++){F=F||M[O].checked}if(!F){I+="* "+R[Q+3]+"\n"}}}else{if(M.type=="checkbox"){if((H==1&&M.checked==false)||(H==2&&M.checked&&P&&P.value.length/1==0)){C=true}}else{if(M.type=="select-one"||M.type=="select-multiple"){if(H==1&&M.selectedIndex/1==0){C=true}}else{if(M.type=="textarea"){if(G.length<R[Q+1]){C=true}}}}}}if(C){I+="* "+R[Q+3]+"\n";C=false}}if(I!=""){alert("The required information is incomplete or contains errors:\t\t\t\t\t\n\n"+I)}document.MM_returnValue=(I=="")}function reloadThumb(){try{for(i=0;i<document.images.length;i++){if(!document.images[i].complete){document.images[i].src=document.images[i].src}}}catch(A){}}function isValidEmail(A){return(A.indexOf(".")>2)&&(A.indexOf("@")>0)}function oppcreateCookie(C,D,E){if(E){var B=new Date();B.setTime(B.getTime()+(E*24*60*60*1000));var A="; expires="+B.toGMTString()}else{var A=""}document.cookie=C+"="+D+A+"; path=/"}function oppreadCookie(B){var D=B+"=";var A=document.cookie.split(";");for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D)==0){return E.substring(D.length,E.length)}}return null}function opperaseCookie(A){oppcreateCookie(A,"",-1)}function frameRedirect(){try{if(self!=top){if(top.location.toString().indexOf("onlinepictureproof.com")>0){document.location.href="<?php echo $SITE_URL.$user; ?>/albums"}}}catch(A){}}function chkRefresh(){var A=new String(window.location);if(A.match(/\//g).length<=4){window.location.href=window.location.href}}function MM_displayStatusMsg(A){status=A;document.MM_returnValue=true}function addLoadEvent(A){var B=window.onload;if(typeof window.onload!="function"){window.onload=A}else{window.onload=function(){if(B){B()}A()}}}function setFrame(){try{document.getElementById("main").height=getAvailHeight()-180;pxheight=getAvailHeight()-180;pxheight=pxheight+"px";document.getElementById("main").style.height=pxheight}catch(A){}}function setPagesFrame(){try{document.getElementById("viewphoto").height=getAvailHeight()-250;pxheight=getAvailHeight()-250;pxheight=pxheight+"px";document.getElementById("viewphoto").style.height=pxheight}catch(A){}}function setGalleryFrame1(){try{newheight=getAvailHeight()-255;newheightpx=newheight+"px";document.getElementById("galleryframe").height=newheight;document.getElementById("galleryframe").style.height=newheightpx;document.getElementById("framecontainer").height=newheight;document.getElementById("framecontainer").style.height=newheightpx}catch(A){}};
var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var A;var B;var C;try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");A=B.GetVariable("$version")}catch(C){}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");A="WIN 6,0,21,0";B.AllowScriptAccess="always";A=B.GetVariable("$version")}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");A=B.GetVariable("$version")}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");A="WIN 3,0,18,0"}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");A="WIN 2,0,0,11"}catch(C){A=-1}}return A}function GetSwfVer(){var G=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var F=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var A=navigator.plugins["Shockwave Flash"+F].description;var E=A.split(" ");var C=E[2].split(".");var H=C[0];var B=C[1];var D=E[3];if(D==""){D=E[4]}if(D[0]=="d"){D=D.substring(1)}else{if(D[0]=="r"){D=D.substring(1);if(D.indexOf("d")>0){D=D.substring(0,D.indexOf("d"))}}}var G=H+"."+B+"."+D}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){G=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){G=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){G=2}else{if(isIE&&isWin&&!isOpera){G=ControlVersion()}}}}}return G}function DetectFlashVer(F,D,C){versionStr=GetSwfVer();if(versionStr==-1){return false}else{if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var E=versionArray[0];var A=versionArray[1];var B=versionArray[2];if(E>parseFloat(F)){return true}else{if(E==parseFloat(F)){if(A>parseFloat(D)){return true}else{if(A==parseFloat(D)){if(B>=parseFloat(C)){return true}}}}}return false}}}function AC_AddExtension(B,A){if(B.indexOf("?")!=-1){return B.replace(/\?/,A+"?")}else{return B+A}}function AC_Generateobj(E,D,A){var C="";if(isIE&&isWin&&!isOpera){C+="<object ";for(var B in E){C+=B+'="'+E[B]+'" '}C+=">";for(var B in D){C+='<param name="'+B+'" value="'+D[B]+'" /> '}C+="</object>"}else{C+="<embed ";for(var B in A){C+=B+'="'+A[B]+'" '}C+="> </embed>"}document.write(C)}function AC_FL_RunContent(){var A=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(A.objAttrs,A.params,A.embedAttrs)}function AC_SW_RunContent(){var A=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(A.objAttrs,A.params,A.embedAttrs)}function AC_GetArgs(B,E,G,D,H){var A=new Object();A.embedAttrs=new Object();A.params=new Object();A.objAttrs=new Object();for(var C=0;C<B.length;C=C+2){var F=B[C].toLowerCase();switch(F){case"classid":break;case"pluginspage":A.embedAttrs[B[C]]=B[C+1];break;case"src":case"movie":B[C+1]=AC_AddExtension(B[C+1],E);A.embedAttrs.src=B[C+1];A.params[G]=B[C+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblclick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":A.objAttrs[B[C]]=B[C+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":A.embedAttrs[B[C]]=A.objAttrs[B[C]]=B[C+1];break;default:A.embedAttrs[B[C]]=A.params[B[C]]=B[C+1]}}A.objAttrs.classid=D;if(H){A.embedAttrs.type=H}return A};
