var num=Math.floor (Math.random()*1000000);
var browser, version; var status = 1; var toc = new Array(); browser = navigator.appName; version = parseInt(navigator.appVersion);
if (browser == "Netscape" && version >= 3) status = 0;
else if (browser == "Microsoft Internet Explorer" && version >= 4) status = 0;

function item(off, over) { if (status) return; this.off = new Image(); this.off.src = off; this.over = new Image(); this.over.src = over; }
function cache(id, off, over) { if (status) return; item[id] = new item(off, over); toc[toc.length] = id; }
function over(que, donde) { if (status) return; if (! donde) donde = que; document[donde].src = item[que].over.src; }
function out(que, donde) { if (status) return;  if (! donde) donde = que; document[donde].src = item[que].off.src; }

function MM_preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

MM_preloadImages('http://www.cmj.com.ar/imagenes/identidad3/bot-biografia-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-cartelera-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-discografia-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-downlaods-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-elbaile-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-elbaile-00.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-elclan-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-elclan-00.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-fans-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-fans-00.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-fotos-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-entrevistas-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-lasletras-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-lasenas-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-musica-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-buscador-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-chat-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-encuestas-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-juegosonline-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-librodevisitas-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-celulares-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-noticias-01.gif','http://www.cmj.com.ar/imagenes/identidad3/bot-trivia-01.gif')

function AbreVentana2() {
window.open("http://www.cmj.com.ar/downloads/musica.html","","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=530,height=475,left = 225,top = 50");
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'scrollbars=1,toolbar=0,location=0,directories=0,status=0,menubar=0resizable=0,width=367,height=400,left = 225,top = 100');");
}

function popUpC(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=618,height=400,left = 225,top = 100');");
}

function popUpencuestas(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'scrollbars=1,toolbar=0,location=0,directories=0,status=0,menubar=0resizable=0,width=490,height=450,left = 225,top = 100');");
}

function Recomendar() {
window.open("http://www.ademails.com/formemail.php3?ID=1059801486","","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=268,height=320");
}

function fotosmona(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop)
 {  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	if (imageType == "swf"){
	newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');	}else{
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}



PositionX = 50;
PositionY = 50;

defaultWidth  = 500;
defaultHeight = 500;


var AutoClose = true;

if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;

function abrir(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Cargando</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["Foto"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body background="http://www.cmj.com.ar/imagenes/cargando_image.gif" scroll="no" onload="reSizeToImage();doTitle();self.focus()">')

else writeln('</head><body background="http://www.cmj.com.ar/imagenes/cargando_image.gif" scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');

writeln('<img name="Foto" src='+imageURL+' style="display:block"></body></html>');

close();		
}
}

function conferencia() {
window.open("http://www.cmj.com.ar/downloads/video-conferencia.html","","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=453,height=500,left = 225,top = 50");
}


function ventana(nombre,name,propiedades) { v=window.open(nombre,name,propiedades); }

function imprimir(pag_imprimir) {
window.open(pag_imprimir,'Impresion','toolbar=yes,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=640,height=520');
}



function mostrar(ver)
	{
	obj = document.getElementById(ver);
	if( obj.style.display != '' ) obj.style.display='';
	else obj.style.display='none';
	}

function mostrarr(ver)
	{
	obj = document.getElementById(ver);
	if( obj.style.display != '' ) obj.style.display='';
	else obj.style.display='none';
	}

function openWindow() {
window.open('','enviado','scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=yes,width=480,height=300, screenX=60,screenY=60');
}

var inicio=new Date(); 
inicio=inicio.getTime(); 

function popUpregistro(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=618,height=457,left = 225,top = 100');");
}

function fotocmj(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=785,height=508,left = 60,top = 35');");
}

function fotoscmj2008(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=785,height=670,left = 40,top = 35');");
}

function lon(target)
	{
	if (undefined == target)
	target = this;
	if (undefined == target._lon_disabled_arr)
	target._lon_disabled_arr = new Array();
	else if (target._lon_disabled_arr.length > 0)
		return true;
	target.document.getElementById("prepage").style.display = "";
	var select_arr = target.document.getElementsByTagName("select");
	for (var i = 0; i < select_arr.length; i++) 	
	{	select_arr[i].disabled = true;
		_lon_disabled_arr.pop(select_arr[i]);
		var clone = target.document.createElement("input");
		clone.type = "hidden";
		clone.name = select_arr[i].name;
		var values = new Array();
		for (var n = 0; n < select_arr[i].length; n++) {
			if (select_arr[i][n].selected) {
				values[values.length] = select_arr[i][n].value;
			}
		}
		clone.value = values.join(",");
		select_arr[i].parentNode.insertBefore(clone, select_arr[i]);
	}
	return true;
}


function abrirbien (pagina) {
var opciones="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=508,height=365,top=85,left=140";
window.open(pagina,"",opciones);
}


