$(document).ready(function(){
						   
//Fade in and out on Thumb nails
//	$("img.thumb").hover(function() {
//		$(this).fadeTo('slow', 0.7);
//        }, function() {
//        $(this).stop().fadeTo('fast',1 );
//    });		

//Hide Rating Until hover over on thumb
	$('.post-ratings, .aux').fadeTo('fast', 0);
	$("ul.col3 li").hover(function() {
		$(this).find('.post-ratings , .aux').stop().fadeTo('fast', 1).show();
		 }, function() {
        $(this).find('.post-ratings , .aux').stop().fadeTo('fast', 0 , function() {
			$(this).hide() //Hide the image after fade
		});
	});


//Mark Odd numbered list items
	$("ul#entries li:odd").addClass("odd");

//Link Directory Hilight
	$("ul.links").children("li").find("a:odd").addClass("odd");
	$("ul.links").children("li").find("a:last").css("border-bottom","none");
	$("ul.links").children("li").find("a:first").css("border-top","none");
	
//Open External Links in New Window
	$('.url a[href^="http://"]')	.attr({ target: "_blank" });
	$('a[href^="http://"].target')	.attr({ target: "_blank" });
	
		$.extend({
		  getUrlVars: function(){
			var vars = [], hash;
			var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
			for(var i = 0; i < hashes.length; i++)
			{
			  hash = hashes[i].split('=');
			  vars.push(hash[0]);
			  vars[hash[0]] = hash[1];
			}
			return vars;
		  },
		  getUrlVar: function(name){
			return $.getUrlVars()[name];
		  }
		});	
		var allVars = $.getUrlVars();
		if ( allVars == "p,preview,deleted") {
			window.location.replace("/wp-admin/edit.php?post_status=draft&post_type=post");
		}
		
//Toggle Effect on Side Navigation
//	$("h2.gallery").click(function(){
//	  $("#gallery").slideToggle("slow,");
//	});
//	$("h2.gallery").toggle(function(){
//	  $(this).addClass("active"); 
//	  }, function () {
//      $(this).removeClass("active");
//	});
//	
//	$("h2.resource").click(function(){
//	  $("#resource").slideToggle("slow,");
//	});
//	$("h2.resource").toggle(function(){
//	  $(this).addClass("active"); 
//	  }, function () {
//      $(this).removeClass("active");
//	});



});

