//browser sniffer, determines what css file to load//
browser = navigator.appName;
os = navigator.platform;
ie = "Microsoft Internet Explorer";
netscape = "Netscape";
mac = "MacPPC"


if (browser == netscape) {
   document.write('\<link rel=\"stylesheet\" href=\"/css/cssns.css\"\>');
} else {
   document.write('\<link rel=\"stylesheet\" href=\"/css/cssie.css\"\>');
}
if(os == mac) {
   document.write('\<link rel=\"stylesheet\" href=\"/css/cssmac.css\"\>');
}
//end of browser sniffer, that determines what css file to load//


//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

//function to change image rollovers//
	if (document.images) {
		

		about = new Image
		about_ro = new Image
		about.src = "/images/nav1.gif"
		about_ro.src = "/images/nav1b.gif"

		aboutp = new Image
		aboutp_ro = new Image
		aboutp.src = "/images/nav2.gif"
		aboutp_ro.src = "/images/nav2b.gif"

		
		ixis_derivatives = new Image
		ixis_derivatives_ro = new Image
		ixis_derivatives.src = "/images/nav4.gif"
		ixis_derivatives_ro.src = "/images/nav4b.gif"
		
		ixis_securities = new Image
		ixis_securities_ro = new Image
		ixis_securities.src = "/images/nav3.gif"
		ixis_securities_ro.src = "/images/nav3b.gif"

		ixis_careers = new Image
		ixis_careers_ro = new Image
		ixis_careers.src = "/images/nav5.gif"
		ixis_careers_ro.src = "/images/nav5b.gif"

		

	}
		
	function ImgRoll(imgName,newImg) {
		if (document.images) {
			document[imgName].src= eval(newImg + ".src")
		}
	}
//end of function to change image rollovers//
	
//pop up window function//
	
	leftPos = 0
	if (screen) {
		leftPos = screen.width-586
	}

function windowOpener(url,width,height,offsetLeft,menubar) {
		winWidth = 368
		winHeight = 410
		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=yes,resizable=no,status=no,width='+winWidth+',height='+winHeight+',left='+winLeft+',menubar='+winMenu+',top=200px,'); 
		newWindow.focus();
	}
//end of pop up window function/


//layer navigaiton function/
var activeSub=0;
var SubNum=0;


  //this function reloads the page when the screen is re-sized
  
  function doResize() {
    location.reload()
  }

var is_minor = parseFloat (navigator.appVersion);

 // Work-around Netscape resize bug

if ((browser == netscape) && (is_minor != 4.07)) {
	setTimeout('window.onresize=doResize',500);
	}


    //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 Capital Markets';
		check = true;
  	 	}



//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 Real Estate Capital';
		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('nav1');
			}


		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/
