// Clear input on focus
$.fn.clearInput = function() {
	return this.focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});
};

$(document).ready(function() {

	$('.clear-value').clearInput();
	
	$('#main-menu li').hover(
		function(){
			if($(this).find('ul').length>0) {
				$(this).find('ul').show();
				$(this).append('<span class="arrow"></span>');
			}
		},
		function(){
			$(this).find('ul').hide();
			$(this).find('.arrow').remove();
		}
	);
	
	$('.hot-list li:odd, .series-list li:odd, .textcontent tr:odd').addClass('odd');

});
