//DISJOINTED ROLLOVERS USING BUTTON NAVIGATION AND IMAGES FADING IN AND OUT
// jQuery fadeToggle plugin
jQuery.fn.fadeToggle = function(s, fn){
	return (this.is(":visible"))
		? this.fadeOut(s, fn)
		: this.fadeIn(s, fn);
};


$(document).ready(function(){
//disjointed rollover function starting point
	
	$("#main_logo .calgary").hide();
	$("#main_logo .edmonton").hide();
	$("#main_logo .montreal").hide();
	$("#main_logo .ottawa").hide();
	$("#main_logo .toronto").hide();
	$("#main_logo .vancouver").hide();
	$("#logo_sponsors2").hide();
	$("#footer_french").hide();
	
	//ottawa launch 6/5-6
	/*$("#btn_ottawa10_over").hide();
	$("#btn_ottawa11_over").hide();
	
	//calgary launch 6/24-25
	$("#btn_calgary10_over").hide();
	$("#btn_calgary11_over").hide();
	
	//edmonton launch 8/7-8
	$("#btn_edmonton10_over").hide();
	$("#btn_edmonton11_over").hide();
	
	//vancouver launch 8/14-15
	$("#btn_vancouver10_over").hide();
	$("#btn_vancouver11_over").hide();
	
	//montreal launch 8/28-29
	$("#btn_montreal10_over").hide();
	$("#btn_montreal11_over").hide(); 
	
	//toronto launch 9/11-12
	$("#btn_toronto10_over").hide();
	$("#btn_toronto11_over").hide(); 
	*/
	
		
	$("#btn_ab a").mouseover(function(){
		$("#main_logo .calgary").fadeIn();
		$("#main_logo .edmonton").hide();
		$("#main_logo .montreal").hide();
		$("#main_logo .ottawa").hide();
		$("#main_logo .toronto").hide();
		$("#main_logo .vancouver").hide();
		$("#main_logo .home").hide();
		$("#logo_sponsors2").hide();
		$("#footer_french").hide();
		$("#footer_english").fadeIn();
		$("#btn_ab11_over").css({"background-position":"-116px 7px"});
		$(this).css({"background-position": "-295px -131px"})
	});
	
	$("#btn_ab a").mouseout(function(){
			$("#btn_ab11_over").css({"background-position":"-78px 7px"});
			$(this).css({"background-position": "-295px -12px"})
			});
	$("#btn_ab10_over").mouseover(function(){
		$("#main_logo .home").hide();									   
		$("#main_logo .calgary").fadeIn();								  
		$("#btn_ab a").css({"background-position": "-295px -131px"})
		$(this).css({"background-position":"-38px 7px"})
		 });
	
	$("#btn_ab10_over").mouseout(function(){
		$(this).css({"background-position":"0px 7px"});
		$("#btn_ab a").css({"background-position": "-295px -12px"})
		});
	
	$("#btn_ab11_over").mouseover(function(){
		$("#main_logo .home").hide();									   
		$("#main_logo .calgary").fadeIn();
		$(this).css({"background-position":"-116px 7px"});
		$("#btn_ab a").css({"background-position": "-295px -131px"})
		});
	$("#btn_ab11_over").mouseout(function(){
		$(this).css({"background-position":"-78px 7px"});
		$("#btn_ab a").css({"background-position": "-295px -12px"})
	});

	$("#btn_edmonton a").mouseover(function(){
		$("#main_logo .calgary").hide();
		$("#main_logo .edmonton").fadeIn();
		$("#main_logo .montreal").hide();
		$("#main_logo .ottawa").hide();
		$("#main_logo .toronto").hide();
		$("#main_logo .vancouver").hide();
		$("#main_logo .home").hide();
		$("#logo_sponsors2").hide();
		$("#footer_french").hide();
		$("#footer_english").fadeIn();
		$("#btn_edmonton11_over").css({"background-position":"-116px 7px"});
		$(this).css({"background-position": "-6px -163px"})
	});
	$("#btn_edmonton a").mouseout(function(){
			$("#btn_edmonton11_over").css({"background-position":"-78px 7px"});
			$(this).css({"background-position": "-6px -44px"})
			
			});
	$("#btn_edmonton10_over").mouseover(function(){
										   
		$("#main_logo .calgary").hide();
		$("#main_logo .edmonton").fadeIn();
		$("#main_logo .montreal").hide();
		$("#main_logo .ottawa").hide();
		$("#main_logo .toronto").hide();
		$("#main_logo .vancouver").hide();
		$("#main_logo .home").hide();
		$("#logo_sponsors2").hide();
		$("#footer_french").hide();
		$("#footer_english").fadeIn();							  
		$("#btn_edmonton a").css({"background-position": "-6px -163px"})
		$(this).css({"background-position":"-38px 7px"})
		 });
	
	$("#btn_edmonton10_over").mouseout(function(){
		$(this).css({"background-position":"0px 7px"});
		$("#btn_edmonton a").css({"background-position": "-6px -44px"})
		});
	
	$("#btn_edmonton11_over").mouseover(function(){
		$("#main_logo .calgary").hide();
		$("#main_logo .edmonton").fadeIn();
		$("#main_logo .montreal").hide();
		$("#main_logo .ottawa").hide();
		$("#main_logo .toronto").hide();
		$("#main_logo .vancouver").hide();
		$("#main_logo .home").hide();
		$("#logo_sponsors2").hide();
		$("#footer_french").hide();
		$("#footer_english").fadeIn();
		$(this).css({"background-position":"-116px 7px"});
		$("#btn_edmonton a").css({"background-position": "-6px -163px"})
		});
	$("#btn_edmonton11_over").mouseout(function(){
		$(this).css({"background-position":"-78px 7px"});
		$("#btn_edmonton a").css({"background-position": "-6px -44px"})
	});
	$("#btn_montreal a").mouseover(function(){
		$("#main_logo .calgary").hide();
		$("#main_logo .edmonton").hide();
		$("#main_logo .montreal").fadeIn();
		$("#main_logo .ottawa").hide();
		$("#main_logo .toronto").hide();
		$("#main_logo .vancouver").hide();
		$("#main_logo .home").hide();
		$("#logo_sponsors2, #footer_french").fadeIn();
		$("#footer_english").hide();
		$("#btn_montreal11_over").css({"background-position":"-116px 7px"});
		$(this).css({"background-position": "-1px -164px"})
	});
	
	$("#btn_montreal a").mouseout(function(){
			$("#btn_montreal11_over").css({"background-position":"-78px 7px"});
			$(this).css({"background-position": "-1px -45px"})
			});
	$("#btn_montreal10_over").mouseover(function(){
		$("#main_logo .calgary").hide();
		$("#main_logo .edmonton").hide();
		$("#main_logo .montreal").fadeIn();
		$("#main_logo .ottawa").hide();
		$("#main_logo .toronto").hide();
		$("#main_logo .vancouver").hide();
		$("#main_logo .home").hide();
		$("#logo_sponsors2, #footer_french").fadeIn();
		$("#footer_english").hide();	
		
		$("#btn_montreal a").css({"background-position": "-1px -164px"})
		$(this).css({"background-position":"-38px 7px"})
		 });
	
	$("#btn_montreal10_over").mouseout(function(){
		$(this).css({"background-position":"0px 7px"});
		$("#btn_montreal a").css({"background-position": "-1px -45px"})
		});
	
	$("#btn_montreal11_over").mouseover(function(){
		$("#main_logo .calgary").hide();
		$("#main_logo .edmonton").hide();
		$("#main_logo .montreal").fadeIn();
		$("#main_logo .ottawa").hide();
		$("#main_logo .toronto").hide();
		$("#main_logo .vancouver").hide();
		$("#main_logo .home").hide();
		$("#logo_sponsors2, #footer_english").fadeIn();
		$("#footer_french").hide();	
		$(this).css({"background-position":"-116px 7px"});
		$("#btn_montreal a").css({"background-position": "-1px -164px"})
		});
	$("#btn_montreal11_over").mouseout(function(){
		$(this).css({"background-position":"-78px 7px"});
		$("#btn_montreal a").css({"background-position": "-1px -45px"})
	});
	$("#btn_ottawa a").mouseover(function(){
		$("#main_logo .calgary").hide();
		$("#main_logo .edmonton").hide();
		$("#main_logo .montreal").hide();
		$("#main_logo .ottawa").fadeIn();
		$("#main_logo .toronto").hide();
		$("#main_logo .vancouver").hide();
		$("#main_logo .home").hide();
		$("#logo_sponsors2").hide();
		$("#footer_french").hide();
		$("#footer_english").fadeIn();
		$("#btn_ottawa11_over").css({"background-position":"-115px 7px"});
		$(this).css({"background-position": "-295px -164px"})
	});
	
	$("#btn_ottawa a").mouseout(function(){
			$("#btn_ottawa11_over").css({"background-position":"-77px 7px"});
			$(this).css({"background-position": "-295px -45px"})
			});
	$("#btn_ottawa10_over").mouseover(function(){
		$("#main_logo .home").hide();									   
		$("#main_logo .ottawa").fadeIn();								  
		$("#btn_ottawa a").css({"background-position": "-295px -164px"})
		$(this).css({"background-position":"-38px 7px"})
		 });
	
	$("#btn_ottawa10_over").mouseout(function(){
		$(this).css({"background-position":"0px 7px"});
		$("#btn_ottawa a").css({"background-position": "-295px -45px"})
		});
	
	$("#btn_ottawa11_over").mouseover(function(){
		$("#main_logo .home").hide();									   
		$("#main_logo .ottawa").fadeIn();
		$(this).css({"background-position":"-115px 7px"});
		$("#btn_ottawa a").css({"background-position": "-295px -164px"})
		});
	$("#btn_ottawa11_over").mouseout(function(){
		$(this).css({"background-position":"-77px 7px"});
		$("#btn_ottawa a").css({"background-position": "-295px -45px"})
	});
	
	
	$("#btn_toronto a").mouseover(function(){
		$("#main_logo .calgary").hide();
		$("#main_logo .edmonton").hide();
		$("#main_logo .montreal").hide();
		$("#main_logo .ottawa").hide();
		$("#main_logo .toronto").fadeIn();
		$("#main_logo .vancouver").hide();
		$("#main_logo .home").hide();
		$("#logo_sponsors2").hide();
		$("#footer_french").hide();
		$("#footer_english").fadeIn();
		$("#btn_toronto11_over").css({"background-position":"-115px 7px"});
		$(this).css({"background-position": "0px -197px"})
	});
	
	$("#btn_toronto a").mouseout(function(){
			$("#btn_toronto11_over").css({"background-position":"-77px 7px"});
			$(this).css({"background-position": "0px -78px"})
			});
	$("#btn_toronto10_over").mouseover(function(){
		$("#main_logo .calgary").hide();
		$("#main_logo .edmonton").hide();
		$("#main_logo .montreal").hide();
		$("#main_logo .ottawa").hide();
		$("#main_logo .toronto").fadeIn();
		$("#main_logo .vancouver").hide();
		$("#main_logo .home").hide();
		$("#logo_sponsors2").hide();
		$("#footer_french").hide();
		$("#footer_english").fadeIn();							  
		$("#btn_toronto a").css({"background-position": "0px -197px"})
		$(this).css({"background-position":"-38px 7px"})
		 });
	
	$("#btn_toronto10_over").mouseout(function(){
		$(this).css({"background-position":"0px 7px"});
		$("#btn_toronto a").css({"background-position": "0px -78px"})
		});
	
	$("#btn_toronto11_over").mouseover(function(){
		$("#main_logo .calgary").hide();
		$("#main_logo .edmonton").hide();
		$("#main_logo .montreal").hide();
		$("#main_logo .ottawa").hide();
		$("#main_logo .toronto").fadeIn();
		$("#main_logo .vancouver").hide();
		$("#main_logo .home").hide();
		$("#logo_sponsors2").hide();
		$("#footer_french").hide();
		$("#footer_english").fadeIn();
		$(this).css({"background-position":"-115px 7px"});
		$("#btn_toronto a").css({"background-position": "0px -197px"})
		});
	$("#btn_toronto11_over").mouseout(function(){
		$(this).css({"background-position":"-77px 7px"});
		$("#btn_toronto a").css({"background-position": "0px -78px"})
	});
	
	$("#btn_vancouver a").mouseover(function(){
		$("#main_logo .calgary").hide();
		$("#main_logo .edmonton").hide();
		$("#main_logo .montreal").hide();
		$("#main_logo .ottawa").hide();
		$("#main_logo .toronto").hide();
		$("#main_logo .vancouver").fadeIn();
		$("#main_logo .home").hide();
		$("#logo_sponsors2").hide();
		$("#footer_french").hide();
		$("#footer_english").fadeIn();
		$("#btn_vancouver11_over").css({"background-position":"-115px 7px"});
		$(this).css({"background-position": "10px -131px"})
	});
	
	$("#btn_vancouver a").mouseout(function(){
			$("#btn_vancouver11_over").css({"background-position":"-77px 7px"});
			$(this).css({"background-position": "10px -12px"})
			});
	$("#btn_vancouver10_over").mouseover(function(){
		$("#main_logo .calgary").hide();
		$("#main_logo .edmonton").hide();
		$("#main_logo .montreal").hide();
		$("#main_logo .ottawa").hide();
		$("#main_logo .toronto").hide();
		$("#main_logo .vancouver").fadeIn();
		$("#main_logo .home").hide();
		$("#logo_sponsors2").hide();
		$("#footer_french").hide();
		$("#footer_english").fadeIn();								  
		$("#btn_vancouver a").css({"background-position": "10px -131px"})
		$(this).css({"background-position":"-38px 7px"})
		 });
	
	$("#btn_vancouver10_over").mouseout(function(){
		$(this).css({"background-position":"0px 7px"});
		$("#btn_vancouver a").css({"background-position": "10px -12px"})
		});
	
	$("#btn_vancouver11_over").mouseover(function(){
		$("#main_logo .calgary").hide();
		$("#main_logo .edmonton").hide();
		$("#main_logo .montreal").hide();
		$("#main_logo .ottawa").hide();
		$("#main_logo .toronto").hide();
		$("#main_logo .vancouver").fadeIn();
		$("#main_logo .home").hide();
		$("#logo_sponsors2").hide();
		$("#footer_french").hide();
		$("#footer_english").fadeIn();
		$(this).css({"background-position":"-115px 7px"});
		$("#btn_vancouver a").css({"background-position": "10px -131px"})
		});
	$("#btn_vancouver11_over").mouseout(function(){
		$("#btn_vancouver11_over").css({"background-position":"-77px 7px"});
		$("#btn_vancouver a").css({"background-position": "10px -12px"})
	});
	$("#main_logo, #bottom_area, #right_column, #left_border").mouseover(function(){
		$("#main_logo .calgary").hide();
		$("#main_logo .edmonton").hide();
		$("#main_logo .montreal").hide();
		$("#main_logo .ottawa").hide();
		$("#main_logo .toronto").hide();
		$("#main_logo .vancouver").hide();
		$("#logo_sponsors2").hide();
		$("#main_logo .home").fadeIn();
		$("#footer_french").hide();
		$("#footer_english").fadeIn();
	});
	
	$("ul#dropdown_2009").hide();

	$("#droplink, #dropdown_2009").mouseover( function() {
		$("#dropdown_2009").show();
	});

	$("#droplink, #dropdown_2009").mouseout( function() {
		$("#dropdown_2009").hide();
	});
$("#btn_cal").mouseover(function() {
		$("#main_logo .calgary").fadeIn();
		$("#main_logo .edmonton").hide();
		$("#main_logo .montreal").hide();
		$("#main_logo .ottawa").hide();
		$("#main_logo .toronto").hide();
		$("#main_logo .vancouver").hide();
		$("#main_logo .home").hide();
		$("#logo_sponsors2").hide();
		$("#footer_french").hide();
		$("#footer_english").fadeIn();
		
									
		
								});

$("#btn_ed").mouseover(function() {
		$("#main_logo .calgary").fadeIn();
		$("#main_logo .edmonton").hide();
		$("#main_logo .montreal").hide();
		$("#main_logo .ottawa").hide();
		$("#main_logo .toronto").hide();
		$("#main_logo .vancouver").hide();
		$("#main_logo .home").hide();
		$("#logo_sponsors2").hide();
		$("#footer_french").hide();
		$("#footer_english").fadeIn();
		
									
		
								});

	
	
});



