
/* $(document.body).addClass("jsOn").addClass("shop"); */
/* temporary while the price is not known; */
/* 
if ($('#pageName h1').text() == "What's Hot") {
$('#contentRight .oneProduct a[name="955"]').parent().hide();
}
 */
/* 
if ( $.browser.msie && $.browser.version < 7) {
	$('body').addClass('ie6');
	}
 */
/* 
if ( $.browser.msie && $.browser.version >= 7) {
	$('body').addClass('ie');
	}
 */
function countSubs(mainStr, srchStr) {
    var count = 0;
    var offset = 0;
    do {
        offset = mainStr.indexOf(srchStr, offset);
        count += (offset != -1) ? 1 : 0;
    } while (offset++ != -1)
    return count;
}




var $link = $('#shopSubMenu a.pagelink'), pageTitle = $('#pageName h1').html();
$link.each( function() {
 	var $a = $(this);
 	var t = $a.html();
 	var subCount = countSubs(t,':');
 	if (subCount>0) {
		var subPlace = t.lastIndexOf(':')+2;
		$a.addClass('sub'+subCount).html(t.substr(subPlace));
	}
	//console.log(pageTitle.toLowerCase); console.log(t.toLowerCase);
	if (pageTitle.toLowerCase()==t.toLowerCase()) {
		$a.addClass('current').click( function() { return false; });
	}
});
var $title = $('#contentCol p.prodTitle, #contentCol p.SubproductName');
$title.each( function() {
 	$(this).html($(this).html().substr(5));
})
if ($('#pageName h1').text() == "What's Hot") {
$('body').attr('id','whats-hot');
}
