//Set the current page main.
var strCurrMain;
var d = document;
var server = "http://inside.tibco.com";
strCurrMain = document.URL
strCurrMain = strCurrMain.slice(0,50);
//strCurr = strCurr.toLowerCase();  
	if (strCurrMain.search(/\bHome\b/g)>=0) {
	d.write('<TD width=66 nowrap bgcolor="#c0c0c0" align="center" class="TabOn"><img src="img/down_arrow_on.gif" width="13" height="9" alt="" border="0">HOME</TD>');
	} else {
	d.write('<TD width=66 nowrap bgcolor="#c0c0c0" align="center" class="Tab"><A href="' + server + '/tibco/Home"><img src="img/down_arrow_off.gif" width="13" height="9" alt="" border="0">HOME</A></TD>');	
	};
	
	d.write('<TD width=1><IMG height=20 src="img/square_black.gif" width=1 border=0></TD>');	
	
	if (strCurrMain.search(/\bmyTIBCO\b/g)>=0) {
	d.write('<TD width=78 nowrap bgcolor="#c0c0c0" align="center" class="TabOn"><A href="' + server + '/tibco/myTIBCO" onmouseover="ypSlideOutMenu.showMenu(' + "'mytibco'" + ')" onmouseout="ypSlideOutMenu.hideMenu(' + "'mytibco'" +')"><img src="img/down_arrow_on.gif" width="13" height="9" alt="" border="0">myTIBCO</A></TD>');
	} else {
	d.write('<TD width=78 nowrap bgcolor="#c0c0c0" align="center" class="Tab"><A href="' + server + '/tibco/myTIBCO" onmouseover="ypSlideOutMenu.showMenu(' + "'mytibco'" + ')" onmouseout="ypSlideOutMenu.hideMenu(' + "'mytibco'" +')"><img src="img/down_arrow_off.gif" width="13" height="9" alt="" border="0">myTIBCO</A></TD>');	
	};
	
	d.write('<TD width=1><IMG height=20 src="img/square_black.gif" width=1 border=0></TD>');	
		
	if (strCurrMain.search(/\bDirectory\b/g)>=0) {
	d.write('<TD width=88 nowrap bgcolor="#c0c0c0" align="center" class="TabOn"><A href="' + server + '/tibco/Directory" onmouseover="ypSlideOutMenu.showMenu(' + "'directory'" + ')" onmouseout="ypSlideOutMenu.hideMenu(' + "'directory'" +')"><img src="img/down_arrow_on.gif" width="13" height="9" alt="" border="0">DIRECTORY</A></TD>');
	} else {
	d.write('<TD width=88 bgcolor="#c0c0c0" nowrap align="center" class="Tab"><A href="' + server + '/tibco/Directory" onmouseover="ypSlideOutMenu.showMenu(' + "'directory'" + ')" onmouseout="ypSlideOutMenu.hideMenu(' + "'directory'" +')"><img src="img/down_arrow_off.gif" width="13" height="9" alt="" border="0">DIRECTORY</A></TD>');	
	};
	
	
	d.write('<TD width=1><IMG height=20 src="img/square_black.gif" width=1 border=0></TD>');	
	
	if (strCurrMain.search(/\bCommunities\b/g)>=0) {
	d.write('<TD width=107 nowrap bgcolor="#c0c0c0" align="center" class="TabOn"><A href="' + server + '/tibco/Communities" onmouseover="ypSlideOutMenu.showMenu(' + "'communities'" + ')" onmouseout="ypSlideOutMenu.hideMenu(' + "'communities'" +')"><img src="img/down_arrow_on.gif" width="13" height="9" alt="" border="0">COMMUNITIES</A></TD>');
	} else {
	d.write('<TD width=107 nowrap bgcolor="#c0c0c0" align="center" class="Tab"><A href="' + server + '/tibco/Communities" onmouseover="ypSlideOutMenu.showMenu(' + "'communities'" + ')" onmouseout="ypSlideOutMenu.hideMenu(' + "'communities'" +')"><img src="img/down_arrow_off.gif" width="13" height="9" alt="" border="0">COMMUNITIES</A></TD>');	
	};
	
	d.write('<TD width=1><IMG height=20 src="img/square_black.gif" width=1 border=0></TD>');	
	
	if (strCurrMain.search(/\bShowcase\b/g)>=0) {
	d.write('<TD width=88 nowrap bgcolor="#c0c0c0" align="center" class="TabOn"><img src="img/down_arrow_on.gif" width="13" height="9" alt="" border="0">SHOWCASE</TD>');
	} else {
	d.write('<TD width=88 nowrap bgcolor="#c0c0c0" align="center" class="Tab"><A href="' + server + '/tibco/Showcase"><img src="img/down_arrow_off.gif" width="13" height="9" alt="" border="0">SHOWCASE</A></TD>');	
	};
	
	d.write('<TD width=1><IMG height=20 src="img/square_black.gif" width=1 border=0></TD>');	
	
	if (strCurrMain.search(/\bproduts\b/g)>=0) {
	d.write('<TD width=140 nowrap bgcolor="#c0c0c0" align="center" class="TabOn"><A href="http://inside3.tibco.com/products" onmouseover="ypSlideOutMenu.showMenu(' + "'solutions'" + ')" onmouseout="ypSlideOutMenu.hideMenu(' + "'solutions'" +')"><img src="img/down_arrow_on.gif" width="13" height="9" alt="" border="0">SOLUTIONS &amp; SALES</A></TD>');
	} else {
	d.write('<TD width=140 nowrap bgcolor="#c0c0c0" align="center" class="Tab"><A href="http://inside3.tibco.com/products" onmouseover="ypSlideOutMenu.showMenu(' + "'solutions'" + ')" onmouseout="ypSlideOutMenu.hideMenu(' + "'solutions'" +')"><img src="img/down_arrow_off.gif" width="13" height="9" alt="" border="0">SOLUTIONS &amp; SALES</A></TD>');	
	};
	
	d.write('<TD width=1><IMG height=20 src="img/square_black.gif" width=1 border=0></TD>');	
	
	if (strCurrMain.search(/\binsidearc\b/g)>=0) {
	d.write('<TD width=65 nowrap bgcolor="#c0c0c0" align="center" class="TabOn"><A href="http://insidearc.tibco.com" onmouseover="ypSlideOutMenu.showMenu(' + "'arc'" + ')" onmouseout="ypSlideOutMenu.hideMenu(' + "'arc'" +')"><img src="img/down_arrow_on.gif" width="13" height="9" alt="" border="0">ARC KB</A></TD>');
	} else {
	d.write('<TD width=65 nowrap bgcolor="#c0c0c0" align="center" class="Tab"><A href="http://insidearc.tibco.com" onmouseover="ypSlideOutMenu.showMenu(' + "'arc'" + ')" onmouseout="ypSlideOutMenu.hideMenu(' + "'arc'" +')"><img src="img/down_arrow_off.gif" width="13" height="9" alt="" border="0">ARC KB</A></TD>');	
	};
	
	d.write('<TD width=1><IMG height=20 src="img/square_black.gif" width=1 border=0></TD>');	
	
	if (strCurrMain.search(/\bHelpdesk\b/g)>=0) {
	d.write('<TD width=79 nowrap bgcolor="#c0c0c0" align="center" class="TabOn"><img src="img/down_arrow_on.gif" width="13" height="9" alt="" border="0">HELPDESK</TD>');
	} else {
	d.write('<TD width=79 nowrap bgcolor="#c0c0c0" align="center" class="Tab"><A href="' + server + '/tibco/Helpdesk"><img src="img/down_arrow_off.gif" width="13" height="9" alt="" border="0">HELPDESK</A></TD>');	
	};
