/* javascript */
AddToCartCB = 'window.simple_helperjso.updatecartcontentmessage';

function simple_onload() {
 // re-set the main content to our div...
 document.getElementById('simple_main_content_div').innerHTML = document.getElementById('cb3rendermain').innerHTML;
 document.getElementById('cb3rendermain').innerHTML="";
 document.getElementById('cb3rendermain').id="old_cb3rendermain";
 document.getElementById('simple_main_content_div').id = 'cb3rendermain';

 var f=document.getElementById('simple_footertext'); if ( f ) {
  f.innerHTML = f.innerHTML.replace(/YEAR/, new Date().getFullYear() );
 }

 window.simple_helperjso.updatecartcontentmessage();
}

window.simple_helperjso = {
 updatecartcontentmessage: function() {
  var ih = document.getElementById('headeritemsincart');
  if ( ! ih ) return;
  var hhh = "<a href=\"/managecart.htm\">";
  var n = nopGetCookie("NumberOrdered");
  if ( parseInt(n) > 0 ) {
   if ( parseInt(n) == 1 ) {
    ih.innerHTML = hhh + "You have <b>"+n+"</b> item in your cart.</a>";
   } else {
    ih.innerHTML = hhh + "You have <b>"+n+"</b> items in your cart.</a>";
   }
  } else {
    ih.innerHTML = hhh + "Your shopping cart is empty.</a>";
  }
 }
}

