function MM_swapImgRestore() { //v3.0
	  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() { //v3.0
	  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) { //v4.01
	  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() { //v3.0
	  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];}
	}
var xmlhttp;
var a=0;

function displayflow(a,b,c)
{
	var xme=a;
	var s;
	
	var swfs = ["player.swf","player1.swf","player2.swf"];
	if(c == 0)
	{
		z = true;
	}
	else
	{
		z = false;
	}
	create();
	if (swfobject.hasFlashPlayerVersion("6")) 
	{
		// check if SWF hasn't been removed, if this is the case, create a new alternative content container
		var c = document.getElementById("content");
		if (!c) 
		{
			var d = document.createElement("div");
			d.setAttribute("id", "content");
			document.getElementById("player_panel").appendChild(d);
		}
		// create SWF
		var att = { data:swfs[0], width:"652", height:"320" };
		var par = { menu:"false" };
		var id = "content";
		swfobject.createSWF(att, par, id); 
		// rotate SWFs
		s = swfs.shift();
		swfs.push(s);
	}
	var flashvars ={file:a,plugins:'sharing-3,hd-2','hd.state':'false','sharing.link':'http://www.zengatv.com',repeat:'always',autostart:z,skin:'slim/slim.xml'};
	swfobject.embedSWF(s,'content','652','320','9.0.115','false',flashvars,{allowfullscreen:'true',allowscriptaccess:'always'},
	{id:'content',name:'jwplayer'}
	);
	document.getElementById('close-button').style.display="block";
	document.getElementById(b).style.display="block";
}
function hideme(ax)
{
	document.getElementById(ax).style.display="none";
	swfobject.removeSWF("content");
	document.getElementById('player_panel').style.display="none";
}
function liveshowcase()
{
	 var url = "ajaxLive.jsp";
	 var parameters ="search=search";
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('search-result').innerHTML=xmlhttp.responseText;
	   }
	 }
	 //displayflow('flowlive.jsp','player_panel','1');
	 livePanel();
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send(); 
}
function livePanel()
{
	 var url = "ajaxLive.jsp";
	 var parameters ="";
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send(); 
//	setTimeout("liveshowcase()",500);
}
function movieshowcase()
{
	 var url = "ajaxMovie.jsp";
	 var parameters ="search=search";
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('search-result').innerHTML=xmlhttp.responseText;
	   }
	 }
	 //displayflow('flowmovies.jsp','player_panel');
	 moviePanel();
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send(); 
}
function moviePanel()
{
	 var url = "ajaxMovie.jsp";
	 var parameters ="";
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send(); 
}
function category()
{
	var url = "ajaxcategory.jsp";
	 var parameters ="search=search";
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('search-result').innerHTML=xmlhttp.responseText;
	   }
	 }
	 //displayflow('livecategory.jsp','player_panel','1');
	 livecategorypanel();
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function livecategorypanel()
{
	var url = "ajaxcategory.jsp";
	 var parameters ="search=livepanel";
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send(); 
}
function moviecategory()
{
	var url = "ajaxMovieCate.jsp";
	 var parameters ="category=category";
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('search-result').innerHTML=xmlhttp.responseText;
	   }
	 }
	 //displayflow('movieflowcat.jsp','player_panel','1');
	 moviecategoryPanel();
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function moviecategoryPanel()
{
	var url = "ajaxMovieCate.jsp";
	 var parameters ="category=panel";
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}

/*Load MostReted Page*/
function liveMostRated()
{
 var url = "ajaxLiveMostRated.jsp";
 var parameters ="search=search";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('search-result').innerHTML=xmlhttp.responseText;
    }
  }
  //displayflow('livemostrated.jsp','player_panel','1');
  liveMostRatedPanel();
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function liveMostRatedPanel()
{
 var url = "ajaxLiveMostRated.jsp";
 var parameters ="search=panel";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
    }
  }
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function mostRatedMovie()
{
 var url = "ajaxMostRatedMovie.jsp";
 var parameters ="search=search";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('search-result').innerHTML=xmlhttp.responseText;
    }
  }
  //displayflow('mostratedmovies.jsp','player_panel','1');
  mostRatedMoviePanel();
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function mostRatedMoviePanel()
{
 var url = "ajaxMostRatedMovie.jsp";
 var parameters ="search=panel";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
	   document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
    }
  }
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function moviegeoner(val)
{
	var url = "ajaxMovie.jsp";
	 var parameters ="search="+val;
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send(); 
}
/*insert the rate into database*/
function insertRating(val)
{
 var temp = val.id.split("_");
   var id = temp[0];
  var starNum = temp[1];
  var url = "insertRating.jsp";
  var parameters ="id=" 
      +id
      +"&starNum="
      +starNum;
      
  var xmlhttp;
  
  if (window.XMLHttpRequest)
  {
   xmlhttp=new XMLHttpRequest();
  }
  else
  {
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
      {
	   
      }
  }
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send(); 
}

function getCount(id)
{
	var url = "getViewCount.jsp";
	  var parameters ="id=" 
	       +id;
	  var xmlhttp;
	  
	  if (window.XMLHttpRequest)
	  {
	   xmlhttp=new XMLHttpRequest();
	  }
	  else
	  {
	   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	  xmlhttp.onreadystatechange=function()
	  {
	   if (xmlhttp.readyState==4)
	      {
		   	document.getElementById(id).innerHTML = xmlhttp.responseText;
	      }
	  }
	  xmlhttp.open("POST",url+"?"+parameters,true);
	  xmlhttp.send();
}

/*insert view count into database*/
function insertView(id)
{
 var url = "insertView.jsp";
  var parameters ="id=" 
       +id;
  var xmlhttp;
  
  if (window.XMLHttpRequest)
  {
   xmlhttp=new XMLHttpRequest();
  }
  else
  {
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
      {
	   getCount(id);
      }
  }
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}

/*Load MostViewed Page*/
function liveMostViewed()
{
 var url = "ajaxLiveMostViewed.jsp";
 var parameters ="search=search";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('search-result').innerHTML=xmlhttp.responseText;
    }
  }
  //displayflow('livemostviewed.jsp','player_panel','1');
  liveMostViewedPanel();
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function liveMostViewedPanel()
{
 var url = "ajaxLiveMostViewed.jsp";
 var parameters ="search=panel";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
    }
  }
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function livePanelgenre(val)
{
	 var url = "ajaxLive.jsp";
	 var parameters ="search="+val;
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send(); 
}
function mostViewedMovie()
{
 var url = "ajaxMostViewedMovie.jsp";
 var parameters ="search=search";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('search-result').innerHTML=xmlhttp.responseText;
    }
  }
  //displayflow('moviemostviewed.jsp','player_panel','1');
  movieMostViewedPanel();
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function movieMostViewedPanel()
{
 var url = "ajaxMostViewedMovie.jsp";
 var parameters ="search=panel";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
    }
  }
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}

function realitypanelsearch()
{
	var url = "ajaxreality.jsp";
	var parameters ="search=search";
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('search-result').innerHTML=xmlhttp.responseText;
	   }
	 }
	 //displayflow('flowreality.jsp','player_panel','1');
	 realityPanel();
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function getRealityEpisode(val)
{
	var url = "ajaxreality.jsp";
	var parameters ="episode="+val;
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function realityPanel()
{
	var url = "ajaxreality.jsp";
	var parameters ="";
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function uncutpanelsearch()
{
	var url = "ajaxuncut.jsp";
	var parameters ="search=search";
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('search-result').innerHTML=xmlhttp.responseText;
	   }
	 }
	 //displayflow('flowuncut.jsp','player_panel','1');
	 uncutPanel();
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function getUncutEpisode(val)
{
	var url = "ajaxuncut.jsp";
	var parameters ="episode="+val;
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function uncutPanel()
{
	var url = "ajaxuncut.jsp";
	var parameters ="";
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function newspanelsearch()
{
	var url = "ajaxnews.jsp";
	var parameters ="search=search";
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('search-result').innerHTML=xmlhttp.responseText;
	   }
	 }
	 //displayflow('flownews.jsp','player_panel','1');
	 newsPanel();
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function newsPanel()
{
	var url = "ajaxnews.jsp";
	var parameters ="";
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}

function getRealityCategory()
{
	var url = "ajaxrealitycategory.jsp";
	var parameters ="search=search";
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('search-result').innerHTML=xmlhttp.responseText;
	   }
	 }
	 getRealityCategoryPanel();
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function getRealityCategoryPanel()
{
	var url = "ajaxrealitycategory.jsp";
	var parameters ="search=panel";
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function realityMostRated()
{
 var url = "ajaxRealityMostRated.jsp";
 var parameters ="search=search";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('search-result').innerHTML=xmlhttp.responseText;
    }
  }
  realityMostRatedPanel();
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function realityMostRatedPanel()
{
 var url = "ajaxRealityMostRated.jsp";
 var parameters ="search=panel";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
    }
  }
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function realityMostViewed()
{
 var url = "ajaxRealityMostViewed.jsp";
 var parameters ="search=search";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('search-result').innerHTML=xmlhttp.responseText;
    }
  }
  realityMostViewedPanel();
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function realityMostViewedPanel()
{
 var url = "ajaxRealityMostViewed.jsp";
 var parameters ="search=panel";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
    }
  }
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function getUncutCategory()
{
	var url = "ajaxuncutcategory.jsp";
	var parameters ="search=search";
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('search-result').innerHTML=xmlhttp.responseText;
	   }
	 }
	 //displayflow('uncutflowcat.jsp','player_panel','1');
	 getUncutCategoryPanel();
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function getUncutCategoryPanel()
{
	var url = "ajaxuncutcategory.jsp";
	var parameters ="search=panel";
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function uncutMostViewed()
{
 var url = "uncutMostViewd.jsp";
 var parameters ="search=search";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('search-result').innerHTML=xmlhttp.responseText;
    }
  }
  //displayflow('uncutflowviewed.jsp','player_panel','1');
  uncutMostViewedPanel();
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function uncutMostViewedPanel()
{
 var url = "uncutMostViewd.jsp";
 var parameters ="search=panel";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
    }
  }
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function newsMostViewed()
{
 var url = "ajaxNewsMostViewd.jsp";
 var parameters ="search=search";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('search-result').innerHTML=xmlhttp.responseText;
    }
  }
  //displayflow('newsmostviewed.jsp','player_panel','1');
  newsMostViewedPanel()
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function newsMostViewedPanel()
{
 var url = "ajaxNewsMostViewd.jsp";
 var parameters ="search=panel";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
    }
  }
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function uncutMostRated()
{
 var url = "uncutMostRated.jsp";
 var parameters ="search=search";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('search-result').innerHTML=xmlhttp.responseText;
    }
  }
  //displayflow('uncutflowrated.jsp','player_panel','1');
  uncutMostRatedPanel();
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function uncutMostRatedPanel()
{
 var url = "uncutMostRated.jsp";
 var parameters ="search=panel";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
    }
  }
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function NewsMostRated()
{
 var url = "ajaxNewsMostRated.jsp";
 var parameters ="search=search";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('search-result').innerHTML=xmlhttp.responseText;
    }
  }
  //displayflow('newsmostrated.jsp','player_panel','1');
  NewsMostRatedPanel();
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function NewsMostRatedPanel()
{
 var url = "ajaxNewsMostRated.jsp";
 var parameters ="search=panel";
  
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
   if (xmlhttp.readyState==4)
    {
    document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
    }
  }
  xmlhttp.open("POST",url+"?"+parameters,true);
  xmlhttp.send();
}
function getNewsCategory()
{
	var url = "ajaxnewscategory.jsp";
	var parameters ="search=search";
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('search-result').innerHTML=xmlhttp.responseText;
	   }
	 }
	 //displayflow('newscategory.jsp','player_panel','1');
	 getNewsCategoryPanle();
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function getNewsCategoryPanle()
{
	var url = "ajaxnewscategory.jsp";
	var parameters ="search=panel";
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function getNews(val)
{
	var url = "ajaxnews.jsp";
	var parameters ="episode="+val;
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('live-panel-content').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function morecategory(val)
{
	var url = "ajaxnewsvodcategory.jsp";
	var parameters ="category="+val;
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('search-result').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}

function morelivecategory(val)
{
	var url = "ajaxlivevodcategory.jsp";
	var parameters ="category="+val;
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('search-result').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}

function moremoviecategory(val)
{
	var url = "ajaxmovievodcategory.jsp";
	var parameters ="category="+val;
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('search-result').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function morerealitycategory(val)
{
	var url = "ajaxrealityvodcategory.jsp";
	var parameters ="category="+val;
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('search-result').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}
function moreuncutcategory(val)
{
	var url = "ajaxuncutvodcategory.jsp";
	var parameters ="category="+val;
	
	 var xmlhttp;
	 if (window.XMLHttpRequest)
	 {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	 }
	 else
	 {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	 xmlhttp.onreadystatechange=function()
	 {
	  if (xmlhttp.readyState==4)
	   {
		  document.getElementById('search-result').innerHTML=xmlhttp.responseText;
	   }
	 }
	 xmlhttp.open("POST",url+"?"+parameters,true);
	 xmlhttp.send();
}

var runImage45 = false;
var runImage49 = true;
var runImage46 = true;
var runImage47 = true;
var run = true;

function changeImage(id,imageURL)
{
	
	document.getElementById("Image45").src="images/showcase.png";
	document.getElementById("Image49").src="images/categories.png";
	document.getElementById("Image46").src="images/most-rated.png";
	document.getElementById("Image47").src="images/most-viewed.png";
	document.getElementById(id).src=imageURL;
	
	runImage45 = true;
	runImage49 = true;
	runImage46 = true;
	runImage47 = true;
	
	if(id=="Image45")
		runImage45 = false;
	if(id=="Image49")
		runImage49 = false;
	if(id=="Image46")
		runImage46 = false;
	if(id=="Image47")
		runImage47 = false;
}
function restoreImage(id,imageURL)
{
	if(id=="Image45")
		run = runImage45;
	if(id=="Image49")
		run = runImage49;
	if(id=="Image46")
		run = runImage46;
	if(id=="Image47")
		run = runImage47;
	
	if(run)
	{	
		document.getElementById(id).src=imageURL;
	}
}
