//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//flashScripts v3.0 | javaScript
//-------------------------------------------------------------------------------------------------
//This is used in conjunction with swfobject, to supply flash movies with goodness.
//
//Troy Blank 2008
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
//FLASH VARS
//-------------------------------------------------------------------------------------------------
function genVars(){
	flashvars = {
		browser: browser
	};
	params = {
		bgcolor: "#f6f6eb",
		wmode: "opaque",
		allowScriptAccess: "always",
		allowFullScreen: "true"
	};
	attributes = {};
}
//-------------------------------------------------------------------------------------------------
function genFlashVars(){
	genBrowserVar();
	genVars();
}
//-------------------------------------------------------------------------------------------------
function genBrowserVar(){
	browser = "";
	var browserString = "";
	var versionString = "";
	$.each($.browser, function(i, val) {
		if(val){
			if(i == "version"){
				versionString += "v. "+ val + "\n";
			}else{
				browserString += i ;
			}
		}
	});
	browser = browserString+ " "+versionString;
}
//-------------------------------------------------------------------------------------------------
//RESIZER METHODS
//-------------------------------------------------------------------------------------------------
function resizeSWF(nWidth, nHeight) {
	document.getElementById("flashContent").style.height = nHeight;
	document.getElementById("flashContent").style.width = nWidth;
}
//-------------------------------------------------------------------------------------------------
function getScreenSize(){
	screenSize = new Object();
	
	screenSize.height = $(window).height();
	screenSize.width = $(window).width();
	
	return screenSize;
}
//-------------------------------------------------------------------------------------------------
//DEBUG
//-------------------------------------------------------------------------------------------------
function trace(str){
	console.log(str);
}
//-------------------------------------------------------------------------------------------------
