//Funciones web MICRO MONTMELO v.1.0
//Daniel Segovia - daniels@synapsis-cg.com
//SYNAPSIS DIGITAL - www.synapsis-cg.com

// #############################################
// Esta fución maximiza la página
function maximizar() {
 self.moveTo(0,0)
 self.resizeTo(screen.availWidth,screen.availHeight)
}
// #############################################
// Esta fución abre la página principal del Site
function mont(){
	//Movemos al centro
	var windowW = 630;
	var windowH = 370;
	var windowX = Math.ceil( (window.screen.width  - windowW) / 2 );
	var windowY = Math.ceil( (window.screen.height - windowH) / 2 );
	//Abrimos ventana
	window.open("montmelo.htm","ssmPRomo","scrollbars=no,width="+ windowW +",height="+ windowH +",top=" + windowY + ",left=" + windowX);

}

function ranking(){

	//capturamos los parametros
	lacadena = location.search.substring(1,location.search.length);

	//playa
	playa = lacadena.substring(0,1);
	//categoria
	categoria = lacadena.substring(1,1);
	//ronda
	ronda = lacadena.substring(2,1);

	//Movemos al centro
	var windowW = 700;
	var windowH = 400;
	var windowX = Math.ceil( (window.screen.width  - windowW) / 2 );
	var windowY = Math.ceil( (window.screen.height - windowH) / 2 );
	//Abrimos ventana
	window.open("/admin/asp/resultados_r.asp","pop","scrollbars=no,width="+ windowW +",height="+ windowH +",top=" + windowY + ",left=" + windowX);

}

function popresultados(playa, categoria, ronda){
	//capturamos los parametros
//	lacadena = location.search.substring(1,location.search.length);

	//playa
//	playa = lacadena.substring(0,1);
	//categoria
//	categoria = lacadena.substring(1,1);
	//ronda
//	ronda = lacadena.substring(2,1);
//	alert(playa + ' - ' + categoria + ' - ' + ronda);
	var windowW = 716;
	var windowH = 400;
	var windowX = Math.ceil( (window.screen.width  - windowW) / 2 );
	var windowY = Math.ceil( (window.screen.height - windowH) / 2 );

	cosa = window.open('about:blank','','width=' + windowW + ',height=' + windowH + ',top=' + windowY + ',left=' + windowX + ',scrollbars=yes');
	htm = '<ht'+'ml>\n';
	htm += '<he'+'ad>\n';
	htm += '<title>Campeonato de España de Voley Playa 2004</title>\n';
	htm += '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n';
	htm += '</he'+'ad>\n';
	htm += '<bo'+'dy>\n';
	htm += '<form name="form1ex" method="post" action="admin/asp/resultados.asp">\n';
	htm += '<input type="hidden" name="playa" value="'+playa+'">\n';
	htm += '<input type="hidden" name="categoria" value="'+categoria+'">\n';
	htm += '<input type="hidden" name="ronda" value="'+ronda+'">\n';
	htm += '</form>\n';
	htm += '<scr'+'ipt>document.form1ex.submit()</sc'+'ript>';
	htm += '</bo'+'dy bgcolor="#F7941D">\n';
	htm += '</ht'+'ml>\n';
	
	cosa.document.write(htm);
}

function popranking(playa, categoria){
	//capturamos los parametros
//	lacadena = location.search.substring(1,location.search.length);

	//playa
//	playa = lacadena.substring(0,1);
	//categoria
//	categoria = lacadena.substring(1,1);
	//ronda
//	ronda = lacadena.substring(2,1);
//	alert(playa + ' - ' + categoria + ' - ' + ronda);

	var windowW = 716;
	var windowH = 400;
	var windowX = Math.ceil( (window.screen.width  - windowW) / 2 );
	var windowY = Math.ceil( (window.screen.height - windowH) / 2 );

	cosa = window.open('about:blank','','width=' + windowW + ',height=' + windowH + ',top=' + windowY + ',left=' + windowX + ',scrollbars=yes');
	htm = '<ht'+'ml>\n';
	htm += '<he'+'ad>\n';
	htm += '<title>Campeonato de España de Voley Playa 2004</title>\n';
	htm += '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n';
	htm += '</he'+'ad>\n';
	htm += '<bo'+'dy>\n';
	htm += '<form name="form1ex" method="post" action="admin/asp/resultados_r.asp">\n';
	htm += '<input type="hidden" name="playa" value="'+playa+'">\n';
	htm += '<input type="hidden" name="categoria" value="'+categoria+'">\n';
	htm += '</form>\n';
	htm += '<scr'+'ipt>document.form1ex.submit()</sc'+'ript>';
	htm += '</bo'+'dy bgcolor="#F7941D">\n';
	htm += '</ht'+'ml>\n';
	
	cosa.document.write(htm);
}

function popseeding(categoria){
	//capturamos los parametros
//	lacadena = location.search.substring(1,location.search.length);

	//playa
//	playa = lacadena.substring(0,1);
	//categoria
//	categoria = lacadena.substring(1,1);
	//ronda
//	ronda = lacadena.substring(2,1);
//	alert(playa + ' - ' + categoria + ' - ' + ronda);

	var windowW = 716;
	var windowH = 400;
	var windowX = Math.ceil( (window.screen.width  - windowW) / 2 );
	var windowY = Math.ceil( (window.screen.height - windowH) / 2 );

	cosa = window.open('about:blank','','width=' + windowW + ',height=' + windowH + ',top=' + windowY + ',left=' + windowX + ',scrollbars=yes');
	htm = '<ht'+'ml>\n';
	htm += '<he'+'ad>\n';
	htm += '<title>Campeonato de España de Voley Playa 2004</title>\n';
	htm += '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n';
	htm += '</he'+'ad>\n';
	htm += '<bo'+'dy>\n';
	htm += '<form name="form1ex" method="post" action="admin/asp/resultados_s.asp">\n';
	htm += '<input type="hidden" name="categoria" value="'+categoria+'">\n';
	htm += '</form>\n';
	htm += '<scr'+'ipt>document.form1ex.submit()</sc'+'ript>';
	htm += '</bo'+'dy bgcolor="#F7941D">\n';
	htm += '</ht'+'ml>\n';
	
	cosa.document.write(htm);
}




















function toni(){
	//Movemos al centro
	var windowW = 778;
	var windowH = 245
	var windowX = Math.ceil( (window.screen.width  - windowW) / 2 );
	var windowY = Math.ceil( (window.screen.height - windowH) / 2 );
	//Abrimos ventana
	window.open("http://www.movistar.com/novedades/publicidad/canalelias.htm","toni","scrollbars=no,width="+ windowW +",height="+ windowH +",top=" + windowY + ",left=" + windowX);

}

