window.onresize = forceBrowserEven;
function resizeIfOdd(){
	if(navigator.userAgent.indexOf("Mac") != -1 && (navigator.userAgent.indexOf('Firefox/3') != -1 || navigator.userAgent.indexOf('WebKit') != -1)) {
		if(document.documentElement.clientWidth % 2 == 1) {
			window.resizeBy(-1,0);
		}
	}
};
function forceBrowserEven(){
	window.setTimeout('resizeIfOdd()',5);
};

// Get current url and append '#wrapper' for 'Back to top.' link

function backToTopLink() {
	var currentURL = window.location.href.split('#')[0];
	currentURL+="#wrapper";
	document.getElementById('backToTopLink').href = currentURL;
};


function demo() {

	MOOdalBox.open( // case matters
	"/demo.html", // the link URL
	"", // the caption (link's title) - can be blank
	"" // width and height of the box - can be left blank
	
	);
	
	$('flash_panel').setStyle('display', 'none');

};