// JavaScript Document
function SetCookie(cookieName,cookieValue,nDays) {
 var today = new Date();
 var expire = new Date();
 if (nDays==null || nDays==0) nDays=1;
 expire.setTime(today.getTime() + 3600000*24*nDays);
 document.cookie = cookieName+"="+escape(cookieValue)
                 + ";expires="+expire.toGMTString();
}

//We must assume that the flash_Detect.js script has already run
var FlashInstalled = FlashDetect.installed;
var FlashVersion = FlashDetect.major + "." + FlashDetect.minor + "." + FlashDetect.revision;



//Set the cookies so we can log the data with coldfusion/SQL
SetCookie('ScreenWidth', screen.width, 1);
SetCookie('ScreenHeight', screen.height, 1);
SetCookie('FlashInstalled', FlashInstalled, 1);
SetCookie('FlashVersion', FlashVersion, 1);