// JavaScript Document
<!--//--><![CDATA[//><!--
				  
	//-----------------------------------------------
	// Disables iframe
	//-----------------------------------------------

		function breakout_of_frame()
		{
		  if (top.location != location) {
			top.location.href = document.location.href ;
		  }
		}
		breakout_of_frame();
				  
	//-----------------------------------------
	// used for link confirmation, links
	// that leave FEBCO
	//-----------------------------------------
				  
		function confirm_link(){
			return confirm('You are now leaving FEBCO, please click ok to proceed.');	
		}
		
	//-----------------------------------------
	// toggle country select dropdown open/closed
	//-----------------------------------------
		
		function toggleLayer(whichLayer){
			if (document.getElementById){
				// this is the way the standards work
				var style2 = document.getElementById(whichLayer).style;
				style2.display = style2.display? "":"block";
			}else if (document.all){
				// this is the way old msie versions work
				var style2 = document.all[whichLayer].style;
				style2.display = style2.display? "":"block";
			}else if (document.layers){
				// this is the way nn4 works
				var style2 = document.layers[whichLayer].style;
				style2.display = style2.display? "":"block";
			}
		}
		
	//-----------------------------------------------
	// Generic Popup
	//-----------------------------------------------
	
		function popUp(URL,width,height) {
			day = new Date();
			id = day.getTime();
			eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=" + width + ",height=" + height + "');");
		}

	//-----------------------------------------
	// used for dropdowns IE6 & 7
	//-----------------------------------------
	
		function startList() {
			
			if (document.all&&document.getElementById) {
				navRoot = document.getElementById("nv_links");
				for (i=0; i<navRoot.childNodes.length; i++) {
					node = navRoot.childNodes[i];
					if (node.nodeName=="LI") {
						node.onmouseover=function() {
							this.className+=" over";
						}
						node.onmouseout=function() {
							this.className=this.className.replace(" over", "");
						}
					}
				}
			}
		}
		
	//-----------------------------------------
	// used for preload of background nav elements
	//-----------------------------------------
		
	function 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=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];}}
	}
		

//--><!]]>

