var Buttons = new Array(6);
Buttons[0]="Products";
Buttons[1]="Solutions";
Buttons[2]="Markets";
Buttons[3]="Support";
Buttons[4]="aboutus";
Buttons[5]="contactus";

//"Solutions","Markets","Support","aboutus","contactus"};
var Click = new Array(6);
for(i=0;i<Click.length;i++) {
	Click[i]=0;
}
function swapButton(t,k) {
	t.src = baseloc + "Content/imagesNew/Buttons/" + t.id + k + ".gif";
	//for (i=0;i<Click.length;i++) {
		//if (Buttons[i]==t.id) {
			//if (Click[i]!=1) {
				//t.src = baseloc + "Content/imagesNew/Buttons/" + t.id + k + ".gif";
				//alert("SwapButton: " + "Click[" + i + "]=" + Click[i] + "\n" + t.src);
			//}
			//else
				//alert("DontSwapButton: " + "Click[" + i + "]=" + Click[i]);
		//}
		//else
			//if (Click[i]!=1) 			
				//t.src = baseloc + "Content/imagesNew/Buttons/" + t.id + "Out.gif";
	//}
}

//alert(self.location.href);
	
	if ((self.location.href.search('ASP')>=0) || (self.location.href.search('asp')>=0) || (self.location.href.search('CaseStudy')>=0) || (self.location.href.search('Newsletter')>=0) || (self.location.href.search('News')>=0))
		baseloc="../../";
	else {
		if (self.location.href.search('Support')>0) {
			baseloc="../../";
		}
		else
			baseloc="/";
	}
//	alert(baseloc);
document.write ("<a name=\"top\"></a>");
//
// Top bar of buttons
//
document.write ("<table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"18\" class=\"text10n\">");
document.write ("<tr bgcolor=\"black\">");
document.write ("    <td align=\"left\"><img src=\"" + baseloc + "Content/images/curve_lt_bar_blk.gif\" height=\"20\"></td>");
// Home
document.write ("    <td class=\"text12whtb\"  align=\"center\">");
document.write ("<a href=\"" + baseloc + "index.htm\">");
if (self.location.href.search('index.htm')>=0)
document.write ("<img id=\"Home\" src=\"" + baseloc + "Content/imagesNew/Buttons/homeClick.gif\" style=\"border:none;\" ></a></td>");
else
document.write ("<img id=\"Home\" src=\"" + baseloc + "Content/imagesNew/Buttons/homeOut.gif\" style=\"border:none;\" onMouseOver=swapButton(this,'Over'); onMouseOut=swapButton(this,'Out');></a></td>");
//document.write ("    <td width=\"200\" class=\"text12whtb\"  align=\"center\"><a href=\"" + baseloc + "index.htm\" STYLE=\"color:white; TEXT-DECORATION: none; background: none\">Home</a></td>");
//document.write ("    <td class=\"text12whtb\"  align=\"center\">|</td>");
// Directions
document.write ("    <td width=\"200\" class=\"text12whtb\"  align=\"center\">");
//document.write ("<a href=\"http://blog.deckerwright.com/default.aspx\" target=\"_blank\">");
//document.write ("<img id=\"Blog\" src=\"" + baseloc + "Content/imagesNew/Buttons/blogOut.gif\" style=\"border:none;\" onMouseOver=swapButton(this,'Over'); onMouseOut=swapButton(this,'Out');></a></td>");
document.write ("    <td width=\"200\" class=\"text12whtb\"  align=\"center\">");
document.write ("<a href=\"" + baseloc + "Content/newsletters.htm\">");
document.write ("<img id=\"News\" src=\"" + baseloc + "Content/imagesNew/Buttons/newsOut.gif\" style=\"border:none;\" onMouseOver=swapButton(this,'Over'); onMouseOut=swapButton(this,'Out');></a></td>");
//document.write ("    <td class=\"text12whtb\"  align=\"center\">|</td>");
document.write ("	 <td width=\"200\" class=\"text12whtb\" align=\"center\"><a href=\"javascript:window.external.AddFavorite('http://www.deckerwright.com', 'DeckerWright - Computer Solutions Provider')\" STYLE=\"color:white; TEXT-DECORATION: none; background: none\" >");
document.write ("<img id=\"BookMark\" src=\"" + baseloc + "Content/imagesNew/Buttons/bookmarkOut.gif\" style=\"border:none;\" onMouseOver=swapButton(this,'Over'); onMouseOut=swapButton(this,'Out');></a></td>");


//document.write ("    <td class=\"text12whtb\"  align=\"center\">|</td>");
document.write ("	 <td width=\"200\" class=\"text12whtb\" align=\"center\"><a href=\"" + baseloc + "sitemap.htm\" STYLE=\"color:white; TEXT-DECORATION: none; background: none\">");
document.write ("<img id=\"SiteMap\" src=\"" + baseloc + "Content/imagesNew/Buttons/sitemapOut.gif\" style=\"border:none;\" onMouseOver=swapButton(this,'Over'); onMouseOut=swapButton(this,'Out');></a></td>");
//Site Map</a></td>");
//document.write ("    <td class=\"text12whtb\"  align=\"center\">|</td>");
// 
// LOGIN
//
if (self.location.href.search('172.17.7.5')>=0) {
document.write ("	 <td class=\"text12whtb\" align=\"center\"><a href=\"" + baseloc + "JETS/ASP/login.asp\" STYLE=\"color:white; TEXT-DECORATION: none; background: none\" title=\"JETS Login\">");
document.write ("<img id=\"Login\" src=\"" + baseloc + "Content/imagesNew/Buttons/loginOut.gif\" style=\"border:none;\" onMouseOver=swapButton(this,'Over'); onMouseOut=swapButton(this,'Out');></a></td>");
//Login</a></td>");
}
else {
document.write ("	 <td class=\"text12whtb\" align=\"center\"><a href=\"https://www.deckerwright.com/JETS/ASP/login.asp\" STYLE=\"color:white; TEXT-DECORATION: none; background: none\" title=\"JETS Login\">");
document.write ("<img id=\"Login\" src=\"" + baseloc + "Content/imagesNew/Buttons/loginOut.gif\" style=\"border:none;\" onMouseOver=swapButton(this,'Over'); onMouseOut=swapButton(this,'Out');></a></td>");
//Login</a></td>");
}
document.write ("    <td width=\"27\" align=\"right\"><img src=\"" + baseloc + "Content/images/curve_rt_bar_blk.gif\" width=\"10\" height=\"20\"></td>");
document.write ("  </tr>");
document.write ("</table>");
document.write ("<table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"25\">");
document.write ("<tr><td height=\"6\" colspan=\"5\">&nbsp;</td></tr>");
document.write ("  <tr> ");
document.write ("    <td><img src=\"" + baseloc + "Content/logos/dwc_logo_40.gif\" border=\"0\" alt=\"DeckerWright Corporation Home Page\"></td>");
document.write ("<td><img src=\"" + baseloc + "Content/imagesNew/Animated Services 2.gif\" border=\"0\" alt=\"DeckerWright Services\"></td>");
document.write ("  </tr>");
document.write ("<tr><td height=\"6\" colspan=\"5\">&nbsp;</td></tr>");
document.write ("</table>");
//
//Bottom bar of buttons.
//
document.write ("<table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"18\" class=\"text10n\">");
document.write ("<tr bgcolor=\"black\">");
document.write ("    <td align=\"left\"><img src=\"" + baseloc + "Content/images/curve_top_lt_bar_blk.gif\" height=\"20\"></td>");
//document.write ("<td class=\"text12wht\" align=\"center\">");
//var curr
//document.write ("<script type=\"javascript\">");
//var currentTime= new Date();
//var m=currentTime.getMonth()+1;
//var d=currentTime.getDate();
//var y=currentTime.getFullYear();
//document.write ("<span class\"text14whtb\">" + m + "/" + d + "/" + y + "</span>");
//document.write ("");
// Products
document.write ("    <td class=\"text12whtb\"  align=\"center\">");
document.write ("<a href=\"" + baseloc + "Content/products.htm\">");
if (self.location.href.search('products.htm')>=0)
document.write ("<img id=\"Products\" src=\"" + baseloc + "Content/imagesNew/Buttons/productsClick.gif\" style=\"border:none;\" ></a></td>");
else
document.write ("<img id=\"Products\" src=\"" + baseloc + "Content/imagesNew/Buttons/productsOut.gif\" style=\"border:none;\" onMouseOver=swapButton(this,'Over'); onMouseOut=swapButton(this,'Out');></a></td>");
//
//document.write ("<td  class=\"text12whtb\"  align=\"center\">|</td>");
// Solutions
document.write ("    <td class=\"text12whtb\"  align=\"center\">");
document.write ("<a href=\"" + baseloc + "Content/solutions1.htm\">");
if ((self.location.href.search('solutions1.htm')>=0) || 
(self.location.href.search('Consulting.htm')>=0) || 
(self.location.href.search('Custom.htm')>=0) ||
(self.location.href.search('Deployment.htm')>=0) ||
(self.location.href.search('GreenComputing.htm')>=0) ||
(self.location.href.search('Security.htm')>=0) ||
(self.location.href.search('web.htm')>=0))
document.write ("<img id=\"Solutions\" src=\"" + baseloc + "Content/imagesNew/Buttons/solutionsClick.gif\" style=\"border:none;\" ></a></td>");
else
document.write ("<img id=\"Solutions\" src=\"" + baseloc + "Content/imagesNew/Buttons/solutionsOut.gif\" style=\"border:none;\" onMouseOver=swapButton(this,'Over'); onMouseOut=swapButton(this,'Out');></a></td>");
//
//document.write ("<td  class=\"text12whtb\"  align=\"center\">|</td>");
// Markets
document.write ("    <td class=\"text12whtb\"  align=\"center\">");
document.write ("<a href=\"" + baseloc + "Content/markets.htm\">");
if ((self.location.href.search('markets.htm')>=0) ||
(self.location.href.search('healthCare.htm')>=0) || 
(self.location.href.search('nonProfit.htm')>=0) ||
(self.location.href.search('educational.htm')>=0) ||
(self.location.href.search('financial.htm')>=0) ||
(self.location.href.search('manufacturing.htm')>=0) ||
(self.location.href.search('hospitality.htm')>=0) ||
(self.location.href.search('legal.htm')>=0))
document.write ("<img id=\"Markets\" src=\"" + baseloc + "Content/imagesNew/Buttons/marketsClick.gif\" style=\"border:none;\" ></a></td>");
else
document.write ("<img id=\"Markets\" src=\"" + baseloc + "Content/imagesNew/Buttons/marketsOut.gif\" style=\"border:none;\" onMouseOver=swapButton(this,'Over'); onMouseOut=swapButton(this,'Out');></a></td>");
//
//document.write ("<td  class=\"text12whtb\"  align=\"center\">|</td>");
// Support
document.write ("    <td class=\"text12whtb\"  align=\"center\">");
document.write ("<a href=\"" + baseloc + "Content/support.htm\">");
if (self.location.href.search('support.htm')>=0)
document.write ("<img id=\"Support\" src=\"" + baseloc + "Content/imagesNew/Buttons/supportClick.gif\" style=\"border:none;\" ></a></td>");
else
document.write ("<img id=\"Support\" src=\"" + baseloc + "Content/imagesNew/Buttons/supportOut.gif\" style=\"border:none;\" onMouseOver=swapButton(this,'Over'); onMouseOut=swapButton(this,'Out');></a></td>");
//
//document.write ("<td  class=\"text12whtb\"  align=\"center\">|</td>");
// About us
document.write ("    <td class=\"text12whtb\"  align=\"center\">");
document.write ("<a href=\"" + baseloc + "Content/about.htm\">");
if (self.location.href.search('about.htm')>=0)
document.write ("<img id=\"aboutus\" src=\"" + baseloc + "Content/imagesNew/Buttons/aboutusClick.gif\" style=\"border:none;\" ></a></td>");
else
document.write ("<img id=\"aboutus\" src=\"" + baseloc + "Content/imagesNew/Buttons/aboutusOut.gif\" style=\"border:none;\" onMouseOver=swapButton(this,'Over'); onMouseOut=swapButton(this,'Out');></a></td>");
//
//document.write ("<td  class=\"text12whtb\"  align=\"center\">|</td>");
//
//Contact Us
document.write ("    <td class=\"text12whtb\"  align=\"center\">");
document.write ("<a href=\"" + baseloc + "Content/contact.htm\">");
if (self.location.href.search('contact.htm')>=0)
document.write ("<img id=\"contactus\" src=\"" + baseloc + "Content/imagesNew/Buttons/contactusClick.gif\" style=\"border:none;\" ></a></td>");
else
document.write ("<img id=\"contactus\" src=\"" + baseloc + "Content/imagesNew/Buttons/contactusOut.gif\" style=\"border:none;\" onMouseOver=swapButton(this,'Over'); onMouseOut=swapButton(this,'Out');></a></td>");
document.write ("    <td align=\"right\"><img src=\"" + baseloc + "Content/images/usflag.gif\" width=\"17\" height=\"11\" alt=\"United States Flag\">&nbsp;&nbsp;<span class=\"text12whti\"><font color=\"White\" >");
//document.write (displayDate());
document.write ("</span> </font></td>");
document.write ("    <td width=\"27\" align=\"right\"><img src=\"" + baseloc + "Content/images/curve_top_rt_bar_blk.gif\" width=\"10\" height=\"20\"></td>");
document.write ("  </tr>");
//
document.write ("</table>");

