// Lineas / Momios

$(function(){

// Dialog			
$('#dialog').dialog({
autoOpen: false,
width: 750,
height: 400,
resizable: false, 
position:  [200, 80]
});

//------ LIGAS DE FUTBOL SOCCER ------

//Liga Mexicana

    $('#soccer_link1').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Soccer", sportleague: "Mexico", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});

//Liga Inglesa
	
	$('#soccer_link2').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Soccer", sportleague: "England", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#soccer_link3').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Soccer", sportleague: "Italy", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#soccer_link4').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Soccer", sportleague: "Spain", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#soccer_link5').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Soccer", sportleague: "Germany", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	//Liga Francesa
	
	$('#soccer_link6').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Soccer", sportleague: "France", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	//Liga Escocia
	
	$('#soccer_link7').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Soccer", sportleague: "Scotland", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	//Otras Ligas de Europa
	
	$('#soccer_link8').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Soccer", sportleague: "Other Euro", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	//Copas de Europa
	
	$('#soccer_link9').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Soccer", sportleague: "Euro Cups", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	//Eventos Mundiales
	
	$('#soccer_link10').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Soccer", sportleague: "World Events", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	//Eventos Mundiales
	
	$('#soccer_link11').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Soccer", sportleague: "American C", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	//Eventos Mundiales
	
	$('#soccer_link12').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Soccer", sportleague: "American L", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	//Liga Asiatica
	
	$('#soccer_link13').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Soccer", sportleague: "Asian L", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#soccer_link14').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Soccer", sportleague: "", type: "1st Half" });
		$('#dialog').dialog('open');
		return false;
	});
	
	//------ LIGAS DE FOOTBALL AMERICANO ------

   $('#football_link1').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Football", sportleague: "NFL", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	
	$('#football_link2').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Football", sportleague: "College", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	

	$('#football_link3').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Football", sportleague: "Canadian", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	
	$('#football_link4').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Football", sportleague: "Arena", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	
	$('#football_link5').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Football", sportleague: "NFL Live", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#football_link6').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Football Props", sportleague: "NFL Props", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#football_link7').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Football", sportleague: "NCAA Live", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#football_link8').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Football Props", sportleague: "NCAA Props", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#football_link9').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Football", sportleague: "UFL", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#football_link10').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Football", sportleague: "NFL Advance", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#football_link11').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Football", sportleague: "NFL", type: "1st Half" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#football_link12').click(function(){
		$('#dialog').load("lines/linesQuarters.php", { sport: "Football", sportleague: "NFL", type: "Quarters" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#football_link13').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Football", sportleague: "College", type: "1st Half" });
		$('#dialog').dialog('open');
		return false;
	});
	//------ LIGAS DE BASKETBALL ------
	
	$('#basketball_link1').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Basketball", sportleague: "NBA", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#basketball_link2').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Basketball", sportleague: "NBA Live", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#basketball_link3').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Basketball", sportleague: "NCAA", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	
	$('#basketball_link4').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Basketball", sportleague: "WNBA", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#basketball_link5').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Basketball", sportleague: "WNCAA", type: "Game" });
		$('#dialog').dialog('open');
		return false;

	});
	
	$('#basketball_link6').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Basketball", sportleague: "NCAA Live", type: "Game" });
		$('#dialog').dialog('open');
		return false;

	});
	
	$('#basketball_link7').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Basketball", sportleague: "LBP", type: "Game" });
		$('#dialog').dialog('open');
		return false;

	});
	
	$('#basketball_link8').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Basketball", sportleague: "NBA", type: "1st Half" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#basketball_link9').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Basketball", sportleague: "NCAA", type: "1st Half" });
		$('#dialog').dialog('open');
		return false;
	});
	
	//------------------ Baseball ------------------------
	
	$('#baseball_link1').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Baseball", sportleague: "MLB", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#baseball_link2').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Baseball", sportleague: "MLB Alt Runs", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#baseball_link3').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Baseball", sportleague: "MLB Live", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#baseball_link4').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Baseball", sportleague: "LVBP", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#baseball_link5').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Baseball", sportleague: "CBB", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#baseball_link6').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Baseball", sportleague: "Int Baseball", type: "Game"});
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#baseball_link7').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Baseball", sportleague: "Little Leag", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	//------ LIGAS DE HOCKEY ------
	
	$('#hockey_link1').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Hockey", sportleague: "NHL", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#hockey_link2').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Hockey", sportleague: "NHL 3 Way", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#hockey_link3').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Hockey", sportleague: "NCAA Hockey", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#hockey_link4').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Hockey", sportleague: "NHL", type: "1st Period" });
		$('#dialog').dialog('open');
		return false;
	});
	//------ COPAS DE TENNIS ------
	
	$('#tennis_link1').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Tennis", sportleague: "ATP Matches", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#tennis_link2').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Tennis", sportleague: "WTA Matches", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#tennis_link3').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Tennis", sportleague: "Davis Cup", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#tennis_link4').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Tennis", sportleague: "Fed Cup", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#tennis_link5').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Tennis", sportleague: "Tennis Live", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	//------------- Boxing -----------------------------
	
	$('#peleas_link1').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Fighting", sportleague: "Boxing", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#peleas_link2').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Fighting", sportleague: "UFC", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#peleas_link3').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Fighting", sportleague: "MMA", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#peleas_link4').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Fighting", sportleague: "Dream WEC", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	//---------------- Golf ----------------------
	
	$('#golf_link1').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Golf", sportleague: "2 Way", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#golf_link2').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Golf", sportleague: "3 Balls", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	//-------------- Other Sports -------------------
	
	$('#sports_link1').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Other Sports", sportleague: "Euro Hockey", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#sports_link2').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Other Sports", sportleague: "Euro Basket", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#sports_link3').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Other Sports", sportleague: "Cricket", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#sports_link4').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Other Sports", sportleague: "Handball", type: "Game" });
		$('#dialog').dialog('open');
		return false;
	});
	
	$('#sports_link5').click(function(){
		$('#dialog').load("lines/lines.php", { sport: "Other Sports", sportleague: "Rugby", type: "Game" });
		return false;
	});

//hover states on the static widgets
$('#dialog_link, ul#icons li').hover(
function() { $(this).addClass('ui-state-hover'); }, 
function() { $(this).removeClass('ui-state-hover'); }
);

});
