function display_flash_header()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="785" height="125">\n');
    document.write('<param name="movie" value="/index/layout2/heaven666_header.swf">\n');
	document.write('<param name=quality value=high>\n');
	document.write('<param name=wmode value=transparent>\n');
	document.write('<embed src="/index/layout2/heaven666_header.swf" width="785" height="125" wmode="transparent" quality="high"  pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash">\n');
    document.write('</object>\n');
}

function getElement(id){
	return document.getElementById ? document.getElementById(id) : (document.all ? document.all[id] : null);
}

function CreateControlFlash(divID, url, width, height, flashVars, objID){
/*
	var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
	var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
	var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
	var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
	var MMredirectURL = window.location;
	document.title = document.title.slice(0, 47) + " - Flash Player Installation";
	var MMdoctitle = document.title;
	var flashVarsJS = '&MMredirectURL=' + window.location + '&MMplayerType=' + MMPlayerType + '&MMdoctitle=' + MMdoctitle
*/
	var HTML = '';
	var obj = getElement(divID);
	HTML += '<object';
	if (objID) HTML += ' id=' + objID;
	HTML += ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
	HTML += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"';
	HTML += ' width=' + width;
	HTML += ' height=' + height + '>';
//	HTML += ' align="center">';
	HTML += '<param name="flashVars" value="' + flashVars + '" />';
	HTML += '<param name="movie" value=' + url + ' />';
	HTML += '<param name="quality" value="high" />';
	HTML += '<param name="AllowScriptAccess" value="always" />';
	HTML += '<param name="wmode" value="transparent" />';
	HTML += '<embed';
	HTML += ' type="application/x-shockwave-flash"';
	HTML += ' showstatusbar="1"';
	HTML += ' width=' + width;
	HTML += ' height=' + height;
	HTML += ' wmode="transparent"';
	HTML += ' src=' + url;
	if (flashVars) HTML += ' flashVars="' + flashVars + '"';
//	HTML += ' align="center"';
	HTML += ' quality="high"';
	HTML += ' AllowScriptAccess="always"';
	HTML += ' pluginspage="http://www.macromedia.com/go/getflashplayer">';
	HTML += '</embed>';
	HTML += '</object>';

	if(divID == 'upload_block') {
		HTML += 'Upload a single image or video above | <a onClick="displayUploadBlock(\'sg_file_html\')">Click here if you have problems uploading</a> | <a onClick="displayUploadBlock(\'gallery\')">Click here to upload an image gallery ( 3-15 related images )</a>';
		HTML += '<br><br><div style="text-align:left; width:500px"><b>Max file size: 10 MB.</b></div><br>';
	}
	else if(divID == 'upload_avatar_block') {
		HTML += '<br><a onClick="displayUploadBlock(\'sg_file_html\')">Click here if you have problems uploading</a>';
	}
	else if(divID == 'upload_private_avatar_block') {
		HTML += '<br><a onClick="displayPrivateUploadBlock(\'sg_file_html\')">Click here if you have problems uploading</a>';
	}
	else if(divID == 'upload_private_avatar_block') {
		HTML += '<br><a onClick="displayPrivateUploadBlock(\'sg_file_html\')">Click here if you have problems uploading</a>';
	}
	obj.innerHTML = HTML;
}