function popupIPTV(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=800,height=600')
}
function popupHELP(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=815,height=700')
}		
	function newImage(arg) {
		if (document.images) {
			rslt = new Image();
			rslt.src = arg;
			return rslt;
		}
	}
	
	function changeImages() {
		if (document.images && (preloadFlag == true)) {
			for (var i=0; i<changeImages.arguments.length; i+=2) {
				document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
			}
		}
	}
	
	var preloadFlag = false;
	function preloadImages() {
		if (document.images) {
			vod2_9_over = newImage("images/vod2-9-over.gif");
			vod2_10_over = newImage("images/vod2-10-over.gif");
			vod2_11_over = newImage("images/vod2-11-over.gif");
			vod2_12_over = newImage("images/vod2-12-over.gif");
			vod2_22_over = newImage("images/vod2-22-over.gif");
			vod2_23_over = newImage("images/vod2-23-over.gif");
			vod2_24_over = newImage("images/vod2-24-over.gif");
			vod2_25_over = newImage("images/vod2-25-over.gif");
			vod2_26_over = newImage("images/vod2-26-over.gif");
			vod2_27_over = newImage("images/vod2-27-over.gif");
			vod2_28_over = newImage("images/vod2-28-over.gif");
			preloadFlag = true;
		}
	}

function OpenDownload (url, name)
{
	window.open ('' + url + '','' + name + '','fullscreen=no,titlebar=yes,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no,directories=no,location=no,width=700,height=600');
}

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_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_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];}
}

function OpenOrder (url, name)
{
	window.open ('' + url + '','' + name + '','fullscreen=no,titlebar=yes,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no,width=800,height=600');
}
	
	function switchlayer(Layer_Name)
		{
		  var GECKO = document.getElementById? 1:0 ;
		  var NS = document.layers? 1:0 ;
		  var IE = document.all? 1:0 ;
	
		  if (GECKO)
		       {document.getElementById(Layer_Name).style.display=
			   (document.getElementById(Layer_Name).style.display=='block') ? 'none' : 'block';}
		  else if (NS)
		       {document.layers[Layer_Name].display=(document.layers[Layer_Name].display==
			   'block') ? 'none' : 'block';}
		  else if (IE)
		       {document.all[Layer_Name].style.display=(document.all[Layer_Name].style.display==
			   'block') ? 'none' : 'block';}
	}









function montre(id)
{
	with (document)
	{
		if (getElementById)
			getElementById(id).style.display = 'block';
		else if (all)
			all[id].style.display = 'block';
		else
			layers[id].display = 'block';
	}
}

function cache(id)
{
	with (document)
	{
		if (getElementById)
			getElementById(id).style.display = 'none';
		else if (all)
			all[id].style.display = 'none';
		else
			layers[id].display = 'none';
	}
}