$(document).ready(function() {

// --- Fix the Nice Menu
	$('#nice-menu-1>li:last-child').addClass('last');	


// --- Show Specific Fieldsets  (unused right now)

	$('.node-type-rotated-image-silvercrest fieldset #edit-node-weight-wrapper').parent().parent().addClass('show');


	// ---  Start Input Box Interactivity   (unused right now)

	$('#edit-submitted-name').each(function() {
			var default_value = this.value;
			$(this).focus(function() {
					if(this.value == default_value) {
							this.value = '';
					}
			});
			$(this).blur(function() {
					if(this.value == '') {
							this.value = default_value;
					}
			});
	});

//--- Fixes shadow display issue with IE

	$.fn.delay = function(time, callback){
			// Empty function:
			jQuery.fx.step.delay = function(){};
			// Return meaningless animation, (will be added to queue)
			return this.animate({delay:1}, time, callback);
	}

	$('a').delay(100, function(){
		$("#shadow-left").height("87%");
		$("#shadow-right").height("87%");
	});

//--- Makes seperate lines of links function as one

	$('.view-home-blog .views-row').bind('mouseenter mouseleave', function() {
		$(this).toggleClass('hover');
	});
	$('.view-featured .views-row').bind('mouseenter mouseleave', function() {
		$(this).toggleClass('hover');
	});

//--- Makes seperate lines of links function as one

	$('.view-id-Products .views-row').bind('mouseenter mouseleave', function() {
		$(this).toggleClass('hover');
	});



//--- Open links in new window

	$(".node-type-blogpost").each(function() {
	$("a[@href^='http']").attr('target','_blank');
	}); 

});

