
/** Subsubmenu hover js **/
sfHover = function() {
  var sfEls = document.getElementById("submenu").getElementsByTagName("LI");
  for (var i=0; i<sfEls.length; i++) {
    sfEls[i].onmouseover=function() {
      this.className+=" sfhover";
    }
    sfEls[i].onmouseout=function() {
      this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    }
  }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function bindBlankTargets() {
  $.each($('a.newWindow'), function(i, item) {
    $(item).attr('target', '_blank');
  });
}

function bindThickBox() {
  $('a.thickbox').thickbox({
          macFFBgHack: '/images/macFFBgHack.png',
          loadingImage: '/images/thickbox-loading.gif'
  });
}

function activateThickBoxSifr() {
    alert('care');
//    sIFR.replace(din, {
//    selector: 'h3.overlay',
//    css: '.sIFR-root { color: #ffffff; }',
//    wmode: 'transparent'
//  });
}

$(document).ready(function() {
 bindThickBox();
 bindBlankTargets();
});

function formatPrice( price ) {
  price = parseFloat(price).toFixed(2);
  price = price.toString().replace(".",",");

  var arrTemp = price.split(',');
  if(arrTemp[1] == "00") {
    price = arrTemp[0]+",-";
  }
  return price;
}