/*function disablePhone(){if(document.getElementById("called").checked){document.getElementById("phone").disabled=true;}else{document.getElementById("phone").disabled=false;}}*/function showPhone(){document.getElementById('phone_light').style.display='block';document.getElementById('phone_fade').style.display='block';document.getElementById('phone_fade').style.height=document.body.clientHeight+400+"px";}function addEvents(elm,evType,fn,useCapture){if(!elm){return;}if(elm.addEventListener){elm.addEventListener(evType,fn,useCapture);return true;}else if(elm.attachEvent){var r=elm.attachEvent('on'+evType,fn);return r;}else{elm['on'+evType]=fn;}}addEvents(window,'load',preloadst,false);var tmenu=null;function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++)if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}function MM_swapImage(){if(tmenu){clearTimeout(tmenu);}var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}function secure(){var x=document.getElementsByTagName('select');for(i=0;i<x.length;i++){x[i].style.display='none';}document.getElementById('codes').style.display='block';document.getElementById('fade').style.display='block';}function closesecure(){document.getElementById('codes').style.display='none';document.getElementById('fade').style.display='none';var x=document.getElementsByTagName('select');for(i=0;i<x.length;i++){x[i].style.display='block';}}var PlayerFlagShow=0;function closeLoginShow(){document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none';var x=document.getElementsByTagName('select');for(i=0;i<x.length;i++){x[i].style.display='block';}if(PlayerFlagShow==1){document.getElementById('theplayer').style.display='block';PlayerFlagShow=0;}}function isLoginShow(){var x=document.getElementsByTagName('select');for(i=0;i<x.length;i++){x[i].style.display='none';}document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block';document.getElementById('fade').style.height=document.body.clientHeight+"px";if(document.getElementById('theplayer')){var d=document.getElementById('theplayer').style;if(d.display=='block'||d.display==''){d.display='none';PlayerFlagShow=1;}}}function showHide(show,hide){if(show){document.getElementById(show).style.display='block';}if(hide){document.getElementById(hide).style.display='none';}}function preloadst(){/*preloads();*/}AIM={frame:function(c){var n='f'+Math.floor(Math.random()*99999);var d=document.createElement('DIV');d.innerHTML='<iframe style="display:none" src="about:blank" id="'+n+'" name="'+n+'" onload="AIM.loaded(\''+n+'\')"></iframe>';document.body.appendChild(d);var i=document.getElementById(n);if(c&&typeof(c.onComplete)=='function'){i.onComplete=c.onComplete;}return n;},form:function(f,name){f.setAttribute('target',name);},submit:function(f,c){AIM.form(f,AIM.frame(c));if(c&&typeof(c.onStart)=='function'){return c.onStart();}else{return true;}},loaded:function(id){var i=document.getElementById(id);if(i.contentDocument){var d=i.contentDocument;}else if(i.contentWindow){var d=i.contentWindow.document;}else{var d=window.frames[id].document;}if(d.location.href=="about:blank"){return;}if(typeof(i.onComplete)=='function'){i.onComplete(d.body.innerHTML);}}}
