$(document).ready(function(){
	
	if($.browser.msie) {
		$("#makeHome").bind("click", function(){
			this.style.behavior='url(#default#homepage)';
			this.setHomePage('http://www.canoe.ca');
			return false;
		});
	} else if($.browser.mozilla) {
		$("#makeHome").bind("click", function(){
			window.open("http://homepage.canoe.ca/includes/popups/mozilla.html",null,"height=290,width=520,status=no,toolbar=no,menubar=no,location=no");
			return false;
		});
	} else if($.browser.safari) {
		$("#makeHome").bind("click", function(){
			window.open("http://homepage.canoe.ca/includes/popups/safari.html",null,"height=200,width=520,status=no,toolbar=no,menubar=no,location=no");
			return false;
		});
	} else if($.browser.opera) {
		$("#makeHome").bind("click", function(){
			window.open("http://homepage.canoe.ca/includes/popups/opera.html",null,"height=200,width=520,status=no,toolbar=no,menubar=no,location=no");
			return false;
		});
	} else {
		$("#makeHome").bind("click", function(){
			window.open("http://homepage.canoe.ca/includes/popups/browsers.html",null,"height=590,width=520,status=no,toolbar=no,menubar=no,location=no");
			return false;
		});
	}
	
	
	$('a[@rel$="blank"]').click(function(){ // Sets links with the rel of "blank" to open in a new window
		this.target = "_blank";
	});
	
});