
// SMALL SCRIPTS
// gestione bottone submit

	$(document).ready(function(){
        $('#submit').hover(
            function(){ // Change the input image's source when we "roll on"
                $(this).attr({ src : '../img/submit_over.png'});
            },
            function(){ // Change the input image's source back to the default on "roll off"
                $(this).attr({ src : '../img/submit.png'});
             }
        );
    });

//funzione per gestire lo stato over del bottone dal menu

	function change(oggetto){
	document.getElementById(oggetto).style.backgroundPosition = "0 -50px";
	}
	
	function change_back(oggetto){
	document.getElementById(oggetto).style.backgroundPosition = "0 0";
	
	}


// AGGIUNGI AI PREFERITI

//	sintassi link:
//	javascript:bookmarksite('title_of_site', 'url_of_site')  

/* Modified to support Opera */ 

function bookmarksite(title,url){ 
if (window.sidebar) // firefox 
    window.sidebar.addPanel(title, url, ""); 
else if(window.opera && window.print){ // opera 
    var elem = document.createElement('a'); 
    elem.setAttribute('href',url); 
    elem.setAttribute('title',title); 
    elem.setAttribute('rel','sidebar'); 
    elem.click(); 
} 
else if(document.all)// ie 
    window.external.AddFavorite(url, title); 
} 

/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
win.focus();
}


