/* Objects */ if(typeof Widget == 'undefined') Widget = new Object(); Widget.komblog = new Object(); Widget.komblog = { init: function() { //初期化 //変数 this.komWinOrigX = 65; this.komWinOrigY = 620; this.komWinOrigW = 85; this.komWinOrigH = 18; this.komBlogFlg = false; //バナー挿入 j$('#header').append('

KOM BLOG

'); j$('#komBLogBanner').click(function(){ Widget.komblog.open(); }); j$('body').append('

close

'); j$('#komBlogBg').css({"position": "absolute" ,top: this.komWinOrigX, left: this.komWinOrigY, width: this.komWinOrigW, height: this.komWinOrigW, 'background-color': '#000000', opacity: 0, "z-index": 9000}).hide(); j$('#komBlog').css({"position": "absolute" ,top: 20, left: 20, width: 0, height: 0, 'background-color': '#ffffff',opacity: 0, "z-index": 9001}).hide().html('

 

'); j$('#komBlogBg').click(function(){ Widget.komblog.close(); }); //ウィンドウリサイズ処理 j$(window).resize(function(){ Widget.komblog.resize(); }); }, resizing: function() { var _winWidth = komUI.bodyWidth(); var _winHeight = komUI.bodyHeight(); var _width = _winWidth - 40; var _height = _winHeight - 40; j$('#komBlogBg').css({width: _winWidth, height: _winHeight}); j$('#komBlogFrame, #komBlogP, #komBlogIframe').css({width: _width, height: _height}); }, resize: function() { if(this.komBlogFlg){ this.resizing(); _this = this; setTimeout(function(){_this.resizing();}, 200); } }, open: function() { komUI.colorTranceMotionObj.stop(); _this = this; var _winWidth = komUI.bodyWidth(); var _winHeight = komUI.bodyHeight(); var _width = _winWidth - 40; var _height = _winHeight - 40; j$('#komBlogBg').animate({top: 0, left: 0, width: _winWidth, height: _winHeight, opacity: .8}, 500, function(){ j$('#komBlog').html('

').show().animate({opacity: 1}, 300); j$('#komBlogFrame, #komBlogP, #komBlogIframe').css({width: _width, height: _height}); _this.komBlogFlg = true; }); }, close: function() { this.komBlogFlg = false; _this = this; j$('#komBlog').animate({opacity: 0}, 300, function(){ j$(this).hide().html('

 

'); j$('#komBlogBg').animate({top: _this.komWinOrigX, left: _this.komWinOrigY, width: _this.komWinOrigW, height: _this.komWinOrigH, opacity: 0}, 500, function(){ j$(this).hide(); }); }); komUI.colorTranceMotionObj.start(); } } if(typeof komUI == 'undefined') { j$(document).one("onKomUI", function(e){ Widget.komblog.init(); }); } else { Widget.komblog.init(); };