/*
var curSub = null;
var today = new Date();
var expiry = new Date(today.getTime() + 28 * 24 * 60 * 60 * 1000); // plus 28 days
var showFlash = '';
var showHtml = '';

var flashVer = getFlashVersion();
var hasFlash = detectFlash(flashVer, 7);
//hasFlash = false;
if (hasFlash){
	showFlash = 'block';
	showHtml = 'none';
} else {
	showFlash = 'none';
	showHtml = 'block';
}
*/

var swfversion = deconcept.SWFObjectUtil.getPlayerVersion();
var noflash = deconcept.util.getRequestParameter("noflash");
var printerfriendly = deconcept.util.getRequestParameter("printerfriendly");
var flash = deconcept.util.getRequestParameter("flash");
if (flash=='yes') eraseCookie('flash');
if (flash=='no'||readCookie('flash')=='no') {createCookie('flash','no',1); noflash=1;}
hasFlash = false;
if (document.getElementById && (swfversion['major'] > 8) && noflash=='' && printerfriendly=='') {
	hasFlash = true;
	document.writeln("<STYLE>.divFlash{display:block;}.divHtml{display:none;}</"+"STYLE>");
}

/* ==================== */

window.onload = function(){init();}

function init() {
	MM_preloadImages('assets/images/go2.jpg');
	//document.images.tFlag.src = "includes/stat.cfm?width="+screen.width+"&height="+screen.height+"&browserName="+navigator.appName+"&browserVersion="+navigator.appVersion+"&flashExists="+hasFlash+"&flashVer="+flashVer;
	//flashIcon();
}

function setVisible(id, vis){
	try {
		document.getElementById(id).style.display = vis;
	}
	catch(er){
	}
}

function createCookie(name,value,days) {
	var expires="", date=new Date();
	if (days) {
		date.setTime(date.getTime()+(days*24*60*60*1000));
		expires="; expires="+date.toGMTString();
	}
	document.cookie=name+"="+value+expires+"; path=/";
}
function readCookie(name) {
	var nameEQ=name+"=", ca=document.cookie.split(';'), c="";
	for(var i=0;i < ca.length;i++) {
		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 eraseCookie(name) {createCookie(name,"",-1);}


function setCookie(name, val){
	createCookie(name, val);
}

function getCookie(name){
	return readCookie(name);
}

