<!--
var imgPath = "img/";

imgPlayPause_on = new Image(165,20);
imgPlayPause_on.src = imgPath + "control-pause_.gif";
imgPlayPause_off = new Image(165,20);
imgPlayPause_off.src = imgPath + "control-pause.gif";
imgPlayPause_sel = new Image(165,20);
imgPlayPause_sel.src = imgPath + "control-pause_.gif";

pause_on = new Image(165,20);
pause_on.src = imgPath + "control-pause_.gif";
pause_off = new Image(165,20);
pause_off.src = imgPath + "control-pause.gif";
pause_sel = new Image(165,20);
pause_sel.src = imgPath + "control-pause_.gif";

tostart_on = new Image(165,20);
tostart_on.src = imgPath + "control-tostart_.gif";
tostart_off = new Image(165,20);
tostart_off.src = imgPath + "control-tostart.gif";
tostart_sel = new Image(165,20);
tostart_sel.src = imgPath + "control-tostart_.gif";

back_on = new Image(165,20);
back_on.src = imgPath + "control-back_.gif";
back_off = new Image(165,20);
back_off.src = imgPath + "control-back.gif";
back_sel = new Image(165,20);
back_sel.src = imgPath + "control-back_.gif";

next_on = new Image(165,20);
next_on.src = imgPath + "control-next_.gif";
next_off = new Image(165,20);
next_off.src = imgPath + "control-next.gif";
next_sel = new Image(165,20);
next_sel.src = imgPath + "control-next_.gif";

fullscreen_on = new Image(165,20);
fullscreen_on.src = imgPath + "control-fullscreen_.gif";
fullscreen_off = new Image(165,20);
fullscreen_off.src = imgPath + "control-fullscreen.gif";
fullscreen_sel = new Image(165,20);
fullscreen_sel.src = imgPath + "control-fullscreen_.gif";

volumemeno_on = new Image(165,20);
volumemeno_on.src = imgPath + "control-volume-meno_.gif";
volumemeno_off = new Image(165,20);
volumemeno_off.src = imgPath + "control-volume-meno.gif";
volumemeno_sel = new Image(165,20);
volumemeno_sel.src = imgPath + "control-volume-meno_.gif";

volumemute_on = new Image(165,20);
volumemute_on.src = imgPath + "control-volume-mute_.gif";
volumemute_off = new Image(165,20);
volumemute_off.src = imgPath + "control-volume-mute.gif";
volumemute_sel = new Image(165,20);
volumemute_sel.src = imgPath + "control-volume-mute_.gif";

volumepiu_on = new Image(165,20);
volumepiu_on.src = imgPath + "control-volume-piu_.gif";
volumepiu_off = new Image(165,20);
volumepiu_off.src = imgPath + "control-volume-piu.gif";
volumepiu_sel = new Image(165,20);
volumepiu_sel.src = imgPath + "control-volume-piu_.gif";

inviamico_on = new Image(165,20);
inviamico_on.src = imgPath + "bot-invia-amico_.gif";
inviamico_off = new Image(165,20);
inviamico_off.src = imgPath + "bot-invia-amico.gif";
inviamico_sel = new Image(165,20);
inviamico_sel.src = imgPath + "bot-invia-amico_.gif";


function setStatus(imageName, status)
{
    //alert( imageName + " " + status);

	var selImg = document.crt.sel.value;

	if( imageName != selImg )
	{
		if( status == 0) // click 
		{
			document[imageName].src = eval( imageName + "_sel.src");

			if( selImg != "")
			{	
			    if (selImg.length > 2)
				{
					document[ selImg].src = eval( selImg + "_off.src");;
				}
			}

			document.crt.sel.value = imageName;			
		}

		if( status == 1) // mouseout
		{
			document[ imageName].src = eval( imageName + "_off.src");
		}

		if( status == 2) // mouseover
		{
			document[ imageName].src = eval( imageName + "_on.src");
		}
	}
}

function popup(str,l,a) {

    if (win) 
        {
	        tmp = win;
	        win = null;
	        if (navigator.appName != "Netscape")
		        tmp.close();
        }

    win = window.open(str,"popup","scrollbars=0,resizable=1,width="+l+",height="+a+",status=0,location=0,menubar=0,toolbar=0,top=105,left=200");
    win.focus();

}

var win


/* Bottone Carca in Canale */
function AttivaCercaInCanale() 
	{
	if(document.getElementById('cercahover'))
		{
		document.getElementById('cercahover').className='cerca cercahover';
		}
	}
function DisattivaCercaInCanale() 
	{
	if(document.getElementById('cercahover'))
		{
		document.getElementById('cercahover').className='cerca';
		}
	}


/* Bottone Carca Tutto */
function AttivaCercaTutto()
	{
	if(document.getElementById('guardatuttohover'))
		{
		document.getElementById('guardatuttohover').className='guardatutto guardatuttohover';
		}
	}
function DisattivaCercaTutto()
	{
	if(document.getElementById('guardatuttohover'))
		{
		document.getElementById('guardatuttohover').className='guardatutto';
		}
	}



function showhide(id)
	{
	el = document.getElementById(id);
	el.style.display = el.style.display  == "block" ? "none" : "block";
	}


function imposeMaxLength(Object, MaxLen)
	{
	return (Object.value.length <= MaxLen);
	}


    

//-->


