// Name: Cookie
// Language: JavaScript
// Author: Travis Beckham | squidfingers.com
// Description: Remove anchor outlines from all links in the document
// --------------------------------------------------

function blurAnchors(){
  if(document.getElementsByTagName){
    var a = document.getElementsByTagName("a");
    for(var i = 0; i < a.length; i++){
      a[i].onfocus = function(){this.blur()};
    }
  }
}
window.onload = blurAnchors;


// clamshell menu

/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function resetMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("menu").getElementsByTagName("ol"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

// clear text in the search news box.
	function ClearSearchBy()
		{
		
		if (document.searchnews.search.value == 'search news')
		
			{
			document.searchnews.search.value = '';
			}
		}


//open popups

function openPopup(mySource){
		var sx = 500;
		var sy = 560;
		var posx=(screen.width/2)-(sx/2+15)+30;
		var posy=(screen.height/2)-sy/2-20+30;
		if (document.layers) { posx-=4; posy-=20; }
		var source='../../feedback/' + mySource;
		//alert(source);
		popUp = window.open (source, "Feedback", "resizable=no,scrollbars=0,status=0,location=no,toolbar=no,menubar=no,width="+sx+",height="+sy+",screenX="+posx+",screenY="+posy+",left="+posx+",top="+posy);
	}