$(document).ready(function () {
  
  //This Script Runs To Basic Site Effects And Other General Function Calls
  
  
  
  // Fade Banner Codes
  $('div.fade').hover(function() {
    // on hovering over, find the element we want to fade *up*
    var fade = $('> div', this);
    
    // if the element is currently being animated (to a fadeOut)...
    if (fade.is(':animated')) {
      // ...take it's current opacity back up to 1
      fade.stop().fadeTo(250, 1);
    } else {
      // fade in quickly
      fade.fadeIn(250);
    }
  }, function () {
    // on hovering out, fade the element out
    var fade = $('> div', this);
    if (fade.is(':animated')) {
      fade.stop().fadeTo(1000, 0);
    } else {
      // fade away slowly
      fade.fadeOut(1000);
    }
    
    });
      
    
	      
    //Twitter Feed API Plugin
  	$(".tweet").tweet({
            username: "jillzarin",
            join_text: "auto",
            avatar_size: 32,
            count: 3,
            auto_join_text_default: "",
            auto_join_text_ed: "",
            auto_join_text_ing: "",
            auto_join_text_reply: "",
            auto_join_text_url: "",
            loading_text: "loading tweets..."
     });
 
    
    function checkWindowSize() {

	if ( $(window).width() > 1340 ) {
		$('.jill_zarin').css("display", "block");
		
	}
	else {
		$('.jill_zarin').css("display", "none");
		
	}

	}
	
	$(checkWindowSize)
	$(window).resize(checkWindowSize);

  
  	$('#header_navigation li span')
	.css( {backgroundPosition: "0 0"} )
	.mouseover(function(){
		$(this).stop().animate(
			{backgroundPosition:"(0 -80px)"}, 
			{duration:200})
		})
	.mouseout(function(){
		$(this).stop().animate(
			{backgroundPosition:"(0 0)"}, 
			{duration:500})
		})
  
  
  	$('.newsletter_input').focusin(function(){
  		$(this).val('');
  	});
  	
	
  	
  	
  
//End Dom Ready 
});
