	/* show swf only to visitors having flash, js enabled, cookies enabled and not yet seen intro */
	function createCookie(name, value) {
		document.cookie = name + "=" + value + "; path=/";
	}
	
	function readCookie(name) {
		var nameEQ = name + "=";
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0)
				return c.substring(nameEQ.length,c.length);
		}
		return null;
	}
	
	function showContent() {
		document.getElementById("flashIntro").style.display = "none";
		document.getElementById("mainContent").style.display = "block";
		createCookie("introSeen", 1);
	}	
	
	var showIntro = 1;
	
	createCookie("test", 1);
	if(!readCookie("test") || readCookie("introSeen") || window.orientation != undefined)
		showIntro = 0;
	
	if(showIntro) {
		swfobject.embedSWF("intro.swf", "flashIntro", "980", "630", "6.0.0", "", "", {"menu":"false","loop":"false"});
	}
