//******************************Drop down menu by http://www.dynamicdrive.com
var zindex=100;  
var ns4=document.layers; 
var ns6=document.getElementById&&!document.all; 
var ie4=document.all; 
var opr=navigator.userAgent.indexOf('Opera'); 
var w = 0;

function blinkIt() {
 if (!document.all) return;
 else {
   for(i=0;i<document.all.tags('blink').length;i++){
      s=document.all.tags('blink')[i];
      s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
   }
 }
}
setTimeout("setInterval('blinkIt()',500)",2000);


function dropit(e,whichone){
	curmenuID=ns6? document.getElementById(whichone).id : eval(whichone).id;
	if (window.themenu&&themenu.id!=curmenuID) themenuStyle.visibility=ns4?'hide' : 'hidden';
	
	themenu=ns6? document.getElementById(whichone): eval(whichone);
	themenuStyle=(ns6||ie4)? themenu.style : themenu;
	
	if (navigator.appName.toLowerCase().indexOf('microsoft') != -1) { w = document.body.clientWidth; } else	{ w = self.innerWidth;}
	
	themenuStyle.top=ns6||ns4? e.pageY-10 : event.clientY-event.offsetY-3;
	themenuStyle.left=ns6||ns4? 130 : 130;
	
	themenuoffsetX=(ie4&&opr==-1)? document.body.scrollLeft : 0;
	themenuoffsetY=(ie4&&opr==-1)? document.body.scrollTop : 0;
	
	hiddenconst=(ns6||ie4)? 'hidden' : 'hide';
	if (themenuStyle.visibility==hiddenconst){ themenuStyle.visibility=(ns6||ie4)? 'visible' : 'show'; themenuStyle.zIndex=zindex++;
	}else hidemenu(); return false;
}						
function hidemenu(){
	if ((ie4||ns6)&&window.themenu){ themenuStyle.visibility='hidden';}
	else if (ns4){themenu.visibility='hide'}
}
if (ie4||ns6) document.onclick=hidemenu;					

//******************************HeadLineNews
var barwidth='98%' //Enter main bar width in px or %
var setdelay=3000 //Enter delay between msgs, in mili-seconds
var mouseover_color='#EEEEEE' //Specify highlight color
var mouseout_color='#FFFFFF' //Specify default color
var count=0;

function init_news_bar(){ if (msgs[count] != '')document.news_bar.news_bar_but.value=msgs[count];	}
//moveit function by Dynamicdrive.com
function moveit(how){
	if (how==1){ //cycle foward
		if (count<msgs.length-1) count++;
		else count=0;
	}else{ //cycle backward
		if (count==0) count=msgs.length-1;
		else count--;
	}
	document.news_bar.news_bar_but.value=msgs[count];
}									
function goURL(){if (msg_url[count] != "") location.href=msg_url[count];}									

//******************************Personal
function ventana(x,y,nombre,url){
	var xwinfeatures = 'width=' + x + ',height=' + y + ',scrollbars=1,resizable=0,toolbar=0,location=0,menubar=0,status=0,directories=0,left=' + ((screen.width - x)/2)  + ',top=' + ((screen.height - y)/2);
	xwin = window.open(url,nombre,xwinfeatures);
}
function ventanares(x,y,nombre,url){
	var xwinfeatures = 'width=' + x + ',height=' + y + ',scrollbars=1,resizable=1,toolbar=0,location=0,menubar=0,status=0,directories=0,left=' + ((screen.width - x)/2)  + ',top=' + ((screen.height - y)/2);
	xwin = window.open(url,nombre,xwinfeatures);
}