// JavaScript Document\


var popUpWin=0;

function popUpWindow(URLStr, left, top, width, height)

{

  if(popUpWin)

  {

    if(!popUpWin.closed) popUpWin.close();

  }

  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');

}



function verPortada(){
	/* var htmlContenido = "";
	 
	 htmlContenido += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='389' height='470' id='FlashIDIntro' title='Bienvenidos a Exponovia Tijuana'>";
	 htmlContenido += "<param name='movie' value='flashfiles/novia_inicial.swf' />";
	 htmlContenido += "<param name='quality' value='high' />";
	 htmlContenido += "<param name='wmode' value='transparent' />";
	 htmlContenido += "<param name='swfversion' value='6.0.65.0' />";
	 htmlContenido += "<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->";
	 htmlContenido += "<param name='expressinstall' value='Scripts/expressInstall.swf' />";
	 htmlContenido += "<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->";
	 htmlContenido += "<!--[if !IE]>-->";
	 htmlContenido += "<object type='application/x-shockwave-flash' data='flashfiles/novia_inicial.swf' width='389' height='470'>";
	 htmlContenido += "<!--<![endif]-->";
	 htmlContenido += "<param name='quality' value='high' />";
	 htmlContenido += "<param name='wmode' value='transparent' />";
	 htmlContenido += "<param name='swfversion' value='6.0.65.0' />";
	 htmlContenido += "<param name='expressinstall' value='Scripts/expressInstall.swf' />";
	 htmlContenido += "<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->";
	 htmlContenido += "<div>";
	 htmlContenido += "<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>";
	 htmlContenido += "<p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a></p>";
	 htmlContenido += "</div>";
	
	
	//document.getElementById("div_contenido").innerHTML(htmlContenido)
	$("#div_contenido").html(htmlContenido)*/
}

function verRevista(){
	
	$.fn.colorbox({
			href:'revista.html',
			opacity:0.5,
			innerWidth:900,
			innerHeight:524		
	});
	
}

function changePage(page){
	$("#div_contenido").load(page);
}

function verPatrocinadores(){
	$.fn.colorbox({
			href:'patrocinadores.php',
			opacity:0.5,
			iframe: true,
			innerWidth:900,
			innerHeight:524		
	});
}

function verMapa(){
	//$("#div_contenido").load("mapa.php");
	$.fn.colorbox({
			href:'mapa.php',
			opacity:0.5,
			iframe: true,
			innerWidth:900,
			innerHeight:524		
	});
}

function verRegistro(){
	$.fn.colorbox({
			href:'registro.php',
			opacity:0.5,
			iframe: true,
			innerWidth:900,
			innerHeight:524		
	});
}


function verDirectorio(){
	$.fn.colorbox({
			href:'directorio.php',
			opacity:0.5,
			iframe: true,
			innerWidth:900,
			innerHeight:524		
	});
}

function verGalerias(){
	$.fn.colorbox({
			href:'galeria.html',
			opacity:0.5,
			iframe: true,
			innerWidth:900,
			innerHeight:524		
	});
}

function verContacto(){
	$.fn.colorbox({
			href:'contacto.php',
			opacity:0.5,
			iframe: true,
			innerWidth:900,
			innerHeight:524		
	});
}

function verGaleriaVestidos(){
	$.fn.colorbox.close()
	$.fn.colorbox({
			href:'galeria_vestidos.php',
			iframe: true,
			opacity:0.5	,
			innerWidth:1024,
			innerHeight:669	
	});
}

function verGaleriaExposicion(){
	$.fn.colorbox.close()
	$.fn.colorbox({
			href:'galeria_exposicion.php',
			opacity:0.5,
			innerWidth:1024,
			innerHeight:669	
	});
}

function abrir_unsuccess(){
	$.fn.colorbox.close()
	$.fn.colorbox({
			href:'contacto_enviar_unsuccess.php',
			opacity:0.5	,
			innerWidth:900,
			innerHeight:524	
	});

}

function abrir_success(){
	$.fn.colorbox.close()
	$.fn.colorbox({
			href:'contacto_enviar_success.php',
			opacity:0.5	,
			innerWidth:900,
			innerHeight:524	
	});

}

function cargar_fondo(){
	
	var html = "";
	var eof = "\r\n";
	html += "<object id='FlashID_BK' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='100%' height='100%'>" + eof;
    html += "  <param name='movie' value='flashfiles/nuevo_fondo.swf' />" + eof;
    html += "  <param name='quality' value='high' />" + eof;
    html += "  <param name='wmode' value='opaque' />" + eof;
    html += "  <param name='swfversion' value='6.0.65.0' />" + eof;
    html += "  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->" + eof;
    html += "  <param name='expressinstall' value='Scripts/expressInstall.swf' />" + eof;
    html += "  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->" + eof;
    html += "  <!--[if !IE]>-->" + eof;
    html += "   <object type='application/x-shockwave-flash' data='flashfiles/nuevo_fondo.swf' width='100%' height='100%'>" + eof;
    html += "    <!--<![endif]-->" + eof;
    html += "    <param name='quality' value='high' />" + eof;
    html += "    <param name='wmode' value='opaque' />" + eof;
    html += "    <param name='swfversion' value='6.0.65.0' />" + eof;
    html += "    <param name='expressinstall' value='Scripts/expressInstall.swf' />" + eof;
    html += "    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->" + eof;
    html += "    <div>" + eof;
    html += "      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>" + eof;
    html += "      <p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' width='112' height='33' /></a></p>" + eof;
    html += "    </div>" + eof;
    html += "    <!--[if !IE]>-->" + eof;
    html += "   </object>" + eof;
    html += "  <!--<![endif]-->" + eof;
    html += " </object>" + eof;
	
	

	$("#div_fondo").html(html)
	
}
