$(window).load(function() {
	
		$('#slider').nivoSlider({
		effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
		slices:15,
		animSpeed:500, //Slide transition speed
		pauseTime:4500,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:true, //Next & Prev
		directionNavHide:true, //Only show on hover
		controlNav:false, //1,2,3...
		controlNavThumbs:false, //Use thumbnails for Control Nav
		controlNavThumbsFromRel:false, //Use image rel for thumbs
		controlNavThumbsSearch: '.jpg', //Replace this with...
		controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
		keyboardNav:true, //Use left & right arrows
		pauseOnHover:true, //Stop animation while hovering
		manualAdvance:false, //Force manual transitions
		captionOpacity:0.8, //Universal caption opacity
		beforeChange: function(){},
		afterChange: function(){},
		slideshowEnd: function(){} //Triggers after all slides have been shown
	});
	
	$(".categories-top-list").children("a").hover(
	function () {  
	$(this).animate({ 
      "padding-left":"14px", 
 
    }, { duration: 150, queue: false });
    $(this).fadeTo("fast",.8, function(){
	  $(this).fadeTo("fast",1); 
	});
	
	},
	function () {
    $(this).animate({ 
      "padding-left":"9px", 
 
    }, { duration: 150, queue: false });
	}
  );
  
  
  	$("#navEZPagesTop > ul").children("li").hover(
	function () {  
	$(this).animate({ 
      "padding-top":"2px", 
 
    }, { duration: 150, queue: false });
    $(this).fadeTo("fast",.8, function(){
	  $(this).fadeTo("fast",1); 
	});
	
	},
	function () {
    $(this).animate({ 
      "padding-top":"0px", 
 
    }, { duration: 150, queue: false });
	}
  );
  
    	$(".subcategory").children("a").hover(
	function () {  
	$(this).animate({ 
      "padding-left":"6px", 
 
    }, { duration: 150, queue: false });
    $(this).fadeTo("fast",.8, function(){
	  $(this).fadeTo("fast",1); 
	});
	
	},
	function () {
    $(this).animate({ 
      "padding-left":"0px", 
 
    }, { duration: 150, queue: false });
	}
  );
    
  	$(".navNextPrevList > a").children("img").hover(
	function () {  
	$(this).animate({ 
      "margin-top":"0px", 
 
    }, { duration: 150, queue: false });
    $(this).fadeTo("fast",.8, function(){
	  $(this).fadeTo("fast",1); 
	});
	
	},
	function () {
    $(this).animate({ 
      "margin-top":"0px", 
 
    }, { duration: 150, queue: false });
	}
  );
  
  	$("#cartAdd > input:last").hover(
	function () {  
	$(this).animate({ 
      "margin-top":"0px", 
 
    }, { duration: 150, queue: false });
    $(this).fadeTo("fast",.8, function(){
	  $(this).fadeTo("fast",1); 
	});
	
	},
	function () {
    $(this).animate({ 
      "margin-top":"0px", 
 
    }, { duration: 150, queue: false });
	}
  ); 


  
// Start Product Listing Title Effect
 $(".productListing-odd").hover(
	function () {  
	$(this).children("td").children("h3").animate({ 
		"padding-left":"5px",
		"font-size":"1.4em",
 
    }, { duration: 150, queue: false });
    $(this).children("td").children("a").children(".listingProductImage").fadeTo(200,.5, function(){
	  $(this).fadeTo(200,1); 
	});
	
	},
	function () {
    $(this).children("td").children("h3").animate({ 
		"padding-left":"0px",
		"font-size":"1.3em",
 
    }, { duration: 150, queue: false });
	}
  );
 $(".productListing-even").hover(
	function () {  
	$(this).children("td").children("h3").animate({ 
		"padding-left":"5px",
		"font-size":"1.4em",
 
    }, { duration: 150, queue: false });
    $(this).children("td").children("a").children(".listingProductImage").fadeTo(200,.5, function(){
	  $(this).fadeTo(200,1); 
	});
	
	},
	function () {
    $(this).children("td").children("h3").animate({ 
		"padding-left":"0px",
		"font-size":"1.3em",	
 
    }, { duration: 150, queue: false });
	}
  );
// End Product Listing Title Effect
//Start tab nab animation
    	$("#tab_nav > ul").children("li").children("a").hover(
	function () {  
	$(this).animate({ 
      "padding-right":"23px",
	  "padding-left":"21px",
 
    }, { duration: 150, queue: false });
    $(this).fadeTo("fast",.6, function(){
	  $(this).fadeTo("fast",1); 
	});
	
	},
	function () {
    $(this).animate({ 
      "padding-right":"20px",
	  "padding-left":"18px",
 
    }, { duration: 150, queue: false });
	}
  );

  $("#tab_nav > ul").children("li").children("a").click( function(){
	$(this).fadeTo(150,.6, function(){
	  $(this).fadeTo(150,1); 
	});
  });

//End tab nav animation
// Start home link temp fix no animate
      	$(".home-link").children("a").hover(
	function () {  
	$(this).animate({ 
      "padding-right":"20px",
	  "padding-left":"18px",
 
    }, { duration: 150, queue: false });
    $(this).fadeTo("fast",.6, function(){
	  $(this).fadeTo("fast",1); 
	});
	
	},
	function () {
    $(this).animate({ 
      "padding-right":"20px",
	  "padding-left":"18px",
 
    }, { duration: 150, queue: false });
	}
  );
  
// End home link tep fix

// Start login logout animations
      	$("#login_logout_section > ul").children("a").hover(
	function () {  
	$(this).animate({ 
      "left":"4px",
	
 
    }, { duration: 150, queue: false });
    $(this).fadeTo("fast",.6, function(){
	  $(this).fadeTo("fast",1); 
	});
	
	},
	function () {
    $(this).animate({ 
      "left":"0px",
	  
 
    }, { duration: 150, queue: false });
	}
  );

// End login logout animations
//Start Categoriy list animation
      	$(".categoryListBoxContents").children("a").hover(
	function () {  
	$(this).animate({ 
      "left":"4px",
	
 
    }, { duration: 150, queue: false });
    $(this).fadeTo("fast",.6, function(){

	  $(this).fadeTo("fast",1); 
	});
	
	},
	function () {
    $(this).animate({ 
      "left":"0px",
	  
 
    }, { duration: 150, queue: false });
	}
  );


// End Category List Animation



// START FONT MENU STUFF

function selectfont(font) {
	$("#fontinput").val(font);
}	
	// Font Menu Builder
	$("#fontz img").each( function() {
		var font = $(this).attr("alt");
		var fontimagestring = "http://appliedexpressions.com/imageprocess.php?&text=" + font + "&fontsize=30&font=" + font + "&r=0&g=0&b=0";
		$(this).attr("src",fontimagestring);
	});
	// In Menu Font Selector
	$("#fontz ul").children("li").click( function() {
		var font = $(this).children("img").attr("alt");
		selectfont(font);
		hidefonts();
		$("#custommsginput").focus();
	});
//eof FONT MENU STUFF
var colorrgb = '';
// CUSTOM MSG STRING MAKER AND SHIT
	$("#colorz td").click( function () {
		colorrgb = $(this).children("p").children("img").attr("alt");
		var value = $(this).children("p").children("img").attr("title");
		$("#colorinput").val(value);						
		hidecolors();
		$("#custommsginput").focus();
	});
	$("#custommsginput").keyup( function() {
		var colorrr = colorrgb.split(",");		
		var font = $("#fontinput").val();		
		var message = $("#custommsginput").val();
		var custommsgstring = "http://appliedexpressions.com/imageprocess.php?&text=" + message + "&fontsize=50&font=" + font + "&r=" + colorrr[0] + "&g=" + colorrr[1] + "&b=" + colorrr[2];
		$(".customimage").attr("src",custommsgstring);
	});
//eof CUSTOM MSG STING MAKE DFKASD FSDFL SADK LASDKF SDLKFSDLFK SA

});

