function GetWindowSize(type){
	switch(type){
		case "width":
			if(document.all){
				return(document.body.clientWidth);
			}else if(document.layers){
				return(window.innerWidth);
			}else{
				return(-1);
			}
		break;
		case "height":
			if(document.all){
				return(document.body.clientHeight);
			}else{
				return(window.innerHeight);
			}
		break;
		default:
			return(700);
		break;
	}
}
function writeFlashSize(logindata){
	swfHeight = GetWindowSize("height");
	swfHeight = (swfHeight < 700) ? 700 : swfHeight;
	var flashObj = new FlashObject("top.swf", "top", "950",swfHeight,"7","#FFFFFF");
	flashObj.addVariable("login", logindata);
	flashObj.addVariable("category", "0");
	flashObj.write("flashcontent");
}
	/*
	var obj;
	obj  = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"950\" height=\""+swfHeight+"\">"
	obj += "<param name=\"movie\" value=\"top.swf\" />";
	obj += "<param name=\"allowScriptAccess\" value=\"sameDomain\" />";
	obj += "<param name=\"flashvars\" value=\"login={{$smarty.const.USER_LEVEL}}&category=0\" />";
	obj += "<param name=\"quality\" value=\"high\" />";
	obj += "<embed src=\"top.swf\" flashvars=\"login={{$smarty.const.USER_LEVEL}}&category=0\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" width=\"950\" height=\""+swfHeight+"\"></embed>";
	obj += "</object>";
	document.write(obj);
	*/

