var NS = (document.layers) ? 1:0
var IE = (document.all) ? 1:0

/*--------------ROLL OVER FUNCTIONS---------------------*/

function swap(img,swp) {
        document.images[img].src = rolls[swp].src;              	
        
}

function swapBack(img,swp) {
	document.images[img].src = ups[swp];            	

}


/*--------------ROLL OVER FUNCTIONS with layer---------------------*/

function swap1(img,swp,lyr) {
        if (IE) document.images[img].src = rolls[swp].src;              
	else if (NS) document.layers[lyr].document.images[img].src = rolls[swp].src;    
        
}

function swapBack1(img,swp,lyr) {
	if (IE) document.images[img].src = ups[swp];            
	else if (NS) document.layers[lyr].document.images[img].src = ups[swp];     

}


function openWin(file,w,h) {
        //change any parameter to 1 if you want it displayed
        //for IE3.0 some of the parametrs have to be deleted - need to be tested

        var win1  = open(file,"w","status=yes,scrollbars=yes,location=0,menubar=0,resizable=0,toolbar=0,top=0,left=0,width="+w+",height="+h);
        
        win1.focus();

}
