<!--

// general functions to manage rollovers

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_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_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_setTextOfLayer(objName,x,newText) { //v3.0
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (navigator.appName=='Netscape') {document.write(unescape(newText)); document.close();}
    else
    {  
    	if (navigator.appVersion.indexOf("5.0")==-1 && document.readyState!="complete") return;
    	innerHTML = unescape(newText);
    }
}

// Functions to hide/show boxes

function initStyles()
{
	with (document)
	{
		write("<STYLE TYPE='text/css'><!--");
		if (isNetscape())
		{		
			write(".hiddenBox {display:block}\n");
			write(".openBox {display:block}");
		}
		else
		{		
			write(".hiddenBox {display:none}\n");		
			write(".openBox {display:block}");
		}
		write("//--></STYLE>");
	}
}

function doToggle(wel)
{
	if (isNetscape()) return;		
	spanObj=document.all[wel];
	
	//alert (spanObj.outerHTML);
						
	if (spanObj.style.display=="" || spanObj.style.display==null)
	{		
		if (spanObj.outerHTML.indexOf("hiddenBox")!=-1) document.all[wel].style.display="block";
		if (spanObj.outerHTML.indexOf("openBox")!=-1) document.all[wel].style.display="none";
	}
	else
	{
		if (spanObj.style.display=="block")
			document.all[wel].style.display="none";
		else
			document.all[wel].style.display="block";
	}		
}

function isNetscape()
{		
	if (document.layers) return true; else return false;
}


//***************************//
// Start Job Channel Section //
//***************************// 

// Function to open the pop-up for the Job Channel Poll
function jobChannelPoll(iID)
{
	window.open('/jobChannelPoll.jsp?pollId='+iID,'Sondaggio_Lavoro','resizable=no, scrollbars=yes, width=450,height=500,left=40,top=50');
}


function detail(iID)
{
	window.open('http://www.jumpy.it/detail.jsp?id='+iID,'Canale_Lavoro','resizable=no,scrollbars=yes,width=500,height=500,left=40,top=50');
}



//***************************//
// End Job Channel Section 	 //
//***************************//


function pollPopup(iPollID)
{
	swin=window.open('http://www.jumpy.it/newPoll_MDF.jsp?pollId='+iPollID+'&siteId=1&language=it&hideResult=true','Sondaggio_Jumpy','resizable=no,width=550,height=200,left=40,top=50')
}

function pollPopupWin(sNameFile,iPollID,sTitleWin,iWinWidth,iWinHeight)
{
	swin=window.open('http://www.jumpy.it/'+ sNameFile +'?pollId='+iPollID+'&siteId=1&language=it&hideResult=true',sTitleWin,'resizable=no,width='+ iWinWidth +',height='+ iWinHeight +',left=40,top=50')
}

function videoPopup(sUrl,sTitle,sQuality)
{
	window.open('http://www.jumpy.it/mdfpopup.htm?'+sQuality+'video='+sUrl+'&title='+sTitle,'','width=215,height=268,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
}


initStyles();

//-->
