function Go(link)
{
    document.location=link;
	return true;
}

function CGo(link, mesg)
{
    if (confirm(mesg))
	{
		document.location=link;
		return true;
	}
}

function _v(id)
{
    return document.getElementById(id);
}
function runvideo(videoid){
	
	//alert(videoid);
	
	//alert(usersid);
			//alert(nodesid);
			xmlHttp=new XMLHttpRequest();
			var url="getvideo.php";
			url=url+"?videoid="+videoid; 
		//	alert(url);
		//	location.href = url;
			xmlHttp.onreadystatechange=stateChanged;
			xmlHttp.open("GET",url,true);
			xmlHttp.send(null);
			function stateChanged(){
				if(xmlHttp.readyState==4)
				{
				var response=xmlHttp.responseText;
			//	alert(response);
				 if(response!="")
					{
				//	alert(response);
					document.getElementById("video_container").innerHTML= response;
				//	document.getElementById("requestmsg").style.display='none';		
					}	 
				}
			}  
}



iens6=document.all||document.getElementById

var movedownvar;
var moveupvar;
//specify speed of scroll (greater=faster)
var speed=1
function movedown(){
var crossobj=document.getElementById? document.getElementById("imagecontent") : document.all.content
contentheight=crossobj.offsetHeight
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
movedownvar=setTimeout("movedown()",20)
}

function moveup(){
var crossobj=document.getElementById? document.getElementById("imagecontent") : document.all.content
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
moveupvar=setTimeout("moveup()",20)

}
function timedoutup()
{
clearTimeout(moveupvar);
}
function timedoutdown()
{
clearTimeout(movedownvar);
}


