
function open_win(win)
{
window.open(win,"_blank","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=yes, width=700, height=200")
}

var newwindow = ''
function newWindow(url,arg1,arg2) {
//args are not used, but are there for tinyMCE onclick event
if (newwindow.location && !newwindow.closed) {
    newwindow.location.href = url;
    newwindow.focus(); }
else {
    newwindow=window.open(url,'htmlname','width=700,height=200,resizable=1,scrollbars = yes');
		
		}
return false;
}


//Make an element visible 		
function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible"

}
//Hide an element
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden"
}


//Alternate styling see version 2


//Change style in mouse over
function mouseIn(ele){ 
 chgStyle(ele,'#93a8ca','#AAAAD4','solid','#000099','12px') 
}
//change style on mouse out
function mouseOut(ele){
 chgStyle(ele,'#013358','#ffffff','none','#000000','12px')
}
//Change style in mouse over
function mouseInSub(ele){ 
 chgStyle(ele,'#ffffff','#AAAAD4','none','#000000','10px') 
}
//change style on mouse out
function mouseOutSub(ele){
 chgStyle(ele,'#000000','#AAAAD4','none','#000000','10px')
}


//Change the text colour and background colour of an element - note that the style 
//properties are javascript- not CSS
		function chgStyle(element,col,bgcol,style,bordercol,font_size){  		 
		 if(document.getElementById){
		 try{ 	     
		  document.getElementById(element).style.color = col;
			//document.getElementById(element).style.backgroundColor = bgcol;
	//		document.getElementById(element).style.fontSize = font_size;
			
	//	document.getElementById(element).style.borderRightStyle = style;
	//		document.getElementById(element).style.borderRightColor = bordercol;
	//		document.getElementById(element).style.borderRightWidth = "2px";
	//		document.getElementById(element).style.borderBottomStyle = style;
	//    document.getElementById(element).style.borderBottomColor = bordercol;
	//    document.getElementById(element).style.borderBottomWidth = "2px";
	
			}
			catch(e){alert("error is : " +e)}
		 }
		}
//Change style in mouse over for home page news items
function mouseInNews(ele){ 
       
			document.getElementById(ele).style.backgroundColor = '#E7E8FA';
			
			document.getElementById(ele).style.fontSize = '11px';
						
}

//change style on mouse out
function mouseOutNews(ele){
 document.getElementById(ele).style.backgroundColor = '#ffffff';
			
			document.getElementById(ele).style.fontSize = '11px';
}		

//Change style in mouse over for newsletter navigation
function mouseInNLNav(ele){ 
 
      document.getElementById(ele).style.color = '#ffffff';
				
			document.getElementById(ele).style.fontSize = '10px';
			
			
}

//change style on mouse out
function mouseOutNLNav(ele){
 			document.getElementById(ele).style.color = '#000000';
 							
			document.getElementById(ele).style.fontSize = '11px';
}		
/**/
//Change style in mouse over for faculty news navigation items
function mouseInNewsNav(ele){ 
       
			document.getElementById(ele).style.backgroundColor = '#93a8ca';
			document.getElementById(ele).style.color = '#000000';
			
						
}

//change style on mouse out
function mouseOutNewsNav(ele){
 document.getElementById(ele).style.backgroundColor = '#93a8ca';
	document.getElementById(ele).style.color = '#ffffff';		
			
}	

function go_page()
{
var box,destination;
 try{
	box = document.forms[0].newsletters;
	destination = box.options[box.selectedIndex].value;
	
							if (destination){ location.href = destination;}
							else{	 alert("Select an item from the list");}
		}catch(e){
		  alert("Error: " + e);
	}
}