//function prevEmail(ID, emailserver, emailname, emailinner) {
//	var span=document.getElementById(ID);
//	if (span!=null) {
//		var str="<a href='mailto:"+emailname+"@"+emailserver+"'>";
//		if (emailinner=='') str+=emailname+"@"+emailserver;else str+=emailinner;
//		str+="</a>";
//		span.innerHTML=str;
//	}
//}

//here and in Booking.js
function BreakOutOfFrames() {
	if (parent!=window) { parent.location=location.href; }
}

//called on page load (first 'full, non ajax' load);
$(document).ready(function() {
	main();
});
function main() {
	//disable right-click on img elements (copy-protect!)
	$('img').bind("contextmenu", function(e) { return false; });
	//track click-throughs to 3rd party pages via Google Analytics...
	//$("a[rel*='nofollow']").click(function() {
	$("a[target*='_blank']").click(function() {
		if (typeof (pageTracker)!="undefined")
			pageTracker._trackPageview('/outgoing/'+$(this).attr('href'));
	});

	BreakOutOfFrames();
}

function NewTopic(forumID) {
	document.location="/post.aspx?FID="+forumID;
}
function Reply(topicID) {
	document.location="/post.aspx?PID="+topicID;
}
function ReplyWithQuote(topicID, QuotePostID) {
	document.location="/post.aspx?PID="+topicID+"&QPID="+QuotePostID;
}
function EditPost(postID) {
	document.location="/post.aspx?PID="+postID+"&M=E";
}
