$(document).ready(function(){
	
	$(".mid a[href='brochure.pdf']").click(function(){
		alert("please contact the practice on 01582 663838");
		return false;
	})
	
	$("#bookmark").click(function(){
		title = "Friars Walk Dental Practice";
		url = location.href;
		
		if (window.sidebar) { // Moz
			window.sidebar.addPanel(title, url,"");
		}else if( window.external ){ // IE
			window.external.AddFavorite( url, title);
		}else if(window.opera && window.print) { // Opera
			return true;
		}
	});
	
	$("#print").click(function(){
		window.print();
	});
	
	// resize
	var h = $("#main_content").height();
	if($.browser.safari){
		$("#left_content").height(h + 10);
		$("#right_content").height(h);
	}
	if($.browser.msie){
		$("#left_content").height(h  + 20);
		$("#right_content").height(h + 26);
		if($.browser.version == "7.0"){
			$("#left_content").height(h  + 36);
			$("#left_content li").css("background-position", "0px 10px");
		}
	}
	if($.browser.mozilla){
		$("#left_content").height(h + 10);
		$("#right_content").height(h);
	}
	
	
	$(".mid").prepend("<span style='display: block; height: " + (h - 400) + "px'></span>");
})
