/* Start: MARKET WATCH box JavaScript  */	
	active =2;
	//get original bg
	function getbg(x){
		if(document.getElementById('stm'+x).className != "smarket_item_selected" )
			document.getElementById('stm'+x).style.background= "#E5EEF4";
		
	}
	//reset original bg as active
	function resetbg(x){
	
		if(document.getElementById('stm'+x).className != "smarket_item_selected" )
			document.getElementById('stm'+x).style.background= "#f4f4f4";
	}
	function setbg(x){
		document.getElementById('stm'+x).className = "smarket_item_selected";
		document.getElementById('stm'+active).className = "smarket_item";
		document.getElementById('stm'+active).removeAttribute("style");
		
		active = x;
				
	}
	
/* End: MARKET WATCH box JavaScript  */	

/* Begin: MARKET WATCH JavaScript  */	
	marketwatchtab_active =1;
	sectorwatchtab_active =1;
	
	function chnge_marketwatchtab(x){
	    if(x != marketwatchtab_active)
	    {
		    document.getElementById('marketwatchtab'+x).className = "selected";
		    document.getElementById('marketwatchtab'+marketwatchtab_active).className = " ";
		    document.getElementById('marketwatchtab'+marketwatchtab_active).removeAttribute("class");
		    marketwatchtab_active = x;
   		    var_current_selected_tab=x;
		 }

	}
	function chnge_sectorwatchtab(x){
    if(x != sectorwatchtab_active)
    {
	    document.getElementById('sectorwatchtab'+x).className = "selected";
	    document.getElementById('sectorwatchtab'+sectorwatchtab_active).className = " ";
	    document.getElementById('sectorwatchtab'+sectorwatchtab_active).removeAttribute("class");
	    sectorwatchtab_active = x;
	    var_current_selected_tab=x;
	 }

}
marketsummarytab_active =1;
function chnge_marketsummarytab(x){
    if(x != marketsummarytab_active)
	    {
		    document.getElementById('marketsummary'+x).className = "marketwatch_tabsitem selected";
		    document.getElementById('marketsummary'+marketsummarytab_active).className = "marketwatch_tabsitem";
		    //document.getElementById('marketsummary'+marketsummarytab_active).removeAttribute("class");
		    marketsummarytab_active = x;				
		}
	}
var company_profile_page = "Company_Profile";
company_profile_page_link = "Company_Profile";
var more_details_page = "Market_Details";

arr_images = Array();           
arr_images["up"] = "images/arrow_up.gif";
arr_images["down"] = "images/arrow_down.gif";
arr_images["equal"] = "images/arrow_equal.gif";
arr_images["no_image"] = "";


arr_style = Array();
arr_style["style_up"] = "green";
arr_style["style_down"] = "red";
arr_style["style_equal"] = "black";


	
/* End: MARKET WATCH JavaScript  */	