jQuery.noConflict();

jQuery(document).ready(function(){

	// Keep parent nav item on
	jQuery('nav ul ul').hover(function(){
	    jQuery(this).parent().children('a').addClass('hovering');
	}, function() {
	    jQuery(this).parent().children('a').removeClass('hovering');
	});

	// Add class to main navigation
	jQuery("nav").find("li:last-child").addClass("last");

	// Change shopping cart messages
	var cartRep = jQuery('.cartSummaryItem'); 
	cartRep.html(cartRep.html().replace("Shopping cart is empty.","empty"));

	var cartRep = jQuery('.cartSummaryLink'); 
	cartRep.html(cartRep.html().replace("View Cart","view bag"));

	// Change special instructions text
	var details = jQuery('.capturedetails'); 
	details.html(details.html().replace("Special Instructions","<br />Personalized Details"));

	// Special alert window
	window.alert = function(message) { jQuery('#messageBox').text(message).fadeIn().delay(2000).fadeOut('slow'); }

});
