/*Fonction pour menu déroulant*/

function ChangeUrl(formulaire)
	{
	if (formulaire.TSWALLPAPERURL.selectedIndex != 0)
		{
		location.href = formulaire.TSWALLPAPERURL.options[formulaire.TSWALLPAPERURL.selectedIndex].value;
	 	}
	}


/*Fonction pour ovrire le pop up du wallpaper*/

function wallaper(id,size){
var targeturl="http://www.tamilsee.tv/wallpapers/tamilsee_dlwall.php?w="+id+"&s="+size;
newwin=window.open(targeturl,"TamilSeeWallpapers","scrollbars,width="+screen.width+",height="+screen.height+",top=0,left=0");
newwin.moveTo(0,0);
}

/*Interdit click droit*/
function yaunclick()
        {
        alert('You musn\'t use this button on this page. \n     ===TamilSee.Net');
        }
function noclick(scx)
        {
        if (navigator.appName == "Netscape" && scx.which == 3)
                {
                yaunclick();
                return false;
                }
if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2)
                {
                yaunclick();
                return false;
                }
        }
		
		
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_findObj(n, d) { //v3.0
        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); 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];}
}


function MM_setTextOfTextfield(objName,x,newText) { //v3.0
  var obj = MM_findObj(objName); if (obj) obj.value = newText;
}
// Fonction qui permet d'ouvrir un popup

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function Live_Songs_Popup(url_song)
{
	var w=window.open(url_song,'TSvideo','scrollbars=yes,status=no,width=800,height=628,top=0,left=0');
    w.document.close();
    w.focus();
}
