//my custom scripts
$(document).ready(function(){
	//$("#special-message").slideDown("slow");
	//$("#close-me").click(function () {
		//$("#special-message").slideUp("slow");
	//});	
	$("img").lazyload({    
    	effect : "fadeIn" 
	});
	$("img.showtip[title]").tooltip({
		tip:'#demotip',
		effect: 'fade',  
       	fadeOutSpeed: 100, 
        predelay: 50,
		position: "top left",         
        offset: [65, 180]  		
		});
	$("#footer-navigation ul li a[title]").tooltip({
		tip:'#demotip',
		effect: 'fade',  
       	fadeOutSpeed: 100, 
        predelay: 5,
		position: "top left",         
        offset: [0, 130]  		
		});
		
		
		
	//show fade divs	
	$(".showfade_wrapper").hover(
		function(){
			//$(this).find('.showfade_text').animate({top:"-109px"}, 300);
			$(this).find('.showfade_text').animate({opacity:"1.0"}, 300);
		},
		function(){
			//$(this).find('.showfade_text').animate({top:"109px"}, 100);
			$(this).find('.showfade_text').animate({opacity:".0"}, 300);
		}
	);		
	
	  //organic tabs
	$("#explore-nav li a").click(function() {
				var curList = $("#explore-nav li a.current").attr("rel");
				var $newList = $(this);
				var curListHeight = $("#all-list-wrap").height();
				$("#all-list-wrap").height(curListHeight);				
				$("#explore-nav li a").removeClass("current");
				$newList.addClass("current");
				var listID = $newList.attr("rel");
				if (listID != curList) {
					$("#"+curList).fadeOut(300, function() {
						$("#"+listID).fadeIn();	
						var newHeight = $("#"+listID).height();
						$("#all-list-wrap").animate({
							height: newHeight
						});		
					});		
				} 			
				return false;
			});			
	
	
	
	
	
	
	
	});
  
	 

	 
	 
	 
