﻿//Tania - 10/27/2006
//David Dunlop - 10/27/2006
//Robert Lin - 01/19/2007
//Danny H - 03/13/2007
//Alex S - 03/19/2007
//Shabana - 05/09/2007
//Dave Krunal - 05/11/2007
//Bradford Campeau-Laurion - 08/31/2007
//Andrew Dokko - 10/25/2007
//Shabana Abrez - 11/14/2007
//Madhavi Sawant - 11/01/2007


//var setTopInt = setInterval(setSearchBoxTop,10);
/*document.write('<script src="http://images.forbes.com/scripts/util/CookieCutter.js" type="text/javascript"></script>');*/
var channelArr = new Array('aboutus','glm','tibet','mec','sponsorship','multimedia');
var longChannelArr = new Array('关于我们','绿色长征','西藏生态保护','示范生态社区','赞助方案','媒体资料');
//Channel URL
var channelURLArr = new Array('/chn/introduction/','/chn/glm/','/chn/tibet/','/chn/mec/','/chn/sponsorship/','/chn/movies/');

var searchTab = 0;
var noSearch = 0;

//Start Highlight home link
function findCookie(NameOfCookie) {  
	if( document.cookie.length > 0 ) { 
		begin = document.cookie.indexOf( NameOfCookie+"=" ); 
		if( begin != -1 ) { 
			begin += NameOfCookie.length + 1; 
			end = document.cookie.indexOf( ";", begin );
			if( end == -1 ) end = document.cookie.length;
			return unescape( document.cookie.substring( begin, end ));
		} 
	}
	return null; 
}


//pagetype
thisURL = this.location.href;

var storyExpr = /\d{4}\/\d{2}\/\d{2}\//;
var magExpr = /(forbes|forbesglobal|global|asap|best|fyi)\/\d{4}\/\d{4}\//;
var listExpr = /lists\/\d{4}\/\d+\//;
var sectionExpr = /\/[a-z]+\/[a-z]+/;
var channelExpr = /\/[a-z]+/;
var centBan = "CenterBanner";



function fdcWincolComputeListpos() {
	if ((pageType == "magstory") || (pageType == "story")) {
		url = '' + window.location;
		if(fdcWincolStyle=="window") {
			// DO NOT CHANGE WITHOUT APPROVAL
			OAS_listpos = "AdController,Block,BigBanner,CenterBanner,x1,x5,LeftBottom,LeftBottom2,x33,x102,StoryLogo,x88,LeftBottom3,LeftBottom4,AlertsLogo,AutosModule,TravelerModule,TravNarrowModule,TradingCenter1,TradingCenter2,TradingCenter3,TradingCenter4,StoryBotLogo,RootModule,x84,x105,x81,x103,x83,x112,Loge";
		}
		else {
			// DO NOT CHANGE WITHOUT APPROVAL
			OAS_listpos = "AdController,RightMiddle,BigBanner,CenterBanner,x1,x5,LeftBottom,LeftBottom2,x33,x102,StoryLogo,x88,LeftBottom3,LeftBottom4,AlertsLogo,AutosModule,TravelerModule,TravNarrowModule,TradingCenter1,TradingCenter2,TradingCenter3,TradingCenter4,StoryBotLogo,RootModule,x84,x105,x81,x103,x83,x112,Loge";
		}
	}
}
function fdcWincolAlert(){
	testStr = "";
	if(typeof pageType != "undefined") testStr = testStr + "pagetype: " + pageType  + "\n";
	if(typeof OAS_sitepage != "undefined") testStr = testStr + "OAS_sitepage: " + OAS_sitepage  + "\n";
	if(typeof OAS_listpos != "undefined") testStr = testStr + "OAS_listpos: " + OAS_listpos  + "\n";
	if(typeof OAS_query != "undefined") testStr = testStr + "OAS_query: " + OAS_query  + "\n";
	if(typeof fdcWincolThreshhold != "undefined") testStr = testStr + "minimum for window: " + fdcWincolThreshhold  + "\n";
	if(typeof fdcWincolResult!= "undefined") testStr = testStr + "result: " + fdcWincolResult  + "\n";
	if(typeof fdcWincolStyle != "undefined") testStr = testStr + "style: " + fdcWincolStyle  + "\n";
	alert(testStr);
}

	function fdcWincolDecideTargetting() {
        var url = window.location + "";
        // use URL for OAS_sitepage value if URL matches following
        if ( url.indexOf("/infrastructure/") != -1 ) { fdcWincolComputeSitepage(); }
        else if ( url.indexOf("/security/") != -1 ) { fdcWincolComputeSitepage(); }
        else if ( url.indexOf("/execpicks/") != -1 ) { fdcWincolComputeSitepage(); }
        else if ( url.indexOf("/entrefinance/") != -1 ) { fdcWincolComputeSitepage(); }
        else if ( url.indexOf("/beltway/") != -1 ) { fdcWincolComputeSitepage(); }
        else if ( url.indexOf("/guruinsights/") != -1 ) { fdcWincolComputeSitepage(); }
        else if ( url.indexOf("/innovation/") != -1 ) { fdcWincolComputeSitepage(); }
        else if ( url.indexOf("/ceonet") != -1 ) { fdcWincolComputeSitepage(); }
        else if ( url.indexOf("/topstories/") != -1 ) { fdcWincolComputeSitepage(); }
        else if ( url.indexOf("billionaires") != -1 ) { fdcWincolComputeSitepage("billionaires/"); }
        else { var OAS_sitepage = ""; }
	}
	function fdcWincolComputeSitepage(path){
		url = '' + window.location;
		start = url.indexOf('//') + 2;
		start = url.indexOf('/',start) + 1;
		end = url.indexOf('?'); if(end==-1){end=url.length}
		if(typeof path != "undefined") { OAS_sitepage = 'forbes.com/' + path + url.substring(start, end); }
		else { OAS_sitepage = 'forbes.com/' + url.substring(start, end); }
	}
	function fdcWincolComputeStyle() {
		var url = window.location + "";
		 // 100 = all columns
		// 0 = all windows
		if (url.indexOf("/column/") != -1 )             { fdcWincolThreshhold = 100; }
		else if (url.indexOf("/window/") != -1 )        { fdcWincolThreshhold = 0; }
		else if (url.indexOf("/wireless/") != -1 )      { fdcWincolThreshhold = 50; }
		else if (url.indexOf("/markets/") != -1 )       { fdcWincolThreshhold = 60; }
		else if (url.indexOf("/finance/") != -1 )       { fdcWincolThreshhold = 60; }
		else if (url.indexOf("/personalfinance/") != -1 )       { fdcWincolThreshhold = 60; }
		else if (url.indexOf("/lifestyle/style/") != -1 )       { fdcWincolThreshhold = 10; } 
		else                                            { fdcWincolThreshhold = fdcWincolDefault; }
		fdcWincolResult = Math.round( Math.random() * 99 );
		fdcWincolStyle = (fdcWincolResult < fdcWincolThreshhold ) ? "column" : "window";
	}

	function fdcWincolStart(){
		if (fdcWincolStyle=="window") {
  	   		_startWindow();
		}
		else {
		    	_startColumn();
		}
	}
	function fdcWincolAd(){
		if (fdcWincolStyle=="window"){_adWindow();}
		else{_adColumn();}
	}
	function fdcWincolEnd(){
		if (fdcWincolStyle=="window")	{_endWindow();}
		else				{_endColumn();}
	}
	function fdcWincolSwap(orig, repl){
		var span = document.getElementById(orig);
		if(span==null){return;}
		var newspan = document.getElementById(repl);
		if(newspan==null){return;}
		while(span.childNodes[0]) { span.removeChild(span.childNodes[0]); }
		span.parentNode.replaceChild(newspan,span);
	}
	function _getBuster(){
		var date = new Date();
		var buster =  "" + date.getYear() + date.getMonth() + date.getDate() + 
				date.getHours() + date.getMinutes() + date.getSeconds();
		return buster;
	}
	function _startWindow(){
		document.write("<CENTER><span class=\"smallgreytxt\">ADVERTISEMENT</span>");
	}
	function _adWindow(){
		document.write('<div class="dynamicadlocation" id="dynamicAdWinDiv"><script language="JavaScript">OAS_AD(\'Block\');<\/script></div>');
	}
	function _endWindow(){
		document.write("</CENTER>");
		//document.write("<FONT COLOR=white>end ad</FONT><BR>");
		document.write("<table cellspacing=\"0\" cellpadding=\"2\" border=\"0\" width=\"336\"><tr><td bgcolor =\"dece00\" colspan=\"3\"><img src=\"http://images.forbes.com/media/assets/spacer.gif\" width=\"1\" height=\"2\"></td></tr>");
		var ver = navigator.appName;
		var num = parseInt(navigator.appVersion);
		var myagent = navigator.userAgent.toLowerCase();
		if ((ver == "Microsoft Internet Explorer")&&(num >= 4)&&(myagent.indexOf('mac') < 0)) {
			_doBookmarkWindow();
		}
		document.write("<tr><td valign=\"middle\"><a href=\"http://forbes.anchorfree.com\" title=\"Find free wireless internet all over the world\"><img src=\"http://images.forbes.com/media/ads/free_wifi_hotspot.gif\" alt=\"free wireless cafes, hotels, airports, and other hotspots\" border=0>Find Free Wi-Fi Hotspots</a></td></tr><tr><td bgcolor=\"dece00\" colspan=\"3\"><img src=\"http://images.forbes.com/media/assets/spacer.gif\" width=\"1\" height=\"2\"></td></tr></table><BR>");
		_doAlertsWindow();
		document.write("<BR>");
	}
	function escapeSingleQuote(myline) {
      	  if ((myline != null) && (myline.length>0)) {
                var index = myline.indexOf("'");
                while (index != -1) {
                        var firstpart = myline.substring(0,index);
                        var secondpart = myline.substring(index,myline.length);
                        myline=firstpart + "\\" + secondpart;
                        if ( (index+2)<myline.length) {
                                index = myline.indexOf("'",index+2);
                        }
                        else {
                                return myline;
                        }
                }
        	}
        	return myline;
	}
	function _doBookmarkWindow() {
		document.write("<tr><td valign=\"middle\"><a href=\"http://www.forbes.com\" onClick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.forbes.com');\">Make Forbes.com My Home Page</a></td><td><br>&nbsp;<br></td><td align=\"right\" valign=\"middle\"><a href=\"javascript:window.external.AddFavorite('" + this.location + "','" + escapeSingleQuote(document.title) + "');\">Bookmark This Page</a></td></tr>");
	}
	function _startColumn(){
		document.write("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"328\"><TR><TD WIDTH=168 VALIGN=TOP>");
		_doAlertsColumn();
		document.write("<BR><table cellspacing=\"0\" cellpadding=\"2\" border=\"0\" width=\"168\"><tr><td bgcolor=\"dece00\" colspan=\"3\"><img src=\"http://images.forbes.com/media/assets/spacer.gif\" width=\"1\" height=\"2\"></td></tr>");
		var ver = navigator.appName;
		var num = parseInt(navigator.appVersion);
		var myagent = navigator.userAgent.toLowerCase();
		if ((ver == "Microsoft Internet Explorer")&&(num >= 4)&&(myagent.indexOf('mac') < 0)) {
			_doBookmarkColumn();
		}
		document.write("<tr><td colspan=\"3\"><a href=\"http://forbes.anchorfree.com\" title=\"Find free wireless internet all over the world\"><img src=\"http://images.forbes.com/media/ads/free_wifi_hotspot.gif\" alt=\"free wireless cafes, hotels, airports, and other hotspots\" border=0>Find Free Wi-Fi Hotspots</a></td></tr><tr><td bgcolor=\"dece00\" colspan=\"3\"><img src=\"http://images.forbes.com/media/assets/spacer.gif\" width=\"1\" height=\"2\"></td></tr></table><br clear=\"all\">");
		document.write("</td>");
		document.write("<td width=\"10\">&nbsp;&nbsp;</td>");
		document.write("<td width=\"150\" valign=top>");
	}
	function _doBookmarkColumn() {
		document.write("<tr><td><img src=\"http://images.forbes.com/media/assets/spacer.gif\" width=\"1\" height=\"25\"></td><td valign=\"middle\" align=\"center\"><a href=\"http://www.forbes.com\" onClick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.forbes.com');\">Make Forbes.com My Home Page</a></td><td><img src=\"http://images.forbes.com/media/assets/spacer.gif\" width=\"1\" height=\"25\"></td></tr><tr><td><img src=\"http://images.forbes.com/media/assets/spacer.gif\" width=\"1\" height=\"25\"></td><td valign=\"middle\" align=\"center\"><a href=\"javascript:window.external.AddFavorite('" + this.location + "','" + escapeSingleQuote(document.title) + "');\">Bookmark This Page</a></td><td><img src=\"http://images.forbes.com/media/assets/spacer.gif\" width=\"1\" height=\"25\"></td></tr>");
	}
	function _adColumn(){
		document.write('<div class="dynamicadlocation" id="dynamicAdColDiv">');
		OAS_AD('RightMiddle');
 		document.write('</div>');
	}
	function _endColumn(){
		document.write("</CENTER></TD></TR></TABLE>");
	}
        function _checkAlertForm(){
                if (!isMember()) {
                        if (checkAlertForm()) {
	                        setCLevelAlertsCookie();
				return true;
			}
			return false;
                } else {
                        var isOneChecked = verifyOneChecked(document.alertForm);
                        if (!isOneChecked)
                                alert('Please select at least one alert.');
                        return isOneChecked;
                }
        }
        function getTitleDropDown(){
                var titleArray = new Array("President", "Chairman", "Owner/Partner", "CEO", "CFO", "CIO/CTO", "CMO", "COO", "Vice President", "General Manager", "Middle Management", "Technical Staff", "Clerical/Support Staff", "Professional", "Homemaker", "Student", "Retired", "Not Employed", "Other");
                var titleDropDown = '';

                var alertsTitle = "Select Your Title";

                titleDropDown += '<option value=""  selected="selected">Select Your Title</option>';

                for (var i=0; i < titleArray.length; i++) {
                        titleDropDown += '<option value="' + titleArray[i] + '"';
                        titleDropDown += '>' + titleArray[i] + '</option>';
                }

                return titleDropDown;
        }
        function setCLevelAlertsCookie(){
                // Change theDomain to: '192.168.0.164' for testing 
                var theDomain = '.forbes.com';

                var cLevelTitleMap = new Object();
                cLevelTitleMap["President"] = "President";
                cLevelTitleMap["Chairman"] = "Chairman";
                cLevelTitleMap["Owner/Partner"] = "Owner%2FPartner";
                cLevelTitleMap["CEO"] = "CEO";
                cLevelTitleMap["CFO"] = "CFO";
                cLevelTitleMap["CIO/CTO"] = "CIO%2FCTO";
                cLevelTitleMap["CMO"] = "CMO";
                cLevelTitleMap["COO"] = "COO";
		cLevelTitleMap["General Manager"] = escape("General Manager");
                cLevelTitleMap["Vice President"] = escape("Vice President");
                cLevelTitleMap["Technical Staff"] = escape("Technical Staff");

                var aTitle=document.getElementById("alerts_title");
                // Title is not a mandatory field.
                if (aTitle != null){
                        var clevel_title = cLevelTitleMap[aTitle.value];
                        if (clevel_title != null) {
                                var theDate = new Date();
                                var fiveYearsLater = new Date( theDate.getTime() + 153792000000 );
                                var expiryDate = fiveYearsLater.toGMTString();

                                document.cookie='ceotitle=' + escape('Officer Alerts') + ';expires=' + expiryDate + ';path=/;domain=' + theDomain;
                        } else if (aTitle.value != "Select Your Title") {
                                // The user is not clevel.  Remove the cookie if present.
                                var results = document.cookie.match ( 'ceotitle=' );

                                // remove the cookie
                                if ( results ){
                                        var cookie_date = new Date ( );  // current date & time
                                        cookie_date.setTime ( cookie_date.getTime() - 1 );
                                        document.cookie = "ceotitle=;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/;domain=" + theDomain;
                                }
                        } // else no title select; therefore do nothing with cookies.
                }
        }
        function tableForEach(keyArray, valueHash, numColumns, header) {

                // Used to prepend a prefix to the alert parameters for differentiation purposes.
                var headerAlertMap = new Object();
                headerAlertMap["Companies"] = "tickers";
                headerAlertMap["People"] = "persons";
                headerAlertMap["Topics"] = "keywords";

                if (keyArray.length==0) return;

                document.write('<tr height="22"><td style="padding-top: 5px; border-top: thin dotted" colspan="' +
                                numColumns*2 + '" height="22" ><b>' + header + '</b>  </td></tr>');


                for (var i=0; i<keyArray.length/numColumns; i++) {
                        document.write('<tr valign="top">');
                        for (var j=0; j<numColumns; j++) {
                                if ((i*numColumns+j) < keyArray.length) {
                                        var element = keyArray[i*numColumns+j];
                                        document.write('<td valign="middle" width="20"><input type="checkbox" name="' +
                                                headerAlertMap[header] + '.' + element + '" value="' + valueHash[element] +
                                                '"></td>' + '<td valign="middle" width="134">' + valueHash[element] + '</td>');
                                }
                        }
                        document.write('</tr>');
                }
        }
        function _doAlertsWindow(){
                if((typeof tickerKeyList == "undefined") && (typeof personKeyList == "undefined") && (typeof keywordKeyList == "undefined")){return;}

                document.write('<style type="text/css" media="screen"><!--#alertsbox td {font-size: 11px;}--></style><form action="http://members.forbes.com/alertSignup" method="post" name="alertForm" onSubmit="return _checkAlertForm();"><input type="hidden" name="action" value="alerts_signup"><input type="hidden" name="comingFrom" value="alerts"><input type="hidden" name="service" value="key_membership"><input type="hidden" name="gotoURL" value="' + window.location.href + '"><div id="alertsbox"><table bgcolor="#cccccc" border="0" cellpadding="1" cellspacing="0" width="336"><tbody><tr><td><table bgcolor="#ffffff" border="0" cellpadding="2" cellspacing="0" width="100%"><tbody><tr><td rowspan="100"></td><td colspan="4"></td><td rowspan="100"></td></tr><tr><td  colspan="4"  style="font-size: 12px; font-weight: bold;"><span style=" color: 990000;">News by E-mail </span>Get stories by E-Mail on this topic <span style=" color: 990000;">FREE</span></td></tr><tr><td colspan="3">');
                document.write('<span style="color: #369; font-size: 12px; font-weight: bold; margin-bottom: 6px;"></span></td><td style=" padding-bottom: 7px; padding-top: 7px;" width="134"><a href="http://members.forbes.com/membership/signup.do?comingFrom=alerts"><b></b><scr' + 'ipt language="JavaScript">OAS_AD("AlertsLogo");</scr' + 'ipt></td></tr>');

                if((typeof tickerKeyList != "undefined") && (typeof tickerHash != "undefined")){
                        tableForEach(tickerKeyList, tickerHash, 2, "Companies");
                }
                if((typeof personKeyList != "undefined") && (typeof personHash != "undefined")){
                        tableForEach(personKeyList, personHash, 2, "People");
                }
                if((typeof keywordKeyList != "undefined") && (typeof keywordHash != "undefined")){
                        tableForEach(keywordKeyList, keywordHash, 2, "Topics");
                }

        if (!isMember()) {
                document.write('<tr><td  colspan="4"  style="font-size: 12px; font-weight: bold; padding-bottom: 5px; border-bottom: thin dotted"></td></tr><tr><td colspan="2"><span style="color: #369; font-size: 12px; font-weight: bold; margin-bottom: 6px;">Become a member FREE </span></td><td style=" padding-bottom: 7px; padding-top: 7px;" width="134" colspan="2">Already a Member? <a href="http://members.forbes.com/membership/signup.do?comingFrom=alerts&gotoURL=' + window.location.href + '"><b>Log In</b><scr' + 'ipt language="JavaScript">OAS_AD("AlertsLogo");</scr' + 'ipt></td></tr>');
		document.write('<tr valign="top" height="5"><td style="padding-top: 9px; padding-bottom: 5px; border-top: thin dotted"  colspan="4" align="left" valign="middle" height="5"><table width="291" border="0" cellspacing="0" cellpadding="0"><tr><td width="166"><input style="font-size: 11px;" type="text" name="login" ONFOCUS="clearText(this)" id="login" value="Enter Username" class="alertemail" size="21" ></td><td width="166"><input style="font-size: 11px;" type="text" name="email" ONFOCUS="clearText(this)" id="email" value="Enter E-Mail Address" class="alertemail" size="21" ></td></tr><tr><td style="padding-top: 6px;" width="166"><select style="font-size: 11px;" name="title" size="1" tabindex="1" id="alerts_title">' + getTitleDropDown() + '</select></td><td>Receive Special Offers?&nbsp;<input type="checkbox" name="special_offers" checked></td></tr><tr></td><td style="padding-top: 6px;"><input style="font-size: 11px;" class="alertsignup" value="Sign Me Up!" name="submit" type="submit"></td> </tr></table></td></tr>');
        } else {
                document.write('<tr valign="top" height="5"><td style="padding-top: 9px; padding-bottom: 5px; border-top: thin dotted"  colspan="4" align="left" valign="middle" height="5"><input type="hidden" name="email" id="email" value="fdc@fdc.com"><input type="hidden" name="title" id="alerts_title" value="title"><input style="font-size: 11px;" class="alertsignup" value="Sign Me Up!" name="submit" type="submit"><table width="281" border="0" cellspacing="0" cellpadding="0"><tr><td width="166"></td><td></td></tr><tr><td style="padding-top: 6px;" width="166"><table width="141" border="0" cellspacing="0" cellpadding="0"><tr><td></td><td></td></tr></table></td><td style="padding-top: 6px;"></td> </tr></table></td></tr>');
        }


                document.write('<tr height="22"> <td style="padding-top: 0px;" colspan="4" align="left" height="22"><span style="float: left;"><a href="javascript:popup(\'faq\')">FAQ</a> | <a href="javascript:popup(\'terms\')">Terms, Conditions and Notices</a> | <a href="javascript:popup(\'privacy\')">Privacy Policy</a></span></td> </tr><tr height="22"> <td style="padding-top: 5px; border-top: thin dotted"   colspan="4" align="left" height="22"><b>Also available: </b><a href="http://members.forbes.com/membership/editprofile.do">E-Mail Newsletters</a></td> </tr> <tr> <td class="linkset" colspan="4" align="left"></td> </tr> <td class="linkset" colspan="4" align="left"></td></tr> </tbody> </table></td></tr></tbody></table></div></form>');
        }
        function _doAlertsColumn(){
                if((typeof tickerKeyList == "undefined") && (typeof personKeyList == "undefined") && (typeof keywordKeyList == "undefined")){return;}

                document.write('<style type="text/css" media="screen"><!--#alertsbox td {font-size: 11px;}--></style><form action="http://members.forbes.com/alertSignup" method="post" name="alertForm" onSubmit="return _checkAlertForm();"><input type="hidden" name="action" value="alerts_signup"><input type="hidden" name="comingFrom" value="alerts"><input type="hidden" name="service" value="key_membership"><input type="hidden" name="gotoURL" value="' + window.location.href + '"><div id="alertsbox"><table bgcolor="#cccccc" border="0" cellpadding="1" cellspacing="0" width="166"><tbody><tr><td><table bgcolor="#ffffff" border="0" cellpadding="2" cellspacing="0" width="100%"><tbody><tr><td rowspan="100"></td><td></td><td width="141"></td><td rowspan="100"></td></tr><tr><td colspan="2"  style=" font-size: 12px; font-weight: bold; padding-bottom: 5px;"><span style=" color: 990000;">News by E-mail</span><br>Get stories by E-Mail on this topic <span style=" color: 990000;">FREE</span></td></tr><tr><td colspan="2"><scr' + 'ipt language="JavaScript">OAS_AD("AlertsLogo");</scr' + 'ipt><br>');
                document.write('<span style="color: #369; font-size: 12px; font-weight: bold; margin-bottom: 6px;"></span><a href="http://members.forbes.com/membership/signup.do?comingFrom=alerts"><b></b></td></tr>');

                if((typeof tickerKeyList != "undefined") && (typeof tickerHash != "undefined")){
                        tableForEach(tickerKeyList, tickerHash, 1, "Companies");
                }
                if((typeof personKeyList != "undefined") && (typeof personHash != "undefined")){
                        tableForEach(personKeyList, personHash, 1, "People");
                }
                if((typeof keywordKeyList != "undefined") && (typeof keywordHash != "undefined")){
                        tableForEach(keywordKeyList, keywordHash, 1, "Topics");
                }

        if (!isMember()) {
                document.write('<tr><td style="border-top: thin dotted;" colspan="2"></td></tr><tr><td colspan="2"><span style="color: #369; font-size: 12px; font-weight: bold; margin-bottom: 6px;">Become a member FREE </span>Already a Member? <a href="http://members.forbes.com/membership/signup.do?comingFrom=alerts"><b>Log In</b></td></tr>');
		document.write('<tr valign="top" height="24"> <td style="padding-top: 5px; border-top: thin dotted"  colspan="2" valign="middle" height="24"><input style="font-size: 11px;" type="text" name="login" ONFOCUS="clearText(this)" id="login" value="Enter Username" class="alertemail" size="21" ></td></tr> <tr valign="top" height="24"> <td style="padding-top: 5px;"  colspan="2" valign="middle" height="24"><input style="font-size: 11px;" type="text" name="email" ONFOCUS="clearText(this)" id="email" value="Enter E-Mail Address" class="alertemail" size="21" ></td></tr> <tr><td  colspan="2"><select style="font-size: 11px;" name="title" size="1" id="alerts_title"> ' + getTitleDropDown() + '</select></td> </tr><tr> <td colspan="2"><table width="141" border="0" cellspacing="0" cellpadding="0"><tr><td>Receive Special Offers?</td><td><input type="checkbox" name="special_offers" checked></td></tr></table></td></tr> <tr> <td style="padding-bottom: 5px;" colspan="2"><input style="font-size: 11px;" class="alertsignup" value="Sign Me Up!" name="submit" type="submit"><br> </td> </tr></form>');
        } else {
                document.write('<tr valign="top" height="24"> <td style="padding-top: 5px; border-top: thin dotted"  colspan="2" valign="middle" height="24"><input type="hidden" name="email" id="email" value="fdc@fdc.com"><input type="hidden" name="title" id="alerts_title" value="title"><input style="font-size: 11px;" class="alertsignup" value="Sign Me Up!" name="submit" type="submit"></td></tr> <tr><td  colspan="2"></td> </tr><tr> <td colspan="2"><table width="141" border="0" cellspacing="0" cellpadding="0"><tr><td></td><td></td></tr></table></td></tr> <tr> <td style="padding-bottom: 5px;" colspan="2"><br> </td> </tr></form>');
        }

                // FAQ, Privacy policy, newsletters signup link and closing tags
                document.write('<tr height="22"> <td style="padding-bottom: 5px; "  colspan="2" height="22"><span style="float: left;"><a href="javascript:popup(\'faq\')">FAQ</a> |  <a href="javascript:popup(\'privacy\')">Privacy Policy</a></span><br><span style="float: left;"><a href="javascript:popup(\'terms\')">Terms, Conditions and Notices</a> </span></td></tr> <tr height="22"> <td style="padding-top: 5px; border-top: thin dotted" colspan="2" align="left" height="22"><b>Also available:</b><br> </td> </tr> <tr> <td  colspan="2" align="left"><a href="http://members.forbes.com/membership/editprofile.do">E-Mail Newsletters</a></td> </tr> <tr> <td class="linkset" align="left"></td> <td class="linkset" align="left" width="141"></td> </tr> </tbody> </table></td></tr></tbody></table></div>');
        }

//cookie
var exp = new Date();
exp.setTime(exp.getTime() + (2*24*60*60*1000));
function WriteNew (name, value, exp, path, secure, domain) {
	var argv = WriteNew.arguments;
	var argc = WriteNew.arguments.length;
	var expires = (argc > 2) ? argv[2] : null;
	var path = (argc > 3) ? argv[3] : null;
	var secure = (argc > 4) ? argv[4] : false;
	var domain = (argc > 5) ? argv[5] : null;
	document.cookie = name + "=" + escape (value) +
	((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
	((path == null) ? "" : ("; path=" + path)) +
	((domain == null) ? "" : ("; domain=" + domain)) +
	((secure == true) ? "; secure" : "");
}

//jumpNav
function jumpNav (form) {
	if (form.jumpSelect.options[form.jumpSelect.selectedIndex].value != "") {
		this.location = form.jumpSelect.options[form.jumpSelect.selectedIndex].value;
	}
}
//popit
function popit(url, popWidth, popHeight) {
	if (popWidth < 760) {
		popWidth = 760;
	}
	slideWin = window.open(url, 'popup', "width=" + popWidth + ",height=" + popHeight + ",toolbar=0,resizable=1,scrollbars=1");
	slideWin.focus();
}
//go
function go(url) {
	if (opener && !opener.closed) {
		opener.location = url;
		opener.focus();
	} else {
		fakeWin = window.open(url, 'fake');
		fakeWin.focus();
	}
}
//closeWindow
function closeWindow() {
window.close()
}

//channel
if ((typeof fdcchannel == "undefined") || (fdcchannel == "")) {
	if ((typeof displayedChannel != "undefined") && (displayedChannel != "")) {
		fdcchannel = displayedChannel;
	}
	else {
		var channelIndex = this.location.href.indexOf('fdcchannel=');
		if (channelIndex == -1) fdcchannel = 'home';
		else {
			fdcchannel =  this.location.href.substr(channelIndex+8);
			var channelEnd = fdcchannel.indexOf('&');
			if (channelEnd>-1) fdcchannel = fdcchannel.substr(0,channelEnd);
		}
	}
}
if (fdcchannel == 'leadership') fdcchannel = 'work';
if (fdcchannel == 'forbeslife') fdcchannel = 'lifestyle';
count=0;
for (i=0;i<channelArr.length;i++) {
	if(channelArr[i] == fdcchannel) {
		break;
	}
	count++;
}

if (count==channelArr.length) fdcchannel = "home";

var displayedChannel = fdcchannel;

if (typeof fdcsponsor == "undefined") {
	var sponsorIndex = this.location.href.indexOf('fdcsponsor=');
	if (sponsorIndex == -1) fdcsponsor = '';
	else {
		fdcsponsor =  this.location.href.substr(sponsorIndex+8);
		var sponsorEnd = fdcsponsor.indexOf('&');
		if (sponsorEnd>-1) fdcsponsor = fdcsponsor.substr(0,sponsorEnd);
	}
}

var today = new Date();
var fdcwelcb = document.cookie.split(";");
for(var i=0 ; i < fdcwelcb.length ; i++)
	if((fdcweldelim = fdcwelcb[i].indexOf('__welcome')) > -1) {
		var fdcwelCookieTime = fdcwelcb[i].substring(fdcweldelim+9);
		if(fdcwelCookieTime == "") {
			var tomorrow = new Date();
			tomorrow.setTime(tomorrow.getTime() + (24*60*60*1000));
			document.cookie = fdcwelcb[i] +tomorrow.getTime()+'; path=/; domain=.forbes.com; expires=' + tomorrow.toGMTString();
		}
		else if(fdcwelCookieTime>today.getTime()) {
			var fdcwelExpire = new Date;
			fdcwelExpire.setTime(fdcwelCookieTime);
			document.cookie = fdcwelcb[i] +'; path=/; domain=.forbes.com; expires=' + fdcwelExpire.toGMTString();
		}
	}
//This is <body>
document.write('<\/head>');
document.write('<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" link="#003399" alink="#0080ff" vlink="#6699cc">');

//video ad frame
if(displayedSection == 'Video') {
	document.write('<iframe name="dummy" width="0" height="0" style="height:0px;" scrolling="no" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0"></iframe>');
	noSearch = 1;
}

function docdowrite(s) {
   document.write(s);
}
//end adfix

/* rollover 18APRIL2006 Version 1.0
 * Tania Puell, April 2006
 * Copyright (c) 2006 Forbes.com
 */
var aboutusArr = new Array();
var opinionsArr = new Array();
var glmArr = new Array();
var tibetArr = new Array();
var mecArr = new Array();
var sponsorshipArr = new Array();
var multimediaArr = new Array();
var hTimer;
var vTimer;
var thisSection;
var htimer = 0;
var lastSection;
var thisAdDiv;
var vSection;
aboutusArr[0] = new Array("介绍","/chn/introduction");
aboutusArr[1] = new Array("新闻","/cn/html/cn/news.php");
aboutusArr[2] = new Array("活动","/chn/events");
aboutusArr[3] = new Array("友情链接","/chn/links");
aboutusArr[4] = new Array("联系我们","/chn/contact");
glmArr[0] = new Array("项目简介","/chn/glm");
glmArr[1] = new Array("路线","/chn/glm/routes2009");
glmArr[2] = new Array("赞助商","/chn/glm/sponsors2009");
glmArr[3] = new Array("合作伙伴","/chn/glm/partners2009");
glmArr[4] = new Array("形象大使","/chn/glm/amb2009");
glmArr[5] = new Array("震后重建","/chn/glm/earthquake2009");
glmArr[6] = new Array("加入全球环保计划","/chn/glm/register_action");
glmArr[7] = new Array("历年项目","/chn/glm/history");
tibetArr[0] = new Array("项目简介","/chn/tibet");
tibetArr[1] = new Array("珠穆朗玛国家自然保护区","/chn/tibet/qnnp");
tibetArr[2] = new Array("四江流域","/chn/tibet/fourgr");
tibetArr[3] = new Array("潘德巴","/chn/tibet/pendeba");
sponsorshipArr[0] = new Array("介绍","/chn/sponsorship");
sponsorshipArr[1] = new Array("历年赞助商","/chn/sponsorship/sponsors");
sponsorshipArr[2] = new Array("赞助我们","/chn/sponsorship/donate");
multimediaArr[0] = new Array("媒体资料下载","/chn/presskit");
multimediaArr[1] = new Array("电子期刊","/chn/newsletter");
multimediaArr[2] = new Array("图片相册","/cn/html/cn/gallery1.php?fileclassone=1");
multimediaArr[3] = new Array("视频电影","/chn/movies");

aboutus0Arr = new Array();
aboutus1Arr = new Array();
aboutus2Arr = new Array();
aboutus3Arr = new Array();
aboutus4Arr = new Array();
glm0Arr = new Array();
glm1Arr = new Array();
glm2Arr = new Array();
glm3Arr = new Array();
glm4Arr = new Array();
glm5Arr = new Array();
glm6Arr = new Array();
glm7Arr = new Array();
tibet0Arr = new Array();
tibet1Arr = new Array();
tibet2Arr = new Array();
tibet3Arr = new Array();
sponsorship0Arr = new Array;
sponsorship1Arr = new Array;
sponsorship2Arr = new Array;
multimedia0Arr = new Array();
multimedia1Arr = new Array();
multimedia2Arr = new Array();
multimedia3Arr = new Array();
var hiColor = '#666666';
var loColor ='#ffffff';
var lastColor;
var userIni = 0;
var displayedSectionVar;
var searchBoxTopIsSet = false;
function setSearchBoxTop()
{
	if(document.getElementById('forbesLogo'))
	{
		var logo = document.getElementById('forbesLogo');
		var searchBox = document.getElementById('searchbox');
		var logoOffTop = getPosTop(logo);
		var padding = 1;
		searchBox.style.top = (logoOffTop+padding)+"px";
		var proceedToDisplay = testSearchTopPos(searchBox);
		
		if(proceedToDisplay)
		{
			if(isSlidePage !=true)
			{
				searchBox.style.display = 'block';
			}
			searchBoxTopIsSet = true;
			clearInterval(setTopInt);
		}
	}
}
function testSearchTopPos(obj)
{
	if(obj.style.top)
	{
		var tempTop = obj.style.top;
		var PXPos = tempTop.indexOf('p');
		var topNum = tempTop.substr(0,PXPos);
		if(topNum>15)
		{
			return true;
		}
	}
	else
	{
		return false	
	}
}
var attacheTopIsSet = false;
function setAttacheTop()
{
	var login = document.getElementById('theLogin');
	var target = document.getElementById('column');
	var loginOffTop = getPosTop(login);
	var padding = 10;
	var tempAdd = 0;
	if(login.previousSibling)
	{
		tempAdd = login.previousSibling.clientHeight;
	}	
	target.style.top = (loginOffTop+login.clientHeight+padding+tempAdd)+"px";
	var attacheTopIsSet = true;
}
function getPosTop(theObj)
{
	var theTop,thePar;
	theTop = theObj.offsetTop;
	while(theObj.offsetParent!=null)
	{
		thePar = theObj.offsetParent;
		theTop += thePar.offsetTop;
		theObj = thePar;
	}
	return theTop;
}

function showHMenu(channel) 
{
	
	//alert(channel);
	keepMenu();
	//hideVMenu();
	hover(channel);
	if ((typeof curChannel == 'undefined') || (channel != curChannel) || (channel == fdcchannel)) {
		curChannel = channel;
		hideVMenu();
		thisChannArr = eval(channel+'Arr');
		thisChannStr = "";
		thisWidth = 0;
		thisChannX = document.getElementById(channel+'S').offsetParent.offsetLeft;
		//alert(thisChannX);
		thisChannWidth = document.getElementById(channel+'S').offsetWidth;
		//alert(thisChannWidth);
		if (navigator.appName == 'Microsoft Internet Explorer') thisChannWidth += 8;
		for(i=0;i<thisChannArr.length;i++) {
			if ((typeof displayedSectionVar != "undefined") && (channel + i == displayedSectionVar)) thisHC = "hirizItem";
			else thisHC = "horizItem";
			thisChannStr += '<span id="'+channel+i+'"onMouseOver="showVMenu(\''+channel+i+'\')" onMouseOut="hideMenu()" class="' + thisHC + '" onMouseUp="javascript:nvg(\''+thisChannArr[i][1]+'\')">'+thisChannArr[i][0]+'<\/span>';
		}
		document.getElementById('hRO').innerHTML = thisChannStr;
	
		for(i=0;i<thisChannArr.length;i++) {
			thisWidth += document.getElementById(channel+i).offsetWidth;
		}
		thisPadding = (860 - thisWidth)/2;
		//alert(thisPadding);
		if (860-thisChannX>=thisWidth) thisPadding = thisChannX;
		else if (thisChannX+thisChannWidth>=thisWidth) thisPadding = thisChannX + thisChannWidth - thisWidth -6;
		if (thisPadding<0) thisPadding = 0;
	
		document.getElementById('hRO').style.width=860 + 'px';
		//alert(document.getElementById('hRO').style.width);
		document.getElementById('hRO').style.paddingLeft = thisPadding + 'px';
		//alert(document.getElementById('hRO').style.paddingLeft);
		if (document.getElementById('hRO').offsetWidth > 860) {
			document.getElementById('hRO').style.width = (860 - thisPadding) + 'px';
		}

		if(channel != fdcchannel) {
			for(i=0;i<channelArr.length;i++) {
				thisChannel = channelArr[i];
				if(thisChannel != fdcchannel) {
					document.getElementById(thisChannel+'S').style.backgroundColor = 'transparent';
					document.getElementById(thisChannel+'S').style.color = '#ffffff';
				}
			}
			document.getElementById(channel+'S').style.backgroundColor = '#ffffff';
			document.getElementById(channel+'S').style.color = '#666666';
			document.getElementById(fdcchannel+'S').style.backgroundColor = 'transparent';
			document.getElementById(fdcchannel+'S').style.color = loColor;
			lastColor = loColor;
			
		} else {
			for(i=0;i<channelArr.length;i++) {
				thisChannel = channelArr[i];
				if(thisChannel != fdcchannel) {
					document.getElementById(thisChannel+'S').style.backgroundColor = 'transparent';
				}
			}
			document.getElementById(fdcchannel+'S').style.backgroundColor = '#ffffff';
			if (!userIni) document.getElementById(fdcchannel+'S').style.color = hiColor;
			lastColor = hiColor;
			showSection();
		}
	}
	userIni=0;
}

function nvg(URL) {
	this.location.href=URL;
}
function hover(channel) {
	document.getElementById(channel+'S').style.color = "#666666";
}
function hideHMenu() {
	document.getElementById('hRO').innerHTML = "";
	document.getElementById('hRO').style.width = 860;
	showHMenu(fdcchannel);
	showAd();
}
function hideVMenu() {
	if ((typeof thisSection != "undefined") && (document.getElementById(thisSection))) {
		if((typeof displayedSectionVar != "undefined") && (displayedSectionVar == thisSection)) document.getElementById(thisSection).style.color = hiColor;
		else document.getElementById(thisSection).style.color = "#2e8828";
	}
	if ((typeof vSection != "undefined") && (document.getElementById(vSection))) document.getElementById(vSection).style.backgroundColor = 'transparent';
	if (lastSection) lastSection = "";
	document.getElementById('vRO').innerHTML = "";
	document.getElementById('vRO').style.display = 'none';
}
function hideMenu() {
	if ((typeof thisSection != "undefined") && (document.getElementById(thisSection))) {
		if((typeof displayedSectionVar != "undefined") && (displayedSectionVar == thisSection)) document.getElementById(thisSection).style.color = hiColor;
		else document.getElementById(thisSection).style.color = "#2e8828";
	}
	for(i=0;i<channelArr.length;i++) {
		thisChannel = channelArr[i];
		if (thisChannel != fdcchannel) {
			var start=0;
			var n;
			function init(){
			start++;
			 }
			 function process(i){
			 n=setTimeout("init()",1000);
			 if(start>i){
			 clearTimeout(n);
			  start=0;
			 document.getElementById(thisChannel+'S').style.color = '#ffffff';
			 }
			 }
			
		}
		else document.getElementById(thisChannel+'S').style.color = lastColor;
	}
	hTimer = setTimeout('hideHMenu()',100);
}
function showVMenu(section) {
	keepMenu();
	hideVMenu();
	document.getElementById(section).style.color ="#666666";
	if (displayedSection != 'Video') {
		if((!thisAdDiv) || (typeof thisAdDiv == "undefined") || (thisAdDiv == "")) {
			if (document.getElementById('adDiv')) thisAdDiv = 'adDiv';
			else if (document.getElementById('dynamicAdColDiv')) thisAdDiv = 'dynamicAdColDiv';
			else if (document.getElementById('dynamicAdWinDiv')) thisAdDiv = 'dynamicAdWinDiv';
		}
		if (document.getElementById(thisAdDiv)) {
			if((document.getElementById(section).offsetLeft+150 > document.getElementById(thisAdDiv).offsetLeft) && (eval(section + 'Arr').length>2)) {
				hideAd();
			}
		}
	}
	thisSection = section;
	showMenu(section);
}
function keepMenu() {
	if (hTimer) clearTimeout(hTimer);
	if (vTimer) clearTimeout(vTimer);
}

function showSection() {
	if ((typeof displayedSection != "undefined") && (displayedSection != "")) {
	   thisChannelArr  = eval(displayedChannel + 'Arr');
	   count = 0;
	   for(i=0;i<thisChannelArr.length;i++) {
		displayedSectionLnk = thisChannelArr[i][0].toLowerCase();
	   	displayedSectionLnk = displayedSectionLnk.replace(/ \& /g,"");
	   	displayedSectionLnk = displayedSectionLnk.replace(/ /g,"");
	   	if (displayedSectionLnk == displayedSection.toLowerCase()) {
			displayedSectionVar = displayedChannel + i;
			break;
		}
		count++;
	   }
	   if(count==thisChannelArr.length) {
	        displayedSectionLnk = displayedSection;
	        displayedSectionLnk = displayedSectionLnk.substr(displayedSection.indexOf(" ")+1,displayedSectionLnk.length);
	   	for(i=0;i<thisChannelArr.length;i++) {
			checkSection = thisChannelArr[i][0].toLowerCase();
	   		if (checkSection.indexOf(displayedSectionLnk)>-1) {
				displayedSectionVar = displayedChannel + i;
				break;
			}
		}
	   }
//stoopid failsafe
	   switch (displayedSection) {
           	case "businesstech":
		displayedSectionVar = "business8";
	        break;
		case "wallstreet":
		displayedSectionVar = "business9";
	        break;
           	case "beltway":
		displayedSectionVar = "business10";
	        break;
           	case "enterprisetech":
		displayedSectionVar = "technology1";
	        break;
           	case "infoimaging":
		displayedSectionVar = "technology2";
	        break;
           	case "ebusiness":
		displayedSectionVar = "technology3";
	        break;
           	case "entrefinance":
		displayedSectionVar = "entrepreneurs0";
	        break;
           	case "entrehr":
		displayedSectionVar = "entrepreneurs1";
	        break;
           	case "entrelaw":
		displayedSectionVar = "entrepreneurs2";
	        break;
           	case "entresales":
		displayedSectionVar = "entrepreneurs3";
	        break;
           	case "entremgmt":
		displayedSectionVar = "entrepreneurs4";
	        break;
           	case "entretech":
		displayedSectionVar = "entrepreneurs5";
	        break;
           	case "estate_planning":
		displayedSectionVar = "personalFinance0";
	        break;
           	case "entertainment":
		displayedSectionVar = "technology1";
	        break;
	   }
	   if (document.getElementById(displayedSectionVar)) document.getElementById(displayedSectionVar).style.color=hiColor;
	}
}
function showMenu(section) {
	thisSectionArr  = eval(section + 'Arr');
	if((thisSectionArr.length>0) && (displayedSection != "Video")) {
		keepMenu();
		document.getElementById('vRO').style.display = 'block';
		if(document.getElementById(section).offsetLeft>640) document.getElementById('vRO').style.left = 640;
		else document.getElementById('vRO').style.left = document.getElementById(section).offsetLeft;
		vSection = section;
		dropStr = '';
		for(i=0;i<thisSectionArr.length;i++) {
			dropStr += '<div class="vertItem" onMouseOver="hoverAct(\''+section+i+'\',1)" id="'+section+i+'H"><a href="' + thisSectionArr[i][1]+'" class="vertLink" id="'+section+i+'L">'+thisSectionArr[i][0]+'</a></div>';
		}
		document.getElementById('vRO').innerHTML = dropStr;
	}
}
function hoverAct(section,on) {
	if (lastSection) {
		document.getElementById(lastSection+'L').style.color = '#369';
	}
	document.getElementById(section+'L').style.color = '#666666';
	lastSection = section;
}
function showAd() {
	if (searchTab == 0) {
		if(document.getElementById(thisAdDiv) != null) document.getElementById(thisAdDiv).style.display = 'block';
  	}
}
function hideAd() {
 	if(document.getElementById(thisAdDiv)) {
		document.getElementById(thisAdDiv).style.display = 'none';
	} 
}

// attache and members
//var noattache=1;
//var maintenance=1;

// american dream
 var amrdrm = window.location + "";
 if ( amrdrm.indexOf("dream0307") != -1 ) { var noattache=1; }

var phatcatId = '35415301490';

//end attache and members
var welcomeCookie = "undefined";

function secondHTML() {
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="780" style="padding-bottom:2px;">');
	document.write('<tr valign="bottom">');
	document.write('<td rowspan="2" width="10">');
	document.write('&nbsp;');
	document.write('<\/td>');
	document.write('<td width="160">');
	//setLogoURL("isNotSlide"); //set url for logo
	document.write('<\/td><td rowspan="2" width="10"><\/td>');
	document.write('<td colspan="2" width="420">&nbsp;</td>');
	document.write('<td rowspan="2" width="180" valign="top" align="right" height="70">');
}
//In IE, when clicked,  will make MAKE FORBES.COM my homepage and will aslo bookmark the current page.
function _doHomePage(){

       //Bookmark will not be available for that has  video, orgchart and clipmarks.
	var tempUrl=window.location.href;
	var temp= tempUrl.toLowerCase();

       if ( (temp.indexOf("/video/") > 0) || (temp.indexOf("orgchart.forbes.com") > 0) || (temp.indexOf("/clipmarks/") > 0 ) ) {

	document.write('<div style="width:216px;font: bold 12 arial,sans-serif;color:#ffffff;border-bottom:1 solid #ffffff;padding:0px 0px 5px 0px;margin:0px 0px 3px 10px;">');
	document.write('<div style="width:150px;padding:0px 0px 0px 0px;">');
	document.write('<a href="#" style="font: bold 12 arial,sans-serif; color:#ffffff;" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.forbes.com\');">');
        document.write('<img src="http://images.forbes.com/media/assets/logos/home_home.gif" align="right" border=0>Make Forbes.com<br>My Home Page</a></div>');
	document.write('</div>');

	}
else{
 	//for the rest of the urls
        document.write('<div style="width:216px;border-bottom:1 solid #ffffff;padding:0px 0px 5px 0px;margin:0px 0px 3px 10px;">');
        document.write('<div style="float:left;width:125px;padding:0px 0px 0px 0px;">');
        document.write('<a href="#" style="font: 12 arial,sans-serif;color:#ffffff;" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.forbes.com\');">');
        document.write('<img src="http://images.forbes.com/media/assets/logos/home_home.gif" align="right" border="0" style="margin:4px 0px 0px 0px;">Make Forbes.com<br>My Home Page</a></div>');
        document.write('<div style="float:right;width:85px;padding:0px 0px 0px 0px;">');
        document.write("<a href=\"javascript:window.external.AddFavorite('" + this.location + "','" + escapeSingleQuote(document.title) + "');\" style=\"font: 12 arial, sans-serif; color:#ffffff;\">");
        document.write('<img src="http://images.forbes.com/media/assets/logos/home_plus.gif" align="right" border="0" style="margin:4px 0px 0px 0px;">Bookmark<br>This Page</a></div>');
        document.write('</div>');
}//end else
}//end function

function thirdHTML() {
        //To Make Home Page
        var ver = navigator.appName;
        var num = parseInt(navigator.appVersion);
        var myagent = navigator.userAgent.toLowerCase();
    
	document.write('<div class="navbg">');
	document.write('<table cellspacing="0" cellpadding="0" border="0" width="860"><tr align="center">');
	for (i=0;i<channelArr.length;i++) {
		thisChannel = channelArr[i];
		thisLongChannel = longChannelArr[i];
		thisChannelURL = channelURLArr[i];
		if (i==0) {
		document.write('<td width="15"></td><td><div class="navitem" id="'+thisChannel+'S" onMouseOut="hideMenu();" onMouseOver="showHMenu(\''+thisChannel+'\');" onMouseUp="javascript:nvg(\'http://www.fgchina.org'+thisChannelURL+'\')">&nbsp;'+thisLongChannel+'&nbsp;<\/div><\/td>');
		}
		else {
		document.write('<td><div class="navitem" id="'+thisChannel+'S" onMouseOut="hideMenu();" onMouseOver="showHMenu(\''+thisChannel+'\');" onMouseUp="javascript:nvg(\'http://www.fgchina.org'+thisChannelURL+'\')">&nbsp;'+thisLongChannel+'&nbsp;<\/div><\/td>');
		}
	
	}
	document.write('</tr></table><\/div>');
	document.write('<div class="horizRO" id="hRO"></div>');
	document.write('<div class="vertRO" id="vRO" onMouseOut="hideMenu();" onMouseOver="keepMenu();"></div>');
	if (!noSearch) document.write('<div onMouseDown="hideSearchPanel()">');
	document.write('<br>');
}