// JavaScript Document
var patch = "http://www.giochisportonline.com/";

$(document).ready(function(){
/* Hover networ */
$(".top .right a").mousemove(function(){
									  
									  $(".top #network").show();
									  });
$(".top #network").mousemove(function(){
										  
									   $(".top #network").show();	  
										  
									  });
$(".top #network").mouseout(function(){
										  
									   $(".top #network").hide();	  
										  
									  });
/* Sistema voto */
			
		$("#stars-game").mousemove(function(e){
											if($("#has_rating").attr("value")=="false"){

											var x = e.pageX - this.offsetLeft;
											
											$("#stars-game .full").css("width",x);

											} });
		$("#stars-game").click(
							   function(e){
								   	if($("#has_rating").attr("value")=="false"){
											var position = e.pageX - this.offsetLeft;

											var id_game = $("#id_game").attr("value");
											$.get(patch+"modules/game.php",{op:"rating",x:position,id:id_game},function(result){
$("#stars-game .full").animate({width:result+"px"},"slow");
	$("#has_rating").attr("value","true");		
		$(".details .hide").show();
});
																	   			
									};
								   
							   });	


						   });

	
 function CreateBookmarkLink() {

 title = "Giochisportonline.com - Salagiochi online"; 

 url = "http://www.giochisportonline.com";

	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
		return true; }
 }

 
				
