/*---------------------------------------------------------------------------------------------------------------------
Copyright (C) 2002 Campamento Mision .
All rights reserved.

Description:	Campamento JAVASCRIPT CODE
				Alex 
Fecha:			11/05/2005
Modificado:		11/05/2005
----------------------------------------------------------------------------------------------------------------------*/

function swapimg(img,swp) {
	 document.images[img].src = rolls[swp].src;
}

function swapimgBack(img,swp) {
	 document.images[img].src = ups[swp]; 
        
}

function moveFooter() {
	var iBottom = 0;
	
	if (document.all) {
		if (parseInt(document.body.scrollHeight) > parseInt(document.body.clientHeight)) {
			iBottom = parseInt(document.body.scrollHeight);
		}	
		else iBottom = parseInt(document.body.clientHeight);
		document.all["lyfooter"].style.pixelTop = iBottom - parseInt(document.all["lyfooter"].style.height);
		document.all["lyfooter"].style.visibility = "visible";
	}
	else if (document.layers)	{
		if (document.height > self.innerHeight) {
			iBottom = document.height;
		}	
		else iBottom = self.innerHeight;				
		document.layers["lyfooter"].top = parseInt(iBottom - document.layers["lyfooter"].document.height);
		document.layers["lyfooter"].visibility = "visible";				
	}
	else if (document.getElementById) { //NS6
		if (document.height > self.innerHeight) {
			iBottom = document.height;
		}	
		else iBottom = self.innerHeight;					
		document.getElementById("lyfooter").style.top = (parseInt(iBottom - parseInt(document.getElementById("lyfooter").style.height))) + "px";		
		document.getElementById("lyfooter").style.visibility = "visible";		
		
	}
	
}