 
 
	if (window.location.href.indexOf("btob")>0) 
	{
	// nothing changing for BTOB
	}
    else {
	//code for consumer		

	
		$(function(){$('.navBurst').pngFix();});
		
		
		var imageHostPath
		if (window.location.protocol == 'http:') {
			 imageHostPath= 'http://images.barnesandnoble.com'  // alert(window.location.protocol);
		} else { 
		 	imageHostPath= '' 
		}
		
		var bnHolDate=new Date(2009, 10, 2, 3, 0, 0); //Holiday style begins Nov 2 2009 3AM=2009,10,2 h,m,s // month=0-11 not 1-12
		//var bnHolDate=new Date(2009, 8, 18, 19, 40, 0);   test date sample		
		var bnHolEndDate=new Date(2009,11,26,3,0,0);  // Holiday style ends Dec 26 2009 3AM 
		//var bnHolEndDate=new Date(2009,8,18,19,42,0);  test date sample		
		var testdate = getQuerystring('testdate');
		var bnToday;		 
		if ((testdate.length > 0)) {
			var dateString = (testdate.replace(/%20/, " "));  // if querystring has %20 for space, replace it with " " 
			bnToday = new Date(dateString); // use testdate from querystring
	 	} else { 
			bnToday = new Date();	 // use today's date			
		}	
		//	test year for 1900s
		var bnTodayYear = bnToday.getFullYear();	  
		if (bnTodayYear == 1909) { bnToday.setFullYear(2009); }	
		if (bnTodayYear == 1910) { bnToday.setFullYear(2010); }	
		// here's the conditional
		//alert(bnToday + ", "+ bnHolDate + ", "+bnHolEndDate);
		if ((bnToday >= bnHolDate && bnToday < bnHolEndDate)) {
			//  apply holiday background
			document.write ("<style> html body {background: #4a8782 url("+imageHostPath+"/presources/images/bg_grad_Holiday.gif) top left repeat-x; </style>");
		}			
	};
	

	// function to grab querystring variables
	function getQuerystring(key, default_)
	{
	  if (default_==null) default_="";
	  key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
	  var regex = new RegExp("[\\?&]"+key+"=([^&#]*)");
	  var qs = regex.exec(window.location.href);
	  if(qs == null)
	    return default_;
	  else
	    return qs[1];
	}




 