function preloadImages() {
	arImageSrc = new Array (
"http://demo.siper.mx/revista/wp-content/themes/contenido/images/facebook_on.jpg",
"http://demo.siper.mx/revista/wp-content/themes/contenido/images/twitter_on.jpg",
"http://demo.siper.mx/revista/wp-content/themes/contenido/images/rss_on.jpg"
)

	arImageList = new Array ();
	for (counter in arImageSrc) {
	        arImageList[counter] = new Image();
	        arImageList[counter].src = arImageSrc[counter];}
	}
preloadImages();

function imgovr1(m1) {
	m1.src = arImageList[0].src; }
function imgout1(m1) {
	m1.src = arImageList[1].src; }

function imgovr2(m2) {
	m2.src = arImageList[2].src; }
function imgout2(m2) {
	m2.src = arImageList[3].src; }

function imgovr3(m3) {
	m3.src = arImageList[4].src; }
function imgout3(m3) {
	m3.src = arImageList[5].src; }

var menuTimer;
function switchlayer(id,trigger) {
	if (trigger=="1") {
		if (document.layers) { document.layers[''+id+''].visibility = "show"; }
		else if (document.all) { document.all[''+id+''].style.visibility = "visible"; }
		else if (document.getElementById) { document.getElementById(''+id+'').style.visibility = "visible"; }				
	}
	else if (trigger=="0") {
		if (document.layers) { document.layers[''+id+''].visibility = "hide"; }
		else if (document.all) { document.all[''+id+''].style.visibility = "hidden"; }
		else if (document.getElementById) { document.getElementById(''+id+'').style.visibility = "hidden"; }			
	}
}
