if( typeof(GlamWidgetData)=='undefined' ) { var GlamWidgetData = {}; GlamWidgetData.ports = [{"title":"ロンシャンが愛され続ける理由... [Glam]","url":"http://www.glam.jp/brand/longchamp/index.html"},{"title":"ヴァン クリーフ&アーペルから、愛らしいリング... [Glam]","url":"http://www.glam.jp/mostwanted/j_w/201013.html"},{"title":"Dior ディオール のヌーディカラーできめる... [Glam]","url":"http://www.glam.jp/mostwanted/beauty/201002.html"},{"title":"美白を越えた、オーラ美白肌を手に入れて... [Glam]","url":"http://www.glam.jp/mostwanted/skincare/201002.html"},{"title":"Glamの妹サイト、「Glam20(グラムハート)」... [Glam20]","url":"http://20.glam.jp/"}]; } var html; var resizejs = 'http://jp.glammedia.com/widgets/js/minmax.js'; Array.prototype.shuffle = function() { var len = this.length; var i = this.length; while(i) { var j = Math.floor(Math.random()*i); var t = this[--i]; this[i] = this[j]; this[j] = t; } var hitNum = 0; len = this.length; // search !! and put them up for(i=0; i0){ this[i] = this[hitNum]; this[hitNum] = t; } t.title = t.title.substring(2); hitNum++; } } if(hitNum == 0){ for(i=0; i0){ this[i] = this[hitNum]; this[hitNum] = t; } t.title = t.title.substring(2); hitNum++; } } if(hitNum > 0){ for(i=0; i<5; i++){ var i2 = Math.floor(Math.random()*5); var i3 = Math.floor(Math.random()*5); if(i2 != i3){ var t = this[i2]; this[i2] = this[i3]; this[i3] = t; } } } } len = this.length; return this; } shuffleGlamWidgetData = GlamWidgetData.ports.shuffle(); html = ''; html += ''; html += '
'; html += '
' html += 'Glam'; html += '注目記事のご紹介'; html += '
'; html += '
'; var i=0; while( i'+ shuffleGlamWidgetData[i].title +'

'; i++; if( i==5 ) { break; } } html += 'Glam'; html += '
'; html += '
Glam Media
'; html += ''; document.write( html );