// ------------------------------------------------------------- //
//	flashwriter.js v1.1.0                              04/07/07  //
//                                                               //
//	INFORMATION                                                  //
//	 - Version  :v1.1.0                                          //
//	 - Author   :Kaoru Ishikura	                                 //
//	 - E-Mail   :ishikura@sakura-creative.com                    //
//	 - HomePage :http://www.sakura-creative.com/                 //
//                                                               //
//  Copyright (C) 2007 SAKURA CREATIVE.Inc All Rights Reserved.  //
// ------------------------------------------------------------- //


function symError(){ return true;}
window.onerror = symError;

// ----------------------------------------------------------------------- //
// - Configuration -
var getFlashID      = "flash_bset_house";
var setFlashURL     = "swf/besthouse.swf";
var setFlashObjID   = "flashObj";
var setFlashWidth   = 365;
var setFlashHeight  = 272;
var setFlashBgcolor = "#ffffff";
var setFlashAccess  = "samedomain"; // always / samedomain / never
var setFlashQuality = "high";       // low / medium / high
// ----------------------------------------------------------------------- //

window.onload = function flashWriter(){
	var embedFlashElem = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
	embedFlashElem	+= ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"';
	embedFlashElem	+= ' id="' + setFlashObjID + '" width="' + setFlashWidth + '" height="' + setFlashHeight + '">';
	embedFlashElem	+= '<param name="movie" value="' + setFlashURL + '" />';
	embedFlashElem	+= '<param name="allowScriptAccess" value="' + setFlashAccess + '" />';
	embedFlashElem	+= '<param name="quality" value="' + setFlashQuality + '" />';
	embedFlashElem	+= '<param name="bgcolor" value="' + setFlashBgcolor + '" />';
	embedFlashElem	+= '<embed src="' + setFlashURL + '" name="' + setFlashObjID + '"';
	embedFlashElem	+= ' width="' + setFlashWidth + '" height="' + setFlashHeight + '"';
	embedFlashElem	+= ' bgcolor="' + setFlashBgcolor + '" quality="' + setFlashQuality + '"';
	embedFlashElem	+= ' allowScriptAccess="' + setFlashAccess + '" type="application/x-shockwave-flash"';
	embedFlashElem	+= ' pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	embedFlashElem	+= '<\/object>';
	
	var objFlash = document.getElementById(getFlashID);
		objFlash.innerHTML = embedFlashElem;
}
