// Hack IE6

//function load_hack() {

//divÊ=Êdocument.getElementById('hack'); 
//div.innerHTMLÊ=Ê"no";

//}



// Script arrow sottomenu

function show( id ) {
    var elem = document.getElementById( id );
    if( supportsOpacity( elem )) {
        // first set 0% opacity to make it completely transparent
        setOpacity( elem, 0 );
        // when we set display = "block" it's still invisible
        elem.style.display = "block";
        // call the function to gradually increase opacity
        fadeIn( id );
    } else {
        // can't modify opacity, so just make it visible...
        elem.style.display = "block";
    }
}

function hide( id ) {
    var elem = document.getElementById( id );
    elem.style.display="none";
}



function supportsOpacity( el ) {
    if ( el.style.opacity != undefined )
        return true;
    if( el.style.MozOpacity != undefined )
        return true;

    if ( el.style.filter != undefined )
        return true;
    return false;
}

function setOpacity( el, opaciLevel ) {
    if ( el.style.opacity != undefined ) {
        el.style.opacity = opaciLevel;
    } else if( el.style.MozOpacity != undefined ) {
        el.style.MozOpacity = opaciLevel;
    } else if ( el.style.filter != undefined ) {
        var oplvl = Math.round(opaciLevel*100);
        el.style.filter="alpha(opacity=" + oplvl + ")";

    }
}

function fadeIn( id, currentOpacity ) {
    var counterLimit = 5;
    var el = document.getElementById( id );
    if( !currentOpacity ) {
        currentOpacity = 1;
    }
    if( currentOpacity > counterLimit ) {
        return;
    }
    setOpacity( el, ( currentOpacity/counterLimit ) );
    currentOpacity++;
    var func = "fadeIn( '" + id + "', " + currentOpacity + ")";
    window.setTimeout( func, 50);
}



function show_sitemenuContents_2() {
			if (document.getElementById("progetti").style.display == "none") {
			//document.getElementById("arr_SM2_img").src = '../../chips/immagini/ArrowDown.tiff';
			hide( "opere" );
			hide( "lavori" );
			hide( "concorsi" );
			document.getElementById("progetti").style.display = "block";
			setTimeout('show( "opere" );', 50);
			setTimeout('show( "lavori" );', 100);
			setTimeout('show( "concorsi" );', 150);
		
			}
			else{
			//document.getElementById("arr_SM2_img").src = '../../chips/immagini/ArrowRight.tiff';
			setTimeout('hide( "concorsi" );', 30);
			setTimeout('hide( "lavori" );', 60);
			setTimeout('hide( "opere" );', 90);
			setTimeout('hide( "progetti" );', 120);
			}
}

function show_sitemenuContents_3() {
			if (document.getElementById("info").style.display == "none") {
			//document.getElementById("arr_SM2_img").src = '../../chips/immagini/ArrowDown.tiff';
			hide( "biografia" );
			hide( "pubblicazioni" );
			hide( "premi" );
			hide( "mostre" );
			document.getElementById("info").style.display = "block";
			
			setTimeout('show( "biografia" );', 25);
			setTimeout('show( "pubblicazioni" );', 75);
			setTimeout('show( "premi" );', 125);
			setTimeout('show( "mostre" );', 175);
			
			}
			else{
			//document.getElementById("arr_SM2_img").src = '../../chips/immagini/ArrowRight.tiff';
			setTimeout('hide( "mostre" );', 15);
			setTimeout('hide( "premi" );', 30);
			setTimeout('hide( "pubblicazioni" );', 45);
			setTimeout('hide( "biografia" );', 60);
			setTimeout('hide( "info" );', 75);
			}
}

function show_sitemenuContents_4() {
			if (document.getElementById("uni").style.display == "none") {
			//document.getElementById("arr_SM2_img").src = '../../chips/immagini/ArrowDown.tiff';
			hide( "uni_didattica" );
			hide( "uni_convegni" );
			hide( "uni_workshop" );
			hide( "uni_mostre" );
			hide( "uni_conferenze" );
			hide( "uni_ricerche" );
			hide( "uni_varie" );
			hide( "uni_pubblicazioni" );
			hide( "uni_tesi" );
			document.getElementById("uni").style.display = "block";
			
			setTimeout('show( "uni_didattica" );', 25);
			setTimeout('show( "uni_convegni" );', 75);
			setTimeout('show( "uni_workshop" );', 125);
			setTimeout('show( "uni_mostre" );', 175);
			setTimeout('show( "uni_conferenze" );', 225);
			setTimeout('show( "uni_ricerche" );', 275);
			setTimeout('show( "uni_varie" );', 325);
			setTimeout('show( "uni_pubblicazioni" );', 375);
			setTimeout('show( "uni_tesi" );', 425);
			
			}
			else{
			//document.getElementById("arr_SM2_img").src = '../../chips/immagini/ArrowRight.tiff';
			setTimeout('hide( "uni_tesi" );', 15);
			setTimeout('hide( "uni_pubblicazioni" );', 30);
			setTimeout('hide( "uni_varie" );', 45);
			setTimeout('hide( "uni_ricerche" );', 60);
			setTimeout('hide( "uni_conferenze" );', 90);
			setTimeout('hide( "uni_mostre" );', 105);
			setTimeout('hide( "uni_workshop" );', 120);
			setTimeout('hide( "uni_convegni" );', 135);
			setTimeout('hide( "uni_didattica" );', 150);
			setTimeout('hide( "uni" );', 165);
			}
}

// fine script arrow sottomenu





			




// Script caricamento pagine

function page_1(){
	top.location.href="../page_1/";
    }  
function page_2(){
	top.location.href="../page_2/";
    }    
function page_3(){
	top.location.href="../page_3/";
    }   
function page_4(){
	top.location.href="../page_4/";
    }
function page_5(){
	top.location.href="../page_5/";
    }
function page_6(){
	top.location.href="../page_6/";
    }


// Home Page
function page_1_1(){
	top.location.href="../page_1_1/";
    }
function page_1_2(){
	top.location.href="../page_1_2/";
    }    
function page_1_3(){
	top.location.href="../page_1_3/";
    }   
function page_1_4(){
	top.location.href="../page_1_4/";
    }
function page_1_5(){
	top.location.href="../page_1_5/";
    }
function page_1_6(){
	top.location.href="../page_1_6/";
    }    
function page_1_7(){
	top.location.href="../page_1_7/";
    }   
function page_1_8(){
	top.location.href="../page_1_8/";
    }
function page_1_9(){
	top.location.href="../page_1_9/";
    }
    

// Progetti
function page_2_1_1(){
	top.location.href="../page_2_1_1/";
    }
function page_2_1_2(){
	top.location.href="../page_2_1_2/";
    }    
function page_2_1_3(){
	top.location.href="../page_2_1_3/";
    }   
function page_2_1_4(){
	top.location.href="../page_2_1_4/";
    }
function page_2_1_5(){
	top.location.href="../page_2_1_5/";
    }
function page_2_1_6(){
	top.location.href="../page_2_1_6/";
    }    
function page_2_1_7(){
	top.location.href="../page_2_1_7/";
    }   
function page_2_1_8(){
	top.location.href="../page_2_1_8/";
    }
function page_2_1_9(){
	top.location.href="../page_2_1_9/";
    }
    
    
// Lavori in corso
function page_2_2_1(){
	top.location.href="../page_2_2_1/";
    }
function page_2_2_2(){
	top.location.href="../page_2_2_2/";
    }    
function page_2_2_3(){
	top.location.href="../page_2_2_3/";
    }
    
    
// Concorsi
function page_2_3_1(){
	top.location.href="../page_2_3_1/";
    }
function page_2_3_2(){
	top.location.href="../page_2_3_2/";
    }    
function page_2_3_3(){
	top.location.href="../page_2_3_3/";
    }

    

// Info    
function page_3_1(){
	top.location.href="../page_3_1/";
    }
function page_3_2(){
	top.location.href="../page_3_2/";
    }    
function page_3_3(){
	top.location.href="../page_3_3/";
    }   
function page_3_4(){
	top.location.href="../page_3_4/";
    }
    


// Universitˆ
function page_4_1(){
	top.location.href="../page_4_1/";
    }
function page_4_2(){
	top.location.href="../page_4_2/";
    }    
function page_4_3(){
	top.location.href="../page_4_3/";
    }   
function page_4_4(){
	top.location.href="../page_4_4/";
    }
function page_4_5(){
	top.location.href="../page_4_5/";
    }
function page_4_6(){
	top.location.href="../page_4_6/";
    }    
function page_4_7(){
	top.location.href="../page_4_7/";
    }   
function page_4_8(){
	top.location.href="../page_4_8/";
    }
function page_4_9(){
	top.location.href="../page_4_9/";
    }  



// Contatti
function page_5_1(){
	top.location.href="../page_5_1/";
    }


// fine script caricamento pagine




function link_1_link(){
	var newWindow = window.open("http://www.galleriapoliart.com");
    } 
function link_2_link(){
	var newWindow = window.open("http://www.paolasamoggia.com");
    }
function link_3_link(){
	var newWindow = window.open("http://www.robertodanesi.com");
    }
function link_4_link(){
	var newWindow = window.open("http://www.vincenzolatina.com");
    }
