	var J = jQuery.noConflict();
 
    J(document).ready(function(){ 
							   
		// adding a class to the first child anchors of the list elements so we can correctly mark you are here in the nav
		J(".sf-menu > li > a").addClass("imgreplace");
		
			// remove class added by include of WP menu to MIVA store
		J("body.store li:second").removeClass("current_page_parent");
		J("body.cart li:second").removeClass("current_page_parent");
		J("body.checkout li:second").removeClass("current_page_parent");
							      
							   
        J(".sf-menu").superfish({
			autoArrows: false,
			dropShadows:   false
		});
		
	J("#nextBtn").append('<a href="javascript:void(0);"><img src="/wp-content/themes/freeman/images/next.gif" alt="Next" width="22" height="18" /></a>');
	J("#prevBtn").append('<a href="javascript:void(0);"><img src="/wp-content/themes/freeman/images/prev.gif" alt="Prev" width="22" height="18" /></a>');
			
		J("#slider").easySlider();
			
			
			// VERTICALLY ALIGN FUNCTION
J.fn.vAlign = function() {
	return this.each(function(i){
	var ah = J(this).height();
	var ph = J(window).height();
	var mh = (ph - ah) / 2;
	if (mh < 0) { mh = 0; }
	J(this).css('margin-top', mh);
	});
};

J(window).resize(function(){
								  
J('#vertical-center').vAlign();

		});


J('#vertical-center').vAlign();




			
			
    }); // end ready