var $j = jQuery.noConflict();	
// Use jQuery via $j(...)
$j(document).ready(function(){		
	$j("input[type=text], textarea").bind("focus", function(e){
		$j(this).toggleClass("focus");
	});
	$j("input[type=text], textarea").bind("blur", function(e){
		$j(this).toggleClass("focus");
	});


	$j("#content a img").each(function(i) {
		$j(this).css("float","none");							   
		var cl=$j(this).attr("class");
		$j(this).wrap("<span></span>").parent().addClass(cl);
	});
	$j("#content p img").each(function(i) {
		$j(this).css("float","none");							   
		var cl=$j(this).attr("class");
		$j(this).wrap("<span></span>").parent().addClass(cl);
	});
	


	
	//hovereffect for post-date
	$j(".post-date").hover(
		function () {								
		$j(this).addClass("hover");
		}, 
		function () {
		$j(this).removeClass("hover");
		}
	);

	
	//hover for images
	$j("a > span img").hover(
		function () {								
		$j(this).parent().addClass("hover");
		}, 
		function () {
		$j(this).parent().removeClass("hover");
		}
	);
	
	//hovereffect for whole post-block
	/*$j(".post-block").bind("mouseover",function () {								
			$j(this).find("a span, .post-date, h2 a, p.tags a").each(function(i){
				$j(this).addClass("hover");
			});	
	});
	$j(".post-block").bind("mouseout",function () {								
			$j(this).find("span, .post-date, h2 a, p.tags a").each(function(i){					
				$j(this).removeClass("hover");
			});	
	});*/
	
	/*Map-stuff in the footer*/
	/*
	$j("#footer .maptrigger").bind("mouseover",function () {								
		$j("#footer .mapholder").fadeIn();
	});
	$j("#footer .maptrigger").bind("mouseout",function () {								
		$j("#footer .mapholder").fadeOut();
	});
	$j("#footer .mapholder a").bind("mouseover",function () {								
		$j("#footer .mapholder").show();
	});
	$j("#footer .mapholder").bind("mouseout",function () {								
		$j("#footer .mapholder").fadeOut();
	});
	
	$j("#footer .maptrigger, #footer .mapholder").hover(
		function(){
			$j("#footer .mapholder").fadeIn();
		},
		function(){
			$j("#footer .mapholder").fadeOut();
		}
	);*/
	$j("#footer .maptrigger, #footer .mapholder").hover(
		function(){
			$j("#footer .mapholder").show();
		},
		function(){
			$j("#footer .mapholder").hide();
		}
	);
	

	
});