var displaySnow=1;
Common = {
	LoadFlashMovie : function(location,width,height){
		document.write("<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=\""+width+"\" height=\""+height+"\">");
		document.write("<param name=\"movie\" value=\""+location+"\" />");
		document.write("<param name=\"quality\" value=\"high\" />");
		document.write("<embed src=\""+location+"\" quality=\"high\"  pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+width+"\" height=\""+height+"\"></embed>");
		document.write("</object>");
	},
	LoadTransparentFlashMovie : function(location,width,height){
		document.write("<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=\""+width+"\" height=\""+height+"\">");
		document.write("<param name=\"movie\" value=\""+location+"\" />");
		document.write("<param name=\"quality\" value=\"high\" />");
		document.write("<param name=\"wmode\" value=\"transparent\" />");
		document.write("<embed src=\""+location+"\" quality=\"high\" wmode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+width+"\" height=\""+height+"\"></embed>");
		document.write("</object>");
	},
	GetFlashMovieObj : function(location,width,height){
	    var result = "";
	    result += "<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=\""+width+"\" height=\""+height+"\">";
		result += "<param name=\"movie\" value=\""+location+"\" />";
		result += "<param name=\"quality\" value=\"high\" />";
		result += "<embed src=\""+location+"\" quality=\"high\"  pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+width+"\" height=\""+height+"\"></embed>";
		result += "</object>";
		
		return result;
	},
	getObjHeight : function( obj )
	{
		var result = 0;
	    if ( obj.offsetHeight )
	        result = obj.offsetHeight;
	    else if (( obj.clip ) && ( obj.clip.height ))
	        result = obj.clip.height;
	    else if (( obj.style ) && ( obj.style.pixelHeight ))
	        result = obj.style.pixelHeight;
	    return result;
	},
	GetURLParam : function( key ) {
		var strReturn = "";
		var strHref = window.location.href;
		if ( strHref.indexOf("?") > -1 ) {
			var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
			var aQueryString = strQueryString.split("&");
			for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
					if (aQueryString[iParam].indexOf(key + "=") > -1 ){
					var aParam = aQueryString[iParam].split("=");
					strReturn = aParam[1];
					break;
				}
			}
		}
		return strReturn;
	},
	Register : new Array
}
