// URL
// ブログパーツ用URL
MUG_URL_BLOGPARTS		= 'http://imagebank.nestle.co.jp/nescafe/bikemessenger/blogparts/bikeblogparts.swf';
// オーバーレイ用URL
MUG_URL_OVERLAY			= 'http://imagebank.nestle.co.jp/nescafe/bikemessenger/blogparts/bikefloating.swf';
// 同封expressInstall URL
MUG_URL_INSTALL			= 'http://imagebank.nestle.co.jp/nescafe/bikemessenger/blogparts/expressInstall.swf';
// ブログ画像URL
MUG_URL_BLOGPARTS_IMG	= 'nomessenger.jpg';


// SWFObject v1.5
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.MUG_BLOGPARTS_SWFObjectUtil=="undefined"){deconcept.MUG_BLOGPARTS_SWFObjectUtil=new Object();}deconcept.MUG_BLOGPARTS_SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.MUG_BLOGPARTS_SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.MUG_BLOGPARTS_SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.MUG_BLOGPARTS_SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.MUG_BLOGPARTS_SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.MUG_BLOGPARTS_SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.MUG_BLOGPARTS_SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.MUG_BLOGPARTS_SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.MUG_BLOGPARTS_SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.MUG_BLOGPARTS_SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var MUG_BLOGPARTS_FlashObject=deconcept.MUG_BLOGPARTS_SWFObject;var MUG_BLOGPARTS_SWFObject=deconcept.MUG_BLOGPARTS_SWFObject;

// CONST
MUG_BLOGPARTS_ID = "MUG_BLOGPARTS_OBJ_ID";

MUG_BLOGPARTS_DIV_OVERLAY_MAIN_ID		= 'MUG_BLOGPARTS_ol_main';
MUG_BLOGPARTS_DIV_OVERLAY_SUBMAIN_ID	= 'MUG_BLOGPARTS_ol_submain';
MUG_BLOGPARTS_DIV_OVERLAY_SWF_ID		= 'MUG_BLOGPARTS_ol_swf';
MUG_BLOGPARTS_DIV_BLOGPARTS_ID			= 'MUG_BLOGPARTS_bp_swf';
MUG_BLOGPARTS_DIV_BLOGPARTS_PID			= 'MUG_BLOGPARTS_bpp_swf';

MUG_BLOGPARTS_DIV_INCLUDE_ID			= "MUG_BLOGPARTS_bi";


var nTimerID = null;

// =========================================================================== //
// コンストラクタ
// =========================================================================== //
function MUG_BLOGPARTS(){
}

// =========================================================================== //
// プロパティ
// =========================================================================== //

// ブラウザ
MUG_BLOGPARTS.browser = {
	isWin9X		: false,
	isIE		: false,
	isOpera		: false,
	isSafari	: false,
	isGecko		: false
};


MUG_BLOGPARTS.id = "";

// スクロール位置
MUG_BLOGPARTS.scrollPos		= {x : 0, y : 0};
// スクロール位置(保持)
MUG_BLOGPARTS.scrollSavePos	= {x : 0, y : 0};
// スクロールロック
MUG_BLOGPARTS.scrollLock	= false;

// 表示領域
MUG_BLOGPARTS.screenSize		= {w : 0, h : 0};
// document領域
MUG_BLOGPARTS.documentSize		= {w : 0, h : 0};



// 初期化
// ---------------------------------------------------------------------------
MUG_BLOGPARTS.initialize = function( _id ){
	// 準備確認
	isReady = true;
	// ブラウザのセット
	MUG_BLOGPARTS.getBrowser();
	MUG_BLOGPARTS.id = MUG_BLOGPARTS_ID;
	//MUG_BLOGPARTS.initContainerStyle();
	window.focus();
	window.onload	= MUG_BLOGPARTS_loadHandler;		// ロード
	window.onresize	= MUG_BLOGPARTS_resizeHandler;		// リサイズ
	window.onscroll	= MUG_BLOGPARTS_scrollHandler;		// スクロール
	
	return false;
}

// ブラウザ判定
// -----------------------------------------------------
MUG_BLOGPARTS.getBrowser = function(){
	
	MUG_BLOGPARTS.browser.isWin9X = (navigator.appVersion.toLowerCase().indexOf('windows 98')+1);
	MUG_BLOGPARTS.browser.isIE = (navigator.appName.toLowerCase().indexOf('internet explorer')+1?1:0);
	MUG_BLOGPARTS.browser.isOpera = (navigator.userAgent.toLowerCase().indexOf('opera')+1?1:0);
	if (MUG_BLOGPARTS.browser.isOpera) MUG_BLOGPARTS.browser.isIE = false;
	MUG_BLOGPARTS.browser.isSafari = (navigator.appVersion.toLowerCase().indexOf('safari')+1?1:0);
	MUG_BLOGPARTS.browser.isGecko = (navigator.userAgent.toLowerCase().indexOf('gecko') != -1);
	
}

// リサイズ
// ---------------------------------------------------------------------------
function MUG_BLOGPARTS_resizeHandler(){
	// 各種画面情報
	MUG_BLOGPARTS.getInfo();
	if ( document.getElementById( MUG_BLOGPARTS_DIV_OVERLAY_SWF_ID ) ) {
		var div = document.getElementById( MUG_BLOGPARTS_DIV_OVERLAY_SWF_ID );
		div.style.width		= MUG_BLOGPARTS.screenSize.w + "px";
		div.style.height	= MUG_BLOGPARTS.screenSize.h + "px";
		
	}
}

// スクロール
// ---------------------------------------------------------------------------
function MUG_BLOGPARTS_scrollHandler( _e ){
	
	// ロック時
	if ( MUG_BLOGPARTS.scrollLock == true ) {
		MUG_BLOGPARTS.setScrollPos( MUG_BLOGPARTS.scrollPos );
		// リサイズ
		if ( document.getElementById( MUG_BLOGPARTS_DIV_OVERLAY_SWF_ID ) ) {
			var div = document.getElementById( MUG_BLOGPARTS_DIV_OVERLAY_SUBMAIN_ID );
			div.style.top		= MUG_BLOGPARTS.scrollPos.y + "px";
			var div = document.getElementById( MUG_BLOGPARTS_DIV_OVERLAY_SUBMAIN_ID );
			div.style.width		= MUG_BLOGPARTS.screenSize.w + "px";
			div.style.height	= MUG_BLOGPARTS.screenSize.h + "px";
		}
	} else {
		MUG_BLOGPARTS.getInfo();
		if ( document.getElementById( MUG_BLOGPARTS_DIV_OVERLAY_SWF_ID ) ) {
			var div = document.getElementById( MUG_BLOGPARTS_DIV_OVERLAY_SWF_ID );
			div.style.top		= MUG_BLOGPARTS.scrollPos.y + "px";
			div.style.left		= MUG_BLOGPARTS.scrollPos.x + "px";
		}
	}
	
}

// ロード
// ---------------------------------------------------------------------------
function MUG_BLOGPARTS_loadHandler(){
	// 各種画面情報
	MUG_BLOGPARTS.getInfo();
}

// スクロール量の取得
// ---------------------------------------------------------------------------
MUG_BLOGPARTS.getScrollPos = function(){
	var obj = new Object();
	obj.x = document.body.scrollLeft || document.documentElement.scrollLeft;
	obj.y = document.body.scrollTop  || document.documentElement.scrollTop;
	MUG_BLOGPARTS.scrollPos = obj;
}

// 表示領域を取得（Safari2ではtop、leftが0になります。）
// ---------------------------------------------------------------------------
MUG_BLOGPARTS.getScreenSize = function(){
	
	var obj = new Object();
	if ( !MUG_BLOGPARTS.browser.isSafari && !MUG_BLOGPARTS.browser.isOpera ) {
		obj.w = document.documentElement.clientWidth || document.body.clientWidth || document.body.scrollWidth;
		obj.h = document.documentElement.clientHeight || document.body.clientHeight || document.body.scrollHeight;
	} else {
		obj.w = window.innerWidth - 15;
		obj.h = window.innerHeight;
	};
	MUG_BLOGPARTS.screenSize = obj;
	
}

// documentサイズを取得
// ---------------------------------------------------------------------------
MUG_BLOGPARTS.getDocumentSize = function(){
	
	var obj = new Object();
	obj.w = document.documentElement.scrollWidth || document.body.scrollWidth;
	obj.h = document.documentElement.scrollHeight || document.body.scrollHeight;
	MUG_BLOGPARTS.documentSize = obj;
	
}

// スクロール量の保持
// ---------------------------------------------------------------------------
MUG_BLOGPARTS.saveScrollPos = function(){
	MUG_BLOGPARTS.scrollSavePos.x = MUG_BLOGPARTS.scrollPos.x;
	MUG_BLOGPARTS.scrollSavePos.y = MUG_BLOGPARTS.scrollPos.y;
}

// 指定位置へスクロール移動
// ---------------------------------------------------------------------------
MUG_BLOGPARTS.setScrollPos = function( _pos ){
	window.scroll( _pos.x, _pos.y );
}


// 各種画面情報取得
// ---------------------------------------------------------------------------
MUG_BLOGPARTS.getInfo = function (){
	// 各種画面情報
	MUG_BLOGPARTS.getScrollPos();
	MUG_BLOGPARTS.getScreenSize();
	MUG_BLOGPARTS.getDocumentSize();
}

// 指定objectの位置取得
// ---------------------------------------------------------------------------
MUG_BLOGPARTS.getPosition = function ( _id ){
	
	var elem = document.getElementById( _id );
	var pos = new function(){ this.x = 0; this.y = 0; }
	while( elem ){
		pos.x += elem.offsetLeft; 
		pos.y += elem.offsetTop; 
		elem = elem.offsetParent;
		//IE補正
		if ((elem) && (MUG_BLOGPARTS.browser.isIE)) {
			pos.x += ( parseInt( this.getElementStyle( elem, "borderLeftWidth", "border-left-width" ) ) || 0) ;
			pos.y += ( parseInt( this.getElementStyle( elem, "borderTopWidth", "border-top-width" ) ) || 0 );
		};
	};
	//GECKO補正
	if ( MUG_BLOGPARTS.browser.isGecko ) {
		var elemBody = document.getElementsByTagName("BODY")[0];
		pos.x += 2 * ( parseInt( this.getElementStyle( elemBody, "borderLeftWidth", "border-left-width" ) ) || 0 );
		pos.y += 2 * ( parseInt( this.getElementStyle( elemBody, "borderTopWidth", "border-top-width" ) ) || 0 );
	};
	return pos;
}

function Nescafe_DelChildDiv( id ) {
    var div = document.getElementById( id );
	if ( !div ) return;
	if ( !div.firstChild ) return;
    while ( div.firstChild ) { 
        div.removeChild( div.lastChild );
    }
}

// =========================================================================== //
// SWF Overlayのスタート(swfから呼び出し)
// =========================================================================== //
function Nescafe_OverlayStart(){

//	var elem = document.createElement( 'div' );
//	elem.id = "MUG_BLOGPARTS_swf_mod";
//	elem.innerHTML = '<img src="' + MUG_URL_BLOGPARTS_IMG + '">';
//    var elemBlog = document.getElementById( MUG_BLOGPARTS_DIV_BLOGPARTS_ID );
//    var elemBlogP = document.getElementById( MUG_BLOGPARTS_DIV_BLOGPARTS_PID );
//	elemBlog.innerHTML = '';
//	elemBlog.appendChild( elem );
	
	
	var elemBlogP = document.getElementById( MUG_BLOGPARTS_DIV_BLOGPARTS_ID );
	elemBlogP.style.visibility = "hidden";
	
    var divBegin = '<div style="position: absolute; width: 100%; height: 100%;top: 0px; left: 0px; z-index:9999990;"><div id="' + MUG_BLOGPARTS_DIV_INCLUDE_ID + '" style="position: absolute; width: 100%; height: 100%;top: 0px; left: 0px; z-index:9999991;">';
    var divEnd = '</div></div>';
    document.body.innerHTML = divBegin + document.body.innerHTML + divEnd;
	
	
	// 画面情報取得
	//MUG_BLOGPARTS.getInfo();
	// スクロール制御
	MUG_BLOGPARTS.scrollLock = true;
	// select 非表示
	Nescafe_ShowSelect( false );
	
	var divBegin = '<div id="' + MUG_BLOGPARTS_DIV_OVERLAY_SUBMAIN_ID + '" style="position:absolute; z-index:9999998; overflow:hidden; width:' + MUG_BLOGPARTS.screenSize.w + "px" + '; height:'+ MUG_BLOGPARTS.screenSize.h + "px" + '; top:' + MUG_BLOGPARTS.scrollPos.y + 'px; left:' + MUG_BLOGPARTS.scrollPos.x + 'px;"><div id="'+ MUG_BLOGPARTS_DIV_OVERLAY_SWF_ID + '"  style="position:absolute;  z-index:9999999; top:0px; left:0px; width:100%; height:100%">';
	var divEnd = '</div></div>';
	
	var elem = document.createElement( 'div' );
	elem.style.visibility = "hidden";
	elem.style.visibility = "visible";
	elem.id = MUG_BLOGPARTS_DIV_OVERLAY_MAIN_ID;
	elem.innerHTML = divBegin + divEnd;
	
	var objBody = document.getElementsByTagName('body').item(0);
	objBody.appendChild( elem );
	
	var so = new MUG_BLOGPARTS_SWFObject(MUG_URL_OVERLAY, 'overlay', '100%', '100%', '9', '#ffffff');
	so.addParam('menu', 'false');
	so.addParam('wmode', 'transparent');
	so.addParam('allowScriptAccess', 'always');
	if( so.write( MUG_BLOGPARTS_DIV_OVERLAY_SWF_ID ) )
	so.write( MUG_BLOGPARTS_DIV_OVERLAY_SWF_ID );
	
}

// =========================================================================== //
// SWF Overlayの終了
// =========================================================================== //
function Nescafe_CloseSwfOverlay(){
	
	//MUG_BLOGPARTS.scrollLock = false;
	// select 表示
	Nescafe_ShowSelect( true );
	//Nescafe_DelChildDiv( MUG_BLOGPARTS_DIV_OVERLAY_MAIN_ID );
	//var objBody = document.getElementsByTagName('body').item(0);
	var elem = document.getElementById( MUG_BLOGPARTS_DIV_OVERLAY_MAIN_ID );
	//elem.style.visibility = "hidden";
	//objBody.removeChild( elem );
	//elem.innerHTML = "";
	
}

function Nescafe_ShowSelect( _is ) {
	if ( MUG_BLOGPARTS.browser.isIE == true ) {
	    var inputs = document.getElementsByTagName("select");
	    for ( var i = 0, l = inputs.length; i < l; i++ ) {
	        var input = inputs[i];
			if ( _is == true ) {
				input.style.visibility = "visible";
			} else {
				input.style.visibility = "hidden";
			}
	    }
	}
}

function Nescafe_BlogMoveLeft() {
	
	Nescafe_CloseSwfOverlay();
	Nescafe_SetAllContents();
	Nescafe_MoveStart();
}
function Nescafe_SetAllContents(){
	var objScrollPos = Nescafe_GetScrollPos();
	var obj = Nescafe_GetScreenSize();
	
	
	MUG_BLOGPARTS.setScrollPos(MUG_BLOGPARTS.scrollPos);
}
function Nescafe_MoveStart(){
	nTimerID = setTimeout("Nescafe_MoveGo()", 3);
}

var Nescafe_nPosX = 0;
function Nescafe_MoveGo(){
	var divTarget = document.getElementById(MUG_BLOGPARTS_DIV_INCLUDE_ID);
	Nescafe_nPosX = Nescafe_nPosX - 12;
	divTarget.style.left = Nescafe_nPosX + "px";
	if ( Nescafe_nPosX < 800 ) {
		setTimeout("Nescafe_MoveGo()", 3);
	} else {
		nTimerID = clearTimeout;
	}
	/*
	this.ele = target;
	this.speed = 1;
	this.left = target.offsetLeft;
	//this.leftRightSpeed = 2;
	this.leftRightSpeed = Math.random()*3;
	*/
}

function Nescafe_GetScrollPos(){
	return {
	  x: document.body.scrollLeft || document.documentElement.scrollLeft,
	  y: document.body.scrollTop  || document.documentElement.scrollTop
	};
}

function Nescafe_GetScreenSize() {
	var obj = new Object();
	if (!this.isSafari && !this.isOpera) {
		obj.x = document.documentElement.clientWidth || document.body.clientWidth || document.body.scrollWidth;
		obj.y = document.documentElement.clientHeight || document.body.clientHeight || document.body.scrollHeight;
	} else {
		obj.x = window.innerWidth - 15;
		obj.y = window.innerHeight;
	};
	
	obj.mx = parseInt((obj.x)/2);
	obj.my = parseInt((obj.y)/2);
	return obj;
}


// 初期化
MUG_BLOGPARTS.initialize( 'MUGBLOGPARTS_v1' );

// =========================================================================== //
// blogParts貼付け
// =========================================================================== //

// div area output
var MUG_BLOGPARTS_divMain				= document.createElement( 'div' );
var MUG_BLOGPARTS_divSwf				= document.createElement( 'div' );
MUG_BLOGPARTS_divSwf.id					= MUG_BLOGPARTS_DIV_BLOGPARTS_ID;
MUG_BLOGPARTS_divSwf.style.textAlign	= "center";
MUG_BLOGPARTS_divSwf.style.height		= "300px";
MUG_BLOGPARTS_divMain.appendChild( MUG_BLOGPARTS_divSwf );
document.write( '<div id="' + MUG_BLOGPARTS_DIV_BLOGPARTS_PID + '" style="margin: 0; height: 300px; text-align: center; ">'+ MUG_BLOGPARTS_divMain.innerHTML + '</div>' );

// swf output
var MUG_BLOGPARTS_dateNow = new Date();
var MUG_BLOGPARTS_timeNow = MUG_BLOGPARTS_dateNow.getTime();
var so = new MUG_BLOGPARTS_FlashObject( MUG_URL_BLOGPARTS + "?date=" + MUG_BLOGPARTS_timeNow, "MUG_BLOGPARTS_swf_mod", "160", "300", "9.0.0", "#ffffff" );
so.useExpressInstall( MUG_URL_INSTALL );

so.addParam( "wmode", "transparent" );
so.addParam( "menu", "false" );
so.addParam( "scale", "noscale" );
so.addParam( "align", "TL" );
so.addParam( "allowScriptAccess", "always");
if( so.write( MUG_BLOGPARTS_DIV_BLOGPARTS_ID ) )
so.write( MUG_BLOGPARTS_DIV_BLOGPARTS_ID );
