function initVideo(id){if(navigator.appName=="Microsoft Internet Explorer")window.onresize=resizeVideo;title=document.getElementById("title").innerHTML;s='';s+='
';s+='
';s+=' ';s+=' Video';s+=' ';s+='
';s+='
 
';s+='
';s+='

'+title+'

';s+='
';s+='
';document.getElementById("title").innerHTML=s;} function doVideo(id){var s="";if(!videoQ){s+='
';s+='';s+='
';}else{var frame=document.getElementById("v1");frame.parentNode.removeChild(frame);} videoQ=!videoQ;var vid=document.getElementById("video");vid.innerHTML=s;if(videoQ)resizeVideo();if(videoQ){var pg=id;var pgHex='';for(var i=0;i640)wd=640;v1.style.width=wd+"px";v1.style.height=(wd*(340/640)+80)+"px";} function addView(pg,viewtype,hostname){var xmlHttp;try{xmlHttp=new XMLHttpRequest();} catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");} catch(e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");} catch(e){return false;}}} xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){if(Boolean(xmlHttp.responseText)){}else{}}} params="type="+viewtype;params+="&pg="+encodeURIComponent(pg);if(hostname=="faith"){xmlHttp.open("POST.html","http://faith/mathopolis/links/update.php",false);}else{xmlHttp.open("POST.html","http://www.mathopolis.com/links/update.php",false);} xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",params.length);xmlHttp.setRequestHeader("Connection","close");xmlHttp.send(params);return false;} videoQ=false;