/* =Smith Barney JS Information

----------------------------------------------------------------------------------------------------

Contains:

    =Login Form Button Hover

----------------------------------------------------------------------------------------------------*/



// Include legacy JavaScript
//if uncomment tab set will fail
document.write('<scr' + 'ipt type="text/javascript" src="http://fa.smithbarney.com/js/locator-js/new/02_loader.js"></scr' + 'ipt>');



// Initialize Document Parameters

   function InitializeDoc(){

     if (document.getElementById('btnLogin')) {

        swapImg("btnSearch","hover","");

     }



     //Add the init functions from 02_loader.js here



	//alert("Am I hitting this?");

	//alert(typeof local_highlight != "undefined");

	//alert(local_highlight);

	if ( typeof local_highlight != "undefined" ) highlightText(local_highlight);

	redNav();

	startList();

	if(!("undefined" == typeof(my_stripe))){stripe(my_stripe);}

	// added by rr / 07 May 2007

	// disables link on citi-sb logo if user is from cbol

	// added to 01_topnav.js and all loader.js files on dvl11,

	// and to wasbox /upgrade/headerDiv.inc for portfolios

	// please make any updates in all files.

	if(cbol_user){

		var logoLink = document.getElementById("sblogo").parentNode;

		logoLink.style.cursor = "default";

		logoLink.childNodes[0].alt = "";

		//logoLink.onclick = function(){return false;}

	}

	// add suppression code by DZ //



	removeElement_CBOL('noCBOL');

	removeElement_CBOL('noCBOL2');

	killAds_CBOL();



	//DZ 8/10/2007 - makes sure SB.COM is top window, except when in wrapper. function in CoreCookies.js

	ethicHack();



	/*

	rr / 19 Apr 2007

	calling startTimer to grab instances of marketwatch box and position properly for cbol/wrapped version.  startTimer function and it's dependent files can be found in the file mwatchDivPosition.js

	*/

	if(cbol_user){

		startTimer();

	}



	//GVL 01JUN2007 Check for text that is conditional

	write_conditional_text();



	//DZ 1/30/2008: quick fix for homepage banner.

	//quickHomeBannerFix();



	//DZ 5/22/2008 Swap href incase miss includes

	if (!document.getElementById("titlebarDiv1") && document.getElementById("sitenavDiv") == true)

	//alert(document.getElementById("sitenavDiv") == true);

	{ replaceMenuHREF("sa2", "Equity Research", "https://www.smithbarney.com/app-bin/csearch/servlets/CustomSearchServlet?search_research=on"); }





   }

   

// Opens Help Pop Up from Utility Nav

function openCustomHelpWindow(){

	var width = 500;

	var height = 300;

	x = (640 - width)/2, y = (480 - height)/2;

	if (screen) {

		y = (screen.availHeight - height)/2;

	x = (screen.availWidth - width)/2;

	}

var popup = window.open('https://www.smithbarney.com/cgi-bin/helpdesk/sitehelp.cgi?scriptname="'+this.location+'"','Custom_Help','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',titlebar=no');

}

