/* -------------------------------------------------------------------

	Boondoggle - <css creator>
	<client>
	
	This JavaScript file collects all general functions used
	throughout the site, as well as some smaller specific
	functions.

------------------------------------------------------------------- */



// when the document is ready to be traversed and manipulated...
$(document).ready(function(){
	
	// LINK HANDLER
	// when you click on a link with class externalLink
	$("a.externalLink").click(function(){
		// open a new window with the link's location
		window.open($(this).attr("href"));
		// and do nothing after (to prevent the link from actually firing)
		return false;
	});
	

});




// thickbox function for flash

function openNewsletterForm()
{
	//$(document).ready(function(){
	
		document.selectedcolor=new String("#ff5700");
		tb_show("","http://messagent.boondoggle.eu/optiext/optiextension.dll?ID=kMkakRlp_kkkkB?ID=t+trRxedtttc?KeepThis=true&TB_iframe=true&height=170&width=350","");
	//});
}


// start - FireFox workaround to make mouseWheel scroll work in Flash
if(!(document.attachEvent)) {
	window.addEventListener("DOMMouseScroll", handleWheel, false);
}
function handleWheel(event) {
	var app = window.document["${application}"];
	if (app) {
		var o = {x: event.screenX, y: event.screenY,
			delta: event.detail,
			ctrlKey: event.ctrlKey, altKey: event.altKey,
			shiftKey: event.shiftKey}
	   
		app.handleWheel(o);
	}
}
// end - FireFox workaround to make mouseWheel scroll work in Flash
