$(document).ready(function() {
  $('.catNav ul li').hover(function() {
    $(this).addClass('selected2');
  }, function() {
    $(this).removeClass('selected2');
  });
 
//if($("table.ys_basket tr.ys_orderLine:eq("+i+") td:eq(0):contains('Shipping:')").length > 0)
if($("#p-info-tbl-rating span a:contains('Rate this item')").length > 0)
{
$("#p-info-tbl-rating").prepend("&nbsp;&nbsp;&nbsp;<a href=\"#customer-reviews\">Read Reviews</a>&nbsp;&nbsp;&nbsp;&nbsp;")
$("#p-info-tbl-rating").prepend("<img src=\"http://site.pinkprincess.com/reviews/images/staroff.gif\" /><img src=\"http://site.pinkprincess.com/reviews/images/staroff.gif\" /><img src=\"http://site.pinkprincess.com/reviews/images/staroff.gif\" /><img src=\"http://site.pinkprincess.com/reviews/images/staroff.gif\" /><img src=\"http://site.pinkprincess.com/reviews/images/staroff.gif\" />")
$("#p-info-tbl-rating a:contains('Rate this item')").text("Write a Review")
//$("#p-info-tbl-rating a:contains('view all ratings')").text("Read Reviews")
}
else
{
$("#p-info-tbl-rating a:contains('view all ratings')").text("Read Reviews")
$("#p-info-tbl-rating").append("&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http://site.pinkprincess.com/reviews/stars-popup.php\" onClick=\"openPopup(5); return false;\">Write a Review</a>")
}

});


function changeTabbedItem(b){
if(b == "1")
{
$(".tabbedLinks").css("background", "url(http://lib.store.yahoo.net/lib/yhst-11683221621812/ey-tabbedItemsNameBG.jpg) no-repeat scroll center top");
}
else if(b == "2")
{
$(".tabbedLinks").css("background", "url(http://lib.store.yahoo.net/lib/yhst-11683221621812/ey-tabbedItemsNameBG.jpg) no-repeat scroll center -48px");
}
else if(b == "3")
{
$(".tabbedLinks").css("background", "url(http://lib.store.yahoo.net/lib/yhst-11683221621812/ey-tabbedItemsNameBG.jpg) no-repeat scroll center -96px");
}
else if(b == "4")
{
$(".tabbedLinks").css("background", "url(http://lib.store.yahoo.net/lib/yhst-11683221621812/ey-tabbedItemsNameBG.jpg) no-repeat scroll center -144px");
}
else
{
$(".tabbedLinks").css("background", "url(http://lib.store.yahoo.net/lib/yhst-11683221621812/ey-tabbedItemsNameBG.jpg) no-repeat scroll center -192px");
}

$(".tabbedA").removeClass('selectedTab');
$("#TabbedA" + b).addClass('selectedTab');
$(".tabbedItemsTable").css("display", "none");
$("#TabbedItemsTable" + b).css("display", "block");

}

function throwContent(b)
{
$(".tabs").css("display", "none");
$("#Tab" + b).css("display", "block");
}

function topNavHover(b)
{
if(b==1)
{
$(".topNav").css("background", "url(https://lib.store.yahoo.net/lib/yhst-11683221621812/ey-topNavBG.jpg) no-repeat scroll center -26px");
}
else if(b==2)
{
$(".topNav").css("background", "url(https://lib.store.yahoo.net/lib/yhst-11683221621812/ey-topNavBG.jpg) no-repeat scroll center -52px");
}
else if(b==3)
{
$(".topNav").css("background", "url(https://lib.store.yahoo.net/lib/yhst-11683221621812/ey-topNavBG.jpg) no-repeat scroll center -78px");
}
else if(b==4)
{
$(".topNav").css("background", "url(https://lib.store.yahoo.net/lib/yhst-11683221621812/ey-topNavBG.jpg) no-repeat scroll center -104px");
}
else
{
$(".topNav").css("background", "url(https://lib.store.yahoo.net/lib/yhst-11683221621812/ey-topNavBG.jpg) no-repeat scroll center top");
}
}
