jQuery(document).ready(function($) {
	
	// if user is signed in, show YouAreSignedIn menu, if user is signed out, show NotSignedIn menu
		if ($('#AreYouGuest').html() == '') {
    			  $("#YouAreSignedIn").remove();
				  $("#NotSignedIn").show();
				}
				else {
				  $("#NotSignedIn").remove();
				  $("#YouAreSignedIn").show();
				}
	// end
	
	/*// Formatting Active Pages for Custom Menu
		var loc_href = window.location.pathname;
			$('#Menu a').each(function () {
				if (loc_href == $(this).attr('href')) {
				$(this).addClass('ActivePageLink');
			}
		});*/
	// end
	
	// remove items from layout // unused and undesired divs and panels in current theme
		/*$('Insert what you want removed here and separate by comma').remove();*/
	// end
	
	// replace text inside input fields
		function textReplacement(input){
		var originalvalue = input.val();
		input.focus( function(){
			if( $.trim(input.val()) == originalvalue ){ input.val(''); }
		});
		input.blur( function(){
			if( $.trim(input.val()) == '' ){ input.val(originalvalue); }
		});
		}

		textReplacement($('#search_query')); // search
		textReplacement($('#nl_first_name')); // newsletter name
		textReplacement($('#nl_email')); // newsletter email
		textReplacement($('#revtitle')); // review title
		textReplacement($('#revfromname')); // review name
		textReplacement($('#captcha')); // captcha
	// end
	
	// add First class to first list item on menus
		$('#Menu li:first-child, #Footer li:first-child').addClass('First');
	// end
	
	// add Last class to last list item on menus
		$('#Menu li:last-child, #Footer li:last-child').addClass('Last');
	// end
	
	// remove last list item to change a 5 product list to 4
		/*$('#IDHERE .ProductList li:nth-child(5)').hide('');*/
	// end
	
// CUSTOM AND OPTIONAL SCRIPTS // Enable only if needed
	
	// homepage slideshow // image/content cycler
		$('#HomeSlideshow').cycle({
			timeout:6000,
			fx:'scrollLeft' 
		});
	// end
	
	$('#HomeFeaturedSlider').bxSlider({
		displaySlideQty: 3,
		moveSlideQty: 3             
        });
		
/*	$('#HomeNewSlider').bxSlider({
		displaySlideQty: 4,
		moveSlideQty: 4             
        });*/
	
	// PaRSS 
	/*	$("#RSS").PaRSS(
		"INSERT FEED URL HERE",	// rss feed url (required)
		2,		// number of items (optional)
		"M jS g:i a",	// date format (optional)
		"image"         // display format (optional)
	);
	*/
	// end
	
});

