﻿function nospam(user,domain) {
	locationstring = "mailto:" + user + "@" + domain;
	window.location = locationstring;
	}

if(typeof sIFR == "function"){
	sIFR.replaceElement(named({sSelector:"body h2", sFlashSrc:"interstate.swf", sWmode:"transparent", sColor:"#8db703", sBgColor:"#FFFFFF"}));
	sIFR.replaceElement(named({sSelector:"body h2.tourtitle", sWmode:"transparent", sFlashSrc:"interstate.swf", sColor:"#8db703", sBgColor:"#F5F8EA"}));
};



$(document).ready(function(){



	if(document.getElementsByTagName) {
		var a = document.getElementsByTagName("a");
		for(var i = 0; i < a.length; i++) {
			a[i].onfocus = function(){this.blur()};
			}
		}
	

	$("#newsletter-box").hide();
	
	$("#newsletter a").click(function() {
		$("#newsletter-box").toggle();
		$("#newsletter a").removeClass("open");
		$("#newsletter-box:visible").find("#newsletter a").addClass("open");
	});

	if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
			anchor.target = "_blank";
	}

});
