var ih = 0;

if ( browser == "opr"){
	ih = self.innerHeight;
} else if ( browser == "ie"){
	if ( os == "Mac"){
		ih = document.body.clientHeight - 15;
	} else {
		ih = document.body.clientHeight;
	}
} else {
	ih = self.innerHeight;
}


//alert( ih );


var h = ( ih < 600 ) ? 600 : ih;



if ( browser == "ns4"){
	document.write('<LAYER name="' + layer_id + '" style="position:absolute; top:0px; left:0px; width:' + swf_width + 'px; height:' + h + 'px; z-index:1">');
} else {
	document.write('<DIV id="' + layer_id + '" style="position:absolute; top:0px; left:0px; width:' + swf_width + 'px; height:' + h + 'px; z-index:1">');
}

document.write('<OBJECT id="flash" width="100%" height="100%" align="" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">');
document.write(' <PARAM name="movie" value="' + swf_path + '?js=' + js + '&ih=' + ih + '">');
document.write(' <PARAM name="quality" value="high">');
document.write(' <PARAM name="scale" value="noscale">');
document.write(' <PARAM name="salign" value="LT">');
document.write(' <PARAM name="bgcolor" value="' + bg_color + '">');
document.write(' <PARAM name="menu" value="false">');

if ( browser == "ns4"){
	document.write(' <EMBED name="flash" src="' + swf_path + '?js=' + js + '&ih=' + ih + '" quality="high" scale="noscale" salign="LT" bgcolor="' + bg_color + '" width="100%" height="100%" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" menu="false"></EMBED>');
	document.write('</OBJECT>');
	document.write('</LAYER>');
} else {
	if ( browser == "moz"){
		document.write(' <EMBED name="flash" src="' + swf_path + '?js=' + js + '&ih=' + ih + '" quality="high" salign="LT" scale="noscale" bgcolor="' + bg_color + '" width="100%" height="100%" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" menu="false"></EMBED>');
	} else {
		document.write(' <EMBED name="flash" src="' + swf_path + '?js=' + js + '&ih=' + ih + '" quality="high" scale="noscale" salign="LT" bgcolor="' + bg_color + '" width="100%" height="100%" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" menu="false"></EMBED>');
	}
	document.write('</OBJECT>');
	document.write('</DIV>');
}

