function openPrivacyWin(URL){URL=appendSessionString(URL);day=new Date();id=day.getTime();var win=eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=no, scrollbars=yes, location=no, statusbar=no, menubar=no, resizable=yes, width=1100, height=340, left=100, top=100');");}var globalHelpUrl="";var globalTopicUrl="";var globalTopLocation="";var globalDivWidth="";function displayHelpPopup(B,G,C,D){if(globalNarrowViewDisplay==1){var F="/help.php?"+globalSessionString;if(B!=""){F+="&help_url="+B;}if(G!=""){F+="&topic_url="+G;}window.open(F);return ;}if(B=="portfolio_tab_samples"){globalDivWidth=825;}var A="";A+='<table width="100%" border="0" valign="top" align="center" cellspacing="0" cellpadding="0"><tbody>';A+="  <tr>";A+='    <td valign="top" align="left" class="bot_textCopy_Black_M" colspan="2"><img src="/images/popup_top_left_with_border.png"></img></td>';A+='    <td valign="top" align="center" class="bot_textCopy_Black_M">';A+='      <table width="100%" border="0" valign="top" align="center" cellspacing="0" cellpadding="0"><tbody>';A+='        <td valign="top" align="left" class="bot_textCopy_Black_M" height="1px" bgcolor="#000000" style="font-size:1px;line-height:1px;">&nbsp;</td></tr>';A+='        <td valign="top" align="left" class="bot_textCopy_Black_M" height="9px" bgcolor="#DDDDDD" style="font-size:9px;line-height:9px;">&nbsp;</td></tr>';A+="      </tbody></table>";A+="    </td>";A+='    <td valign="top" align="right" class="bot_textCopy_Black_M" colspan="2"><img src="/images/popup_top_right_with_border.png"></img></td>';A+="  </tr>";A+="  <tr>";A+='    <td valign="top" align="left" class="bot_textCopy_Black_M" bgcolor="#000000" width="1px"></td>';A+='    <td valign="top" align="left" class="bot_textCopy_Black_M" bgcolor="#DDDDDD" width="9px"></td>';A+='    <td valign="top" align="center" class="bot_textCopy_Black_M">';A+='      <table border="0" valign="top" align="center" cellspacing="0" cellpadding="0" bgcolor="#DDDDDD"><tbody>';if(C!=true){A+='        <tr><td valign="top" align="Right" class="bot_textCopy_Black_M"><a href="#" class="aframe bot_textCopy_Black_S" onclick="hideHelpPopup(); return false;"><span><img src="/images/buttons/closeicon.gif"><label>Close</label></span></a></td></tr>';}A+='        <tr><td valign="top" align="left" class="bot_textCopy_Black_XS">&nbsp;</td></tr>';A+='        <tr><td valign="top" align="Left" class="bot_textCopy_Black_M"><div id="home_popup_overlay_help_div"></div></td></tr>';A+="      </tbody></table>";A+="    </td>";A+='    <td valign="top" align="right" class="bot_textCopy_Black_M" bgcolor="#DDDDDD" width="9px"></td>';A+='    <td valign="top" align="right" class="bot_textCopy_Black_M" bgcolor="#000000" width="1px"></td>';A+="  </tr>";A+="  <tr>";A+='    <td valign="top" align="left" class="bot_textCopy_Black_M" colspan="2"><img src="/images/popup_bottom_left_with_border.png"></img></td>';A+='    <td valign="top" align="center" class="bot_textCopy_Black_M" height="10px">';A+='      <table width="100%" border="0" valign="top" align="center" cellspacing="0" cellpadding="0"><tbody>';A+='        <td valign="top" align="left" class="bot_textCopy_Black_M" height="9px" bgcolor="#DDDDDD" style="font-size:9px;line-height:9px;">&nbsp;</td></tr>';A+='        <td valign="top" align="left" class="bot_textCopy_Black_M" height="1px" bgcolor="#000000" style="font-size:1px;line-height:1px;">&nbsp;</td></tr>';A+="      </tbody></table>";A+="    </td>";A+='    <td valign="top" align="right" class="bot_textCopy_Black_M" colspan="2"><img src="/images/popup_bottom_right_with_border.png"></img></td></tr>';A+="</tbody></table>";document.getElementById("home_popup_overlay_help_popup").innerHTML=A;var E="/help/help_main.php";if((B!=null)&&(B!="")){E="/help/help_"+B+".php";}globalHelpUrl=B;globalTopicUrl=G;globalTopLocation=D;ajax(E,null,displayHelpPopupStateChanged,false);return false;}function displayHelpPopupStateChanged(A){var B=document.getElementById("home_popup_overlay_help_popup");if(globalTopLocation!=""){B.style.top=globalTopLocation;globalTopLocation="";}else{if(globalDocumentClickPosY>100){B.style.top=(globalDocumentClickPosY-200);}else{B.style.top=50;}}B.style.visibility="visible";document.getElementById("home_popup_overlay_help_div").innerHTML=A;loadHelpTopic();}function hideHelpPopup(){document.getElementById("home_popup_overlay_help_popup").innerHTML="";var A=document.getElementById("home_popup_overlay_help_popup");A.style.visibility="hidden";return false;}function loadHelpUrl(A,D,B){var C="/help/help_main.php";if((A!=null)&&(A!="")){C="/help/help_"+A+".php";}globalHelpUrl=A;globalTopicUrl=D;globalDivWidth=B;if((B==null)||(B=="")){globalDivWidth=700;}ajax(C,null,loadHelpUrlStateChanged,false);return false;}function loadHelpUrlStateChanged(A){document.getElementById("home_popup_overlay_help_div").innerHTML=A;loadHelpTopic();}function loadHelpTopic(A,F,B){var D=A;if((D==null)||(D=="")){D=globalHelpUrl;}if((D==null)||(D=="")){D="main";}globalHelpUrl=D;var G=F;if((G==null)||(G=="")){G=globalTopicUrl;}if((G==null)||(G=="")){if(D=="main"){G="quick_start_guide";}else{if(D=="profile_suggestions"){G="1";}else{if(D=="biography_tab_samples"){G="1";}else{if(D=="portfolio_tab_samples"){G="1";}else{if(D=="video_tutorials"){G="0";}else{if(D=="build_your_profile"){G="getting_started";}}}}}}}globalTopicUrl=G;var C="";if((B==null)||(B=="")){if((globalDivWidth==null)||(globalDivWidth=="")){C=700;}else{C=globalDivWidth;globalDivWidth="";}}else{C=B;}document.getElementById("help_contents").style.minWidth=C;document.getElementById("help_contents").style.width=C;var E="/help/help_"+D+"_"+G+".php";document.getElementById("help_contents").innerHTML="Loading Help Contents. Please wait...";ajax(E,"",loadHelpTopicStateChanged,false);}function loadHelpTopicStateChanged(A){document.getElementById("help_contents").innerHTML=A;if((typeof (globalTabView)!="undefined")&&(globalTabView!=null)&&(globalTabView.get("activeTab")!=null)&&(parseInt(globalTabView.get("activeTab").get("tabtypeid"))==10)&&(globalHelpUrl=="biography_tab_samples")){document.getElementById("help_biography_templace_copydata_div").innerHTML='<a href="#" class="aframe bot_textCopy_Black_S" onclick="copyBiographySampleData('+globalTopicUrl+')"><span><img src="/images/buttons/checkicon.gif"><label>Copy to Biography Tab</label></span></a><br><br>';}}function createPortfolioSectionDetailForHelp(B,A){for(i=1;i<=A;i++){document.getElementById("help_portfolio_home_details_read_"+i).style.display="none";document.getElementById("help_portfolio_home_thumbmail_td_"+i).style.borderWidth="1px";}document.getElementById("help_portfolio_home_details_read_"+B).style.display="";document.getElementById("help_portfolio_home_thumbmail_td_"+B).style.borderWidth="3px";}function openAudioLinkWinForHelp(id){var url="/help/help_portfolio_tab_samples_popup_audio.php?id="+id;var linkWin=eval("page"+id+" = window.open(url, '"+id+"', 'toolbar=no, scrollbars=yes, location=no, statusbar=no, menubar=no, resizable=yes, width=330, height=37, left=300, top=300');");}function copyBiographySampleData(C){if((globalTabView==null)||(globalTabView.get("activeTab")==null)||(parseInt(globalTabView.get("activeTab").get("tabtypeid"))!=10)||(globalHelpUrl!="biography_tab_samples")){return false;}var A=globalTabView.get("activeTab").get("tabid");var B="ajax/copybiographytemplatedata.php?biography_tab_id="+A+"&template_id="+C;ajax(B,null,copyBiographySampleDataStateChanged,false);return false;}function copyBiographySampleDataStateChanged(responseStr){var respObj=eval("("+responseStr+")");var status=respObj.status;var biographyTabId=respObj.biography_tab_id;hideHelpPopup();hideTabTypeDescPopup();getBiographySection(biographyTabId);alert("Biography Template successfully copied to your Biography Tab.");var tabs=globalTabView.get("tabs");for(i=0;i<tabs.length;i++){if(parseInt(tabs[i].get("tabid"))==biographyTabId){globalTabView.set("activeIndex",i);}}}function moveToHelpFAQSection(A){document.getElementById("help_faq_"+A).scrollIntoView(true);return false;}function moveToHelpFAQTop(){document.getElementById("help_faq_top").scrollIntoView(true);return false;}var currentHelpProfileSampleViewCount=1;var currentHelpProfileSampleSlideCount=1;function profileHelpSampleViewMoveLeft(){if(currentHelpProfileSampleViewCount==1){return false;}currentHelpProfileSampleViewCount=currentHelpProfileSampleViewCount-1;currentHelpProfileSampleSlideCount=1;profileHelpSampleViewSlideLeft();return false;}function profileHelpSampleViewMoveRight(){if(currentHelpProfileSampleViewCount==5){return false;}currentHelpProfileSampleViewCount=currentHelpProfileSampleViewCount+1;currentHelpProfileSampleSlideCount=1;profileHelpSampleViewSlideRight();return false;}function profileHelpSampleViewSlideLeft(){if(currentHelpProfileSampleSlideCount<=250){currentHelpProfileSampleSlideCount=currentHelpProfileSampleSlideCount+10;document.getElementById("outer_div").scrollLeft-=10;setTimeout("profileHelpSampleViewSlideLeft()",50);}}function profileHelpSampleViewSlideRight(){if(currentHelpProfileSampleSlideCount<=250){currentHelpProfileSampleSlideCount=currentHelpProfileSampleSlideCount+10;document.getElementById("outer_div").scrollLeft+=10;setTimeout("profileHelpSampleViewSlideRight()",50);}}function trim(A){return A.replace(/^\s+|\s+$/g,"");}function validateEmailAddress(F){F=trim(F);var A="@";var B=".";var E=F.indexOf(A);var D=F.indexOf(B);var C=F.length;if(F.indexOf(A)==-1){return false;}if(F.indexOf(A)==-1||F.indexOf(A)==0||F.indexOf(A)==C){return false;}if(F.indexOf(B)==-1||F.indexOf(B)==0||F.indexOf(B)==C){return false;}if(F.indexOf(A,(E+1))!=-1){return false;}if(F.substring(E-1,E)==B||F.substring(E+1,E+2)==B){return false;}if(F.indexOf(B,(E+2))==-1){return false;}if(F.indexOf(" ")!=-1){return false;}return true;}function validateAlphaNumeric(E){var C=E;for(var A=0;A<C.length;A++){var D=C.charAt(A);var B=D.charCodeAt(0);if((B>47&&B<58)||(B>64&&B<91)||(B>96&&B<123)){continue;}else{return false;}}return true;}function validateAlphaNumeric(E){var C=E;for(var A=0;A<C.length;A++){var D=C.charAt(A);var B=D.charCodeAt(0);if((B>47&&B<58)||(B>64&&B<91)||(B>96&&B<123)){continue;}else{return false;}}return true;}function validateStringForNameField(E){var C=E;for(var A=0;A<C.length;A++){var D=C.charAt(A);var B=D.charCodeAt(0);if((B>47&&B<58)||(B>64&&B<91)||(B>96&&B<123)||(D=="_")||(D=="-")||(D==",")||(D==".")||(D==" ")){continue;}else{return false;}}return true;}function getWindowDimensions(){if(document.body.scrollHeight>document.body.offsetHeight){return[document.body.scrollWidth,document.body.scrollHeight];}return[document.body.offsetWidth,document.body.offsetHeight];}function getPopupWindowDimensions(A){if(A.document.body.scrollHeight>A.document.body.offsetHeight){return[A.document.body.scrollWidth,A.document.body.scrollHeight];}return[A.document.body.offsetWidth,A.document.body.offsetHeight];}function getWindowWidth(){if(document.body.scrollWidth>document.body.offsetWidth){document.body.scrollWidth;}return document.body.offsetWidth;}function generateGUID(){var A,C,B;A="";for(B=0;B<32;B++){if(B==8||B==12||B==16||B==20){A=A+"-";}C=Math.floor(Math.random()*16).toString(16).toUpperCase();A=A+C;}return A;}function generateRandomString(B){var A,D,C;A="";for(C=0;C<B;C++){D=Math.floor(Math.random()*16).toString(16);A=A+D;}return A;}function appendSessionString(B){if(B.indexOf("PHPSESSID")!=-1){return B;}var A="";if(B.indexOf("?")==-1){A=B+"?"+globalSessionString;}else{A=B+"&"+globalSessionString;}return A;}function ajax(B,E,A,C){var F=null;try{F=new XMLHttpRequest();}catch(D){try{F=new ActiveXObject("Msxml2.XMLHTTP");}catch(D){F=new ActiveXObject("Microsoft.XMLHTTP");}}if(F==null){alert("Browser does not support HTTP Request");return ;}B=appendSessionString(B);F.open("POST",B,true);F.setRequestHeader("Content-Type","application/x-www-form-urlencoded");F.onreadystatechange=function(){if(F.readyState==4&&F.status==200){if(F.responseText){A(F.responseText);}}};F.send(E);}function parseXML(A){if(document.implementation.createDocument){var B=new DOMParser();xmlDocument=B.parseFromString(A,"text/xml");xmlDocument.async=false;}else{if(window.ActiveXObject){xmlDocument=new ActiveXObject("Microsoft.XMLDOM");xmlDocument.async="false";xmlDocument.loadXML(A);}}return xmlDocument;}function getXMLNodeData(A){var B="";if(A.firstChild){B=A.firstChild.data;}return B;}function openPopupWin(URL){URL=appendSessionString(URL);day=new Date();id=day.getTime();var popupWin=eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=no, scrollbars=yes, location=no, statusbar=no, menubar=no, resizable=yes, width=500, height=300, left=300, top=300');");}function embedFlowFlashPlayer(B,A,C,F){var E="flow_"+B;var D='<a href="'+A+'" style="display:block;width:'+C+"px; height:"+F+'px" id="'+E+'"></a>';document.getElementById(B).innerHTML=D;flowplayer(E,"/flowplayer.swf",{key:"$430bdd247e2fb074fa0",clip:{url:A,autoPlay:false,autoBuffering:false,autoRewind:false,loop:false,onFinish:function(){this.seek(0);}},plugins:{controls:{url:"/flowplayer.controls.swf",bottom:0,height:24,backgroundColor:"#2d3e46",backgroundGradient:"low",fontColor:"#ffffff",timeFontColor:"#333333",autoHide:"never",play:true,volume:true,mute:true,time:true,stop:true,playlist:false,fullscreen:true,scrubber:true}}});}function embedFliqzFlashPlayer(C,A,D,E){var B='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0" id="player" width="'+D+'" height="'+E+'"><param name="movie" value="http://applications.fliqz.com/'+A+'.swf" /><param name="allowFullScreen" value="false" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><embed name="player" src="http://applications.fliqz.com/'+A+'.swf" width="'+D+'" height="'+E+'" allowfullscreen="false" wmode="transparent" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>';document.getElementById(C).innerHTML=B;}function embedYouTubeFlashPlayer(B,D,C,E){var A='<object width="'+C+'" height="'+E+'"><param name="movie" value="'+D+'"></param><param name="allowFullScreen" value="flase"></param><param name="allowscriptaccess" value="never"></param><param name="wmode" value="transparent"></param><embed src="'+D+'" type="application/x-shockwave-flash" allowscriptaccess="never" allowfullscreen="false" width="'+C+'" height="'+E+'" wmode="transparent"></embed></object>';document.getElementById(B).innerHTML=A;}function embedVuvoxFlashPlayer(B,D,C,E){var A='<object width="'+C+'" height="'+E+'"><param name="allowFullScreen" value="true" /><param name="movie" value="'+D+'"/><param name="wmode" value="transparent"/><embed src="'+D+'" allowFullScreen="true" type="application/x-shockwave-flash" width="'+C+'" height="'+E+'" wmode="transparent"></embed></object>';document.getElementById(B).innerHTML=A;}function embedFlowFlashPlayerForEditor(C,B,D,H){var F="flow_"+C;var E='<a href="'+B+'" style="display:block;width:'+D+"px; height:"+H+'px" id="'+F+'"></a>';var G=document.getElementById(C);if(G.tagName.toUpperCase()=="DIV"){document.getElementById(C).innerHTML=E;}else{var A=document.createElement("a");A.setAttribute("href",B);A.style.display="block";A.style.width=(D+"px");A.style.height=(H+"px");A.id=F;A.setAttribute("id",F);G.parentNode.appendChild(A);G.parentNode.removeChild(G);}flowplayer(F,"/flowplayer.swf",{key:"$430bdd247e2fb074fa0",clip:{url:B,autoPlay:false,autoBuffering:false,autoRewind:false,loop:false,onFinish:function(){this.seek(0);}},plugins:{controls:{url:"/flowplayer.controls.swf",bottom:0,height:24,backgroundColor:"#2d3e46",backgroundGradient:"low",fontColor:"#ffffff",timeFontColor:"#333333",autoHide:"never",play:true,volume:true,mute:true,time:true,stop:true,playlist:false,fullscreen:true,scrubber:true}}});}function embedFliqzFlashPlayerForEditor(D,A,E,G){var B='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0" id="player" width="'+E+'" height="'+G+'"><param name="movie" value="http://applications.fliqz.com/'+A+'.swf" /><param name="allowFullScreen" value="false" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><embed name="player" src="http://applications.fliqz.com/'+A+'.swf" width="'+E+'" height="'+G+'" allowfullscreen="false" wmode="transparent" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>';var F=document.getElementById(D);if(F.tagName.toUpperCase()=="DIV"){document.getElementById(D).innerHTML=B;}else{var C=document.createElement("span");C.id="div_"+D;C.setAttribute("id",("div_"+D));C.innerHTML=B;F.parentNode.appendChild(C);F.parentNode.removeChild(F);}}function embedYouTubeFlashPlayerForEditor(C,E,D,G){var A='<object width="'+D+'" height="'+G+'"><param name="movie" value="'+E+'"></param><param name="allowFullScreen" value="flase"></param><param name="allowscriptaccess" value="never"></param><param name="wmode" value="transparent"></param><embed src="'+E+'" type="application/x-shockwave-flash" allowscriptaccess="never" allowfullscreen="false" width="'+D+'" height="'+G+'" wmode="transparent"></embed></object>';var F=document.getElementById(C);if(F.tagName.toUpperCase()=="DIV"){document.getElementById(C).innerHTML=A;}else{var B=document.createElement("span");B.id="div_"+C;B.setAttribute("id",("div_"+C));B.innerHTML=A;var F=document.getElementById(C);F.parentNode.appendChild(B);F.parentNode.removeChild(F);}}function embedVuvoxFlashPlayerForEditor(C,E,D,G){var A='<object width="'+D+'" height="'+G+'"><param name="allowFullScreen" value="true" /><param name="movie" value="'+E+'"/><param name="wmode" value="transparent"/><embed src="'+E+'" allowFullScreen="true" type="application/x-shockwave-flash" width="'+D+'" height="'+G+'" wmode="transparent"></embed></object>';var F=document.getElementById(C);if(F.tagName.toUpperCase()=="DIV"){document.getElementById(C).innerHTML=A;}else{var B=document.createElement("span");B.id="div_"+C;B.setAttribute("id",("div_"+C));B.innerHTML=A;var F=document.getElementById(C);F.parentNode.appendChild(B);F.parentNode.removeChild(F);}}function embedFlashPlayerForEditor(H,G,C,A,F){var E="";var D="";if(C!=""){E='<param name="flashvars" value="'+C+'" />';D=' flashvars="'+C+'"';}var J='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0" id="player" height="'+F+'" width="'+A+'"><param name="movie" value="'+G+'" />'+E+'<param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><embed name="player" src="'+G+'"'+D+' height="'+F+'" width="'+A+'" allowfullscreen="true" wmode="transparent" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>';var B=document.getElementById(H);if(B.tagName.toUpperCase()=="DIV"){document.getElementById(H).innerHTML=J;}else{var I=document.createElement("span");I.id="div_"+H;I.setAttribute("id",("div_"+H));I.innerHTML=J;var B=document.getElementById(H);B.parentNode.appendChild(I);B.parentNode.removeChild(B);}}function embedFlashPlayer(H,G,C,A,F){var E="";var D="";if(C!=""){E='<param name="flashvars" value="'+C+'" />';D=' flashvars="'+C+'"';}var I='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0" id="player" height="'+F+'" width="'+A+'"><param name="movie" value="'+G+'" />'+E+'<param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><embed name="player" src="'+G+'"'+D+' height="'+F+'" width="'+A+'" allowfullscreen="true" wmode="transparent" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>';var B=document.getElementById(H);document.getElementById(H).innerHTML=I;}function getMouseClickPos(A){var D=new Array();if(!A){A=window.event;}var C=0;var B=0;if(A.pageX||A.pageY){C=A.pageX;B=A.pageY;}else{if(A.clientX||A.clientY){C=A.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;B=A.clientY+document.body.scrollTop+document.documentElement.scrollTop;}}D[0]=C;D[1]=B;return D;}function openWin(URL,inWidth,inHeight){URL=appendSessionString(URL);if((typeof (inWidth)=="undefined")||(inWidth=="")||(inWidth==0)){inWidth=1100;}if((typeof (inHeight)=="undefined")||(inHeight=="")||(inHeight==0)){inHeight=700;}day=new Date();id=day.getTime();var win=eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=no, scrollbars=yes, location=no, statusbar=no, menubar=no, resizable=yes, width=' + inWidth + ', height=' + inHeight + ', left=100, top=100');");}function openDefectWin(URL){URL=appendSessionString(URL);day=new Date();id=day.getTime();var win=eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=no, scrollbars=yes, location=no, statusbar=no, menubar=no, resizable=yes, width=1100, height=625, left=100, top=100');");}function displayBiographySamples(){displayHelpPopup("biography_tab_samples","1",false,"50px");hideTabTypeDescPopup();}function displayPortfolioSamples(){displayHelpPopup("portfolio_tab_samples","1",false,"50px");hideTabTypeDescPopup();}function sleep(A){var C=new Date().getTime();for(var B=0;B<10000000;B++){if((new Date().getTime()-C)>A){break;}}}function isIE(){var A=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;return A;}function isWin(){var A=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;return A;}function getCurrentDateTimeString(){var C=new Date();var H=C.getYear();if(H<1000){H+=1900;}var I=C.getDay();var J=C.getMonth();var G=C.getDate();if(G<10){G="0"+G;}var A=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");var E=new Array("January","February","March","April","May","June","July","August","September","October","November","December");var L=A[I];var D=E[J];var K=C.getHours();var F=C.getMinutes();if(F<10){F="0"+F;}var B=" AM";if(K>11){B=" PM";}if(K>12){K=K-12;}return L+" "+D+" "+G+", "+H+" at "+K+":"+F+B;}function captureGlobalDocumentMouseXY(A){var B=new Array();if(!A){A=window.event;}globalDocumentClickPosX=0;globalDocumentClickPosY=0;if(A.pageX||A.pageY){globalDocumentClickPosX=A.pageX;globalDocumentClickPosY=A.pageY;}else{if(A.clientX||A.clientY){globalDocumentClickPosX=A.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;globalDocumentClickPosY=A.clientY+document.body.scrollTop+document.documentElement.scrollTop;}}}function parseEmbedObjectString(H){var B=H.childNodes[0];var L=new Array();if(B!=null){var M="";var C="";if(B.nodeName.toUpperCase()=="OBJECT"){if(B.data!=""){M=B.data;}else{for(var G=0;G<B.childNodes.length;G++){var I=B.childNodes[G];if(I.nodeName.toUpperCase()=="PARAM"){if((I.name.toUpperCase()=="MOVIE")||(I.name.toUpperCase()=="SRC")){M=I.value;}else{if(I.name.toUpperCase()=="FLASHVARS"){C=I.value;}}}}}}else{if(B.nodeName.toUpperCase()=="EMBED"){M=B.src;C=B.getAttribute("flashvars");}}L[0]=M;if(M!=""){var K=B.height;var F=B.width;if((K=="")&&(F=="")){K=B.style.height;F=B.style.width;}var J=0;var D=0;if((K.match("%$")=="%")&&(F.match("%$")=="%")){J=500;D=500;}else{if(F.match("%$")=="%"){J=K;D=K;}else{if(K.match("%$")=="%"){J=F;D=F;}else{J=K;D=F;}}}if(F.toUpperCase().match("PX$")=="PX"){D=F.substring(0,F.toUpperCase().indexOf("PX"));}if(K.toUpperCase().match("PX$")=="PX"){J=K.substring(0,K.toUpperCase().indexOf("PX"));}if((J=="")&&(D=="")){J=500;D=500;}L[1]=C;L[2]=J;L[3]=D;}}if((L==null)||(L.length==0)||(L[0]=="")){var N=H.innerHTML;var A="ajax/checkembedcodeerroremail.php";var E="embed_str="+encodeURIComponent(N);ajax(A,E,parseEmbedObjectStringErrorStateChanged,false);}return L;}function parseEmbedObjectStringErrorStateChanged(A){}