﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Cuevana | Reproducir video</title>
<link rel="stylesheet" type="text/css" href="http://sc.cuevana.tv/css/getplugin.css" />
<script type="text/javascript" src="http://sc.cuevana.tv/js/jquery.js"></script>
<script type="text/javascript">
function goSource(key,host) {
	var e = $("#error");
	if ($.browser.msie && host!='megaupload' && host!='bitshare' && host!='filefactory') {
		e.html("Lo sentimos, esta fuente no está disponible para tu navegador. Te recomendamos usar Google Chrome, Firefox o Safari.");
	} else {
		e.html("Cargando fuente seleccionada...");
		$.ajax({
			url: 'source_get',
			type: 'POST',
			data: {key:key,host:host,vars:"&id=997&subs=&tipo=&amp;sub_pre="},
			success: function(u) {
				e.html("Fuente cargada con éxito. Redirigiendo...");
				window.location = u;
			},
			error: function() {
				e.html("Ha ocurrido un error. Por favor, intenta nuevamente.");
			}
		});
	}
}
</script>
</head>

<body>
<div style="position:absolute;width:640px;height:360px;background-color:#000;text-align:center;">
<div style="padding-top:40px;">
<h2>Elige una fuente</h2>
<div style="margin-bottom:20px">La fuente determina desde cual servidor se va a reproducir el video.</div>
<div id="sources">
<ul>
	<li style="width:33.333333333333%;margin-top:10px;"><a href="#" id="f_0"><img src="servers/img/megaupload.jpg" height="130" width="130" border="0" /></a></li>
	<script type="text/javascript">
	$("#f_0").click(function() {
		goSource('3d2699003e88cd6df678fa07e5ea9402','megaupload');
		return false;
	});
	</script>
		<li style="width:33.333333333333%;margin-top:10px;"><a href="#" id="f_1"><img src="servers/img/bitshare.jpg" height="130" width="130" border="0" /></a></li>
	<script type="text/javascript">
	$("#f_1").click(function() {
		goSource('5761f717dfc394a6a9895a32c46d5689','bitshare');
		return false;
	});
	</script>
		<li style="width:33.333333333333%;margin-top:10px;"><a href="#" id="f_2"><img src="servers/img/filefactory.jpg" height="130" width="130" border="0" /></a></li>
	<script type="text/javascript">
	$("#f_2").click(function() {
		goSource('c69460cc3e542c8a707d428f1d4c854d','filefactory');
		return false;
	});
	</script>
	<div style="clear:left"></div>
</ul>
</div>
<div id="error"></div>

</div>
</div>
</body>
</html>