if (location.href.indexOf("https://")!= -1) {
    var akPath = "https://a248.e.akamai.net/f/248/845/10h/images.buy.com/buy_assets"; 
} else { 
    var akPath = "http://ak.buy.com/buy_assets";    
}   

var headerHTML = "";
       
headerHTML += "<style>";
    headerHTML += "#accountSearchHolder{position: absolute;width:570px;height:30px;top:3px;left:0px;}";
    headerHTML += "#searchDiv{position:absolute;top:40px;left:400px;width:600px;z-index:400;}";
    headerHTML += "#cartDiv{position:absolute;top:85px;left:700px;width:300px;}";
    headerHTML += "#submenuDiv{position: absolute;top: 117px; left:5px;}";
    headerHTML += "#rightpromo{position: absolute;top:115px;right:7px;}";
    headerHTML += ".tabdd	{position: absolute; top: 74px; margin: 0; padding: 0; z-index:100;}";
headerHTML += "</style>";
 
headerHTML += "<style>";
headerHTML += ".puBlock {z-index: 200; visibility: visible; cursor: default; position: absolute; }";
headerHTML += "#subPU {z-index: 200; visibility: hidden; cursor: default; position: absolute; }";
headerHTML += "div { font-family : Verdana, Arial, Helvetica, sans-serif; font-size : 12px; }";
headerHTML += ".mainContainer {position:relative;visibility:visible;width:100%;azimuth : center;margin-top:0px;}";
headerHTML += ".centerContainer {position:relative;visibility:visible;width:1000px;text-align:left;}";
headerHTML += "#header {background: url(" + akPath + "/v6/header/2009/header_sprite_GREEN3.png) no-repeat top left;height: 142px;width: 1005px;}";
headerHTML += "#logo {position: relative;top: 10px; left: 5px;float:left;width:420px;}";
headerHTML += "#nameDiv {position: relative;top:4px;left:5px;float:left;}";
headerHTML += "#accountDiv{position: relative;top:4px;right:10;float:right;}";
headerHTML += ".floatLeftDiv {position:relative;float:left;}";
headerHTML += ".clearFloat {clear:both;}";
headerHTML += ".accountLinks {color:#4f8513;font-size:11px;text-decoration:underline;}";
headerHTML += ".accountLinks:hover {color:#4f8513;font-size:11px;text-decoration:underline;}";
headerHTML += ".sublinks {font-size : 11px;color: #174b9c;text-decoration : none;}";
headerHTML += ".sublinks:hover {font-size : 11px;color: #174b9c;text-decoration : underline;}";
headerHTML += ".cartbg {border-left:1px solid #223184;border-right:2px solid #223184;border-top:2px solid #223184;border-bottom:2px solid #223184;background:#ddf2ff;text-align: left;margin-top:1px;}";
headerHTML += ".searchform {padding:8px;border-left:1px solid #2e70c4;border-right:1px solid #2e70c4;border-top:0px solid #2e70c4;background-repeat : repeat-x;vertical-align: top;}";
headerHTML += ".mainContainer {position:relative;visibility:visible;width:100%;azimuth : center;}";
headerHTML += ".centerContainer {position:relative;visibility:visible;width:1000;text-align:left;}";
headerHTML += ".tabdd ul { list-style:none;margin:0; padding:0; width:100%;}";
headerHTML += ".tabdd li {margin: 0;padding-top: 3px;list-style: none;float: left;font: 11px arial;}";
headerHTML += ".tabdd li a  { display: block;margin: 0 1px 0 0;padding: 4px 10px;text-align: center;text-decoration: none;}";
headerHTML += ".tabdd div {position: absolute;visibility: hidden;margin: 0px 0px 0px 0px;padding: 0;}";
headerHTML += ".tabdd div a { position: relative;display: block;margin: 0;width: auto;white-space: nowrap;text-align: left;text-decoration: none;background: #fff;color: #356213;font: 11px arial;}";
headerHTML += ".tabdd div a:hover {background: #49A3FF;}";
headerHTML += ".tabdd .ddll li a  {display: block;text-decoration: none;background: #fff;border-bottom:1px solid #cde5aa;}";
headerHTML += ".tabdd .ddll li a:hover {display: block;text-decoration: none;background: #d6efc1;border-bottom:1px solid #cde5aa;}";
headerHTML += ".ddContents {border-left:1px solid #66971a;border-right:1px solid #66971a;background-color:#f3ffe9;}";
headerHTML += ".ddbottomleftcorner {background:url(" + akPath + "/v6/header/2009/header_sprite_GREEN3.png) no-repeat 0 -366px;height:5px;} ";
headerHTML += ".ddbottomrightcorner {background:url(" + akPath + "/v6/header/2009/header_sprite_GREEN3.png) no-repeat 0 -372px;height:5px;width:47px;} ";
headerHTML += ".highTab {color: #25559b;}";
headerHTML += ".tabRight {background:url(" + akPath + "/v6/header/2009/header_sprite_GREEN3.png) no-repeat 0 -256px;height:31px;width:46px;} ";
headerHTML += ".tabRightND {background:url(" + akPath + "/v6/header/2009/header_sprite_GREEN3.png) no-repeat 0 -256px;height:31px;width:47px;} ";
headerHTML += ".tabLink {color: #3e7d13;font-size:13px;}";
headerHTML += ".highTab .tabLink {color: #fff;}";
headerHTML += ".highTab .tabLeft {background:url(" + akPath + "/v6/header/2009/header_sprite_GREEN3.png) no-repeat 0 -179px;border-left:0px solid #2659a0;} ";
headerHTML += ".highTab .tabRight {background:url(" + akPath + "/v6/header/2009/header_sprite_GREEN3.png) no-repeat 0 -292px;height:32px;width:46px;} ";
headerHTML += ".highTab .tabLeftND {background:url(" + akPath + "/v6/header/2009/header_sprite_GREEN3.png) no-repeat 0 -219px;height:32px;} ";
headerHTML += ".highTab .tabRightND {background:url(" + akPath + "/v6/header/2009/header_sprite_GREEN3.png) no-repeat 0 -330px;height:32px;width:24px;}  ";

headerHTML += ".sublinks {font-size : 11px;color: #174b9c;text-decoration : none;}";
headerHTML += ".sublinks:hover {font-size : 11px;color: #174b9c;text-decoration : underline;}";
headerHTML += "</style> ";
 
 

		var timestart     = 500;
        var timeout     = 500;
        var tabclosetimer  = 0;
        var tabitem  = 0;
	    var tabheader  = 0;
		
        // open hidden layer
        function tabopen(id)
        {   
              // cancel close timer
              tabcancelclose();
 
              // close old layer
              if(tabitem) tabitem.style.visibility = 'hidden';
			  if(tabheader) tabheader.className = 'fullTab';
			  
              // get new layer and show it
              tabitem = document.getElementById(id);
              tabitem.style.visibility = 'visible';
			  tabheader = document.getElementById(id + 'TB');
			  tabheader.className = 'highTab';
        }
        // close showed layer
        function closetab()
        {
              if(tabitem) tabitem.style.visibility = 'hidden';
			  if(tabheader) tabheader.className = 'fullTab';
        }
        // go close timer
        function tabclose()
        {
              tabclosetimer = window.setTimeout(closetab, timeout);
        }
        // cancel close timer
        function tabcancelclose()
        {
              if(tabclosetimer)
              {
                    window.clearTimeout(tabclosetimer);
                    tabclosetimer = null;
              }
        }
        // close layer when click-out
        document.onclick = closetab; 
var isActive = false;
 

headerHTML += "<div class=\"mainContainer\">";
headerHTML += "<center>";
headerHTML += "<div class=\"centerContainer\">";
 	
headerHTML += "<div id=\"header\">";	    
   headerHTML += "<div id=\"logo\">"; 
	     headerHTML += "<div style=\"position:relative; float:left;\"><a href=\"http://www.buy.com/\"><img src=\"" + akPath + "/v6/img/clear.gif\" width=\"150\" height=\"55\" border=\"0\" alt=\"Buy.com\"></a></div>";
	     headerHTML += "<div style=\"position:relative; float:left;\"><a href=\"http://www.buy.com/toc/green-study/66996.html\"><img src=\"" + akPath + "/v6/img/clear.gif\" width=\"210\" height=\"55\" border=\"0\" alt=\"Green Study\"></a></div>"; 
      headerHTML += "</div>"; 
        
	headerHTML += "<div id=\"accountSearchHolder\">"; 
    	
					headerHTML += "<div id=\"searchDiv\">";
					
					headerHTML += "<div id=\"nameDiv\">"; 
	
						//if(GetCookie("BrowserClient") != "Safari") 
						//{
    	function getCookieVal(offset) {
    	    var endstr = document.cookie.indexOf(";", offset);
    	    if (endstr == -1)
    	        endstr = document.cookie.length;
    	    return unescape(document.cookie.substring(offset, endstr));
    	}

    	function GetCookie(name) {
    	    var arg = name + "=";
    	    var alen = arg.length;
    	    var clen = document.cookie.length;
    	    var i = 0;
    	    while (i < clen) {
    	        var j = i + alen;
    	        if (document.cookie.substring(i, j) == arg)
    	            return getCookieVal(j);
    	        i = document.cookie.indexOf(" ", i) + 1;
    	        if (i == 0) break;
    	    }
    	    if (name == "basket") {
    	        return "Basket Empty";
    	    } else {
    	        return "null";
    	    }
    	}
							function deleteBasketCookie(days)
							{	
								var date = new Date();
								date.setTime(date.getTime()+(days*24*60*60*1000));
								var expires = "; expires="+date.toGMTString();
								document.cookie = "ShopperManager%2F="+expires+"; domain=buy.com; path=/";
								document.cookie = "buyname="+expires+"; domain=buy.com; path=/";
								window.location.href = "https://ssl.buy.com/AC/MyAccount.aspx?logoff=1";
							}
							
							function formatCustomerName(name, length)
							{
								var atSymbolIndex = name.indexOf("@");
								
								if(atSymbolIndex != -1)
								{
									name = name.substring(0, atSymbolIndex);
								}
						
								if(name.length > length)
									name = name.substring(0, length);
						
								return name;
							}
							
							if (GetCookie('GuestBasketSession') != 'null') 
							{
								headerHTML += "<A href=\"https://ssl.buy.com/AC/MyAccount.aspx\" style=\"font-size:11px; color:#323232; font-weight:bold; text-decoration:none; margin-top:10px;\" target=\"_top\">Welcome Guest</a>";
							} 
							else if (GetCookie('buyname') != 'null') 
							{
								headerHTML += "<A href=\"https://ssl.buy.com/AC/MyAccount.aspx\" style=\"font-size:11px; color:#323232; text-decoration:none; margin-top:111px;\" target=\"_top\"><b>Hi,</b>&nbsp;' + formatCustomerName(GetCookie('buyname'), 11) + '</a>.";
								headerHTML += "&nbsp;<span style=\"font-size:11px; color:#2d2d2d;\">Not&nbsp;<b>' + formatCustomerName(GetCookie('buyname'), 11) + '</b>? <a href=\"javascript:deleteBasketCookie(-1);\" style=\"color:#588c10;\" target=\"_top\">Click here.</a>&nbsp;</span>";
							} 
							else 
							{
								headerHTML += "<A href=\"https://ssl.buy.com/AC/MyAccount.aspx\" style=\"font-size:11px; color:#323232; font-weight:bold; text-decoration:none; margin-top:10px;\" target=\"_top\">Sign In</a>.&nbsp;";
								headerHTML += "<span style=\"font-size:11px; color:#323232;\">New User?&nbsp;<a href=\"https://ssl.buy.com/AC/createaccount.aspx\" style=\"color:#323232;\" target=\"_top\">Sign Up</a>.&nbsp;</span>";
							}
						//}			
				
					
					if (GetCookie('ShopperManager%2F') == 'null') {
						headerHTML += "<img src=\"https://ssl.buy.com/CO/createsid.aspx\" width=\"1\" height=\"1\" border=\"0\">";
 
					}	
				
						if (GetCookie('ShopperManager%2F') != 'null') {
							var fSid = GetCookie('ShopperManager%2F')
							var sid = fSid.substr(16)
							var pid = GetRefererWebAddress()
							
						}	
						else {
							var sid = ""
							var pid = ""
						} 
						
						headerHTML += "<img src=\"http://traffic.buyservices.com/traffic.asmx/InsertEvent4?EventType=CL&EID=10000&ShopperId=" + sid + "&IP=194&referrer=" + pid + "&Url=%2FDefault%2Easp%3F%26partitionID%3D%26category%3D\" width=\"1\" height=\"1\" border=\"0\">";
						
						function GetRefererWebAddress()
						{
							var referer = document.referrer;
							var re = new RegExp("http://|https://", "gi");
							referer = referer.replace(re, "");
							refererParts = referer.split("/");
							return refererParts[0];															
						}
					
										
					headerHTML += "</div>"; 
    				headerHTML += "<div id=\"accountDiv\"><a href=\"https://ssl.buy.com/AC/loginAccount.aspx?ReturnUrl=/AC/Account/OrderHistory.aspx\" class=\"accountLinks\" target=\"_top\">Track Your Order</a>&nbsp;|&nbsp;<a href=\"https://ssl.buy.com/AC/MyAccount.aspx\" class=\"accountLinks\" target=\"_top\">My Account</a>&nbsp;|&nbsp;<a href=\"https://ssl.buy.com/AC/Wishlist.aspx\" class=\"accountLinks\" target=\"_top\">Wishlist</a>&nbsp;|&nbsp;<a href=\"http://www.buy.com/help/welcome-to-help/67211.html\" class=\"accountLinks\" target=\"_top\">Help</a></div>"; 
					
				
					headerHTML += "</div></td>"; 
		
		headerHTML += "</tr>"; 
	headerHTML += "</table>"; 
headerHTML += "</div>";	
					
						
	headerHTML += "<ul class=\"tabdd\" style=\"left:5px;\">"; 
	    headerHTML += "<li>"; 
			headerHTML += "<table id=\"prodDropTB\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"fullTab\" onmouseover=\"tabopen('prodDrop')\" onmouseout=\"tabclose()\" >";
				headerHTML += "<tr>"; 
					headerHTML += "<td class=\"tabLeft\" style=\"width:82px;\"><a href=\"http://www.buy.com/allcategories/default.html\" class=\"tabLink\">Products</a></td>"; 
					headerHTML += "<td class=\"tabRight\"></td>"; 
				headerHTML += "</tr>"; 
			headerHTML += "</table>"; 
	        headerHTML += "<div id=\"prodDrop\" onmouseover=\"tabcancelclose()\" onmouseout=\"tabclose()\">"; 
	           headerHTML += " <table style=\"width:127px;\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">"; 
					headerHTML += "<tr>"; 
						headerHTML += "<td class=\"ddContents\" colspan=\"2\">"; 
						headerHTML += "<ul class=\"ddll\">"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/clothing/64935.html\" style=\"\" target=\"_top\">Clothing</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/Bags_ebags/16234.html\" style=\"\" target=\"_top\">Bags & Luggage</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/Books_Bestsellers_Online_Bookstore/106.html\" style=\"\" target=\"_top\">Books</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/smb/114.html\" style=\"\" target=\"_top\">Buy for Business</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/Digital_Cameras_Digital_Camcorders_Memory_Accessories/33409.html\" style=\"\" target=\"_top\">Cameras</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/unlocked-gsm-cell-phones-bluetooth-cell-phone-accessories-cell-phones-with-service/12435.html\" target=\"_top\">Cell Phones</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/Desktop_Computers_Accessories_Memory_Storage_Printers/101.html\" style=\"\" target=\"_top\">Computer & Office</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/Dvd_New_Releases_Action_Movies_Comedy_Drama_Video/322.html\" style=\"\" target=\"_top\">DVDs & Blu-ray</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/Home_Electronics_Stereos_Speakers_Headphones/111.html\" style=\"\" target=\"_top\">Electronics</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/fragrance/66740.html\" style=\"\" target=\"_top\">Fragrance</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/video-pc-games-xbox-360-playstation-3-wii-ps2-nintendo-ds-lite-psp-etc/108.html\" style=\"\" target=\"_top\">Games</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/Home_and_Outdoor/66357.html\" style=\"\" target=\"_top\">Home & Outdoor</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/jewelry-watches/64934.html\" style=\"\" target=\"_top\">Jewelry & Watches</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/Music_CDs_/109.html\" style=\"\" target=\"_top\">Music</a></li>";
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/musical-instruments-pro-audio/67561.html\" style=\"\" target=\"_top\">Musical Instruments</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/Home_Networking_Linksys_D-Link_Netgear/33410.html\" style=\"\" target=\"_top\">Networking</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/Business_Software_Graphics_Software_Video_Editing_Software_Games/105.html\" style=\"\" target=\"_top\">Software</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/Sporting_Goods_Sports_Equipment_Athletic_Apparel_Shoes/17250.html\" style=\"\" target=\"_top\">Sports</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/store/lcd-plasma-hd-tv-display/67292.html\" style=\"\" target=\"_top\">TV & HDTV</a></li>"; 
							headerHTML += "<li style=\"width:125px;\"><a href=\"http://www.buy.com/dept/Toys_Action_Figures_Dolls_Learning_Games/20269.html\" style=\"\" target=\"_top\">Toys & Baby</a></li>"; 
							headerHTML += "<li style=\"width:125px;border-bottom:0px;\"><a href=\"http://www.buy.com/merch/q/store/1/als/-1/loc/101/showcats/1/nt/em01/isb/2/showall.html\" style=\"\" target=\"_top\">Shop by Brand</a></li>";		
						headerHTML += "</ul>";
					headerHTML += "</td>"; 
					headerHTML += "</tr>"; 
					headerHTML += "<tr>"; 
                        headerHTML += "<td valign=\"top\" class=\"ddbottomleftcorner\" style=\"width:82px;\"></td>"; 
						headerHTML += "<td valign=\"top\" class=\"ddbottomrightcorner\"></td>"; 
					headerHTML += "</tr>";
				headerHTML += "</table>"; 
			headerHTML += "</div>"; 
	    headerHTML += "</li>"; 
	 headerHTML += "</ul>"; 
	 headerHTML += "<ul class=\"tabdd\" style=\"left:115px;\">"; 
	    headerHTML += "<li>"; 
			headerHTML += "<table id=\"dealDropTB\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"fullTab\" onmouseover=\"tabopen('dealDrop')\" onmouseout=\"tabclose()\" >"; 
				headerHTML += "<tr>"; 
					headerHTML += "<td class=\"tabLeft\" style=\"width:67px;\"><a href=\"http://www.buy.com/todaysdeals/14982.html\" class=\"tabLink\">Deals</a></td>"; 
					headerHTML += "<td class=\"tabRight\"></td>"; 
				headerHTML += "</tr>"; 
			headerHTML += "</table>"; 
	        headerHTML += "<div id=\"dealDrop\" onmouseover=\"tabcancelclose()\" onmouseout=\"tabclose()\">"; 
	   		headerHTML += "<table style=\"width:112px;\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">"; 
					headerHTML += "<tr>"; 
						headerHTML += "<td class=\"ddContents\" colspan=\"2\">"; 
						headerHTML += "<ul class=\"ddll\">"; 
							headerHTML += "<li style=\"width:110px;\"><a href=\"http://www.buy.com/todaysdeals/14982.html\" style=\"\">Today's Deals</a></li>"; 
							headerHTML += "<li style=\"width:110px;\"><a href=\"http://www.buy.com/specialty_store_6/find-a-best-buy-on-weekly-deals-sale-items/62329.html\" style=\"\">Weekly Specials</a></li>"; 
							headerHTML += "<li style=\"width:110px;\"><a href=\"http://www.buy.com/specialty_store_6/weekend-specials/67182.html\">Weekend Specials</a></li>"; 
							headerHTML += "<li style=\"width:110px;\"><a href=\"http://www.buy.com/shakin/58207.html\" style=\"\">What's Shakin</a></li>"; 
							headerHTML += "<li style=\"width:110px;\"><a href=\"http://www.buy.com/toc/wl-rewards/63206.html\" style=\"\" target=\"_top\">Offers</a></li>"; 
						headerHTML += "</ul>"; 
						headerHTML += "</td>"; 
					headerHTML += "</tr>"; 
					headerHTML += "<tr>"; 
                        headerHTML += "<td valign=\"top\" class=\"ddbottomleftcorner\" style=\"width:67px;\"></td>"; 
						headerHTML += "<td valign=\"top\" class=\"ddbottomrightcorner\"></td>"; 
					headerHTML += "</tr>"; 
				headerHTML += "</table>"; 
	        headerHTML += "</div>"; 
	    headerHTML += "</li>"; 
	   headerHTML += "</ul>"; 
	   headerHTML += "<ul class=\"tabdd\" style=\"left:215px;\">"; 
	    headerHTML += "<li> ";
	        headerHTML += "<table id=\"buytvDropTB\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"fullTab\" onmouseover=\"tabopen('buytvDrop')\" onmouseout=\"tabclose()\">"; 
				headerHTML += "<tr>"; 
					headerHTML += "<td class=\"tabLeft\" style=\"width:67px;\"><a href=\"http://www.buy.com/buytv/\" class=\"tabLink\">BuyTV</a></td>"; 
					headerHTML += "<td class=\"tabRight\"></td>"; 
				headerHTML += "</tr>"; 
			headerHTML += "</table>"; 
			headerHTML += "<div id=\"buytvDrop\" onmouseover=\"tabcancelclose()\" onmouseout=\"tabclose()\">"; 
	           headerHTML += "<table style=\"width:112px;\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">"; 
					headerHTML += "<tr>"; 
						headerHTML += "<td class=\"ddContents\" colspan=\"2\">"; 
						headerHTML += "<ul class=\"ddll\">"; 
							headerHTML += "<li style=\"width:110px;\"><a href=\"http://www.buy.com/searchvideo/q/channelid/2/showall.html\" style=\"\">BuyTV Reviews</a></li>"; 
							headerHTML += "<li style=\"width:110px;\"><a href=\"http://www.buy.com/searchvideo/q/channelid/5/showall.html\" style=\"\">Spotlight Videos</a></li>"; 
							headerHTML += "<li style=\"width:110px;\"><a href=\"http://www.buy.com/searchvideo/q/channelid/7/showall.html\" style=\"\">Trailers</a></li>"; 
						headerHTML += "</ul>"; 
						headerHTML += "</td>"; 
					headerHTML += "</tr>"; 
					headerHTML += "<tr>"; 
                        headerHTML += "<td valign=\"top\" class=\"ddbottomleftcorner\" style=\"width:67px;\"></td>"; 
						headerHTML += "<td valign=\"top\" class=\"ddbottomrightcorner\"></td>"; 
					headerHTML += "</tr>"; 
				headerHTML += "</table>"; 
	        headerHTML += "</div>"; 
		headerHTML += "</li>"; 
		headerHTML += "</ul>"; 
		headerHTML += "<ul class=\"tabdd\" style=\"left:315px;\">"; 
	    headerHTML += "<li><table id=\"newsDropTB\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"fullTab\" onmouseover=\"tabopen('newsDrop')\" onmouseout=\"tabclose()\">"; 
				headerHTML += "<tr>"; 
					headerHTML += "<td class=\"tabLeft\" style=\"width:155px;\"><a href=\"http://www.buy.com/newsandreviews/63198.html\" class=\"tabLink\">News and Reviews</a></td>"; 
					headerHTML += "<td class=\"tabRight\"></td>"; 
				headerHTML += "</tr>"; 
			headerHTML += "</table>"; 
			 headerHTML += "<div id=\"newsDrop\" onmouseover=\"tabcancelclose()\" onmouseout=\"tabclose()\">"; 
	            headerHTML += "<table style=\"width:200px;\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">"; 
					headerHTML += "<tr>"; 
						headerHTML += "<td class=\"ddContents\" colspan=\"2\">"; 
						headerHTML += "<ul class=\"ddll\">"; 
							headerHTML += "<li style=\"width:198px;\"><a href=\"http://www.buy.com/channel/q/loc/63265/1.html\" style=\"\">News & Blogs</a></li>"; 
							headerHTML += "<li style=\"width:198px;\"><a href=\"http://www.buy.com/channel/q/loc/63266/2.html\" style=\"\">Tech Reviews</a></li>"; 
							headerHTML += "<li style=\"width:198px;border-bottom:0px;\"><a href=\"http://www.buy.com/channel/q/loc/63267/3.html\" style=\"\">Entertainment Reviews</a></li>"; 
						headerHTML += "</ul>"; 
						headerHTML += "</td>"; 
					headerHTML += "</tr>"; 
				    headerHTML += "<tr>"; 
                        headerHTML += "<td valign=\"top\" class=\"ddbottomleftcorner\" style=\"width:155px;\"></td>"; 
						headerHTML += "<td valign=\"top\" class=\"ddbottomrightcorner\"></td>"; 
					headerHTML += "</tr>"; 
				headerHTML += "</table>"; 
	        headerHTML += "</div>"; 
	   headerHTML += "</li>"; 
	headerHTML += "</ul>"; 
	headerHTML += "<div id=\"cartDiv\"> ";
						headerHTML += "<div class=\"floatLeftDiv\"><a href=\"http://checkout.buy.com/CO/Basket/basketView.aspx\" target=\"_top\"><img src=\"" + akPath + "/v6/img/clear.gif\" width=\"65\" height=\"25\" align=\"left\" border=\"0\" alt=\"Checkout\"></a></div>"; 
						headerHTML += "<div class=\"floatLeftDiv\">"; 
					
							function formatCustomerName(name, length)
							{
								var atSymbolIndex = name.indexOf("@");
								
								if(atSymbolIndex != -1)
								{
									name = name.substring(0, atSymbolIndex);
								}
						
								if(name.length > length)
									name = name.substring(0, length);
						
								return name;
							}
							
							var HeaderCartInfo, HeaderCartData;
							HeaderCartInfo = GetCookie('headerTotal');
							HeaderCartData = HeaderCartInfo.split("|");
							
							if (navigator.userAgent.indexOf("MSIE")>-1) {
							
							} else {
								if (HeaderCartInfo != "null") {	
								headerHTML += "<span style=\"font-size:11px; color:#000000\">' + HeaderCartData[1] + ' item(s): <b>$' + (HeaderCartData[0] / 100.00).toFixed(2) + '</b></span>";
								} else {
								headerHTML += "<span style=\"font-size:11px; color:#000000\">0 item(s): $0.00</span>";
								}
							}
							headerHTML += "&nbsp;&nbsp;<span style=\"font-size:11px; color:#fa7f02;font-weight:bold;\"><a href=\"http://checkout.buy.com/CO/Basket/basketView.aspx\" style=\"color:#4b8b11\" target=\"_top\">View Cart</a></span>";	
						
						headerHTML += "</div>"; 
					headerHTML += "</div>"; 
	headerHTML += "<div class=\"clearFloat\"></div> ";
	headerHTML += "<div id=\"submenuDiv\">"; 
		
						headerHTML += "&nbsp;<span class=\"sublinks\" style=\"font-weight:bold;text-decoration:none;\">Home&nbsp;<img src=\"" + akPath + "/v6/header/2008/submenu/arrow.gif\" border=\"0\" valign=\"middle\"></span>&nbsp;";
					headerHTML += "<a href=\"http://www.buy.com/specialty_store_6/weekly_dealst/62329.html\" class=\"sublinks\">Weekly Advertised Specials</a>&nbsp;|&nbsp;<a href=\"http://www.buy.com/retail/landing.asp?loc=67274\" class=\"sublinks\"><img src=\"" + akPath + "/marketplace/mp_icon_sm_green.gif\" border=\"0\"> Sell on Buy.com</a>&nbsp;|&nbsp;<a href=\"http://checkout.buy.com/CO/basket/giftcertificatepurchase.aspx\" class=\"sublinks\"><img src=\"" + akPath + "/v6/header/2008/bow.gif\" border=\"0\" align=\"absmiddle\"> Gift Certificates</a> ";
	headerHTML += "</div>"; 
    headerHTML += "<div id=\"rightpromo\"></div>"; 
headerHTML += "</div>"; 
headerHTML += "<div>"; 

headerHTML += "</div> ";
 
document.write(headerHTML);

