
function createRequestObject(){
			var request_;
			var browser = navigator.appName;
			if(browser == "Microsoft Internet Explorer"){
			 request_ = new ActiveXObject("Microsoft.XMLHTTP");
			}else{
			 request_ = new XMLHttpRequest();
			
			}
			return request_;
			}
			
		
	    var http2 = new Array();
			var http3 = new Array();
      var http4 = new Array();
      var httpo = new Array();
      
		  
		function buffer(fajl){
			var curDateTime = new Date();
			
			http4[curDateTime] = createRequestObject();
			http4[curDateTime].open('get', 'temp/buffer.php?file='+fajl);
			http4[curDateTime].send(null);
	
			}  
	
			
			
		function govid(link){
			
			var curDateTime = new Date();
			
			http3[curDateTime] = createRequestObject();
			
			
			http3[curDateTime].open('get', 'inc/betekint.php?video='+link);
			
			http3[curDateTime].onreadystatechange = function(){
				if (http3[curDateTime].readyState == 4) 
		    	{
		        	if (http3[curDateTime].status == 200 || http3[curDateTime].status == 304) 
		        	{
		        		var response = http3[curDateTime].responseText;
document.getElementById('load').style.display = 'none';		       

		 				document.getElementById('video').innerHTML = response;
		 				
		 				
		        	}
		    	}
		    	
			}
			
			http3[curDateTime].send(null);

			}  
			
			
			
		
			function video(vmi){
				//oldal('videoa','empty');
				//gointro();
				govid(vmi);
				
				oldal("nagyta","videocontent");
				//document.getElementById('nagyta').style.display = '';
			 
				
	    }
	
			function videoki(vmi){
				//oldal('empty','videoa');
				shroll();
				govid(vmi);
				document.getElementById('load').style.display = 'none';
				document.getElementById('nagyta').style.display = 'none'; 
        
	    }
			
		
			function shroll(){
    bod = document.getElementsByTagName('body')[0];
		bod.style.height = '100%';
		bod.style.overflow = 'auto';
  
		htm = document.getElementsByTagName('html')[0];
		htm.style.height = '100%';
		htm.style.overflow = 'auto'; 


}


function gointro(){

    bod = document.getElementsByTagName('body')[0];
		bod.style.height = '100%';
		//bod.style.overflow = 'hidden';
  
		htm = document.getElementsByTagName('html')[0];
		htm.style.height = '100%';
		//htm.style.overflow = 'hidden'; 
}
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
				function getInfoon(){
			var curDateTime = new Date();
			
			http2[curDateTime] = createRequestObject();
			http2[curDateTime].open('get', 'inc/online.php?hol='+location.pathname);
			http2[curDateTime].send(null);
	
			}
			
			
			function onlinetago(){
			
			var curDateTime = new Date();
			
			httpo[curDateTime] = createRequestObject();
			
			
			httpo[curDateTime].open('get', 'inc/onlinetag.php');
			
			httpo[curDateTime].onreadystatechange = function(){
				if (httpo[curDateTime].readyState == 4) 
		    	{
		        	if (httpo[curDateTime].status == 200 || httpo[curDateTime].status == 304) 
		        	{
		           	 	var response = httpo[curDateTime].responseText;
		 				document.getElementById('onlinetag').innerHTML = response;
		 				
		        	} } }
			
			httpo[curDateTime].send(null);
		
			} 
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			function go(){
			//	document.getElementById('pmsload').style.display = "";
			onlinetago();
			getInfoon();
	  	window.setTimeout("go()", 7000);
			
			}
