$(function(){
		   
	// Tabs
	
	$('#tab-box').tabs(/*{ fx: { opacity: 'toggle' } }*/);
	
	$("#slider").easySlider({
		auto: true,
		continuous: true 
	});
	
	// Search Form
	
	$('input').each(function () {
		if ($(this).val() == '') {
			$(this).val($(this).attr('name'));
		}
	}).focus(function () {
		$(this).removeClass('inputerror');
		if ($(this).val() == $(this).attr('name')) {
			$(this).val('');
		}
	}).blur(function () {
		if ($(this).val() == '') {
			$(this).val($(this).attr('name'));
		}
	});
	
	// Affiliates Page - Adds an individual class to each item... i.e. the first list item = 1 the second = 2 the third = 3 etc...
	
	$("#affiliate-content li").each(function (i) {
			i = i+1;
			$(this).addClass("affiliate-item"+i);
	});
	
	// Affiliate Page - When you hover, the description pops up

	$('.affiliate-description').css("display", "none");
	
	$('.affiliate-description').animate({
		"opacity" : "0.7"
	});
	
	$('.affiliate-item').hover(function(){
		$(this).children('.affiliate-description').slideDown();
	}, function(){
		$(this).children('.affiliate-description').slideUp();
	});
	
	
	
	
	// Network Page - Adds an individual class to each item... i.e. the first list item = 1 the second = 2 the third = 3 etc...
	
	$("#network-content li").each(function (i) {
			i = i+1;
			$(this).addClass("network-item"+i);
	});
	
	// network Page - When you hover, the description pops up

	$('.network-description').css("display", "none");
	
	$('.network-description').animate({
		"opacity" : "0.7"
	});
	
	$('.network-item').hover(function(){
		$(this).children('.network-description').slideDown();
	}, function(){
		$(this).children('.network-description').slideUp();
	});

});