//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")

var timeoutID;
var frameValues = ['imagenes/B-Premium-Naranja-Cont-Trad.jpg', 'imagenes/B-Premium-Nar-Te-regalo-est.jpg'];
var frameURLs = ['', ''];

function rotar_imagenes(i) {
	obj = document.getElementById('Contador');
	if (i == '0'){
		tira = '<br>VISITAS&nbsp;&nbsp;&nbsp;<br>Desde MisHijos:&nbsp;' + document.form1.contador_mishijos.value + '&nbsp;&nbsp;&nbsp;<br>' + 'Directas:&nbsp;' + document.form1.contador.value + '&nbsp;&nbsp;&nbsp;<br>Total:&nbsp;' + document.form1.contador_total.value + '&nbsp;&nbsp;&nbsp;'
		obj.style.display = "";
		document.getElementById('valor').innerHTML = tira;				
	}
	else{
	    obj.style.display = 'none';	
		document.getElementById('valor').innerHTML = '';			
	}
	document.getElementById('image').background = frameValues[i];
	i = (++i == frameValues.length) ? 0 : i
	timeoutID = setTimeout('rotar_imagenes(' + i + ')', 3500)
}	

