	<!-- Begin
	/* This script and many more are available free online at
	The JavaScript Source!! http://javascript.internet.com
	Created by: Ultimater :: http://ultimiacian.tripod.com/
	Add this snippet to the very beginning of your script. */

	if(!document.getElementById){
	if(document.all)
	document.getElementById=function(){
		if(typeof document.all[arguments[0]]!="undefined")
		return document.all[arguments[0]]
		else
		return null
	}
	else if(document.layers)
	document.getElementById=function(){
		if(typeof document[arguments[0]]!="undefined")
		return document[arguments[0]]
		else
		return null
	}
	}
	// End -->

	browserName=navigator.appName;
	browserVer=parseInt(navigator.appVersion);
	
	if (browserVer > 2) {
	
	Home_R = new Image(95, 55);
	Home_R.src="images/Home_R.gif";
	Home_O = new Image(95, 55);
	Home_O.src="images/Home_O.gif";	
	Home_A = new Image(95, 55);
	Home_A.src="images/Home_A.gif";		
		
	AboutUs_R = new Image(114, 55);
	AboutUs_R.src="images/AboutUs_R.gif";
	AboutUs_O = new Image(114, 55);
	AboutUs_O.src="images/AboutUs_O.gif";		
	AboutUs_A = new Image(114, 55);
	AboutUs_A.src="images/AboutUs_A.gif";		
	
	Strategy_R = new Image(112, 55);
	Strategy_R.src="images/Strategy_R.gif";
	Strategy_O = new Image(112, 55);
	Strategy_O.src="images/Strategy_O.gif";
	Strategy_A = new Image(112, 55);
	Strategy_A.src="images/Strategy_A.gif";
		
    Operations_R = new Image(124, 55);
	Operations_R.src="images/Operations_R.gif";
	Operations_O = new Image(124, 55);
	Operations_O.src="images/Operations_O.gif";	
	Operations_A = new Image(124, 55);
	Operations_A.src="images/Operations_A.gif";	
		
    Partners_R = new Image(118, 55);
	Partners_R.src="images/Partners_R.gif";
	Partners_O = new Image(118, 55);
	Partners_O.src="images/Partners_O.gif";		
	Partners_A = new Image(118, 55);
	Partners_A.src="images/Partners_A.gif";		
	
    Community_R = new Image(187, 55);
	Community_R.src="images/Community_R.gif";
	Community_O = new Image(187, 55);
	Community_O.src="images/Community_O.gif";			
	Community_A = new Image(187, 55);
	Community_A.src="images/Community_A.gif";			

	DashImg = new Image(5, 9);
	DashImg.src="images/SideNavDash.gif";
	ClearImg = new Image(5, 9);
	ClearImg.src="images/Clear.gif";
	
	// Operations images
    weyerhaeuser = new Image(310, 217);
	weyerhaeuser.src="images/Operations/weyerhaeuser.jpg";
	
    c_lake = new Image(310, 217);
	c_lake.src="images/Operations/c_lake.jpg";
	
	Core_Area = new Image(310, 217);
	Core_Area.src="images/Operations/Core_Area.jpg";
	
	s_lousiana_ami = new Image(310, 217);
	s_lousiana_ami.src="images/Operations/s_lousiana_ami.jpg";
	
	breton_sound = new Image(310, 217);
	breton_sound.src="images/Operations/breton_sound.jpg";
	
	mississippi_ami = new Image(310, 217);
	mississippi_ami.src="images/Operations/mississippi_ami.jpg";
	
	ops_base = new Image(310, 217);
	ops_base.src="images/Operations/ops_base.jpg";	
	
    Intro = new Image(310, 217);
	Intro.src="images/Operations/ops_base.jpg";	
	
	}
	
	function Dash_Roll(imgName) {
		var el = document.getElementById(imgName);
		if (el != null) {
				el.src = DashImg.src;
		}
	}
		
	function Dash_UnRoll(imgName) {
		var el = document.getElementById(imgName);
		if (el != null) {
				el.src = ClearImg.src;
		}

	}		
	
	function HmPg_Dash_Roll(imgName) {
		var el = document.getElementById(imgName);
		if (el != null) {
				el.src = HmPg_DashImg.src;
		}
	}
		
	function HmPg_Dash_UnRoll(imgName) {
		var el = document.getElementById(imgName);
		if (el != null) {
				el.src = HmPg_ClearImg.src;
		}

	}		
	
	function RollIt(imgName) {
		var el = document.getElementById(imgName);
		el.src = eval(imgName + "_O.src");
	}
	
	function UnRollIt(imgName, RorA) {
		var el = document.getElementById(imgName);
		if (RorA == 'A')
		    { el.src = eval(imgName + "_A.src"); }
		else
		    { el.src = eval(imgName + "_R.src"); }
	}
	
	function RollMiddle(imgName) {
		
		var el = document.getElementById(imgName);
		if (el != null) {
			el.src = eval(imgName + "_O.src");
			if (imgName == 'TB_Image2') { clearTimeout(tmr2); Cnt2 = 0; if (navigator.appName.indexOf("Microsoft") != -1) { el.filters.alpha.opacity = 100 } else { el.style.MozOpacity = 1 } }
			if (imgName == 'TB_Image3') { clearTimeout(tmr3); Cnt3 = 0; if (navigator.appName.indexOf("Microsoft") != -1) { el.filters.alpha.opacity = 100 } else { el.style.MozOpacity = 1 }}
			if (imgName == 'TB_Image4') { clearTimeout(tmr4); Cnt4 = 0; if (navigator.appName.indexOf("Microsoft") != -1) { el.filters.alpha.opacity = 100 } else { el.style.MozOpacity = 1 }}
		}
	}
	
	function UnRollMiddle_All() {
		var el;
		
		el = document.getElementById('TB_Image2');
		if (el != null) {
			el.src = TB_Image2_R.src
		}	
		el = document.getElementById('TB_Image3');
		if (el != null) {
			el.src = TB_Image3_R.src
		}	
		el = document.getElementById('TB_Image4');
		if (el != null) {
			el.src = TB_Image4_R.src
		}			
		
	}
	
	function UnRollMiddle(imgName) {	
	
		var el = document.getElementById(imgName);
		if (el != null) {
			Set_Up_Counter(imgName)
			//el.src = eval(imgName + "_R.src");
		}
	}
	
	function addToFavorites(URL, PageName) 
	{ 
		if (window.external) { window.external.AddFavorite(URL,PageName) } 
		else { alert("Sorry! Your browser doesn't support this function."); } 
	}	
	
	function PrintToHTML(Link) {
		var w = window.open(Link, 'PrintToHTML', 'width=625,height=475,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,top=20,left=20');
		w.focus();
	}		
	
	function EmailPage(Link) {
		var Loc = "EmailPage.aspx?Link=" + escape(Link)
		var w = 	window.open(Loc, 'EmailPage', 'width=350,height=420,directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,top=100,left=100');
		w.focus();
	}	
	
	function NewWin(Link) {
		var w = 	window.open(Link, 'NewWin');
		w.focus();
	}			

	function Print_Page_As_PDF() {
	     
	    var f, IDFld, IDVal, PageMode;
	    
	    f = FindMyControl('hdIDFld');
	    IDFld = f.value
	    f = FindMyControl('hdIDVal');
	    IDVal = f.value
	    f = FindMyControl('hdPageMode');
	    PageMode = f.value
	    
		var lnk = 'PrintIt.aspx?' + IDFld + '=' + IDVal + '&Mode=' + PageMode + '&PrintMode=PDF';
		PrintToHTML(lnk);
		
	}

	function Add_To_Brochure() {
	
		 var f, IDFld, IDVal, PageMode;
	    
	    f = FindMyControl('hdIDFld');
	    IDFld = f.value
	    f = FindMyControl('hdIDVal');
	    IDVal = f.value
	    f = FindMyControl('hdPageMode');
	    PageMode = f.value
	
		var lnk = 'BrochureBuilder.aspx?' + IDFld + '=' + IDVal + '&Mode=' + PageMode + '&Action=Add&ReturnLink=' + escape(location.href);
		location.href=lnk;
		
	}

	function View_Brochure_Selections() {
		var lnk = 'BrochureBuilder.aspx?ReturnLink=' + escape(location.href);
		location.href=lnk;
	}
	
    function SubmitLetter(L) {
        var f =  FindMyControl('txtLastName');
        f.value = L;
        f.form.submit();
       }
      
function FindMyControl(MyID) {

	var frmElements,i,t,ctl;
	
	// Since the use of master pages mangles the names of child controls, we need a method 
	// of searching through the form elements and returning a reference to the control we are 
	// looking for that control by the name we know it as instead of the dumb-ass name ASP.Net creates.
	// First scan through all of the input elements and look for our control
    frmElements=document.getElementsByTagName('input');
    for(i in frmElements)
    {
        t = String(frmElements[i].id); 
        t = '_' + t;
        if (t.indexOf(MyID) > -1 )
            { return frmElements[i] }
    }
   // Still not found, scan through all of the select elements
    frmElements=document.getElementsByTagName('select');
    for(i in frmElements)
    {
        t = String(frmElements[i].id); 
        t = '_' + t;
        if (t.indexOf(MyID) > -1 )
            { return frmElements[i] }
    } 
   
   // Still not found, scan through all of the textarea elements
    frmElements=document.getElementsByTagName('textarea');
    for(i in frmElements)
    {
        t = String(frmElements[i].id); 
        t = '_' + t;
        if (t.indexOf(MyID) > -1 )
            { return frmElements[i] }
    }
   
   // Still not found, scan through all of the textarea elements
    frmElements=document.getElementsByTagName('td');
    for(i in frmElements)
    {
        t = String(frmElements[i].id); 
        t = '_' + t;
        if (t.indexOf(MyID) > -1 )
            { return frmElements[i] }
    }      
   
   // Still not found, scan through all of the textarea elements
    frmElements=document.getElementsByTagName('img');
    for(i in frmElements)
    {
        t = String(frmElements[i].id); 
        t = '_' + t;
        if (t.indexOf(MyID) > -1 )
            { return frmElements[i] }
    }     

   // Still not found, scan through all of the iframe elements
    frmElements=document.getElementsByTagName('div');
    for(i in frmElements)
    {
        t = String(frmElements[i].id); 
        t = '_' + t;
        if (t.indexOf(MyID) > -1 )
            { return frmElements[i] }
    }        
   
    return false;         

}       

function PositionLayer(LayerName, OffSetX, OffSetY) {

	var imgX;
	var imgY;
	
	if (OffSetX == 450 ) { OffSetX = 325 }		// correction
	if (navigator.appVersion.indexOf('MSIE 7') > -1) { OffSetY = OffSetY + 20 } // correct for IE 7
	
	imgX = (document.body.clientWidth / 2);	// find the center of the window
	imgX = imgX - OffSetX
	imgY = OffSetY;
	// adjust for scroll position
	imgY = imgY + document.body.scrollTop;
	
	document.all[LayerName].style.left = imgX; document.all[LayerName].style.top = imgY; 
}

function ShowLayer(LayerName) {		

	// determine our browser type for layer usage, since Netscape is 6 is the devil in disguise
	var BrowserType = "";
	if(document.layers) { BrowserType="NN4" }
	if(document.all) { BrowserType="IE"  }
	if(!document.all && document.getElementById) { BrowserType="NN6" } // what is Netscape smoking????
	if (BrowserType=="") { BrowserType="IE"  }	// default to IE, just because....

	if (BrowserType=="IE") { document.all[LayerName].style.visibility = 'visible' }
	if (BrowserType=="NN4") { document.layers[LayerName].visibility = 'visible' }
	if (BrowserType=="NN6") { document.getElementById(LayerName).style.visibility='visible' }
	
}

function CancelLayer(LayerName) {

	// determine our browser type for layer usage, since Netscape is 6 is the devil in disguise
	var BrowserType = "";
	if(document.layers) { BrowserType="NN4" }
	if(document.all) { BrowserType="IE"  }
	if(!document.all && document.getElementById) { BrowserType="NN6" } // what is Netscape smoking????
	if (BrowserType=="") { BrowserType="IE"  }	// default to IE, just because....

	if (BrowserType=="IE") { parent.document.all[LayerName].style.visibility = 'hidden' }
	if (BrowserType=="NN4") { parent.document.layers[LayerName].visibility = 'hidden' }
	if (BrowserType=="NN6") { parent.document.getElementById(LayerName).style.visibility='hidden' }
}	


function Validate_Register_Form() {

    var OkToGo = true;
   
   if (OkToGo && document.forms[0].txtName.value.length < 2) 
        { OkToGo = false; alert('A valid name is required to continue.  Please enter a valid name.'); }   
        
   if (OkToGo && document.forms[0].txtCompany.value.length < 2) 
        { OkToGo = false; alert('A valid company is required to continue.  Please enter a valid company.'); }        

   if (OkToGo && document.forms[0].txtEmail.value.length < 2) 
        { OkToGo = false; alert('A valid email is required to continue.  Please enter a valid email.'); }        
   
   if (OkToGo)
        { document.forms[0].submit(); }  

}

function Change_PS_Radio_Selection(sel) {

    var el;
    var imgChecked;
    var imgUnchecked;  
    
   	imgChecked = new Image(20, 23);
	imgChecked.src="images/PS_Radio_Checked.gif";  
	imgUnchecked = new Image(20, 23);
	imgUnchecked.src="images/PS_Radio_Unchecked.gif";  
   
    // set each radio to unchecked 
    el = FindMyControl('imgBuy');
    el.src = imgUnchecked.src;
    el = FindMyControl('imgSell');
    el.src = imgUnchecked.src;
    el = FindMyControl('imgBroker');
    el.src = imgUnchecked.src;    
   
    // based on passed in selection set to checked
    if (sel == 'Buy') {
        el = FindMyControl('imgBuy');
        el.src = imgChecked.src;
    } 
    if (sel == 'Sell') {
        el = FindMyControl('imgSell');
        el.src = imgChecked.src;
    } 
    if (sel == 'Broker') {
        el = FindMyControl('imgBroker');
        el.src = imgChecked.src;
    }   
    
    // set hidden form element to selection
   el = FindMyControl('hdPS_Buy_Sell_Broker');
   el.value = sel   

}

function validate_email_alert_form() {

    var email;
    
    email = document.forms[0].subscriber_email.value;
    if ( validEmail(email) == false ) 
        { alert('You must provide a valid email address to subscribe.'); return; } 
   
    document.forms[0].submit();
}

function validEmail(email) 
{
     var invalidChars = " /:,;"; // NOTE - first char is a SPACE

     for (i = 0;  i < invalidChars.length; i++) { // does it contain any invalid characters?
          var badChar = invalidChars.charAt(i);
          if (email.indexOf(badChar, 0) > -1) return false;
     }

     var atPos = email.indexOf("@", 1);  // there must be one "@" symbol
     if (atPos == -1) return false;
     // and only one "@" symbol
     if (email.indexOf("@", atPos + 1) != -1) return false;

     periodPos = email.indexOf(".", atPos);
     // and at least one "." after the "@"
     if (periodPos == -1) return false;
     // must be at least 2 characters after the "."
     if (periodPos + 3 > email.length)  return false;

     return true;
}
	
function SendEmail() {

    var el;
    var OkToGo = true;
   
    el = FindMyControl('txtYour_Email');
    if (validEmail(el.value) == false) { OkToGo = false; alert('Please enter a valid email.'); }
    
    if (OkToGo) { el.form.submit(); }

}

function ShowText(TextName) {

    var el;

    if ( TextName == 'Services' ) {
        el = FindMyControl('divServicesText');
        el.style.display = 'inline';
     }
     
    if ( TextName == 'Data Watch' ) {
        el = FindMyControl('divDataText');
        el.style.display = 'inline';
     }     
     
    if ( TextName == 'Hardware' ) {
        el = FindMyControl('divHardwareText');
        el.style.display = 'inline';
     }          
     

}

function HideText() {

    var el;

    el = FindMyControl('divServicesText');
    el.style.display = 'none';
    el = FindMyControl('divDataText');
    el.style.display = 'none';
    el = FindMyControl('divHardwareText');
    el.style.display = 'none';

    

}

function ShowContactForm(City) {

    var el,left,top;
            
    // show form
    el = FindMyControl('divContactUs');
    el.style.visibility = 'visible';
    // Set city in form
    el = FindMyControl('hdCity');
    el.value = City;
    // Set on form
    el = FindMyControl('divCity');
    el.innerHTML = 'Contact ' + City + ' Office';
    // Position the layer
    el = document.getElementById('divPage');
    if (el != null) {
         t = findPos(el);
         left = parseInt(t[0]);
         top = parseInt(t[1]);
    }  
    else {
        left = 100;  
        top = 100; 
    }       
    left = left + 200;
    top = top  + 100;
    left = String(left) + 'px';
    top = String(top) + 'px';    
    
    el = FindMyControl('divContactUs');
	el.style.left = left; 
	el.style.top = top;    
   
}
	
function SendEmail() {

    var el;
    var OkToGo = true;
   
    el = FindMyControl('txtYour_Email');
    if (validEmail(el.value) == false) { OkToGo = false; alert('Please enter a valid email.'); }
    
    if (OkToGo) { el.form.submit(); }

}

function HideContactUs() {
    
    var el;
    
    el = FindMyControl('divContactUs');
	el.style.left = '-1200px';

}

function ShowPicLarger(Href, w, h, PicID) {

    var el,left,top,html,el2;
   
    el = document.getElementById(PicID);
    if (el != null) {
         t = findPos(el);
         left = parseInt(t[0]);
         top = parseInt(t[1]);
    }  
    else {
        left = 100;  
        top = 100; 
    }       
    
    left = (left + 150) + 10;
    top = top - 40;
    left = String(left) + 'px';
    top = String(top) + 'px';
    
    // set html
    html = '<img src="' + Href + '" width="' + w + '" height="' + h + '" alt="" />';
    // show the pic layer
    el2 = document.getElementById('lyrPic');
    el2.innerHTML = html;
	el2.style.left = left; el2.style.top = top;

}

function HidePicLarger() {

    var el;
    
    el = document.getElementById('lyrPic');
    el.style.left = '-1200px';
        
}

function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}

function ShowOperationsDetails(loc) {
    
        var el;
        var html;
        
 		el = document.getElementById('imgBase');
		el.src = eval(loc + ".src"); 

        // The copy		
		el = document.getElementById(loc + '_copy');
        if ( el != null ) {
		    html = el.innerHTML;
		    el = document.getElementById('divOperationsCopy');    
		    if ( el != null ) {
		        el.innerHTML = html;
		    }
		}
		
		// The Image
		el = document.getElementById(loc + '_image');
        if ( el != null ) {
		    html = el.innerHTML;
		    el = document.getElementById('divOperationsDetail');    
		    if ( el != null ) {
		        el.innerHTML = html;
		    }
		}		
		

}

var tmrScroll;

function StopScroll() {

    clearTimeout(tmrScroll);

}

function ScrollThumbsRight() {

    var el;
    var currLeft;
    
    el = document.getElementById("vmarquee");
    currLeft = parseInt(el.style.left);
    if ( String(currLeft) == 'NaN' ) { currLeft = 0 }
    currLeft = currLeft - 10;
    el.style.left = currLeft + 'px';
    
    tmrScroll = setTimeout('ScrollThumbsRight()', 50);
    
}

function ScrollThumbsLeft() {

    var el;
    var currLeft;
    
    el = document.getElementById("vmarquee");
    currLeft = parseInt(el.style.left);
    if ( String(currLeft) == 'NaN' ) { currLeft = 0 }
    currLeft = currLeft + 10;
    if ( currLeft >= 0 ) { currLeft = 0 };
    el.style.left = currLeft + 'px';
   
    tmrScroll = setTimeout('ScrollThumbsLeft()', 50);    
}


function ShowPhoto(Photo) {

    var elPhoto,elBack,elNext,html;
   
    elPhoto = document.getElementById('divPhoto');
    elBack = document.getElementById('lnkPhoto_Back');    
    elNext = document.getElementById('lnkPhoto_Next');
        
    if ( Photo == 'P7964' ) {
        elPhoto.innerHTML = 'Pic';
        elBack.href = 'DoobieBack';
        elNext.href = 'DoobieNext';
    }
    
}
