$(document).ready(function() {
	
	// function hoverover
	function hoverOver(a) {
		if($(a).not(':animated')) {
			$(a).animate({ opacity: 1 }, 100 );
		}
	}
	
	// function hoveroff
	function hoverOff(a) {
		if($(a).not(':animated')) {
			$(a).animate({ opacity: 0.4 }, 400 );
		}
	}
	
	// pmd hover
	$('.postmetadata').hover( function() {
		hoverOver(this);
	}, function() {
		hoverOff(this);
	});
	
	$('#sm-login').hover( function() {
		hoverOver(this);
	}, function() {
		hoverOff(this);
	});
	
	// tabs
	$('.question-inner ul').idTabs(function(id,list,set){ 
		$("a",set).removeClass("selected") 
		.filter("[@href='"+id+"']",set).addClass("selected"); 
		for(i in list) 
			$(list[i]).hide(); 
		$(id).fadeIn(); 
		return false; 
	});
	
	});