//funtion to select a menu and go
function jumpPage(newLoc) {
	newPage = newLoc.options[newLoc.selectedIndex].value
	
	if (newPage != "") {
		window.location.href = newPage
	}
}
//end of funtion to select a menu and go

//start function to change image rollovers//

	if (document.images) {
	
		about_us = new Image
		about_us_ro = new Image
		about_us.src = "img/nav/about_us.gif"
		about_us_ro.src = "img/nav/about_us_ro.gif"
		
		products = new Image
		products_ro = new Image
		products.src = "img/nav/products_services.gif"
		products_ro.src = "img/nav/products_services_ro.gif"
		
		offerings = new Image
		offerings_ro = new Image
		offerings.src = "img/nav/offerings.gif"
		offerings_ro.src = "img/nav/offerings_ro.gif"
		
		contact = new Image
		contact_ro = new Image
		contact.src = "img/nav/contact_us.gif"
		contact_ro.src = "img/nav/contact_us_ro.gif"
		
	
	}
	function ImgRoll(imgName,newImg) {
		if (document.images) {
			document[imgName].src= eval(newImg + ".src")
		}
	}
	

//pop up window function//
	
	leftPos = 0
	if (screen) {
		leftPos = screen.width-800
	}

function windowOpener(url,width,height,offsetLeft,menubar) {
		winWidth = 520
		winHeight = 440
		winLeft = leftPos
		winMenu = "no"
		
		if (width) winWidth = width
		if (height) winHeight = height
		if (offsetLeft) winLeft -= offsetLeft
		if (menubar) winMenu = menubar
		
		newWindow = window.open(url, 'newin', 'scrollbars=no,resizable=no,status=no,width='+winWidth+',height='+winHeight+',left='+winLeft+',menubar='+winMenu+',top=100px,'); 
		newWindow.focus();
	}
	
//end of pop up window function//


//layer navigaiton function/

var activeSub=0;
var SubNum=0;

    //global variables

	    var timerID = null;
		var timerOn = false;
		var timecount = 1000;
		var what = null;
		var newbrowser = true;
		var check = false;

    	function init(){
          if (document.layers) {
                        layerRef="document.layers";
                        styleSwitch="";
                        visibleVar="show";
			screenSize = window.innerWidth;
			what ="ns4";


          }else if(document.all){
                        layerRef="document.all";
                        styleSwitch=".style";
                        visibleVar="visible";
			screenSize = document.body.clientWidth + 18;
			what ="ie";

		  }else if(document.getElementById){
                        layerRef="document.getElementByID";
                        styleSwitch=".style";
                        visibleVar="visible";
			what="moz";
		  
		  }else{
			what="none";
			newbrowser = false;
		  }
		  
 
		window.status='Natixis Securities North America Inc.';
		check = true;
  	 	}

	// This Function turns the layers on and off
        function showLayer(layerName){
        	if(check){
        		if (what =="none"){
        			return;
        			}
	        	else if (what == "moz"){
        			document.getElementById(layerName).style.visibility="visible";
        			}
        		else{
                  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
                  }
		 }
        	else {
        		return;}
		}

        function hideLayer(layerName){
        	if(check){
        		if (what =="none"){
        			return;
        			}
        		else if (what == "moz"){
        			document.getElementById(layerName).style.visibility="hidden";
        			}
        		else{
                  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
				}
        
        	}
        	else {
        		return;}
        }

		function hideAll(){
			hideLayer('nav2');
			
			}


		function startTime() {
	        if (timerOn == false) {
                timerID=setTimeout( "hideAll()" , timecount);
                timerOn = true;

	        }

		}


		function stopTime() {
	        if (timerOn) {
    	        clearTimeout(timerID);
                timerID = null;
                timerOn = false;
	        }
		}

		function onLoad(){
			init();
			
			}

//end of layer navigaiton function/






	