<!--

function popup(str,w,h) {
if (win) 

{
	tmp = win;
	win = null;
	if (navigator.appName != "Netscape")
		tmp.close();
}
win = window.open(str,"popup","scrollbars=0,resizable=1,width="+w+",height="+h+",status=0,location=0,toolbar=0,top=65,left=160");
win.focus();
}

function popupscroll(str,w,h) {
if (win) 

{
	tmp = win;
	win = null;
	if (navigator.appName != "Netscape")
		tmp.close();
}
win = window.open(str,"popup","scrollbars=1,resizable=1,width="+w+",height="+h+",status=0,location=0,toolbar=0,top=65,left=160");
win.focus();
}
var win


function changeimage(towhat,url)
	{
		if (document.images){
		document.images.targetimage.src=towhat.src
		gotolink=url
	}
}

var myimages=new Array

function preloadimages()
	{
		for (i=1;i<=preloadimages.arguments.length;i++)
			{
			myimages[i]=new Image()
			myimages[i].src=preloadimages.arguments[i]
			}
	}
	preloadimages("documenti/b-1-image.gif", "documenti/b-1-image.gif","documenti/b-2-image.gif","documenti/b-3-image.gif","documenti/b-4-image.gif","documenti/b-5-image.gif","documenti/b-6-image.gif","documenti/b-7-image.gif","documenti/b-8-image.gif","documenti/b-9-image.gif","documenti/b-10-image.gif","documenti/b-11-image.gif","documenti/b-12-image.gif","documenti/b-13-image.gif","documenti/b-15-image.gif","documenti/b-15-image.gif","documenti/b-16-image.gif","none","none","img/b-19-image.gif","img/ac_bot1-image.gif","img/ac_bot2-image.gif","img/ac_bot3-image.gif","img/ac_bot4-image.gif","img/ac_bot5-image.gif","img/ac_bot6-image.gif","img/ac_bot7-image.gif")


//script per rollover professioni
function changeprofessioni(towhat,url)
	{
		if (document.images){
		document.images.targetimageprofessioni.src=towhat.src
		gotolink=url
	}
}
var myimagesprofessioni=new Array

function preloadimagesprofessioni()
	{
		for (i=0;i<preloadimagesprofessioni.arguments.length;i++)
			{
			myimagesprofessioni[i]=new Image()
			myimagesprofessioni[i].src=preloadimagesprofessioni.arguments[i]
			}
	}
	preloadimagesprofessioni("img/professioni-foto-0.gif","img/professioni-foto-1.gif","img/professioni-foto-2.gif","img/professioni-foto-3.gif","img/professioni-foto-4.gif","img/professioni-foto-5.gif","img/professioni-foto-6.gif","img/professioni-foto-7.gif","img/professioni-foto-8.gif")


//script per rollover comeentrare
function changecomeentrare(towhat,url)
	{
		if (document.images){
		document.images.targetimagecomeentrare.src=towhat.src
		gotolink=url
	}
}
var myimagescomeentrare=new Array

function preloadimagescomeentrare()
	{
		for (i=0;i<preloadimagescomeentrare.arguments.length;i++)
			{
			myimagescomeentrare[i]=new Image()
			myimagescomeentrare[i].src=preloadimagescomeentrare.arguments[i]
			}
	}
	preloadimagescomeentrare("img/entrare-foto-0.gif","img/entrare-foto-1.gif","img/entrare-foto-2.gif","img/entrare-foto-3.gif","img/entrare-foto-4.gif")




var imgPath = "img/";

bot1_on = new Image(165,20);
bot1_on.src = imgPath + "b-1_.gif";
bot1_off = new Image(165,20);
bot1_off.src = imgPath + "b-1.gif";
bot1_sel = new Image(165,20);
bot1_sel.src = imgPath + "b-1_.gif";

bot2_on = new Image(165,20);
bot2_on.src = imgPath + "b-2_.gif";
bot2_off = new Image(165,20);
bot2_off.src = imgPath + "b-2.gif";
bot2_sel = new Image(165,20);
bot2_sel.src = imgPath + "b-2_.gif";

bot3_on = new Image(165,20);
bot3_on.src = imgPath + "b-3_.gif";
bot3_off = new Image(165,20);
bot3_off.src = imgPath + "b-3.gif";
bot3_sel = new Image(165,20);
bot3_sel.src = imgPath + "b-3_.gif";

bot4_on = new Image(165,20);
bot4_on.src = imgPath + "b-4_.gif";
bot4_off = new Image(165,20);
bot4_off.src = imgPath + "b-4.gif";
bot4_sel = new Image(165,20);
bot4_sel.src = imgPath + "b-4_.gif";

bot5_on = new Image(165,20);
bot5_on.src = imgPath + "b-5_.gif";
bot5_off = new Image(165,20);
bot5_off.src = imgPath + "b-5.gif";
bot5_sel = new Image(165,20);
bot5_sel.src = imgPath + "b-5_.gif";

bot6_on = new Image(165,20);
bot6_on.src = imgPath + "b-6_.gif";
bot6_off = new Image(165,20);
bot6_off.src = imgPath + "b-6.gif";
bot6_sel = new Image(165,20);
bot6_sel.src = imgPath + "b-6_.gif";

bot7_on = new Image(165,20);
bot7_on.src = imgPath + "b-7_.gif";
bot7_off = new Image(165,20);
bot7_off.src = imgPath + "b-7.gif";
bot7_sel = new Image(165,20);
bot7_sel.src = imgPath + "b-7_.gif";

bot8_on = new Image(165,20);
bot8_on.src = imgPath + "b-8_.gif";
bot8_off = new Image(165,20);
bot8_off.src = imgPath + "b-8.gif";
bot8_sel = new Image(165,20);
bot8_sel.src = imgPath + "b-8_.gif";

bot9_on = new Image(165,20);
bot9_on.src = imgPath + "b-9_.gif";
bot9_off = new Image(165,20);
bot9_off.src = imgPath + "b-9.gif";
bot9_sel = new Image(165,20);
bot9_sel.src = imgPath + "b-9_.gif";

bot10_on = new Image(165,20);
bot10_on.src = imgPath + "b-10_.gif";
bot10_off = new Image(165,20);
bot10_off.src = imgPath + "b-10.gif";
bot10_sel = new Image(165,20);
bot10_sel.src = imgPath + "b-10_.gif";

bot11_on = new Image(165,20);
bot11_on.src = imgPath + "b-11_.gif";
bot11_off = new Image(165,20);
bot11_off.src = imgPath + "b-11.gif";
bot11_sel = new Image(165,20);
bot11_sel.src = imgPath + "b-11_.gif";

bot12_on = new Image(165,20);
bot12_on.src = imgPath + "b-12_.gif";
bot12_off = new Image(165,20);
bot12_off.src = imgPath + "b-12.gif";
bot12_sel = new Image(165,20);
bot12_sel.src = imgPath + "b-12_.gif";

bot13_on = new Image(165,20);
bot13_on.src = imgPath + "b-13_.gif";
bot13_off = new Image(165,20);
bot13_off.src = imgPath + "b-13.gif";
bot13_sel = new Image(165,20);
bot13_sel.src = imgPath + "b-13_.gif";

bot15_on = new Image(165,20);
bot15_on.src = imgPath + "b-15_.gif";
bot15_off = new Image(165,20);
bot15_off.src = imgPath + "b-15.gif";
bot15_sel = new Image(165,20);
bot15_sel.src = imgPath + "b-15_.gif";

bot16_on = new Image(165,20);
bot16_on.src = imgPath + "b-16_.gif";
bot16_off = new Image(165,20);
bot16_off.src = imgPath + "b-16.gif";
bot16_sel = new Image(165,20);
bot16_sel.src = imgPath + "b-16_.gif";

bot19_on = new Image(165,20);
bot19_on.src = imgPath + "b-19_.gif";
bot19_off = new Image(165,20);
bot19_off.src = imgPath + "b-19.gif";
bot19_sel = new Image(165,20);
bot19_sel.src = imgPath + "b-19_.gif";

chisiamo_on = new Image(165,20);
chisiamo_on.src = imgPath + "b-chi-siamo_.gif";
chisiamo_off = new Image(165,20);
chisiamo_off.src = imgPath + "b-chi-siamo.gif";
chisiamo_sel = new Image(165,20);
chisiamo_sel.src = imgPath + "b-chi-siamo_.gif";

cicloproduttivo_on = new Image(165,20);
cicloproduttivo_on.src = imgPath + "b-ciclo-produttivo_.gif";
cicloproduttivo_off = new Image(165,20);
cicloproduttivo_off.src = imgPath + "b-ciclo-produttivo.gif";
cicloproduttivo_sel = new Image(165,20);
cicloproduttivo_sel.src = imgPath + "b-ciclo-produttivo_.gif";

nostriprodotti_on = new Image(165,20);
nostriprodotti_on.src = imgPath + "b-nostri-prodotti_.gif";
nostriprodotti_off = new Image(165,20);
nostriprodotti_off.src = imgPath + "b-nostri-prodotti.gif";
nostriprodotti_sel = new Image(165,20);
nostriprodotti_sel.src = imgPath + "b-nostri-prodotti_.gif";

responsabilitasociale_on = new Image(165,20);
responsabilitasociale_on.src = imgPath + "b-responsabilita-sociale_.gif";
responsabilitasociale_off = new Image(165,20);
responsabilitasociale_off.src = imgPath + "b-responsabilita-sociale.gif";
responsabilitasociale_sel = new Image(165,20);
responsabilitasociale_sel.src = imgPath + "b-responsabilita-sociale_.gif";

pressroom_on = new Image(165,20);
pressroom_on.src = imgPath + "b-press-room_.gif";
pressroom_off = new Image(165,20);
pressroom_off.src = imgPath + "b-press-room.gif";
pressroom_sel = new Image(165,20);
pressroom_sel.src = imgPath + "b-press-room_.gif";

promozioni_on = new Image(165,20);
promozioni_on.src = imgPath + "b-promozioni_.gif";
promozioni_off = new Image(165,20);
promozioni_off.src = imgPath + "b-promozioni.gif";
promozioni_sel = new Image(165,20);
promozioni_sel.src = imgPath + "b-promozioni_.gif";

eventi_on = new Image(165,20);
eventi_on.src = imgPath + "b-eventi_.gif";
eventi_off = new Image(165,20);
eventi_off.src = imgPath + "b-eventi.gif";
eventi_sel = new Image(165,20);
eventi_sel.src = imgPath + "b-eventi_.gif";

lavoro_on = new Image(165,20);
lavoro_on.src = imgPath + "b-lavoro_.gif";
lavoro_off = new Image(165,20);
lavoro_off.src = imgPath + "b-lavoro.gif";
lavoro_sel = new Image(165,20);
lavoro_sel.src = imgPath + "b-lavoro_.gif";

politichestrategie_on = new Image(165,20);
politichestrategie_on.src = imgPath + "b-politiche-strategie_.gif";
politichestrategie_off = new Image(165,20);
politichestrategie_off.src = imgPath + "b-politiche-strategie.gif";
politichestrategie_sel = new Image(165,20);
politichestrategie_sel.src = imgPath + "b-politiche-strategie_.gif";

finance_on = new Image(165,20);
finance_on.src = imgPath + "professioni-finance_.gif";
finance_off = new Image(165,20);
finance_off.src = imgPath + "professioni-finance.gif";
finance_sel = new Image(165,20);
finance_sel.src = imgPath + "professioni-finance_.gif";

sales_on = new Image(165,20);
sales_on.src = imgPath + "professioni-sales_.gif";
sales_off = new Image(165,20);
sales_off.src = imgPath + "professioni-sales.gif";
sales_sel = new Image(165,20);
sales_sel.src = imgPath + "professioni-sales_.gif";

marketing_on = new Image(165,20);
marketing_on.src = imgPath + "professioni-marketing_.gif";
marketing_off = new Image(165,20);
marketing_off.src = imgPath + "professioni-marketing.gif";
marketing_sel = new Image(165,20);
marketing_sel.src = imgPath + "professioni-marketing_.gif";

hr_on = new Image(165,20);
hr_on.src = imgPath + "professioni-hr_.gif";
hr_off = new Image(165,20);
hr_off.src = imgPath + "professioni-hr.gif";
hr_sel = new Image(165,20);
hr_sel.src = imgPath + "professioni-hr_.gif";

GeneralAffair_on = new Image(165,20);
GeneralAffair_on.src = imgPath + "professioni-GeneralAffair_.gif";
GeneralAffair_off = new Image(165,20);
GeneralAffair_off.src = imgPath + "professioni-GeneralAffair.gif";
GeneralAffair_sel = new Image(165,20);
GeneralAffair_sel.src = imgPath + "professioni-GeneralAffair_.gif";

it_on = new Image(165,20);
it_on.src = imgPath + "professioni-it_.gif";
it_off = new Image(165,20);
it_off.src = imgPath + "professioni-it.gif";
it_sel = new Image(165,20);
it_sel.src = imgPath + "professioni-it_.gif";

operations_on = new Image(165,20);
operations_on.src = imgPath + "professioni-operations_.gif";
operations_off = new Image(165,20);
operations_off.src = imgPath + "professioni-operations.gif";
operations_sel = new Image(165,20);
operations_sel.src = imgPath + "professioni-operations_.gif";

ngp_on = new Image(116,39);
ngp_on.src = imgPath + "entrare-ngp_.gif";
ngp_off = new Image(116,39);
ngp_off.src = imgPath + "entrare-ngp.gif";
ngp_sel = new Image(116,39);
ngp_sel.src = imgPath + "entrare-ngp_.gif";

stagecurriculare_on = new Image(132,21);
stagecurriculare_on.src = imgPath + "entrare-stagecurriculare_.gif";
stagecurriculare_off = new Image(132,21);
stagecurriculare_off.src = imgPath + "entrare-stagecurriculare.gif";
stagecurriculare_sel = new Image(132,21);
stagecurriculare_sel.src = imgPath + "entrare-stagecurriculare_.gif";

summerstage_on = new Image(109,21);
summerstage_on.src = imgPath + "entrare-summerstage_.gif";
summerstage_off = new Image(109,21);
summerstage_off.src = imgPath + "entrare-summerstage.gif";
summerstage_sel = new Image(109,21);
summerstage_sel.src = imgPath + "entrare-summerstage_.gif";

tesi_on = new Image(109,21);
tesi_on.src = imgPath + "entrare-tesi_.gif";
tesi_off = new Image(109,21);
tesi_off.src = imgPath + "entrare-tesi.gif";
tesi_sel = new Image(109,21);
tesi_sel.src = imgPath + "entrare-tesi_.gif";

tse_on = new Image(109,21);
tse_on.src = imgPath + "professioni-tse_.gif";
tse_off = new Image(109,21);
tse_off.src = imgPath + "professioni-tse.gif";
tse_sel = new Image(109,21);
tse_sel.src = imgPath + "professioni-tse_.gif";

ac_bot1_on = new Image(165,20);
ac_bot1_on.src = imgPath + "ac_bot1_.gif";
ac_bot1_off = new Image(165,20);
ac_bot1_off.src = imgPath + "ac_bot1.gif";
ac_bot1_sel = new Image(165,20);
ac_bot1_sel.src = imgPath + "ac_bot1_.gif";

ac_bot2_on = new Image(165,20);
ac_bot2_on.src = imgPath + "ac_bot2_.gif";
ac_bot2_off = new Image(165,20);
ac_bot2_off.src = imgPath + "ac_bot2.gif";
ac_bot2_sel = new Image(165,20);
ac_bot2_sel.src = imgPath + "ac_bot2_.gif";

ac_bot3_on = new Image(165,20);
ac_bot3_on.src = imgPath + "ac_bot3_.gif";
ac_bot3_off = new Image(165,20);
ac_bot3_off.src = imgPath + "ac_bot3.gif";
ac_bot3_sel = new Image(165,20);
ac_bot3_sel.src = imgPath + "ac_bot3_.gif";

ac_bot4_on = new Image(165,20);
ac_bot4_on.src = imgPath + "ac_bot4_.gif";
ac_bot4_off = new Image(165,20);
ac_bot4_off.src = imgPath + "ac_bot4.gif";
ac_bot4_sel = new Image(165,20);
ac_bot4_sel.src = imgPath + "ac_bot4_.gif";

ac_bot5_on = new Image(165,20);
ac_bot5_on.src = imgPath + "ac_bot5_.gif";
ac_bot5_off = new Image(165,20);
ac_bot5_off.src = imgPath + "ac_bot5.gif";
ac_bot5_sel = new Image(165,20);
ac_bot5_sel.src = imgPath + "ac_bot5_.gif";

ac_bot6_on = new Image(165,20);
ac_bot6_on.src = imgPath + "ac_bot6_.gif";
ac_bot6_off = new Image(165,20);
ac_bot6_off.src = imgPath + "ac_bot6.gif";
ac_bot6_sel = new Image(165,20);
ac_bot6_sel.src = imgPath + "ac_bot6_.gif";

ac_bot7_on = new Image(165,20);
ac_bot7_on.src = imgPath + "ac_bot7_.gif";
ac_bot7_off = new Image(165,20);
ac_bot7_off.src = imgPath + "ac_bot7.gif";
ac_bot7_sel = new Image(165,20);
ac_bot7_sel.src = imgPath + "ac_bot7_.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");
		}
	}
}

var ids=new Array('Vuoto','Buccinasco','Nogara','Rimini','Corfinio','Monticchio','Rionero','Oricola','Perugia','Montelupo','Gaglianico','Campogalliano');

function switchid(id){
	hideallids();
	showdiv(id);
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}


function posizioni(id, dopen)
{
	if(document.getElementById)
	{
		var el=document.getElementById(id);	
		var sp=document.getElementById('s'+id);
		var st=document.getElementById('t'+id);

		if (dopen == '0')
		{
			el.style.display = (el.style.display=="block") ? "none" : "block";
			if (document.all)
			{
				sp.innerText = (sp.innerText=="Apri") ? "Chiudi" : "Apri";
			}
			else 
			{
				sp.textContent = (sp.textContent =="Apri") ? "Chiudi" : "Apri";
			}
			st.className = (st.className=="posizione") ? "posizioneattiva" : "posizione";

		}
		else
		{			
			el.style.display = "block";
			sp.innerText =  "Chiudi"
			st.className = "posizioneattiva"
		}
	}
}

function gotoname(id)
{
	location.href = '#a' + id;	
	posizioni(id, '1');
}
//-->

