<!--
var titulopordefecto = ":: Corporación de Turismo del Estado Bolívar ::"; 
var ventana;
var cont=0;

function afotos(cual,titulo)
{
if(cont==1){ventana.close();ventana=null}
if(titulo==null){titulo=titulopordefecto}
ventana=window.open('','ventana','resizable=yes,scrollbars=no')
ventana.document.write('<html><head><title>' + titulo + '</title></head><body style="overflow:hidden" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no" onUnload="opener.cont=0"><img src="' + cual + '" onLoad="opener.redimensionar(this.width, this.height)">');
ventana.document.close();
cont++;
}
function redimensionar(ancho, alto)
{
ventana.resizeTo(ancho+12,alto+28);
ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2); //centra la ventana. Eliminar si no se quiere centrar el popup
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
//-->
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(selObj,restore){ //v3.0
    eval("parent.frames['mainFrame']"+".location='"+selObj.options[selObj.selectedIndex].value+"'"); 
    if (restore) selObj.selectedIndex=0; 
}

function MM_jumpMenuParent(selObj,restore){ //v3.0
    eval("parent"+".location='"+selObj.options[selObj.selectedIndex].value+"'"); 
    if (restore) selObj.selectedIndex=0; 
}

function year(){
	var dateObj=new Date(document.lastModified) 
	var year=dateObj.getFullYear()
	document.write(year) 
}

function nueva_ventana(mypage,w,h,barra){
	LeftPosition=(screen.width)?(screen.width-w)/2:100;
	TopPosition=(screen.height)?(screen.height-h)/2:100;
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+barra+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	window.open(mypage,"",settings);
}

function imagen_completa(imagen,w,h,barra) {
	var newWin
	LeftPosition=(screen.width)?(screen.width-w)/2:100;
	TopPosition=(screen.height)?(screen.height-h)/2:100;
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+barra+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
  	newWin = window.open("","",settings)
  	newWin.document.write("<html><head><title>CVG La Voz de Guayana 89.7 FM ... Su Emisora Cultural y Educativa</title>\n")
	newWin.document.write("<link href='../../files/style.css' rel='stylesheet' type='text/css'></head>\n")
  	newWin.document.write("<body style='scrollbar-track-color: #FFFFFF;' bottomMargin=0 leftMargin=0 topMargin=0 marginheight='0' marginwidth='0'>\n")
  	newWin.document.write("<table width='100%' height='100%' border='0' align='center' cellpadding='0' cellspacing='0'>\n")
  	newWin.document.write("<tr><td align='center' valign='middle'>\n");
  	newWin.document.write("<img src='" + imagen + "'></td></tr></table>\n");
  	newWin.document.write("</body></html>\n")
  	newWin.document.close()
}
function ver_imagen(foto) {
	window.open(foto,"verfoto","toolbar=no,directories=no,menubar=no,scrollbars=no, width=780,height=490");
}
function favoritos(){
	var direccion = "http://www.lavozdeguayana.com"
	var titulo = "CVG La Voz de Guayana 89.7 FM"
	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
		window.external.AddFavorite(direccion, titulo);
	}
}
function borrar(form){
	if(form.first_click.value==0){
		form.correoe.value="";
		form.sn.value=0;
		form.first_click.value=1;
	}
}
function enviar(form){
	if(checkEmail(form)){
		alert("Gracias por suscribirse!")
		form.sn.value=1;
		form.submit();
	}
}
function checkEmail(form) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.correoe.value)){
		return (true)
	}
	alert("Dirección de correo inválida, por favor revísela e intente nuevamente!")
	return (false)
}
function openNewWindow(URLtoOpen, windowName, windowFeatures) { 
	newWindow=window.open(URLtoOpen, windowName, windowFeatures); 
}
function comprobacion(forma){
if(forma.empresa.value=="" || forma.telefono.value=="" || forma.representante.value=="" || forma.email.value==""){
alert("Alguno de los campos requeridos no fué llenado, Por favor revise los datos suministrados y luego presione el botón Enviar. (Los campos requeridos se encuentran marcados por un asterisco)")}
	else{
		forma.submit()
	}
}
function mmLoadMenus() {
  if (window.mm_menu_0214112116_0) return;
  window.mm_menu_0214112116_0 = new Menu("root",177,19,"Verdana, Arial, Helvetica, sans-serif",11,"#0096bd","#ffffff","#c5f1fa","#0096bd","right","middle",4,0,1000,1,0,true,true,true,0,false,true);
  mm_menu_0214112116_0.addMenuItem("Cultura y Educación ::","window.open('corporativa/principios_cultura.php', '_parent');");
  mm_menu_0214112116_0.addMenuItem("Información ::","window.open('corporativa/principios_informacion.php', '_parent');");
  mm_menu_0214112116_0.addMenuItem("Opinión y Participación ::","window.open('corporativa/principios_opinion.php', '_parent');");
  mm_menu_0214112116_0.addMenuItem("Música y Entrenimiento ::","window.open('corporativa/principios_m.php', '_parent');");
   mm_menu_0214112116_0.fontWeight="bold";
   mm_menu_0214112116_0.hideOnMouseOut=true;
   mm_menu_0214112116_0.menuBorder=1;
   mm_menu_0214112116_0.menuLiteBgColor='#c5f1fa';
   mm_menu_0214112116_0.menuBorderBgColor='#0096bd';
   mm_menu_0214112116_0.bgColor='#c5f1fa';
  window.mm_menu_0214112116_1 = new Menu("root",177,19,"Verdana, Arial, Helvetica, sans-serif",11,"#0096bd","#ffffff","#c5f1fa","#0096bd","right","middle",4,0,1000,1,0,true,true,true,0,false,true);
  mm_menu_0214112116_1.addMenuItem("Tecnología de Punta ::","window.open('corporativa/fortalezas_tecnologia.php', '_parent');");
  mm_menu_0214112116_1.addMenuItem("Recursos Humanos ::","window.open('corporativa/fortalezas_recursos.php', '_parent');");
  mm_menu_0214112116_1.addMenuItem("La Radio como Medio ::","window.open('corporativa/fortalezas_medio.php', '_parent');");
  mm_menu_0214112116_1.addMenuItem("Lenguaje Radiofónico ::","window.open('corporativa/fortalezas_lenguaje.php', '_parent');");
   mm_menu_0214112116_1.fontWeight="bold";
   mm_menu_0214112116_1.hideOnMouseOut=true;
   mm_menu_0214112116_1.menuBorder=1;
   mm_menu_0214112116_1.menuLiteBgColor='#c5f1fa';
   mm_menu_0214112116_1.menuBorderBgColor='#0096bd';
   mm_menu_0214112116_1.bgColor='#c5f1fa';

  mm_menu_0214112116_1.writeMenus();
}
function fecha_actual(){
	var months=new Array(13);
months[1]="Enero";
months[2]="Febrero";
months[3]="Marzo";
months[4]="Abril";
months[5]="Mayo";
months[6]="Junio";
months[7]="Julio";
months[8]="Agosto";
months[9]="Septiembre";
months[10]="Octubre";
months[11]="Noviembre";
months[12]="Diciembre";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000) 
year = year + 1900; 

//Get Time
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
if (timeValue == "0") timeValue = 12;
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += (hours >= 12) ? " pm" : " am"

//Get Day
var days=new Array(7);
days[0]="Domingo";
days[1]="Lunes";
days[2]="Martes";
days[3]="Miércoles";
days[4]="Jueves";
days[5]="Viernes";
days[6]="Sabado";
var lday=days[time.getDay()];
document.write(lday + " "   + date + " de " + lmonth + " de " + year + " :: " + timeValue);
}
function reapply(){
setTimeout("slideit()",3500)
return true
}
window.onerror=reapply
var image1=new Image()
image1.src="images/banner.jpg"
var image2=new Image()
image2.src="images/banner_1.jpg"
var image3=new Image()
image3.src="images/"
var image4=new Image()
image4.src="images/"
//var image5=new Image()
//image5.src="images/banner01.gif"
//cambia el número de imagenes
var number_of_images=4
//cambia la velocidad en segundos
var speed=3
var step=1
var whichimage=1
function slideit(){
if (!document.images)
return
if (document.all)
slide.filters.blendTrans.apply()
document.images.slide.src=eval("image"+step+".src")
if (document.all)
slide.filters.blendTrans.play()
whichimage=step
if (step<number_of_images)
step++
else
step=1
if (document.all)
setTimeout("slideit()",speed*1000+3500)
else
setTimeout("slideit()",speed*1000)
}
function slidelink(){
/*if (whichimage==1)
window.location="#"
else if (whichimage==2)
window.location="#"
else if (whichimage==3)
window.location="#"
else if (whichimage==4)
window.location="#"
else if (whichimage==5)
window.location="#"*/
}
if(document.images) { 
		currentslide=1; 
		maxslides=5; 
		slide = new Array(maxslides+1); 
		thumb = new Array(maxslides+1); 
		for(var n=1;n<=maxslides;n++) { 
			slide[n]=new Image(80,240); 
			slide[n].src='../DI_Imagenes/DI_Fotos_Hoteles/slide_'+n+'.jpg'; 
		} 
		for(var n=1;n<=maxslides;n++) { 
			thumb[n]=new Image(80,60); 
			thumb[n].src='../DI_Imagenes/DI_Fotos_Hoteles/thumb_'+n+'.jpg'; 
		} 
	} 
	
	function prevSlide() { 
		if(document.images) { 
			currentslide--; 
			if(currentslide<1) currentslide=maxslides; 
			document.images['slide'].src=thumb[currentslide].src; 
		} 
	} 


	function nextSlide() { 
		if(document.images) { 
			currentslide++; 
			if(currentslide>maxslides) currentslide=1; 
			document.images['slide'].src=thumb[currentslide].src; 
		} 
	} 
function showFullSize(){ 
	openPictureWindow('../DI_Imagenes/DI_Fotos_Hoteles/'+currentslide+'.jpg', 250, 166, 'Full Size Image'); 
} 
function openPictureWindow(imageName,imageWidth,imageHeight,alt) 
{ 
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight); 
	newWindow.document.open(); 
	newWindow.document.write('<HTML><TITLE>'+alt+'</TITLE><BODY bgcolor="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" onBlur="self.close()">'); 
	newWindow.document.write('<IMG SRC='+imageName+' WIDTH='+imageWidth+' HEIGHT='+imageHeight+' ALT="'+alt+'">'); 
	newWindow.document.write('</BODY></HTML>'); 
	newWindow.document.close(); 
	newWindow.focus(); 
} 
