/* DONT GO ROUND THE HOUSES JS v2 */

$(document).ready(function () {
  $('body').removeClass('nojs');
});

	$(document).ready(function() {
		if($.cookie('TEXT_SIZE')) {
			$('body').addClass($.cookie('TEXT_SIZE'));	
		}
		$('.resizer a').click(function() {
			var textSize = $(this).parent().attr('class');
			$('body').removeClass('small medium large').addClass(textSize);
			$.cookie('TEXT_SIZE',textSize, { path: '/', expires: 10000 });
			return false;
		});
	});

$(document).ready(function () {
	$('a.basic, a#fontsizer').click(function (e) {
		e.preventDefault();
		$('#fontsizebox').modalsmall();
	});
	$('#survey h2 a').click(function (e) {
		e.preventDefault();
		$('#surveycontainer').modal();
	});
});

$(document).ready(function () {
	$('a.basic, area#grampianroll').click(function (e) {
		e.preventDefault();
		$('#grampianlist').modal();
	});
	
		$("area#grampianroll").mouseenter(function() {
		$("img#mapimggrampian").fadeIn("300");
	});
		$("area#grampianroll").mouseleave(function() {
		$("img#mapimggrampian").fadeOut("300");
	});	



		$("area#highlandroll").mouseenter(function() {
		$("img#mapimghighland").fadeIn("300");
	});
		$("area#highlandroll").mouseleave(function() {
		$("img#mapimghighland").fadeOut("300");
	});	

	$('a.basic, area#highlandroll').click(function (e) {
		e.preventDefault();
		$('#highlandslist').modal();
	});
	
	
	
		$("area#perthroll").mouseenter(function() {
		$("img#mapimgperth").fadeIn("300");
	});
		$("area#perthroll").mouseleave(function() {
		$("img#mapimgperth").fadeOut("300");
	});	

	$('a.basic, area#perthroll').click(function (e) {
		e.preventDefault();
		$('#perthlist').modal();
	});


	
		$("area#argyllroll").mouseenter(function() {
		$("img#mapimgargyll").fadeIn("300");
	});
		$("area#argyllroll").mouseleave(function() {
		$("img#mapimgargyll").fadeOut("300");
	});	

	$('a.basic, area#argyllroll').click(function (e) {
		e.preventDefault();
		$('#argylllist').modal();
	});



		$("area#centralroll").mouseenter(function() {
		$("img#mapimgcentral").fadeIn("300");
	});
		$("area#centralroll").mouseleave(function() {
		$("img#mapimgcentral").fadeOut("300");
	});		

	$('a.basic, area#centralroll').click(function (e) {
		e.preventDefault();
		$('#centrallist').modal();
	});



		$("area#lothianroll").mouseenter(function() {
		$("img#mapimglothian").fadeIn("300");
	});
		$("area#lothianroll").mouseleave(function() {
		$("img#mapimglothian").fadeOut("300");
	});			

	$('a.basic, area#lothianroll').click(function (e) {
		e.preventDefault();
		$('#lothianlist').modal();
	});


		
		$("area#strathclyderoll").mouseenter(function() {
		$("img#mapimgstrathclyde").fadeIn("300");
	});
		$("area#strathclyderoll").mouseleave(function() {
		$("img#mapimgstrathclyde").fadeOut("300");
	});			

	$('a.basic, area#strathclyderoll').click(function (e) {
		e.preventDefault();
		$('#strathclydelist').modal();
	});


		
		$("area#dumfriesroll").mouseenter(function() {
		$("img#mapimgdumfries").fadeIn("300");
	});
		$("area#dumfriesroll").mouseleave(function() {
		$("img#mapimgdumfries").fadeOut("300");
	});			

	$('a.basic, area#dumfriesroll').click(function (e) {
		e.preventDefault();
		$('#dumfrieslist').modal();
	});


		
		$("area#bordersroll").mouseenter(function() {
		$("img#mapimgborders").fadeIn("300");
	});
		$("area#bordersroll").mouseleave(function() {
		$("img#mapimgborders").fadeOut("300");
	});	

	$('a.basic, area#bordersroll').click(function (e) {
		e.preventDefault();
		$('#borderslist').modal();
	});

});

