function insertScore() {
     $("#highscore").load("/add_score.php", $("#insertScore").serialize());
}

function getScores() {
     $("#score_rdy").load("/score_search_new.php", $("#getScores").serialize());
}

function catCH() {
var new_local = document.cat.ch.value;
top.location.replace(new_local);
}
   
function contentloader(div, file) {
    $(div).load(file);
}
function moregames(div, file) {
	$(div).fadeOut(300, function() { $(this).load(file, function() { $(this).fadeIn(800); }); });
}

$(document).ready(function() {
	$("#search_input").focus( function() {
		if( $(this).attr('value') == 'Spiel suchen' )
			$(this).attr('value','');
	});
	
	$("#search_input").blur( function() {
		if( $(this).attr('value') == '' )
			$(this).attr('value','Spiel suchen');
	});
	

});



$(document).ready(function() {
	$('a.load-local').cluetip({
			local:true, 
			hideLocal: true,
			arrows: true, 
			cursor: 'pointer',
			positionBy: 'fixed',
			showTitle: false,
			dropShadow: false,
			topOffset: 30,
			leftOffset: -85,
			width: 250,
		
			fx: {             
		        open:       'fadeIn', // can be 'show' or 'slideDown' or 'fadeIn'
		        openSpeed:  '200'
			}
	});
	
	
    
	
	
});

 



