/*function LoadSWF2(url,width,height,id,params)
{

		var str;
		var url2 = url;
		str = "";

		str += '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
		str += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"';
		str += ' WIDTH="'+ width +'" HEIGHT="'+ height +'" id="'+ id +'" ALIGN="">';
		

		str += ' <PARAM NAME=movie VALUE="'+ url2+'?g_url=' +params+ '"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="'+url2+'?g_url=' +params+ '" quality=high bgcolor=#FFFFFF  WIDTH="'+width+'" HEIGHT="'+height+'" NAME="'+ id +'" ALIGN=""';		
		
		str += ' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>';
		str += '</OBJECT>';


		document.write(str);

};*/
function LoadSWF2(url,width,height,id)
{

		var str;
		var url2 = url;
		str = "";

        str += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
        str += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"';
        str += ' width="'+ width +'" height="'+ height +'" id="'+ id +'" align="">';
        str += ' <param name="movie" value="'+ url2 +'"/>';
        str += ' <param name="quality" value="high"/>';
        //str += ' <param name="bgcolor" VALUE="#FFFFFF"/>';
        str += ' <param name="wmode" VALUE="opaque"/>';
        //str += ' <embed wmode="opaque" src="'+url2+'" quality="high" bgcolor="#FFFFFF"  width="'+width+'" height="'+height+'" name="'+ id +'" align=""';
        str += ' <embed wmode="opaque" src="'+url2+'" quality="high" width="'+width+'" height="'+height+'" name="'+ id +'" align=""';
        str += '  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
        str += '</object>';

		document.write(str);

}



function LoadSWF(url,width,height,id)
{

		var str;
		var url2 = url;
		str = "";

		str += '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
		str += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"';
		str += ' WIDTH="'+ width +'" HEIGHT="'+ height +'" id="'+ id +'" ALIGN="">';
		str += ' <PARAM NAME=movie VALUE="'+ url2 +'"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="'+url2+'" quality=high bgcolor=#FFFFFF  WIDTH="'+width+'" HEIGHT="'+height+'" NAME="'+ id +'" ALIGN=""';
		str += ' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>';
		str += '</OBJECT>';


		//alert("hola -> " + str);

		document.write(str);

};


function abrir_act_flash(id,id2)
{
	//alert(id2);

	var nwidth = window.screen.availWidth;
	var nheight = window.screen.availHeight;


	var url;
	url = "act_flash/" + id + "/actividad_start.html";
	var str = 'wind';
	str += 'ow.o';
	str += 'pen(url,"", "left=0,top=0,';
	str += 'width=';
	str += nwidth;
	str += ',height=';
	str += nheight;
	str +='")';
		

	eval(str); 
}

function abrir_full(url)
{
	//alert(id2);

	var nwidth = window.screen.availWidth;
	var nheight = window.screen.availHeight;


	var str = 'wind';
	str += 'ow.o';
	str += 'pen(url,"", "left=0,top=0,';
	str += 'width=';
	str += nwidth;
	str += ',height=';
	str += nheight;
	str +='")';
		

	eval(str); 
}


function abrir_act_no_flash_con_id(tipo,id,id2)
{	
	//window.alert(tipo + "," + id + "," + id2);

	var str="";
	if(tipo==1){
		// video
		str = 'actividad_video.asp?id='+id+'&id2='+id2;						
		window.location.href = str;
	}
	else if(tipo==2){
		// paso a paso;
		str = 'paso_a_paso.asp?id='+id+'&id2='+id2;		
		window.location.href = str;

		
	}
	else if(tipo==10){
		// consejo;
		str = 'consejo.asp?id='+id+'&id2='+id2;		
		window.location.href = str;
	}


/*	if(str!="")
	{
		var str2;
		
		str2 = "win";
		str2 += "dow";
		str2 += ".";
		str2 += "op";
		str2 += "en";
		str2 += str;
		
		eval(str2);
	}

*/
}


function Retroceder()
{
	window.history.go(-1);
}

function abrir_personajes()
{
	//window.open('personajes_destacados.html', null,'height=380, width=570, menubar=no, titlebar=yes, toolbar=no, status=no');
	window.location.href = 'personajes_destacados.html';
}

function Abrir_Popup(url)
{
//	window.open(url, null,'height=380, width=570, menubar=no, titlebar=yes, toolbar=no, status=no');
	window.location.href = url;

}
