NS6=(document.getElementById&&!document.all);IE=(document.all);IE4=(document.all&&!document.getElementById);NS=(navigator.appName=="Netscape"&&navigator.appVersion.charAt(0)=="4");OP=(navigator.userAgent.indexOf("Opera")>-1);var jquery_api=jQuery.noConflict();function PageOnLoad(){local_PageOnLoad()}function PageOnUnLoad(){local_PageOnUnLoad()}function OpenNewPicture(a){winNewPix=window.open("/scripts/site/show.picture?pix="+a,"winNewPix","width=400,height=400,scrollbars=0,status=0,resize=1");winNewPix.focus();return false}function MM_findObj(h,g){var f,c,a;if(!g){g=document}if((f=h.indexOf("?"))>0&&parent.frames.length){g=parent.frames[h.substring(f+1)].document;h=h.substring(0,f)}if(!(a=g[h])&&g.all){a=g.all[h]}for(c=0;!a&&c<g.forms.length;c++){a=g.forms[c][h]}for(c=0;!a&&g.layers&&c<g.layers.length;c++){a=MM_findObj(h,g.layers[c].document)}if(!a&&document.getElementById){a=document.getElementById(h)}return a}var ar_OpenPopupMenus=new Array();function MM_showHideLayers(){var d,g,a,f,c=MM_showHideLayers.arguments;for(d=0;d<(c.length-2);d+=5){if((f=MM_findObj(c[d]))!=null){st_object_name=c[d+0];e=c[d+1];a=c[d+2];dx=c[d+3];dy=c[d+4];offsetLeft=c[d+5];offsetTop=c[d+6];if(f.style){f=f.style;if(a=="show"){f.left=offsetLeft+dx;f.top=offsetTop+dy;for(in_popup_menu=1;in_popup_menu<=ar_OpenPopupMenus.length;in_popup_menu++){if(ar_OpenPopupMenus[in_popup_menu-1]!="Processed"){popup_to_close=ar_OpenPopupMenus[in_popup_menu-1];popup_to_close.visibility="hidden";ar_OpenPopupMenus[in_popup_menu-1]="Processed"}}ar_OpenPopupMenus[ar_OpenPopupMenus.length]=f;setTimeout("document.getElementById("+st_object_name+").style.visibility = 'hidden';",20000)}a=((a=="show"||a=="nochange")?"visible":(a=="hide")?"hidden":a)}f.visibility=a}}}function findPosX(a){var c=0;if(a.offsetParent){while(a.offsetParent){c+=a.offsetLeft;a=a.offsetParent}}else{if(a.x){c+=a.x}}return c}function findPosY(c){var a=0;if(c.offsetParent){while(c.offsetParent){a+=c.offsetTop;c=c.offsetParent}}else{if(c.y){a+=c.y}}return a}function resize_browser_to_limits(){this.resizeTo(window.screen.availWidth,window.screen.availHeight)}function confirmMessageBox(d,c,a,f){switch(confirm(d+" '"+c+"'?")){case true:location.href=a;if(f=="undefined"){st_connector=((a.search("/?/i")>-1)?"?":"&");location.href=(a+st_connector+"st_next_page="+f)}break;case false:break}}function confirmDelete(a,c,d){if(confirm("Are you sure you wish to delete '"+a+"'?")){location.href=(c+"&referer_page="+d)}}function PopUp(d,c,g,a,f){window.open(d,c,"width="+g+",height="+a+",scrollbars="+f)}function PopUpPage(c,a,d){window.open(c,a,d)}function openPage(a){location=a}function reload_parent_form(a){switch(a){case 0:opener.formMemberProfile.submit();break;case 1:opener.formProject.submit();break;default:self.opener.submit()}window.close()}function test(){alert("function test called")}function parent_redirect(a){self.opener.location=a}function refreshParent(){self.opener.location.reload();window.close()}function MM_swapImgRestore(){var f,c,d=document.MM_sr;for(f=0;d&&f<d.length&&(c=d[f])&&c.oSrc;f++){c.src=c.oSrc}}function MM_preloadImages(){var h=document;if(h.images){if(!h.MM_p){h.MM_p=new Array()}var g,f=h.MM_p.length,c=MM_preloadImages.arguments;for(g=0;g<c.length;g++){if(c[g].indexOf("#")!=0){h.MM_p[f]=new Image;h.MM_p[f++].src=c[g]}}}}function MM_findObj(h,g){var f,c,a;if(!g){g=document}if((f=h.indexOf("?"))>0&&parent.frames.length){g=parent.frames[h.substring(f+1)].document;h=h.substring(0,f)}if(!(a=g[h])&&g.all){a=g.all[h]}for(c=0;!a&&c<g.forms.length;c++){a=g.forms[c][h]}for(c=0;!a&&g.layers&&c<g.layers.length;c++){a=MM_findObj(h,g.layers[c].document)}if(!a&&g.getElementById){a=g.getElementById(h)}return a}function MM_swapImage(){var g,f=0,c,d=MM_swapImage.arguments;document.MM_sr=new Array;for(g=0;g<(d.length-2);g+=3){if((c=MM_findObj(d[g]))!=null){document.MM_sr[f++]=c;if(!c.oSrc){c.oSrc=c.src}c.src=d[g+2]}}}function moveOut(){if(parseInt(ssm.left)<0&&mPos||parseInt(ssm.left)>0&&!mPos){clearTimeout(moving);moving=setTimeout("moveOut()",slideXSpeed);slideMenu((!mPos)?"out":"out")}else{clearTimeout(moving);moving=setTimeout("null",1)}}function moveBack(){clearTimeout(moving);moving=setTimeout("moveBack1()",waitTime)}function moveBack1(){if(parseInt(ssm.left)>-(menuWidth+1)&&mPos||parseInt(ssm.left)<menuWidth+1&&!mPos){clearTimeout(moving);moving=setTimeout("moveBack1()",slideXSpeed);slideMenu((!mPos)?"in":"in")}else{clearTimeout(moving);moving=setTimeout("null",1)}}function slideMenu(a){fHow=(NS6)?0.4:0.2;if(a=="out"){flow=fHow*-(parseInt(ssm.left))}if(a=="in"&&!mPos){flow=fHow*(menuWidth+1-parseInt(ssm.left))}else{if(a=="in"){flow=fHow*-(menuWidth+1+parseInt(ssm.left))}}if(flow>0){flow=Math.ceil(flow)}else{flow=Math.floor(flow)}if(IE||NS6){lastX+=flow;bssm.clip="rect(0 "+((!mPos)?(barWidth+menuWidth+3):(barWidth+2+lastX))+" "+(((IE4)?document.body.clientHeight:0)+tssm.offsetHeight)+" "+((!mPos)?(lastX+1):0)+")"}ssm.left=parseInt(ssm.left)+flow;if(NS){if(!mPos){bssm.clip.left+=flow;bssm2.clip.left+=flow}else{bssm.clip.right+=flow;bssm2.clip.right+=flow}if(bssm.left+bssm.clip.right>document.width){document.width+=flow}}}function makeStatic(){winY=(IE)?document.body.scrollTop:window.pageYOffset;sHow=(NS6)?0.4:0.2;if(winY!=lastY&&winY>YOffset-staticYOffset){smooth=sHow*(winY-lastY-YOffset+staticYOffset)}else{if(YOffset-staticYOffset+lastY>YOffset-staticYOffset&&winY<=YOffset-staticYOffset){smooth=sHow*(winY-lastY-(YOffset-(YOffset-winY)))}else{smooth=0}}if(smooth>0){smooth=Math.ceil(smooth)}else{smooth=Math.floor(smooth)}bssm.top=parseInt(bssm.top)+smooth;lastY=lastY+smooth;setTimeout("makeStatic()",slideYSpeed)}function menuClick(id){obj=(document.all)?document.all(id):document.getElementById(id);with(obj){if(event.srcElement.id!=id){if(target=="_top"){top.location=href}else{if(target=="_parent"){parent.location=href}else{if(target=="_blank"){window.open(href)}else{if(target>""&&top.frames[target]){top.frames[target].location=href}else{if(target>""){eval('window.open("'+href+'","'+target+'")')}else{location=href}}}}}}}}function buildBar(){if(!barType){tempBar='<IMG SRC="'+barText+'" BORDER="0">'}else{for(b=0;b<barText.length;b++){tempBar+=barText.charAt(b)+"<BR>"}}ssmHTML+='<td align="center" rowspan="100" width="'+barWidth+'" bgcolor="'+barBGColor+'" valign="'+barVAlign+'" align="'+barAlign+'" class="ssmBar" NOWRAP>'+tempBar+"</td>"}function initSlide(){if(!mPos){lastX=menuWidth}if((NS6||IE)&&!OP||(operaFix!=2&&OP)){ssm=(NS6)?document.getElementById("thessm").style:document.all("thessm").style;tssm=(NS6)?document.getElementById("thessm"):document.all("thessm");bssm=(NS6)?document.getElementById("basessm").style:document.all("basessm").style;bssm.clip="rect(0 "+(barWidth+2+((!mPos)?menuWidth+1:0))+" "+(((IE4)?document.body.clientHeight:0)+tssm.offsetHeight)+" "+((!mPos)?(menuWidth+1):0)+")";if(OP&&operaFix==1){XOff=(!mPos)?document.body.clientWidth-barWidth-3:0}bssm.left=(!mPos)?XOff-menuWidth:XOff;if(OP){ssm.left=ssm.left}bssm.visibility="visible";if(NS6&&!OP){bssm.top=YOffset;if(menuOpacity!=100){ssm.MozOpacity=menuOpacity/100}slideIsGo=window.innerHeight>tssm.offsetHeight+staticYOffset}else{if(menuOpacity!=100){ssm.filter="alpha(opacity="+menuOpacity+")"}slideIsGo=((OP)?window.innerHeight:document.body.clientHeight)>parseInt(tssm.offsetHeight)+staticYOffset}if(autoHideXOverflow&&((IE?document.body.clientWidth:window.innerWidth-16)<parseInt(bssm.left)+parseInt(ssm.left)+menuWidth+barWidth+3)){document.body.style.overflowX="hidden";document.body.style.overflowY="scroll"}}else{if(NS){bssm=document.layers.basessm1;bssm2=bssm.document.layers.basessm2;ssm=bssm2.document.layers.thessm;bssm.clip.left=(!mPos)?menuWidth+1:0;bssm.clip.right=(!mPos)?(menuWidth+barWidth+3):barWidth+2;bssm.left=(!mPos)?XOff-menuWidth:XOff;ssm.visibility="show";slideIsGo=window.innerHeight>ssm.clip.bottom+staticYOffset}}if(slideY&&(slideOnYOverflow||(!slideOnYOverflow&&slideIsGo))){makeStatic()}if(!slideX){moveOut()}}function getXOff(){return(((!XAlign)?((IE||OP)?document.body.clientWidth-barWidth-3:window.innerWidth-barWidth-3-17):(XAlign==1)?Math.floor(((IE||OP)?document.body.clientWidth/2-barWidth/2-1.5:window.innerWidth/2-barWidth/2-1.5)):0)+XOffset)}function buildMenu(){if("undefined"!==typeof menuPosition){mPos=menuPosition;ssmHTML="";XOff=getXOff();if(IE||NS6){ssmHTML+='<DIV ID="basessm" style="visibility:hidden;Position : Absolute ;Top : '+YOffset+" ;Z-Index : 20;width:"+(barWidth+2)+';"><DIV ID="thessm" style="Position : Absolute ;Left : '+((!mPos)?menuWidth+1:-menuWidth-1)+" ;Top : 0px ;Z-Index : 30;"+((IE)?"width:1px":"")+'" '+((slideX)?'onmouseover="moveOut()" onmouseout="moveBack()")':"")+">"}if(NS){ssmHTML+='<LAYER name="basessm1" top="'+YOffset+'" visibility="show" onload="initSlide()"><ILAYER name="basessm2"><LAYER visibility="hide" name="thessm" bgcolor="'+menuBGColor+'" left="'+((!mPos)?menuWidth+1:-menuWidth-1)+'" '+((slideX)?'onmouseover="moveOut()" onmouseout="moveBack()")':"")+">"}if(NS6){ssmHTML+='<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+3)+'"><TR><TD>'}ssmHTML+='<table border="0" cellpadding="0" cellspacing="1" width="'+(menuWidth+barWidth+3)+'" bgcolor="'+((!NS)?menuBGColor:"")+'">';for(i=0;i<sI.length;i++){ssmHTML+="<TR>";if(barBuilt==0&&!mPos){buildBar();barBuilt=1}if(sI[i][3]>1){ssmHTML+='<TD BGCOLOR="'+hdrBGColor+'" ALIGN="'+hdrAlign+'" WIDTH="'+menuWidth+'"'+((NS6)?' style="padding:'+hdrPadding+'px"':'><TABLE CELLPADDING="'+hdrPadding+'" CELLSPACING="0" BORDER="0"><TR><TD')+' CLASS="ssmHdr" VALIGN="'+hdrVAlign+'">'+((sI[i][3]==3)?'<a HREF="'+((sI[i][1].indexOf("://")==-1&&sI[i][1].indexOf("../")==-1)?targetDomain:"")+sI[i][1]+'" target="'+sI[i][2]+'" class="ssmHdr">':"")+sI[i][0]+((sI[i][3]==3)?"</a>":"")+((NS6)?"":"</TD></TR></TABLE>")+"</TD>"}else{if(!sI[i][2]){sI[i][2]=targetFrame}ssmHTML+='<TD WIDTH="'+menuWidth+'"'+(NS&&!sI[i][3]?"":'BGCOLOR="'+linkBGColor+'"')+" "+((NS6)?'CLASS="ssmItem" style="padding:'+linkPadding+'px;" ALIGN="'+linkAlign+'"':"")+" "+((sI[i][3])?">":"onmouseover=\"style.backgroundColor='"+linkOverBGColor+"'\" onmouseout=\"style.backgroundColor='"+linkBGColor+"'\" onclick=\"menuClick('item_"+i+"');\""+(IE?' style="cursor:hand;"':"")+"><ILAYER><LAYER onmouseover=\"bgColor='"+linkOverBGColor+"'\" onmouseout=\"bgColor='"+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'" bgcolor="'+linkBGColor+'">')+((NS6)?"":'<DIV ALIGN="'+linkAlign+'" CLASS="ssmItem"><TABLE CELLPADDING="'+linkPadding+'" CELLSPACING="0" BORDER="0"><TR><TD VALIGN="'+linkVAlign+'" CLASS="ssmItem">')+((sI[i][3])?"":'<A HREF="'+((sI[i][1].indexOf("://")==-1&&sI[i][1].indexOf("../")==-1)?targetDomain:"")+sI[i][1]+'" target="'+sI[i][2]+'" CLASS="ssmItem" id="item_'+i+'">')+sI[i][0]+""+((sI[i][3])?"":"</A>")+((NS6)?"":"</TD></TR></TABLE></DIV>")+((sI[i][3])?"":"</LAYER></ILAYER>")+"</TD>"}if(barBuilt==0&&mPos){buildBar();barBuilt=1}ssmHTML+="</TR>"}ssmHTML+="</table>";if(NS6){ssmHTML+="</TD></TR></TABLE>"}if(IE||NS6){ssmHTML+="</DIV></DIV>";setTimeout("initSlide();",1)}if(NS){ssmHTML+="</LAYER></ILAYER></LAYER>"}jquery_api("body").append(ssmHTML)}}function addHdr(a){sI[sI.length]=[a,"","",2]}function addLink(d,a,c){if(!a){a="javascript://"}sI[sI.length]=[d,a,c,3]}function addItem(d,a,c){if(!a){a="javascript://"}sI[sI.length]=[d,a,c,0]}function addText(a){sI[sI.length]=[a,"","",1]}function MakeIELinksBlink(){if(!document.all){return}else{for(i=0;i<document.all.tags("blink").length;i++){s=document.all.tags("blink")[i];s.style.visibility=(s.style.visibility=="visible")?"hidden":"visible"}}}setInterval("MakeIELinksBlink()",1000);function findInPage(){if(parseFloat(navigator.appVersion)>=4){if(document.all){st_text_to_find=window.prompt("Enter a search string","");if(st_text_to_find==""){exit}var a=document.body.createTextRange();var c=a.findText(st_text_to_find);if(c!=false){a.select();a.scrollIntoView()}else{alert("Sorry, no matching information found.")}}else{window.find()}}}var scrollspeed=cache=2;var initialdelay=500;function initializeScroller(){dataobj=document.all?document.all.datacontainer:document.getElementById("datacontainer");if(dataobj!=null){dataobj.style.top="5px";setTimeout("getdataheight()",initialdelay)}}function getdataheight(){thelength=dataobj.offsetHeight;if(thelength==0){setTimeout("getdataheight()",10)}else{scrollDiv()}}function scrollDiv(){dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed+"px";if(parseInt(dataobj.style.top)<thelength*(-1)){dataobj.style.top="5px"}setTimeout("scrollDiv()",40)}if(window.addEventListener){window.addEventListener("load",initializeScroller,false)}else{if(window.attachEvent){window.attachEvent("onload",initializeScroller)}else{window.onload=initializeScroller}}function reformat_date(a){ar_date=a.split("-");return ar_date[1]+"/"+ar_date[2]+"/"+ar_date[0]}var agt=navigator.userAgent.toLowerCase();var is_opera=(agt.indexOf("opera")!=-1);function ShowHelp(k,l){var h;if(document.all){h=document.all[l+"_help"]}else{if(document.getElementById){h=document.getElementById(l+"_help")}}if(h){if(h.style.display==""){h.style.display="none"}else{h.style.display=""}var f=340;var g=getOffsetLeft(k);var a=(window.innerWidth)?window.innerWidth-25:document.body.clientWidth;if((g+f)>a){g=a-f}newX=g;var j=h.offsetHeight;var d=getOffsetTop(k)+k.offsetHeight;var c=(window.innerHeight)?window.innerHeight-25:document.body.clientHeight;newY=d;h.style.top=newY;h.style.left=newX;if(h.style.display==""){qh_hideElement("select",h);qh_hideElement("object",h);qh_hideElement("embed",h)}else{qh_showElement("select");qh_showElement("object");qh_showElement("embed")}}}function getOffsetTop(d){var c=d.offsetTop;var a=d.offsetParent;while(a){c+=a.offsetTop;a=a.offsetParent}return c}function getOffsetLeft(d){var c=d.offsetLeft;var a=d.offsetParent;while(a){c+=a.offsetLeft;a=a.offsetParent}return c}function getScrollY(){var a=0;if(typeof(window.pageYOffset)=="number"){a=window.pageYOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollTop}}}return a}function qh_hideElement(a,c){if(document.all){for(i=0;i<document.all.tags(a).length;i++){obj=document.all.tags(a)[i];if(!obj||!obj.offsetParent){continue}objLeft=obj.offsetLeft;objTop=obj.offsetTop;objParent=obj.offsetParent;while(objParent.tagName.toUpperCase()!="BODY"){objLeft+=objParent.offsetLeft;objTop+=objParent.offsetTop;objParent=objParent.offsetParent}objHeight=obj.offsetHeight;objWidth=obj.offsetWidth;if((c.offsetLeft+c.offsetWidth)<=objLeft){}else{if((c.offsetTop+c.offsetHeight)<=objTop){}else{if(c.offsetTop>=(objTop+objHeight)){}else{if(c.offsetLeft>=(objLeft+objWidth)){}else{obj.style.visibility="hidden"}}}}}}}function qh_showElement(a){if(document.all){for(i=0;i<document.all.tags(a).length;i++){obj=document.all.tags(a)[i];if(!obj||!obj.offsetParent){continue}obj.style.visibility=""}}}function checkDomain(c){var a=false;var d;if(c.domainToCheck){d=c.domainToCheck.value;if(d!=""){var f=/[^a-zA-Z0-9-\s.]+/;if(f.test(d)){alert("Invalid character in domain.\n\nOnly letters, numbers or hyphens are allowed.")}else{a=true}}}if(a){return true}else{return false}}function execute_code(response){eval(response)}function setCookie(c,d,a){var f=new Date();f.setDate(f.getDate()+a);document.cookie=c+"="+escape(d)+((a==null)?"":";expires="+f.toGMTString())}function build_content(url,callback_function,return_xml,st_return_mode,st_parameters,bo_sync,st_username,st_password){var http_request=false;bo_sync=((bo_sync!=null)?bo_sync:true);if(window.XMLHttpRequest){http_request=new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType("text/xml")}}else{if(window.ActiveXObject){try{http_request=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{http_request=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}}}if(!http_request){alert("Unfortunatelly you browser doesn't support this feature.");return false}http_request.onreadystatechange=function(){if(http_request.readyState==4){if(http_request.status==200){if(st_return_mode=="VARIABLE"){if(return_xml==true){eval(callback_function+" = (http_request.responseXML)")}else{var va_container=explode(".",callback_function);jquery_api("#"+va_container[0]).prop(va_container[1],"");jquery_api(get_webpage_content(http_request.responseText)).appendTo("#"+va_container[0])}}else{if(return_xml==true){eval(callback_function+"(http_request.responseXML)")}else{eval(callback_function+"(http_request.responseText)")}}}else{}}};if(st_parameters==null){http_request.open("GET",url,bo_sync,st_username,st_password);http_request.send(null)}else{http_request.open("POST",url,bo_sync,st_username,st_password);http_request.setRequestHeader("Content-type","application/x-www-form-urlencoded");http_request.send(st_parameters)}}function get_webpage_content(a){if(a.search("<!-- START: PAGE CONTENT -->")!=-1){a=jquery_api("#globalPageContentContainer",a).prop("innerHTML")}return a}function pbPreviewDocument(){var a=new RegExp("Site Design");if(a.test(document.getElementById("file_name").value)==true){st_site_design=document.getElementById("file_name").value;st_site_design=st_site_design.replace("Site Design","").replace("[","").replace("]","").replace(" ","").replace(" ","");docPreview=window.open(document.getElementById("default_page").value+"/vts/"+st_site_design+"/vtsaction/preview/","docPreview","",true)}else{docPreview=window.open(documentURL.replace("/documents/","/viewer/").replace("//","/"),"docPreview","",true)}docPreview.focus()}function pbInsertNavigationBar(){window.open("/viewer/mgr.pagebuilder/pagebuilder.navigationWin.asd/vts/pagebuilder")}function pbInsertTextGroup(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertTextGroup.asd/vts/pagebuilder")}function pbInsertTextFieldTemplateObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertTemplateItem.asd/vts/pagebuilder")}function pbInsertAccessControlObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertAccessControlObject.asd/vts/pagebuilder")}function pbInsertMemberProfileFieldObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertMemberProfileField.asd/vts/pagebuilder")}function pbInsertConfigurationFieldObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertConfigurationField.asd/vts/pagebuilder")}function pbInsertPhotoAlbumObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertPhotoAlbumObject.asd/vts/pagebuilder")}function pbInsertSearchEngineObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertSearchEngineObject.asd/vts/pagebuilder")}function pbGetStatusBoardObject(){var a="\n";a+="<input name='PageBuilderObject' pbotype='status-board' ";a+="type='button' style='border=0; background-color: #FFFEC2; font-weight:normal; font-size:10px; font-family: Verdana; color: Black; text-align: center;' value='\n";a+="Status Board Object (DO NOT EDIT)\n";a+="'>";return a}function pbGetGuestbookObject(){var a="\n";a+="<input name='PageBuilderObject' pbotype='guestbook' ";a+="type='button' style='border=0; background-color: #FFFEC2; font-weight:normal; font-size:10px; font-family: Verdana; color: Black; text-align: center;' value='\n";a+="Guest Book Object (DO NOT EDIT)\n";a+="'>";return a}function pbInsertGuestBookFieldTemplateObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertGuestBookField.asd/vts/pagebuilder")}function pbGetRecordStartObject(){var a="\n";a+="<input name='PageBuilderObject' pbotype='record-start' ";a+="type='button' style='border=0; background-color: #FFFEC2; font-weight:normal; font-size:10px; font-family: Verdana; color: Black; text-align: center;' value='\n";a+="Record Start Object\n(DO NOT EDIT)\n";a+="'>";return a}function pbGetRecordEndObject(){var a="\n";a+="<input name='PageBuilderObject' pbotype='record-end' ";a+="type='button' style='border=0; background-color: #FFFEC2; font-weight:normal; font-size:10px; font-family: Verdana; color: Black; text-align: center;' value='\n";a+="Record End Object\n(DO NOT EDIT)\n";a+="'>";return a}function pbInsertTemplate(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertTemplate.asd/vts/pagebuilder")}function pbInsertLinkFieldTemplateObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertLinkTemplateItem.asd/vts/pagebuilder")}function pbInsertNewsletterFieldObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertNewsletterField.asd/vts/pagebuilder")}function pbInsertNewsletterObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertNewsletterObject.asd/vts/pagebuilder")}function pbInsertUpdateMemberProfileObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertUpdateMemberProfileObject.asd/vts/pagebuilder")}function pbInsertWebsiteLogo(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertSiteLogoObject.asd/vts/pagebuilder")}function pbInsertDateObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertCurrentDateObject.asd/vts/pagebuilder")}function pbInsertCopyrightObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertCopyrightObject.asd/vts/pagebuilder")}function pbInsertAudioHyperlink(a){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertPlayMusicLink.asd/vts/pagebuilder"+((a!=null)?"/editor/"+a:""))}function pbInsertVideoHyperlink(a){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertPlayVideoLink.asd/vts/pagebuilder"+((a!=null)?"/editor/"+a:""))}function pbPublishGenericContent(a){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertGenericContent.asd/vts/pagebuilder"+((a!=null)?"/editor/"+a:""))}function pbInsertFlashMovie(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertFlashObject.asd/vts/pagebuilder")}function pbInsertForm(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertFormObject.asd/vts/pagebuilder")}function pbInsertRSSFeed(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertRSSFeed.asd/vts/pagebuilder")}function pbGetPageViewObject(){var a="\n";a+="<input name='PageBuilderObject' pbotype='page-view' ";a+="type='button' style='height=250; width=250; border=0; background-color: #FFFEC2; font-weight:normal; font-size:10px; font-family: Verdana; color: Black; text-align: center;' value='\n";a+="Page View Object (DO NOT EDIT)\n\n";a+="The page view is the part of the page\n";a+="that changes from page to page on the\n";a+="the site.\n";a+="'>";return a}function pbGetStoreAdd2CartButton(){var a="\n";a+="<FORM action=/viewer/mgr.shop/shoppingcart.asd/scaction/add method=post style='display: inline;'><INPUT style='WIDTH: 79px; HEIGHT: 22px' type=hidden size=9 value=PRODUCT_ID name=scspid><INPUT class=button type=submit value='Add to Cart'></FORM>";return a}function pbGetStoreAdd2CartButtonWithQuantityOptions(){var a="\n";a+="<FORM action=/viewer/mgr.shop/shoppingcart.asd/scaction/add method=post style='display: inline;'><INPUT style='WIDTH: 79px; HEIGHT: 22px' type=hidden size=9 value=PRODUCT_ID name=scspid>Qty: <INPUT style='WIDTH: 23px; HEIGHT: 22px' type=text size=1 value=1 name=qty><INPUT class=button type=submit value='Add to Cart'></FORM>";return a}function pbGetStoreAdd2CartButtonWithListPricesOptions(){var a="\n";a+="<FORM action=/viewer/mgr.shop/shoppingcart.asd/scaction/add method=post style='display: inline;'><select name=scspid><option value='0'>-- Make Selection --</option><option value='PRODUCT_ID_1'>DESCRIPTION1</option><option value='PRODUCT_ID_2'>DESCRIPTION2</option><option value='PRODUCT_ID_3'>DESCRIPTION3</option></select><INPUT class=button type=submit value='Add to Cart'></FORM>";return a}function pbInsertAccountLoginObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertLoginObject.asd/vts/pagebuilder")}function pbInsertAccountRegistrationObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertRegisterObject.asd/vts/pagebuilder")}function pbInsertNewPasswordObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertNewPasswordObject.asd/vts/pagebuilder")}function pbInsertChangePasswordObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertChangePasswordObject.asd/vts/pagebuilder")}function pbInsertGetPasswordObject(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertGetPasswordObject.asd/vts/pagebuilder")}function methodX00017(){window.open("/viewer/mgr.pagebuilder/pagebuilder.openWebDoc.asd/vts/pagebuilder")}function methodX00018(){window.open("/viewer/mgr.pagebuilder/pagebuilder.openWebImage.asd/vts/pagebuilder")}function methodX00019(){document.pagebuilder_form.file_name.value=pbReturnNewDocumentDefaultName();document.pagebuilder_form.page_title.value=document.pagebuilder_form.page_description.value=document.pagebuilder_form.page_keywords.value=""}function pbInsertEmailHyperlink(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertEmailLink.asd/vts/pagebuilder")}function pbReturnNewDocumentDefaultName(){return"new_document.asd"}function pbSetEditorFileName(a){document.pagebuilder_form.file_name.value=a}function pbInsertInsertImage(){window.open("/viewer/mgr.pagebuilder/pagebuilder.selectImage.asd/vts/pagebuilder")}function pbGetCurrentDocumentFilename(){return escape(((document.pagebuilder_form.file_name.value.search(/^\/documents\//)==-1&&document.pagebuilder_form.file_name.value.search(/^Site Design/)==-1)?"/documents/"+((document.pagebuilder_form.page_title.value.length>0)?document.pagebuilder_form.page_title.value:document.pagebuilder_form.file_name.value):document.pagebuilder_form.file_name.value))}function pbOpenDocument(){window.open("/viewer/mgr.pagebuilder/pagebuilder.openDoc.asd/vts/pagebuilder")}function pbSaveCurrentDocument(a){if(a==null){a=0}window.open("/viewer/mgr.pagebuilder/pagebuilder.saveDoc.asd/vts/pagebuilder?newdoc="+a+"&fn="+pbGetCurrentDocumentFilename())}function pbInsertHTMLContent(d,f,a){if(f==null){f="pagebuilder"}var c=d.FCKeditorAPI.GetInstance(f);c.InsertHtml(a)}function methodX00043(){var a=window.open("/viewer/mgr.pagebuilder/pagebuilder.aboutDialog.asd/vts/pagebuilder","winHelp","scrollbars=no,width=330,height=150,resizable=no")}function ASDWSA_PageBuilderPrettyPrint(c){st_code_buffer=c;in_tab_count=in_previous_tabcount=0;st_A="";st_tag=st_previous_tag="";st_tagSetA="TABLE,TBODY,TR,TD,SCRIPT,OBJECT,EMBED,PARAM,FORM,SELECT,OPTION,OL,UL,";st_tagSetBA="TABLE,TBODY,TR,FORM,SELECT,UL,OL,";st_tagSetC="TABLE,DIV,P,FORM,SELECT,UL,OL,LI,!--,";st_tagSetD="TABLE,TBODY,TR,TD,SCRIPT,OBJECT,EMBED,PARAM,FORM,SELECT,OPTION,LI,P,DIV,INPUT,";st_tagSetE="SCRIPT,!--,";st_tagSetF="FORM,TD,DIV,P,";in_opening_pos=0;while(in_opening_pos!=-1){in_previous_tabcount=in_tab_count;in_opening_pos=parseInt(st_code_buffer.search("<"));while(in_opening_pos!=0&&in_opening_pos!=-1){st_A+=st_code_buffer.substr(0,in_opening_pos);st_code_buffer=st_code_buffer.substr(in_opening_pos,st_code_buffer.length-in_opening_pos);in_opening_pos=parseInt(st_code_buffer.search("<"))}in_space_pos=parseInt(st_code_buffer.search(" "));in_closing_pos=parseInt(st_code_buffer.search(">"));if(in_opening_pos==-1){st_A+=st_code_buffer}else{if(in_opening_pos>=0){if(in_space_pos>in_closing_pos||in_space_pos<0){st_tag=st_code_buffer.substr(in_opening_pos+1,in_closing_pos-in_opening_pos-1).toUpperCase()}else{st_tag=st_code_buffer.substr(in_opening_pos+1,in_space_pos-in_opening_pos-1).toUpperCase()}st_tag_alone=st_tag;st_full_tag=st_tag+=",";if(st_full_tag=="!--,"){alert("'"+st_full_tag+"' TAB # P="+in_previous_tabcount+" # C="+in_tab_count)}if(st_tag.charAt(0)=="/"){st_tag=st_tag.substr(1);if(st_tagSetBA.search(st_tag)!=-1){in_tab_count=in_tab_count-1}st_A+=((st_tagSetA.search(st_tag)!=-1)?"\n":"")+((st_tagSetD.search(st_tag)!=-1)?ASDWSA_PageBuilderPrettyPrint_Indent(in_tab_count):"")+st_code_buffer.substr(in_opening_pos,in_closing_pos-in_opening_pos+1)+((st_tagSetC.search(st_tag)!=-1)?"\n\n":"")}else{if(st_tagSetE.search(st_tag)!=-1){if(st_tag_alone=="!--"){st_closing_tag="-->"}else{st_closing_tag="</"+st_tag_alone+">"}in_closing_pos=parseInt(st_code_buffer.search(st_closing_tag))+st_closing_tag.length;st_A+=((st_tagSetA.search(st_tag)!=-1)?"\n":"")+((st_tagSetD.search(st_tag)!=-1)?ASDWSA_PageBuilderPrettyPrint_Indent(in_tab_count):"")+st_code_buffer.substr(in_opening_pos,in_closing_pos-in_opening_pos+1)}else{st_A+=((st_tagSetA.search(st_tag)!=-1)?"\n":"")+((st_tagSetD.search(st_tag)!=-1)?ASDWSA_PageBuilderPrettyPrint_Indent(in_tab_count):"")+st_code_buffer.substr(in_opening_pos,in_closing_pos-in_opening_pos+1);if(st_tagSetBA.search(st_tag)!=-1){in_tab_count=in_tab_count+1}}}in_tab_count=((in_tab_count<0)?0:in_tab_count);if(st_full_tag==","){alert("'"+st_full_tag+"' TAB # P="+in_previous_tabcount+" # C="+in_tab_count)}st_code_buffer=st_code_buffer.substr(in_closing_pos+1,st_code_buffer.length-in_closing_pos);st_previous_tag=st_tag}}}st_code_buffer=st_A;var a=/((<br>)+)/ig;a.multiline=true;st_code_buffer=st_code_buffer.replace(a,"$1\n");return st_code_buffer}function ASDWSA_PageBuilderPrettyPrint_Indent(a){st_pads_buffer="";st_pads_tab="     ";for(i=0;i<=a-1;i++){st_pads_buffer+=st_pads_tab}return st_pads_buffer}function pbGetCurrentEditorContents(c,d){if(d==null){d="pagebuilder"}var a=c.FCKeditorAPI.GetInstance(d);return escape(a.GetHTML())}function pbSetCurrentEditorContents(d,f,a){if(f==null){f="pagebuilder"}var c=d.FCKeditorAPI.GetInstance(f);c.SetHTML(a)}function pbGetCurrentTextAreaEditorContents(a){ob_object=a.document.getElementById("pagebuilder_textarea");return escape(ob_object.value)}function pbInsertHyperlink(){window.open("/viewer/mgr.pagebuilder/pagebuilder.insertHyperlink.asd/vts/pagebuilder")}function pbGetWebpageURL(a){return a.replace("/documents/","/viewer/")}function pbCreateHyperLink(a,d,c){var a="<a href='"+a+"' target='"+d+"'>"+c+"</a>";return a}function function_name(c){var a=c.toString().match(/function (\w*)/)[1];if((a==null)||(a.length==0)){return"anonymous"}else{return a}}function stacktrace(){var d="";for(var c=arguments.caller;c!=null;c=c.caller){d+=function_name(c.callee)+"\n";if(c.caller==c){break}}return d}function resize_browser_to_limits(){this.resizeTo(window.screen.availWidth,window.screen.availHeight)}function addslashes(a){a=a.replace(/\"/g,'\\"').replace(/\(/g,"\\(").replace(/\)/g,"\\)");a=a.replace(/\[/g,"\\[").replace(/\]/g,"\\]");return a}function save_pagebuilder_data(){if(location.search.replace(/\?/,"").search(/st_object_to_edit/i)!=-1){winPageBuilderSaver=window.open("/viewer/mgr.pagebuilder/pagebuilder.autosave.asd/vts/pagebuilder","winPageBuilderSaver","width=100,height=40,menubar=no,scrollbars=no,status=no,toolbar=no,location=no,resizable=yes");window.focus();winPageBuilderSaver.document.file.value=location.search.replace(/\?/,"").slice(location.search.replace(/\?/,"").search(/\./i)+1);winPageBuilderSaver.document.data.value=(deactivate_pagebuilder_object_code(pbGetCurrentEditorContents()));winPageBuilderSaver.document.frmTrigger.submit()}else{if(document.file_name.value.search(/pagebuilder.backup/i)==-1){winPageBuilderSaver=window.open("/viewer/mgr.pagebuilder/pagebuilder.autosave.asd/vts/pagebuilder","winPageBuilderSaver","width=100,height=40,menubar=no,scrollbars=no,status=no,toolbar=no,location=no,resizable=yes");window.focus();winPageBuilderSaver.document.file.value=document.file_name.value;winPageBuilderSaver.document.data.value=(deactivate_pagebuilder_object_code(pbGetCurrentEditorContents()));winPageBuilderSaver.document.frmTrigger.submit()}}}function reactivate_pagebuilder_object_code(c){st_working_copy=c;var a=new Array();var d=new RegExp("SKIP");var f=["\\[RECORD-START\\]","\\[RECORD-END\\]","(\\[GUESTBOOK:)(.*?)(\\])","(\\[MEMBER PROFILE:)(.*?)(\\])","(\\[CONFIGURATION:)(.*?)(\\])","(\\[TEXT:)(.*?)(\\])","(\\[LINK:)(.*?)(\\])","(\\[NEWSLETTER:)(.*?)(\\])"];for(in_A=1;in_A<=f.length;in_A++){d.compile(f[in_A-1],"g");while(d.test(st_working_copy)==true){st_working_copy=st_working_copy.replace(d,"")}}c=st_working_copy;d.compile("(<INPUT)(.*?)(name='?\"?PageBuilderObject'?\"?)(.*?)(>|/>)","i");while(d.test(st_working_copy)==true){ar_A=st_working_copy.match(d);index=a.length;if(index>0){for(bo_already_in_array=false,in_A=1;in_A<=index;in_A++){if(a[in_A-1]==ar_A[0]){bo_already_in_array=true}}if(bo_already_in_array==true){st_working_copy=st_working_copy.replace(ar_A[0],"");continue}}a[index]=ar_A[0];st_working_copy=st_working_copy.replace(a[index],"")}st_working_copy=c;for(in_A=1;in_A<=a.length;in_A++){d.compile(addslashes("<!--"+a[in_A-1]+"-->"),"g");st_working_copy=st_working_copy.replace(d,a[in_A-1])}return st_working_copy}function deactivate_pagebuilder_object_code(d){st_working_copy=d;var c=new Array();var a=new RegExp("(<INPUT)(.*?)(name='?\"?PageBuilderObject'?\"?)(.*?)(>|/>)","i");while(a.test(st_working_copy)==true){ar_A=st_working_copy.match(a);index=c.length;if(index>0){for(bo_already_in_array=false,in_A=1;in_A<=index;in_A++){if(c[in_A-1]==ar_A[0]){bo_already_in_array=true}}if(bo_already_in_array==true){st_working_copy=st_working_copy.replace(ar_A[0],"");continue}}c[index]=ar_A[0];st_working_copy=st_working_copy.replace(c[index],"")}st_working_copy=d;for(in_A=1;in_A<=c.length;in_A++){st_object_code=c[in_A-1];a.compile(addslashes(st_object_code),"g");if(/(pbotype='?"?record-start'?"?)/i.test(st_object_code)==true){st_repacement_code="<!--"+st_object_code+"-->[RECORD-START]";st_working_copy=st_working_copy.replace(a,st_repacement_code)}else{if(/(pbotype='?"?record-end'?"?)/i.test(st_object_code)==true){st_repacement_code="<!--"+st_object_code+"-->[RECORD-END]";st_working_copy=st_working_copy.replace(a,st_repacement_code)}else{if(/pbotype='?"?form-object:(.*)('?"?)/i.test(st_object_code)==true){ar_A=st_object_code.match(/pbohashkey='?"?(.*[^'"])'?"?/i);st_repacement_code="<!--"+st_object_code+"--><? echo @publish_form('"+ar_A[1]()+"'); ?>";st_working_copy=st_working_copy.replace(a,st_repacement_code)}else{ar_A=st_object_code.match(/pbotype='?"?([\w\:\-\ ]*)'?"?/i);st_repacement_code="<!--"+st_object_code+"-->["+ar_A[1].toUpperCase()+"]";st_working_copy=st_working_copy.replace(a,st_repacement_code)}}}}return st_working_copy}function doRedirectMenu(a){window.location=a.options[a.selectedIndex].value}var _id=0,_pid=0,_lid=0,_pLayer;var _mLists=new Array();var image_plus="/images/admin/plus1.gif";var image_minus="/images/admin/minus1.gif";document.lists=_mLists;var isNav4,isIE4;if(parseInt(navigator.appVersion.charAt(0))>=4){isNav4=(navigator.appName=="Netscape")?true:false;isIE4=(navigator.appName.indexOf("Microsoft")!=-1)?true:false}function expandG(a){expand(a.id);for(i=1;i<_mLists.length;i++){_mLists[i].visible=false}}function displayListNone(d,f,c,a){expandG(d.id);addList(d,f,c,a)}function List(f,c,a,d){this.setIndent=setIndent;this.addItem=addItem;this.addList=addList;this.displayListNone=displayListNone;this.build=build;this.rebuild=rebuild;this.setFont=_listSetFont;this._writeList=_writeList;this._showList=_showList;this._updateList=_updateList;this._updateParent=_updateParent;this.onexpand=null;this.postexpand=null;this.lists=new Array();this.items=new Array();this.types=new Array();this.strs=new Array();this.x=0;this.y=0;this.visible=f;this.id=_id;this.i=18;this.space=true;this.pid=0;this.fontIntro=false;this.fontOutro=false;this.width=c||350;this.height=a||22;this.parLayer=false;this.built=false;this.shown=false;this.needsUpdate=false;this.needsRewrite=false;this.parent=null;this.l=0;if(d){this.bgColor=d}else{this.bgColor=null}_mLists[_id++]=this}function _listSetFont(c,a){this.fontIntro=c;this.fontOutro=a}function setIndent(a){this.i=a;if(this.i<0){this.i=0;this.space=false}}function setClip(f,c,g,d,a){if(isNav4){f.clip.left=c;f.clip.right=g;f.clip.top=d;f.clip.bottom=a}else{f.style.pixelWidth=g-c;f.style.pixelHeight=a-d;f.style.clip="rect("+d+","+g+","+a+","+c+")"}}function _writeList(){self.status="List: Writing list...";var c,f,d;for(var a=0;a<this.types.length;a++){c=this.items[a];if(isNav4){c.visibility="hidden"}else{c.style.visibility="hidden"}f="";if(isNav4){c.document.open()}f+="<TABLE WIDTH="+this.width+" BORDER=0 CELLPADDING=0 CELLSPACING=0><TR>";if(this.types[a]=="list"){f+="<TD WIDTH=15><A TARGET='_self' HREF=\"javascript:expand("+this.lists[a].id+');"><IMG BORDER=0 SRC="../../images/minus1.gif" NAME="_img'+this.lists[a].id+'"></A></TD>';_pid++}else{if(this.space){f+="<TD WIDTH=15 NOWRAP>&nbsp;</TD>"}}if(this.l>0&&this.i>0){f+="<TD WIDTH="+this.l*this.i+" NOWRAP>&nbsp;</TD>"}f+="<TD HEIGHT="+(this.height-3)+" WIDTH="+(this.width-15-this.l*this.i)+" VALIGN=MIDDLE ALIGN=LEFT>";if(this.fontIntro){f+=this.fontIntro}f+=this.strs[a];if(this.fontOutro){f+=this.fontOutro}f+="</TD></TABLE>";if(isNav4){c.document.writeln(f);c.document.close()}else{c.innerHTML=f}if(this.types[a]=="list"&&this.lists[a].visible){this.lists[a]._writeList()}}this.built=true;this.needsRewrite=false;self.status=""}function _showList(){var d;for(var c=0;c<this.types.length;c++){d=this.items[c];setClip(d,0,this.width,0,this.height-1);var a=d.oBgColor||this.bgColor;if(isIE4){if((a==null)||(a=="null")){a=""}d.style.backgroundColor=a}else{d.document.bgColor=a}if(this.types[c]=="list"&&this.lists[c].visible){this.lists[c]._showList()}}this.shown=true;this.needsUpdate=false}function _updateList(pVis,x,y){var currTop=y,layer;for(var i=0;i<this.types.length;i++){layer=this.items[i];if(this.visible&&pVis){if(isNav4){layer.visibility="visible";layer.top=currTop;layer.left=x}else{layer.style.visibility="visible";layer.style.pixelTop=currTop;layer.style.pixelLeft=x}currTop+=this.height}else{if(isNav4){layer.visibility="hidden"}else{layer.style.visibility="hidden"}}if(this.types[i]=="list"){if(this.lists[i].visible){if(!this.lists[i].built||this.lists[i].needsRewrite){this.lists[i]._writeList()}if(!this.lists[i].shown||this.lists[i].needsUpdate){this.lists[i]._showList()}if(isNav4){layer.document.images[0].src="http://sc01.ajiboye.com/images/admin/minus1.gif"}else{eval("document.images._img"+this.lists[i].id+".src = image_minus")}}else{if(isNav4){layer.document.images[0].src="http://sc01.ajiboye.com/images/admin/plus1.gif"}else{eval("document.images._img"+this.lists[i].id+".src = image_plus")}}if(this.lists[i].built){currTop=this.lists[i]._updateList(this.visible&&pVis,x,currTop)}}}return currTop}function _updateParent(c,a){var f;if(!a){a=0}this.pid=c;this.l=a;for(var d=0;d<this.types.length;d++){if(this.types[d]=="list"){this.lists[d]._updateParent(c,a+1)}}}function expand(a){_mLists[a].visible=!_mLists[a].visible;if(_mLists[a].onexpand!=null){_mLists[a].onexpand(_mLists[a].id)}_mLists[_mLists[a].pid].rebuild();if(_mLists[a].postexpand!=null){_mLists[a].postexpand(_mLists[a].id)}}function build(a,c){this._updateParent(this.id);this._writeList();this._showList();this._updateList(true,a,c);this.x=a;this.y=c}function rebuild(){this._updateList(true,this.x,this.y)}function addItem(str,bgColor,layer){var testLayer=false;if(!document.all){document.all=document.layers}if(!layer){if(isIE4||!this.parLayer){testLayer=eval("document.all.lItem"+_lid)}else{_pLayer=this.parLayer;testLayer=eval("_pLayer.document.layers.lItem"+_lid)}if(testLayer){layer=testLayer}else{if(isNav4){if(this.parLayer){layer=new Layer(this.width,this.parLayer)}else{layer=new Layer(this.width)}}else{return}}}if(bgColor){layer.oBgColor=bgColor}this.items[this.items.length]=layer;this.types[this.types.length]="item";this.strs[this.strs.length]=str;_lid++}function addList(list,str,bgColor,layer){var testLayer=false;if(!document.all){document.all=document.layers}if(!layer){if(isIE4||!this.parLayer){testLayer=eval("document.all.lItem"+_lid)}else{_pLayer=this.parLayer;testLayer=eval("_pLayer.document.layers.lItem"+_lid)}if(testLayer){layer=testLayer}else{if(isNav4){if(this.parLayer){layer=new Layer(this.width,this.parLayer)}else{layer=new Layer(this.width)}}else{return}}}if(bgColor){layer.oBgColor=bgColor}this.lists[this.items.length]=list;this.items[this.items.length]=layer;this.types[this.types.length]="list";this.strs[this.strs.length]=str;list.parent=this;_lid++}function resize(){if(saveInnerWidth<window.innerWidth||saveInnerWidth>window.innerWidth||saveInnerHeight>window.innerHeight||saveInnerHeight<window.innerHeight){window.history.go(0)}}function stop_website_music(){if(navigator.appName=="Netscape"){parent.frames.frame1.winplayer.Stop()}else{parent.frmMusicPlayer.winplayer.Stop()}}function selectStoreDescriptionTab(a){if(a!=null){descriptionTabs.selectTab(a-1);location.href="#FullProductDesccriptionTabsTop"}}function explode(d,g,a){var h={0:""};if(arguments.length<2||typeof arguments[0]=="undefined"||typeof arguments[1]=="undefined"){return null}if(d===""||d===false||d===null){return false}if(typeof d=="function"||typeof d=="object"||typeof g=="function"||typeof g=="object"){return h}if(d===true){d="1"}if(!a){return g.toString().split(d.toString())}else{var j=g.toString().split(d.toString());var f=j.splice(0,a-1);var c=j.join(d.toString());f.push(c);return f}}function array_merge(){var d=Array.prototype.slice.call(arguments);var h={},a,c=0,g=0;var l;for(g=0,l=true;g<d.length;g++){if(!(d[g] instanceof Array)){l=false;break}}if(l){return d}var f=0;for(g=0,f=0;g<d.length;g++){if(d[g] instanceof Array){for(c=0;c<d[g].length;c++){h[f++]=d[g][c]}}else{for(a in d[g]){if(this.is_int(a)){h[f++]=d[g][a]}else{h[a]=d[g][a]}}}}return h}function is_int(a){if(typeof a!=="number"){return false}return !(a%1)}function get_html_translation_table(l,j){var f={},h={},d=0,a="";var g={},c={};var m={},k={};g[0]="HTML_SPECIALCHARS";g[1]="HTML_ENTITIES";c[0]="ENT_NOQUOTES";c[2]="ENT_COMPAT";c[3]="ENT_QUOTES";m=!isNaN(l)?g[l]:l?l.toUpperCase():"HTML_SPECIALCHARS";k=!isNaN(j)?c[j]:j?j.toUpperCase():"ENT_COMPAT";if(m!=="HTML_SPECIALCHARS"&&m!=="HTML_ENTITIES"){throw new Error("Table: "+m+" not supported")}f["38"]="&amp;";if(m==="HTML_ENTITIES"){f["160"]="&nbsp;";f["161"]="&iexcl;";f["162"]="&cent;";f["163"]="&pound;";f["164"]="&curren;";f["165"]="&yen;";f["166"]="&brvbar;";f["167"]="&sect;";f["168"]="&uml;";f["169"]="&copy;";f["170"]="&ordf;";f["171"]="&laquo;";f["172"]="&not;";f["173"]="&shy;";f["174"]="&reg;";f["175"]="&macr;";f["176"]="&deg;";f["177"]="&plusmn;";f["178"]="&sup2;";f["179"]="&sup3;";f["180"]="&acute;";f["181"]="&micro;";f["182"]="&para;";f["183"]="&middot;";f["184"]="&cedil;";f["185"]="&sup1;";f["186"]="&ordm;";f["187"]="&raquo;";f["188"]="&frac14;";f["189"]="&frac12;";f["190"]="&frac34;";f["191"]="&iquest;";f["192"]="&Agrave;";f["193"]="&Aacute;";f["194"]="&Acirc;";f["195"]="&Atilde;";f["196"]="&Auml;";f["197"]="&Aring;";f["198"]="&AElig;";f["199"]="&Ccedil;";f["200"]="&Egrave;";f["201"]="&Eacute;";f["202"]="&Ecirc;";f["203"]="&Euml;";f["204"]="&Igrave;";f["205"]="&Iacute;";f["206"]="&Icirc;";f["207"]="&Iuml;";f["208"]="&ETH;";f["209"]="&Ntilde;";f["210"]="&Ograve;";f["211"]="&Oacute;";f["212"]="&Ocirc;";f["213"]="&Otilde;";f["214"]="&Ouml;";f["215"]="&times;";f["216"]="&Oslash;";f["217"]="&Ugrave;";f["218"]="&Uacute;";f["219"]="&Ucirc;";f["220"]="&Uuml;";f["221"]="&Yacute;";f["222"]="&THORN;";f["223"]="&szlig;";f["224"]="&agrave;";f["225"]="&aacute;";f["226"]="&acirc;";f["227"]="&atilde;";f["228"]="&auml;";f["229"]="&aring;";f["230"]="&aelig;";f["231"]="&ccedil;";f["232"]="&egrave;";f["233"]="&eacute;";f["234"]="&ecirc;";f["235"]="&euml;";f["236"]="&igrave;";f["237"]="&iacute;";f["238"]="&icirc;";f["239"]="&iuml;";f["240"]="&eth;";f["241"]="&ntilde;";f["242"]="&ograve;";f["243"]="&oacute;";f["244"]="&ocirc;";f["245"]="&otilde;";f["246"]="&ouml;";f["247"]="&divide;";f["248"]="&oslash;";f["249"]="&ugrave;";f["250"]="&uacute;";f["251"]="&ucirc;";f["252"]="&uuml;";f["253"]="&yacute;";f["254"]="&thorn;";f["255"]="&yuml;"}if(k!=="ENT_NOQUOTES"){f["34"]="&quot;"}if(k==="ENT_QUOTES"){f["39"]="&#39;"}f["60"]="&lt;";f["62"]="&gt;";for(d in f){a=String.fromCharCode(d);h[a]=f[d]}return h}function htmlentities(d,h){var g={},f="",a="",c="";a=d.toString();if(false===(g=this.get_html_translation_table("HTML_ENTITIES",h))){return false}g["'"]="&#039;";for(f in g){c=g[f];a=a.split(f).join(c)}return a}function html_entity_decode(d,h){var g={},f="",a="",c="";a=d.toString();if(false===(g=this.get_html_translation_table("HTML_ENTITIES",h))){return false}delete (g["&"]);g["&"]="&amp;";for(f in g){c=g[f];a=a.split(c).join(f)}a=a.split("&#039;").join("'");return a}function echo(){var arg="",argc=arguments.length,argv=arguments,i=0,holder,win=this.window,d=win.document,ns_xhtml="http://www.w3.org/1999/xhtml",ns_xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";var stringToDOM=function(str,parent,ns,container){var extraNSs="";if(ns===ns_xul){extraNSs=' xmlns:html="'+ns_xhtml+'"'}var stringContainer="<"+container+' xmlns="'+ns+'"'+extraNSs+">"+str+"</"+container+">";var dils=win.DOMImplementationLS,dp=win.DOMParser,ax=win.ActiveXObject;if(dils&&dils.createLSInput&&dils.createLSParser){var lsInput=dils.createLSInput();lsInput.stringData=stringContainer;var lsParser=dils.createLSParser(1,null);return lsParser.parse(lsInput).firstChild}else{if(dp){try{var fc=new dp().parseFromString(stringContainer,"text/xml");if(fc&&fc.documentElement&&fc.documentElement.localName!=="parsererror"&&fc.documentElement.namespaceURI!=="http://www.mozilla.org/newlayout/xml/parsererror.xml"){return fc.documentElement.firstChild}}catch(e){}}else{if(ax){var axo=new ax("MSXML2.DOMDocument");axo.loadXML(str);return axo.documentElement}}}if(d.createElementNS&&(d.documentElement.namespaceURI||d.documentElement.nodeName.toLowerCase()!=="html"||(d.contentType&&d.contentType!=="text/html"))){holder=d.createElementNS(ns,container)}else{holder=d.createElement(container)}holder.innerHTML=str;while(holder.firstChild){parent.appendChild(holder.firstChild)}return false};var ieFix=function(node){if(node.nodeType===1){var newNode=d.createElement(node.nodeName);var i,len;if(node.attributes&&node.attributes.length>0){for(i=0,len=node.attributes.length;i<len;i++){newNode.setAttribute(node.attributes[i].nodeName,node.getAttribute(node.attributes[i].nodeName))}}if(node.childNodes&&node.childNodes.length>0){for(i=0,len=node.childNodes.length;i<len;i++){newNode.appendChild(ieFix(node.childNodes[i]))}}return newNode}else{return d.createTextNode(node.nodeValue)}};var replacer=function(s,m1,m2){if(m1!=="\\"){return m1+eval(m2)}else{return s}};this.php_js=this.php_js||{};var phpjs=this.php_js,ini=phpjs.ini,obs=phpjs.obs;for(i=0;i<argc;i++){arg=argv[i];if(ini&&ini["phpjs.echo_embedded_vars"]){arg=arg.replace(/(.?)\{?\$(\w*?\}|\w*)/g,replacer)}if(!phpjs.flushing&&obs&&obs.length){obs[obs.length-1].buffer+=arg;continue}if(d.appendChild){if(d.body){if(win.navigator.appName==="Microsoft Internet Explorer"){d.body.appendChild(stringToDOM(ieFix(arg)))}else{var unappendedLeft=stringToDOM(arg,d.body,ns_xhtml,"div").cloneNode(true);if(unappendedLeft){d.body.appendChild(unappendedLeft)}}}else{d.documentElement.appendChild(stringToDOM(arg,d.documentElement,ns_xul,"description"))}}else{if(d.write){d.write(arg)}}}}function var_dump(){var g="",a=" ",f=4,j=0,l=0,n=this.window.document;var h=function(p){var d=(/\W*function\s+([\w\$]+)\s*\(/).exec(p);if(!d){return"(Anonymous)"}return d[1]};var c=function(d,q){var r="";for(var p=0;p<d;p++){r+=q}return r};var o=function(u,q){var d="";if(u===null){d="NULL"}else{if(typeof u==="boolean"){d="bool("+u+")"}else{if(typeof u==="string"){d="string("+u.length+') "'+u+'"'}else{if(typeof u==="number"){if(parseFloat(u)==parseInt(u,10)){d="int("+u+")"}else{d="float("+u+")"}}else{if(typeof u==="undefined"){d="undefined"}else{if(typeof u==="function"){var t=u.toString().split("\n");d="";for(var p=0,r=t.length;p<r;p++){d+=(p!==0?"\n"+q:"")+t[p]}}else{if(u instanceof Date){d="Date("+u+")"}else{if(u instanceof RegExp){d="RegExp("+u+")"}else{if(u.nodeName){switch(u.nodeType){case 1:if(typeof u.namespaceURI==="undefined"||u.namespaceURI==="http://www.w3.org/1999/xhtml"){d='HTMLElement("'+u.nodeName+'")'}else{d='XML Element("'+u.nodeName+'")'}break;case 2:d="ATTRIBUTE_NODE("+u.nodeName+")";break;case 3:d="TEXT_NODE("+u.nodeValue+")";break;case 4:d="CDATA_SECTION_NODE("+u.nodeValue+")";break;case 5:d="ENTITY_REFERENCE_NODE";break;case 6:d="ENTITY_NODE";break;case 7:d="PROCESSING_INSTRUCTION_NODE("+u.nodeName+":"+u.nodeValue+")";break;case 8:d="COMMENT_NODE("+u.nodeValue+")";break;case 9:d="DOCUMENT_NODE";break;case 10:d="DOCUMENT_TYPE_NODE";break;case 11:d="DOCUMENT_FRAGMENT_NODE";break;case 12:d="NOTATION_NODE";break}}}}}}}}}}return d};var k=function(v,u,t,d){var w="";if(u>0){u++}var p=c(t*(u-1),d);var z=c(t*(u+1),d);var x="";var r="";if(typeof v==="object"&&v!==null){if(v.constructor&&h(v.constructor)==="PHPJS_Resource"){return v.var_dump()}j=0;for(w in v){j++}x+="array("+j+") {\n";for(var y in v){var q=v[y];if(typeof q==="object"&&q!==null&&!(q instanceof Date)&&!(q instanceof RegExp)&&!q.nodeName){x+=z+"["+y+"] =>\n"+z+k(q,u+1,t,d)}else{r=o(q,z);x+=z+"["+y+"] =>\n"+z+r+"\n"}}x+=p+"}\n"}else{x=o(v,z)}return x};g=k(arguments[0],0,f,a);for(l=1;l<arguments.length;l++){g+="\n"+k(arguments[l],0,f,a)}if(n.body){this.echo(g)}else{try{n=XULDocument;this.echo('<pre xmlns="http://www.w3.org/1999/xhtml" style="white-space:pre;">'+g+"</pre>")}catch(m){this.echo(g)}}}function show_calendar_dialog(){var a=false;var d=arguments[0];var c=arguments[1];c=((typeof c!="undefined")?c:"yy-mm-dd");jquery_api(function(){jquery_api("#".concat(d)).datepicker({dateFormat:c,changeMonth:true,changeYear:true,showButtonPanel:true,showOtherMonths:true,selectOtherMonths:true})})}function show_calendar(){var a=false;var c=arguments[0];if(a==true){alert(c)}ar_object_name=explode(".",c);if(a==true){alert(ar_object_name[0]);alert(ar_object_name[1])}show_calendar_dialog(ar_object_name[1],arguments[1]);jquery_api("#".concat(ar_object_name[1])).datepicker("show");return false;winCalendar=window.open("","Calendar","width=250,height=250,status=no,resizable=no,top=200,left=200");winCalendar.opener=self;winCalendar.document.open();if(IE){winCalendar.document.writeln("<html>");winCalendar.document.write("<head>");winCalendar.document.writeln("<title>Calendar | Select Date</title>");winCalendar.document.writeln('<script type="text/javascript" >');winCalendar.document.writeln("location.href = '/viewer/mgr.cp/select.date.asd/vts/blank/va_object_name/"+c+"';");winCalendar.document.writeln("<\/script>");winCalendar.document.writeln("</head>");winCalendar.document.writeln("<body>");winCalendar.document.writeln("</body>");winCalendar.document.writeln("</html>")}else{winCalendar.document.writeln("<html>");winCalendar.document.write("<head>");winCalendar.document.writeln("<title>Calendar | Select Date</title>");winCalendar.document.writeln('<link rel="stylesheet" type="text/css" href="/includes/common/thirdparty/yui/build/calendar/assets/calendar.css">');winCalendar.document.writeln('<script type="text/javascript" src="/includes/common/thirdparty/yui/build/yahoo-dom-event/yahoo-dom-event.js"><\/script> ');winCalendar.document.writeln('<script type="text/javascript" src="/includes/common/thirdparty/yui/build/calendar/calendar-min.js"><\/script>');winCalendar.document.writeln("</head>");winCalendar.document.writeln('<body style="margin: 16 16 16 16;">');winCalendar.document.writeln("<div id=cal1Container></div>");winCalendar.document.writeln('<script type="text/javascript" >');winCalendar.document.writeln("var newCalendarDisplay = new YAHOO.widget.Calendar('cal1Container'); ");winCalendar.document.writeln("newCalendarDisplay.render(); ");winCalendar.document.writeln("");winCalendar.document.writeln("function handleSelect(type,args,obj) ");winCalendar.document.writeln("{ ");winCalendar.document.writeln("var date_range = args[0]; ");winCalendar.document.writeln("var fist_date = date_range[0]; ");winCalendar.document.writeln("var year = fist_date[0], month = fist_date[1], day = fist_date[2]; ");winCalendar.document.writeln("var ob_destination_textbox = opener.document."+c+"; ");winCalendar.document.writeln("ob_destination_textbox.value = year + '-' + month + '-' + day; ");winCalendar.document.writeln("window.close();");winCalendar.document.writeln("} ");winCalendar.document.writeln("newCalendarDisplay.selectEvent.subscribe(handleSelect, newCalendarDisplay, true); ");winCalendar.document.writeln("<\/script>");winCalendar.document.writeln("</body>");winCalendar.document.writeln("</html>")}}function show_time(){bo_debug=false;va_object_name=arguments[0];if(bo_debug==true){alert(va_object_name)}ar_object_name=explode(".",va_object_name);if(bo_debug==true){alert(ar_object_name[0]);alert(ar_object_name[1])}jquery_api("#".concat(ar_object_name[1])).timepicker({hours:{starts:0,ends:23},minutes:{starts:0,ends:59,interval:1},rows:4,showNowButton:true,showCloseButton:true});jquery_api("#".concat(ar_object_name[1])).focus();return false;winClock=window.open("","Time","width=340,height=100,status=no,resizable=no,top=200,left=200");winClock.opener=self;winClock.document.open();var a=new Date();current_hours_selection=a.getHours();current_ampm_selection=((current_hours_selection>=12)?"PM":"AM");current_hours_selection=((current_hours_selection>=12)?current_hours_selection-12:current_hours_selection);current_minutes_selection=a.getMinutes();current_seconds_selection=a.getSeconds();winClock.document.write("<html>\n");winClock.document.write("<head>\n");winClock.document.write("\t<title>Time | Select Time</title>\n");winClock.document.write("</head>\n");winClock.document.write('<body style="margin: 16 16 16 16;">\n');winClock.document.write("\t<div style='background-color: #f0f0f0; padding: 6 6 6 6; font-weight: bold; color: black; font-size: 14px;'>\n");winClock.document.write("\t\t<select id=hours>\n");for(i=1;i<=12;i++){if(i<10){i_display="0"+i}else{i_display=i}winClock.document.write("\t\t<option value="+i_display+((i==current_hours_selection)?" selected":"")+">"+i_display+"</option>\n")}winClock.document.write("\t\t</select>\n");winClock.document.write("\t\t:\n");winClock.document.write("\t\t<select id=minutes>\n");for(i=0;i<=59;i++){if(i<10){i_display="0"+i}else{i_display=i}winClock.document.write("\t\t<option value="+i_display+((i==current_minutes_selection)?" selected":"")+">"+i_display+"</option>\n")}winClock.document.write("\t\t</select>\n");winClock.document.write("\t\t<select id=ampm>\n");winClock.document.write("\t\t<option value=AM"+((current_ampm_selection=="AM")?" selected":"")+">AM</option>\n");winClock.document.write("\t\t<option value=PM"+((current_ampm_selection=="PM")?" selected":"")+">PM</option>\n");winClock.document.write("\t\t</select>\n");winClock.document.write('\t\t<input type=button id=cmdSelect value=Select onclick="handleselect();">\n');winClock.document.write('\t\t<input type=button id=cmdExit value=X onclick="window.close();">\n');winClock.document.write("\t</div>\n");winClock.document.write('<script type="text/javascript" language="JavaScript" >\n');winClock.document.write("\tfunction handleselect() \n");winClock.document.write("\t{ \n");winClock.document.write("\tvar ob_destination_textbox = opener.document."+va_object_name+"; \n");winClock.document.write("\tin_hours 	= ((ampm.value == 'PM' && hours.value != '12')? 12 : 0) + ((ampm.value == 'AM' && hours.value == '12')? 0 : parseFloat(hours.value)); \n");winClock.document.write("\tin_minutes 	= parseFloat(minutes.value); \n");winClock.document.write("\tin_seconds 	= 0; \n");winClock.document.write("\tob_destination_textbox.value = ((in_hours < 10)? '0' : '') + in_hours + ':' + ((in_minutes < 10)? '0' : '') + in_minutes + ':' + ((in_seconds < 10)? '0' : '') + in_seconds; \n");winClock.document.write("\twindow.close();\n");winClock.document.write("\t} \n");winClock.document.write("<\/script>\n");winClock.document.write("</body>\n");winClock.document.write("</html>\n")}function trim(g,f){var c,a=0,d=0;g+="";if(!f){c=" \n\r\t\f\x0b\xa0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000"}else{f+="";c=f.replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g,"$1")}a=g.length;for(d=0;d<a;d++){if(c.indexOf(g.charAt(d))===-1){g=g.substring(d);break}}a=g.length;for(d=a-1;d>=0;d--){if(c.indexOf(g.charAt(d))===-1){g=g.substring(0,d+1);break}}return c.indexOf(g.charAt(0))===-1?g:""}function copy_text_to_clipboard_init(c,a,d){if(!IE){ZeroClipboard.setMoviePath("/includes/common/thirdparty/zeroclipboard/ZeroClipboard.swf");copyTextToClipboard=new ZeroClipboard.Client();copyTextToClipboard.setHandCursor(true);copyTextToClipboard.setText(d);copyTextToClipboard.addEventListener("complete",function(){alert("Content copied to your clipboard.\n\nYou can now paste anywhere you want.\n\nTo paste, press the following keys at the same time:\n\nOn Windows : CTRL + V keys \nOn Macs       : CMD + V keys")});copyTextToClipboard.glue(c,a)}}function select_and_copy_content(a){obj=document.getElementById(a);if(obj!=null){obj.focus();obj.select();if(IE){therange=obj.createTextRange();therange.execCommand("Copy")}alert("Content copied to your clipboard.\n\nYou can now paste anywhere you want.\n\nTo paste, press the following keys at the same time:\n\nOn Windows : CTRL + V keys \nOn Macs       : CMD + V keys")}return true}function check_toggle(c,d,a){obj=document.forms[c].elements[a];if(obj){for(i=1;i<=obj.length;i++){obj[i-1].checked=d}}}function get_checked_values(f,d,c){var a="";obj=document.forms[f].elements[d];if(obj){for(i=1;i<=obj.length;i++){if(obj[i-1].checked==true){a=a+((a.length>0)?c:"")+obj[i-1].value}}}return a}function get_value_of_radio_options(c,a){var f=document.forms[c].elements[a];for(var d=0;d<f.length;d++){if(f[d].checked){return f[d].value}}return""}function get_value_of_list_options(c,a){var d=document.forms[c].elements[a];return d.options[d.selectedIndex].value}function multimedia_manager_variation_type_processor(c,f,d){switch(d.toUpperCase()){case"VALUE":var a=explode(",",f);if(a.length>=2){c=c.replace(/ ,/g,a[1]);c=c.replace(/,/g,a[1]);c=c.replace(" (",a[0]);c=c.replace("(",a[0]);c=c.replace(" )","").replace(")","")}break;case"CAPTION":c=c.replace("("," ( ");c=c.replace(/,/g," , ");c=c.replace(")"," )");c=c.replace("  "," ");break;default:break}return c}function show_dialog(a,h,c,j,f,d,g,k){jquery_api(a).dialog({title:h,closeOnEscape:true,height:j,width:c,modal:f,resizable:d,show:g,close:function(l,m){jquery_api(this).prop("innerHTML","")},buttons:{Exit:function(){jquery_api(this).dialog("close");if(k!=null){jquery_api(k).focus()}}}})}function alert_dialog(a,c,f,d){if(c!=null){jquery_api(c).prop("innerHTML",a);show_dialog(c,((d!=null)?d:"Message Board"),400,250,true,false,"slide",f)}else{alert(a)}}function local_wait(a){a+=new Date().getTime();while(new Date()<a){}}function simulate_flash_navigation(a){switch(a){case true:jquery_api("#globalPageContentContainer A").bind("click",function(c){simulate_flash_navigation_hyperlinks(c,this)});break;case false:jquery_api("A").bind("click",function(c){simulate_flash_navigation_hyperlinks(c,this)});break}}function simulate_flash_navigation_hyperlinks(c,a){st_host_name=window.location.hostname;st_destination=jquery_api(a).prop("href");ob_destination=parseUri(st_destination);if((st_destination.length>0)&&(ob_destination.relative.search("#")==-1)&&(ob_destination.host==st_host_name)){jquery_api(a).parent().prop("onclick","return false;");c.preventDefault();if(typeof local_simulate_flash_navigation=="function"){local_simulate_flash_navigation(c,a,ob_destination)}jquery_api("#globalPageContentContainer").prop("innerHTML","<div>Loading, please wait ...</div><div><center><img src=/images/preloaders/loading1.gif border=0></center></div>");var d="/documents/scripts/ajax.payload.asd".concat("?plpage=",encodeURI(st_destination));build_content(d,"globalPageContentContainer.innerHTML",false,"VARIABLE")}}function parseUri(g){var f=parseUri.options,a=f.parser[f.strictMode?"strict":"loose"].exec(g),d={},c=14;while(c--){d[f.key[c]]=a[c]||""}d[f.q.name]={};d[f.key[12]].replace(f.q.parser,function(j,h,k){if(h){d[f.q.name][h]=k}});return d}parseUri.options={strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};function load_project_cost_estimator_data(va_project_costs){ar_costs=va_project_costs.split("#");with(document.all){hosting_fee.value=ar_costs[0];for(in_A=1;in_A<=hosting_fee_1.length;in_A++){hosting_fee_1[in_A-1].value=hosting_fee.value}eula_fee.value=ar_costs[1];eula_minimum_first_payment.value=eula_minimum_payment.value=eula_first_payment.value=ar_costs[2];buy_domain.value=ar_costs[3];invitation_code.value=ar_costs[4];eula_balance.value=Math.round((parseFloat(eula_fee.value)-parseFloat(eula_first_payment.value))*100)/100;recalculate_asdsas_payment_plan(frmProjectEstimator);if(parseFloat(eula_balance.value)==0){PaymentPlan.style.display="none";NoPaymentPlan.style.display="block"}else{PaymentPlan.style.display="block";NoPaymentPlan.style.display="none"}}}function findInPage(){if(parseFloat(navigator.appVersion)>=4){if(document.all){st_text_to_find=window.prompt("Enter a search string","");if(st_text_to_find==""){exit}var a=document.body.createTextRange();var c=a.findText(st_text_to_find);if(c!=false){a.select();a.scrollIntoView()}else{alert("Sorry, no matching information found.")}}else{window.find()}}}function compile_form_data(d){var c=false;var a="";for(in_A=1;in_A<=d.elements.length;in_A++){if(c==true){alert(d.elements[in_A-1].name)}if(a.length==0){a=d.elements[in_A-1].name}else{a=a+","+d.elements[in_A-1].name}}if(a.search(/:/i)==-1){a=d.name+":"+a}if(d.action.search(/&/i)==-1){d.action=d.action+"?form_data_names="+a}else{d.action=d.action+"&form_data_names="+a}}function recalculate_asdsas_payment_plan(form_object){with(form_object){if(eula_first_payment.value.search(/[^0-9.]/i)!=-1){alert("Sorry, you can only enter numbers [0-9] only.");return false}else{if(parseFloat(eula_first_payment.value)<parseFloat(eula_minimum_payment.value)){alert("Sorry, you cannot enter a value less than $ "+eula_minimum_payment.value+" for the first payment. Please try again.");eula_first_payment.value=eula_minimum_payment.value;eula_first_payment.focus();return false}else{if(parseFloat(eula_first_payment.value)>parseFloat(eula_fee.value)){alert("Sorry, you cannot pay more than total fee of $ "+eula_fee.value+" for the first payment. Setting payment to $ "+eula_fee.value+".");eula_first_payment.value=eula_fee.value}}}total_amount_due.value=amount_due.value=Math.round((parseFloat(eula_first_payment.value)+parseFloat(buy_domain.value))*100)/100;total_amount_due_final.value=Math.round((parseFloat(total_amount_due.value)+parseFloat(template_design_fee.value)+parseFloat(custom_development_fee.value)+parseFloat(cms_application_upgrades_fee.value))*100)/100;for(in_A=1;in_A<=parseFloat(maximum_payment_plan.value);in_A++){monthly_payment_amount[in_A-1].value=Math.round(((parseFloat(eula_fee.value)-parseFloat(eula_first_payment.value))/in_A)*100)/100;monthly_total_with_hosting[in_A-1].value=Math.round((parseFloat(monthly_payment_amount[in_A-1].value)+parseFloat(hosting_fee.value))*100)/100}}}function OpenCertDetails(){thewindow=window.open("https://www.thawte.com/cgi/server/certdetails.exe?code=USAJIB1","anew",config="height=400,width=450,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes")}function CalculateAffiliateEarnings(form_object){with(form_object){if(network_size_target.value==""||network_size_target.value.search(/[^0-9.]/i)!=-1){alert("Sorry, you can only enter numbers only.");network_size_target.value=101}else{if(network_size_target.value==""||parseFloat(network_size_target.value)<=0){alert("Sorry, you cannot enter a value less than 1 for your target network size. Please try again.");network_size_target.value=101}else{if(monthly_sales_target_per_affiliate.value==""||monthly_sales_target_per_affiliate.value.search(/[^0-9.]/i)!=-1){alert("Sorry, you can only enter numbers only.");monthly_sales_target_per_affiliate.value=4}else{if(monthly_sales_target_per_affiliate.value==""||parseFloat(monthly_sales_target_per_affiliate.value)<=0){alert("Sorry, you cannot enter a value less than 1 for your target monthly sales per affiliate. Please try again.");monthly_sales_target_per_affiliate.value=4}}}}monthly_sales_personal.value=Math.round(parseFloat(monthly_sales_target_per_affiliate.value)*1);monthly_sales_downline.value=Math.round(parseFloat(monthly_sales_target_per_affiliate.value)*(parseFloat(network_size_target.value)-1));monthly_sales.value=Math.round(parseFloat(monthly_sales_personal.value)+parseFloat(monthly_sales_downline.value));earnings_monthly_personal.value=format_currency(parseFloat(monthly_sales_personal.value)*parseFloat(order_amount.value)*parseFloat(commssion_rate_personal.value)/100);earnings_monthly_downline.value=format_currency(parseFloat(monthly_sales_downline.value)*parseFloat(order_amount.value)*parseFloat(commssion_rate_downline.value)/100);earnings_monthly_total.value=format_currency(parseFloat(earnings_monthly_personal.value.replace(/\$|\,/g,""))+parseFloat(earnings_monthly_downline.value.replace(/\$|\,/g,"")));earnings_annual_personal.value=format_currency(parseFloat(earnings_monthly_personal.value.replace(/\$|\,/g,""))*12);earnings_annual_downline.value=format_currency(parseFloat(earnings_monthly_downline.value.replace(/\$|\,/g,""))*12);earnings_annual_total.value=format_currency(parseFloat(earnings_annual_personal.value.replace(/\$|\,/g,""))+parseFloat(earnings_annual_downline.value.replace(/\$|\,/g,"")))}}function CalculateAffiliateEarnings4Calculator2(form_object){with(form_object){if(monthly_income_target.value==""||monthly_income_target.value.search(/[^0-9.,$\ ]/i)!=-1){alert("Sorry, you can only enter numbers only.");monthly_income_target.value=4000}else{if(monthly_income_target.value==""||parseFloat(monthly_income_target.value)<=0){alert("Sorry, you cannot enter a value less than 1 for your target monthly income. Please try again.");monthly_income_target.value=4000}else{if(monthly_sales_target_personal.value==""||monthly_sales_target_personal.value.search(/[^0-9.]/i)!=-1){alert("Sorry, you can only enter numbers only.");monthly_sales_target_personal.value=4}else{if(monthly_sales_target_personal.value==""||parseFloat(monthly_sales_target_personal.value)<0){alert("Sorry, you cannot enter a value less than 0 for your target monthly sales per affiliate. Please try again.");monthly_sales_target_personal.value=4}else{if(monthly_sales_target_downline.value==""||monthly_sales_target_downline.value.search(/[^0-9.]/i)!=-1){alert("Sorry, you can only enter numbers only.");monthly_sales_target_downline.value=4}else{if(monthly_sales_target_downline.value==""||parseFloat(monthly_sales_target_downline.value)<1){alert("Sorry, you cannot enter a value less than 1 for your target monthly sales per affiliate. Please try again.");monthly_sales_target_downline.value=4}}}}}}earnings_monthly_personal.value=format_currency(parseFloat(monthly_sales_target_personal.value)*parseFloat(order_amount.value)*parseFloat(commssion_rate_personal.value)/100);earnings_monthly_downline.value=format_currency(((parseFloat(monthly_income_target.value.replace(/\$|\,/g,""))-parseFloat(earnings_monthly_personal.value.replace(/\$|\,/g,"")))>0)?parseFloat(monthly_income_target.value.replace(/\$|\,/g,""))-parseFloat(earnings_monthly_personal.value.replace(/\$|\,/g,"")):0);earnings_monthly_total.value=format_currency(parseFloat(earnings_monthly_personal.value.replace(/\$|\,/g,""))+parseFloat(earnings_monthly_downline.value.replace(/\$|\,/g,"")));sales_monthly_personal.value=parseFloat(monthly_sales_target_personal.value);sales_monthly_downline.value=Math.round(parseFloat(earnings_monthly_downline.value.replace(/\$|\,/g,""))/(parseFloat(order_amount.value)*parseFloat(commssion_rate_downline.value)/100));sales_monthly_total.value=(parseFloat(sales_monthly_personal.value)+parseFloat(sales_monthly_downline.value));network_size_personal.value=((parseFloat(monthly_sales_target_personal.value)>0)?1:0);network_size_downline.value=Math.round(parseFloat(sales_monthly_downline.value)/(parseFloat(monthly_sales_target_downline.value)));network_size_total.value=(parseFloat(network_size_personal.value)+parseFloat(network_size_downline.value))}}function getRadioCheckedValue(a){var d=document.forms[0].elements[a];for(var c=0;c<d.length;c++){if(d[c].checked){return d[c].value}}return""}function format_currency(a){a=a.toString().replace(/\$|\,/g,"");if(isNaN(a)){a="0"}sign=(a==(a=Math.abs(a)));a=Math.floor(a*100+0.50000000001);cents=a%100;a=Math.floor(a/100).toString();if(cents<10){cents="0"+cents}for(var c=0;c<Math.floor((a.length-(1+c))/3);c++){a=a.substring(0,a.length-(4*c+3))+","+a.substring(a.length-(4*c+3))}return(((sign)?"":"-")+"$ "+a+"."+cents)};
