function submit_form(){

document.mailsign.submit();
	
}

function show_news(){
	
var width = 750;
var height = 600;

var OpenWin = this.open('news.php', "popupWindow", "toolbar=no, menubar=no ,location=no, scrollbars=yes, resizable=no, width=" + width + ", height=" + height + ", top=" + (screen.height/2 - height/2) + ", left=" + (screen.width/2 - width/2) + "\"");	
	
}

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_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_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];}
}


currentpage = "index";

links_sub = new Array();
  links_sub[0] = "menu3_drop1"
  links_sub[1] = "menu3_drop3"

links = new Array();
	links[0] = "menu3"

	
	is = new browserCheck();
	
	myObj = new Object();
	imageObj = new Object();
	for(i=0;i<links.length; i++){
		imageObj[links[i]+'_ro']=new Image();
		imageObj[links[i]+'_ro'].src='images/'+links[i]+'_ro.gif';
		imageObj[links[i]+'_off']= new Image();
		imageObj[links[i]+'_off'].src='images/'+links[i]+'.gif';
		imageObj[links[i]+'_select']= new Image();
		imageObj[links[i]+'_select'].src='images/nav_'+links[i]+'_selected.gif';

	}
	
	

	for(i=0;i<links_sub.length; i++){
		imageObj[links_sub[i]+'_ro']=new Image();
		imageObj[links_sub[i]+'_ro'].src='images/'+links_sub[i]+'_ro.gif';
		imageObj[links_sub[i]+'_off']= new Image();
		imageObj[links_sub[i]+'_off'].src='images/'+links_sub[i]+'.gif';
		imageObj[links_sub[i]+'_select']= new Image();
		imageObj[links_sub[i]+'_select'].src='images/nav_'+links_sub[i]+'_selected.gif';

	}
	
	function browserCheck() {
		this.ns4 = (document.layers)? true:false;
		this.ie = (document.all&&(!window.opera))? true:false;
		this.dom = (document.getElementById)? true:false;
		this.ns6 = (window.sidebar)? true:false;
		this.moz = (window.sidebar||navigator.userAgent.indexOf('Gecko')!=-1)? true:false;
		this.opera = (window.opera)? true:false;
		this.mac = (navigator.userAgent.indexOf('Mac')!=-1)? true:false;
	}

	function getObjectName(nameOfObject){
		Obj = null;
		
		if (is.ie) Obj = document.all[nameOfObject];
		else if (is.dom) Obj = document.getElementById(nameOfObject);
		else if (is.ns4) findLayer(window,nameOfObject);
		
		if (!Obj || ( is.ns4 && Obj == window ) ) Obj = "Object not found"
		
		return Obj;
	}
	
	function getObjectStyle(nameOfObject){
		
		Obj = null;
		
		if (is.ie && document.all[nameOfObject] != null) Obj = document.all[nameOfObject].style;
		else if (is.dom && document.getElementById(nameOfObject) != null) Obj = document.getElementById(nameOfObject).style;
		else if (is.ns4) findLayer(window,nameOfObject);
		
		return Obj;
	}
	
	function findLayer(node,nameOfObject) {
	
		if ( node.name == nameOfObject ) Obj = node;
		
		for ( var counter = 0; counter < node.document.images.length; counter++ ) {
			if (node.document.images[counter].name==nameOfObject) Obj = node.document.images[counter];
		}
		
		for ( var i = 0; i < node.document.layers.length; i++ ) {
			findLayer(node.document.layers[i],nameOfObject);
		}
	}
	
	function turnOffOthersNavs(name){
		for(i=0; i<links.length; i++){
			if(name != links[i]){
				if(myObj['timer_'+links[i]]){
					clearTimeout(myObj['timer_'+links[i]]);
				}
				doHide(links[i]);
			}
		}
	}
	
	
    function turnOffOthersNavs_sub(name){
		for(i=0; i<links_sub.length; i++){
			if(name != links_sub[i]){
				if(myObj['timer_'+links_sub[i]]){
					clearTimeout(myObj['timer_'+links_sub[i]]);
				}
				doHide(links_sub[i]);
			}
		}
	}
	
	
	function showNav(name){
		turnOffOthersNavs(name);
		if(myObj['timer_'+name]){
			clearTimeout(myObj['timer_'+name]);
		}
		
		myStyle = getObjectStyle('div_'+name);
		if(myStyle!=null) myStyle.visibility = 'visible';
		//alert(document.images[name]);
		if(document.images[name]){
			document.images[name].src=imageObj[name+'_ro'].src;
		}
		
		
					
	}
	
	function showNav_sub(name){
		turnOffOthersNavs_sub(name);
		if(myObj['timer_'+name]){
			clearTimeout(myObj['timer_'+name]);
		}
		
		myStyle = getObjectStyle('div_'+name);
		if(myStyle!=null) myStyle.visibility = 'visible';
		//alert(document.images[name]);
		if(document.images[name]){
			document.images[name].src=imageObj[name+'_ro'].src;
		}
		
		
					
	}
	
	
	function hideNav(name){
		myObj['timer_'+name] = window.setTimeout("doHide('"+name+"')", 100);
	}
	
	function doHide(name){
		myStyle = getObjectStyle('div_'+name);
		if(myStyle!=null) myStyle.visibility = 'hidden';
		
		if(document.images[name]){
  		 if(name != currentpage)
		  document.images[name].src=imageObj[name+'_off'].src;
		}
	
	}
	
	function changeBg(name, col){
		myStyle = getObjectStyle(name);
		myStyle.backgroundColor = col;
	}
	
	function changeIm(name, state){
		document.images[name].src=imageObj[name+'_'+state].src;
	}
	
	
		function changeColor(name, col){
		
		name.style.backgroundColor = col;
	}