function setCookie(name, value, expires, path, domain, secure)
{
  document.cookie =
    name+"="+escape(value)+
    (expires ? "; expires="+expires.toGMTString() : "")+
    (path    ? "; path="   +path   : "")+
    (domain  ? "; domain=" +domain : "")+
    (secure  ? "; secure" : "");
}

function GetCookie (name, InCookie) {
	var prop = name + "="; // propiedad buscada
	var plen = prop.length;
	var clen = InCookie.length;
	var i=0;
	if (clen>0) { // Cookie no vacío
		i = InCookie.indexOf(prop,0); // aparición de la propiedad
		if (i!=-1) { // propiedad encontrada
			// Buscamos el valor correspondiente
			j = InCookie.indexOf(";",i+plen);
			if(j!=-1) // valor encontrado
				return unescape(InCookie.substring(i+plen,j));
			else //el último no lleva ";"
				return unescape(InCookie.substring(i+plen,clen));
		}
		else
			return "";
	}
	else
		return "";
}

if(document.referrer.indexOf("estudiounoltda.com",0)=="-1"){
	
	if(document.referrer!=""){
		setCookie("url", document.referrer, new Date(Date.parse(new Date())+86400));
	}
}
/*if(document.referrer==""){
	alert(document.referrer);
setCookie("url", "","");
}*/

function inicio()
{

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="766" height="239">');
document.write('<param name="movie" value="http://www.estudiounoltda.com/flash/inicio.swf">'); 
document.write('<param name="quality" value="high">');
document.write('<param name="menu" value="false">');
document.write('<!--[if !IE]> <-->');
document.write('<object data="http://www.estudiounoltda.com/flash/inicio.swf" width="766" height="239" type="application/x-shockwave-flash">');
document.write(' <param name="quality" value="high">');
document.write('<param name="menu" value="false">');
document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">');
document.write('FAIL (the browser should render some flash content, not this).');
document.write('</object>');
document.write('<!--> <![endif]-->');
document.write('</object>');
}
function quienes_somos()
{

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="766" height="239">');
document.write('<param name="movie" value="http://www.estudiounoltda.com/flash/nosotros.swf">'); 
document.write('<param name="quality" value="high">');
document.write('<param name="menu" value="false">');
document.write('<!--[if !IE]> <-->');
document.write('<object data="http://www.estudiounoltda.com/flash/nosotros.swf" width="766" height="239" type="application/x-shockwave-flash">');
document.write(' <param name="quality" value="high">');
document.write('<param name="menu" value="false">');
document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">');
document.write('FAIL (the browser should render some flash content, not this).');
document.write('</object>');
document.write('<!--> <![endif]-->');
document.write('</object>');
}
function productos()
{

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="766" height="239">');
document.write('<param name="movie" value="http://www.estudiounoltda.com/flash/productos.swf">'); 
document.write('<param name="quality" value="high">');
document.write('<param name="menu" value="false">');
document.write('<!--[if !IE]> <-->');
document.write('<object data="http://www.estudiounoltda.com/flash/productos.swf" width="766" height="239" type="application/x-shockwave-flash">');
document.write(' <param name="quality" value="high">');
document.write('<param name="menu" value="false">');
document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">');
document.write('FAIL (the browser should render some flash content, not this).');
document.write('</object>');
document.write('<!--> <![endif]-->');
document.write('</object>');
}
function servicios()
{

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="766" height="239">');
document.write('<param name="movie" value="http://www.estudiounoltda.com/flash/servicios.swf">'); 
document.write('<param name="quality" value="high">');
document.write('<param name="menu" value="false">');
document.write('<!--[if !IE]> <-->');
document.write('<object data="http://www.estudiounoltda.com/flash/servicios.swf" width="766" height="239" type="application/x-shockwave-flash">');
document.write(' <param name="quality" value="high">');
document.write('<param name="menu" value="false">');
document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">');
document.write('FAIL (the browser should render some flash content, not this).');
document.write('</object>');
document.write('<!--> <![endif]-->');
document.write('</object>');
}
function descargas()
{

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="766" height="239">');
document.write('<param name="movie" value="http://www.estudiounoltda.com/flash/descargas.swf">'); 
document.write('<param name="quality" value="high">');
document.write('<param name="menu" value="false">');
document.write('<!--[if !IE]> <-->');
document.write('<object data="http://www.estudiounoltda.com/flash/descargas.swf" width="766" height="239" type="application/x-shockwave-flash">');
document.write(' <param name="quality" value="high">');
document.write('<param name="menu" value="false">');
document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">');
document.write('FAIL (the browser should render some flash content, not this).');
document.write('</object>');
document.write('<!--> <![endif]-->');
document.write('</object>');
}
function clientes()
{

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="766" height="239">');
document.write('<param name="movie" value="http://www.estudiounoltda.com/flash/clientes.swf">'); 
document.write('<param name="quality" value="high">');
document.write('<param name="menu" value="false">');
document.write('<!--[if !IE]> <-->');
document.write('<object data="http://www.estudiounoltda.com/flash/clientes.swf" width="766" height="239" type="application/x-shockwave-flash">');
document.write(' <param name="quality" value="high">');
document.write('<param name="menu" value="false">');
document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">');
document.write('FAIL (the browser should render some flash content, not this).');
document.write('</object>');
document.write('<!--> <![endif]-->');
document.write('</object>');
}
function contactar()
{

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="766" height="239">');
document.write('<param name="movie" value="http://www.estudiounoltda.com/flash/contactar.swf">'); 
document.write('<param name="quality" value="high">');
document.write('<param name="menu" value="false">');
document.write('<!--[if !IE]> <-->');
document.write('<object data="http://www.estudiounoltda.com/flash/contactar.swf" width="766" height="239" type="application/x-shockwave-flash">');
document.write(' <param name="quality" value="high">');
document.write('<param name="menu" value="false">');
document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">');
document.write('FAIL (the browser should render some flash content, not this).');
document.write('</object>');
document.write('<!--> <![endif]-->');
document.write('</object>');
}
