//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();
		
	$("#btn_montreal a").mouseover(function(){
		$("#main_logo .calgary").hide();
		$("#main_logo .edmonton").hide();
		$("#main_logo .montreal").fadeToggle();
		$("#main_logo .ottawa").hide();
		$("#main_logo .toronto").hide();
		$("#main_logo .vancouver").hide();
		$("#main_logo .home").hide();
	});
	$("#btn_ottawa a").mouseover(function(){
		$("#main_logo .calgary").hide();
		$("#main_logo .edmonton").hide();
		$("#main_logo .montreal").hide();
		$("#main_logo .ottawa").fadeToggle();
		$("#main_logo .toronto").hide();
		$("#main_logo .vancouver").hide();
		$("#main_logo .home").hide();
	});

	$("#main_logo, #bottom_area, #right_column, #left_border, #btn_other").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();
		$("#main_logo .home").fadeIn();
	});
	
	$("ul#dropdown_2009, ul#dropdown_other").hide();

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

	$("#droplink, #dropdown_2009").mouseout( function() {
		$("#dropdown_2009").hide();
	});;
	
	$("#btn_other, #dropdown_other").mouseover( function() {
		$("#dropdown_other").show();
	});

	$("#btn_other, #dropdown_other").mouseout( function() {
		$("#dropdown_other").hide();
	});;
	
});
