// JavaScript Document
function ini() {
 document.getElementById("contenido").height =  window.frames.contenido.document.body.scrollHeight;
}
var Hoy = new Date();
function Reloj(){ 
    Hora = Hoy.getHours();
    Minutos = Hoy.getMinutes();
    Segundos = Hoy.getSeconds(); 
    if (Hora<=9){ Hora = "0" + Hora; }
    if (Minutos<=9) {Minutos = "0" + Minutos; }
    if (Segundos<=9) {Segundos = "0" + Segundos;} 
	var diadehoy = Hoy.getDate();
    var Dia = new Array("Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado", "Domingo"); 
    var Mes = new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"); 
    var Anio = Hoy.getFullYear();
    var Fecha = "<span class='titulos'>Hoy:</span> " + Dia[Hoy.getDay()] + ", " + Hoy.getDate() + " de " + Mes[Hoy.getMonth()] + " de " + Anio + ", a las "; 
    var Script, Total;

    Script = Fecha + Hora + ":" + Minutos + ":" + Segundos +"<br />";
	document.getElementById("Fecha_Reloj").innerHTML=Script;
    Hoy.setSeconds(Hoy.getSeconds() +1);
s
    setTimeout("Reloj()",1000);
}
$(document).ready(function(e) {
$("#texarriba").cycle({
	fx:'fade',
	speed:3000
	});
$("#ayuda").cycle({
	fx:'fade',
	speed:4000
	});
$("#manualdsx").cycle({
	fx:'fade',
	speed:2000
	});
$("#notianim").cycle({
	fx:'fade',
	speed:3000
	});

$("#logorfl").click(
function(){
location.href="http://www.fundacionreflejosdevenezuela.com";
	}).hover(function(){
		$(this).css("cursor","pointer")},
		function(){
		$(this).css("cursor","auto")
		})
$("#manualdsx").click(
function(){
location.href="manual.php";
	}).hover(function(){
		$(this).css("cursor","pointer")},
		function(){
		$(this).css("cursor","auto")
		})
$("#miembros").click(
function(){
location.href="miembros.php";
	}).hover(function(){
		$(this).css("cursor","pointer")},
		function(){
		$(this).css("cursor","auto")
		})
		
$("#radio").click(
function(){
location.href="radio.php";
 var caracteristicas = "height=30,width=620,resizable=no,scrollbars=no,location=no, menubar=no";
        nueva=window.open("reproradio.php", 'Popup', caracteristicas);
	}).hover(function(){
		$(this).css("cursor","pointer")},
		function(){
		$(this).css("cursor","auto")
		})
		
$("#ayuda").click(
function(){
location.href="ayuda.php";
	}).hover(function(){
		$(this).css("cursor","pointer")},
		function(){
		$(this).css("cursor","auto")
		})
		
		
$(".boton").hover(
function(){
	var ancho= $(this).width()-2;
	$(this).css({"background-image":"url(imagenes/boton2.png)","background-repeat":"repeat-x","background-color":"#fff6e6","color":"#663300","cursor":"pointer"} );
	
	
},
function(){
		var ancho= $(this).width()-2;
	$(this).css({"background-image":"url(imagenes/boton.png)","background-repeat":"repeat-x","background-color":"#996600","color":"#ffffff","cursor":"auto", "height":"20px"})
	}
)
$("#notindex").cycle();

//botones de proyectos
var cuerpo=$("#cuerpo").position();
var botonpro = $("#botoneraproyectos");
var proyectos = $("#proyectos");
var botonizq = cuerpo.left+100;
botonpro.css({"left":botonizq})
proyectos.hover(
function(){
	botonpro.slideDown("slow");
	}
);
$("#botonup").hover(
function(){
	botonpro.slideUp("slow");}
);
$("#tienda").hover(
function(){
	botonpro.slideUp("slow");}
);
$("#coordina").hover(
function(){
	botonpro.slideUp("slow");}
);
botonpro.hover(
function(){},
function(){
	botonpro.slideUp("slow");
	}
)
//botones de coordinaciones
var coordina = $("#coordinaciones");
var botocoor = $("#coordina");
var coordizq = cuerpo.left + 220;

coordina.css({"left":coordizq})
botocoor.hover(function(){coordina.slideDown("slow");})
$("#botonup").hover(
function(){
	coordina.slideUp("slow");}
);

$("#proyectos").hover(
function(){
	coordina.slideUp("slow");}
);
$("#coordinaciones").hover(
function(){},
function(){
	coordina.slideUp("slow");}
);

$(".botocoor").hover(
function(){
	$(this).css({"background-color":"#d1ac61","border-radius":"10px"})
	$(this).css("color","#d1ac61")
	},
function(){
	$(this).css("background-color","transparent")
	}
)
$(".botoproy").hover(
function(){
	$(this).css({"background-color":"#d1ac61","border-radius":"10px"})
	$(this).css("color","#d1ac61")
	},
function(){
	$(this).css("background-color","transparent")
	}
)
$('#facebot').hover(
	function(){
$("#coordinaciones").slideUp("slow");
		}
	)

//twitter
$("#tweetts").getTwitter({
					userName: "radioreflejos",
					numTweets: 7,
					loaderText: "Cargando tweets...",
					slideIn: true,
					slideDuration: 750,
					showHeading: false,
					headingText: "Nuevos Tweets",
					showProfileLink: false,
					showTimestamp: true})

$("#videover").fancybox(
		{
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false
	}
	);
$("#charlaback").click(
function(){
	location.href="charlas.php";
	}
)


$('#insisoa').css({display:'none'});
$('#inspdfa').css({display:'none'});



$("#cerrariso").click(
function(){
	$("#insisoa").slideUp('slow');
	})

$("#cerrarpdf").click(
function(){
	$("#inspdfa").slideUp('slow').css({display:'block'});
	})
	


$("#insiso").toggle(
	function(){
	$("#insisoa").slideDown('slow').css({display:'block'});
	},
	function(){
	$("#insisoa").slideUp('slow');
	$("#inspdfa").slideUp('slow');
	})

$("#inspdf").toggle(
	function(){
	$("#inspdfa").slideDown('slow').css({display:'block'});
	$("#insisoa").slideUp('slow');
	},
	function(){
	$("#inspdfa").slideUp('slow');
	})

});

