//Set the php output as variables rssRaw = "

Madonna Enlists Cee Lo Green For Surprise At Super Bowl<\/a><\/p>Though Madonna has kept mostly secret regarding details of her upcoming Super Bowl halftime show, Cee Lo Green is the latest detail to slip out, joining previously announced performance participants Nicki Minaj and M.I.A. \"Party Rockers\" LMFAO have also been announced as special guests. According to the insider, Green has been getting quite familiar with Madge\'s 30-year catalog in order to revamp some of Madonna\'s greatest hits.<\/div>

Lady Antebellum\'s Charles Kelley Fractures Finger<\/a><\/p>Lady Antebellum were out on the town on Monday, January 23 celebrating their recent success, but one band member, Charles Kelley, was sporting some serious hardware on his left pinky finger-a plastic cast. He explained the cast to Country Vibe News, which was on the scene: \"I was just horsing around and I hit it on the side of a table. I\'m an idiot.\" The injury occurred while he was vacationing in the Bahamas with friends.<\/div>

Rihanna Shows Off New Thug Life Knuckle Tattoo<\/a><\/p>Rihanna has hit Twitter to show off her new tattoo; the \"California King Bed\" songstress has had the phrase \"Thug Life\" spelled out across the base of her eight fingers. She also tweeted an accompanying message: \"All these b-tches screaming that 2pac back # THUGLIFE.\" The late Tupac, who was shot four times in a drive-by, had the same phrase tattooed across his mid-section. RiRi hit Twitter again to boast of the new tat: \"Tat my f***in name on u girl so I know its real!!!\"<\/div>

Mariah Carey Plots May Stage Return<\/a><\/p>After spending the last 18 months out of the spotlight, Mariah Carey is planning her grand return to the stage in May. The diva has been tapped to headline the 11th Annual Mawazine Festival in Morocco on May 26 with event organizers confirming that the singer will be performing new songs from her upcoming album. Back in the summer, Carey\'s husband Nick Cannon revealed in an interview with Billboard that she had been working on a new album.<\/div>

Michael Jackson Honored On Hollywood Boulevard By Children<\/a><\/p>Michael Jackson was honored with a special block of sidewalk on Hollywood Boulevard in which the print from his famed sequin glove was pressed along with a shoe print. Michael\'s children, Prince, Paris and Blanket added their hand prints at the ceremony. Justin Bieber also attended and was introduced to the assembled crowd by Paris: \"My father would have been proud to mentor this person - Justin Bieber - and I am a big fan of his.\"<\/div>"; rssDelimited = rssRaw.substring(0,(rssRaw.lastIndexOf("|") - 4)); //Trim the last "|MJI|" delimiter //RE-DECLARE NEEDED URI VARIABLES wdgtID = "today"; wdgtDateline = "false"; wdgtWidth = "255"; wdgtHeight = "300"; wdgtType = "fader"; wdgtSkin = "glass"; wdgtSkinColor = "black"; wdgtOrient = "z"; wdgtBadge = ""; wdgtBadgeWidth = ""; wdgtBadgeHeight = ""; wdgtTextColor = "ffffff"; //SERVICE sd = "newsservice.tritondigitalmedia.com"; //PREFIX pf = "ss"; //WIDGET POSITION wPos = "2784"; //IE SNIFFER isIE6Win = navigator.platform == "Win32" && ((navigator.userAgent.toLowerCase().indexOf('msie 5.5')!=-1) || (navigator.userAgent.toLowerCase().indexOf('msie 6.0')!=-1)); //CROSS-BROWSER SPLIT FUNCTION String.prototype._$ = String.prototype._$ || String.prototype.split; String.prototype.split = function (s /* separator */, limit) { if (!(s instanceof RegExp)) return String.prototype._$.apply(this, arguments); var flags = (s.global ? "g" : "") + (s.ignoreCase ? "i" : "") + (s.multiline ? "m" : ""), s2 = new RegExp("^" + s.source + "$", flags), output = [], origLastIndex = s.lastIndex, lastLastIndex = 0, i = 0, match, lastLength; if (limit === undefined || +limit < 0) { limit = false; } else { limit = Math.floor(+limit); if (!limit) return []; } if (s.global) s.lastIndex = 0; else s = new RegExp(s.source, "g" + flags); while ((!limit || i++ <= limit) && (match = s.exec(this))) { var emptyMatch = !match[0].length; if (emptyMatch && s.lastIndex > match.index) s.lastIndex--; if (s.lastIndex > lastLastIndex) { if (match.length > 1) { match[0].replace(s2, function () { for (var j = 1; j < arguments.length - 2; j++) { if (arguments[j] === undefined) match[j] = undefined; } }); } output = output.concat(this.slice(lastLastIndex, match.index)); if (1 < match.length && match.index < this.length) output = output.concat(match.slice(1)); lastLength = match[0].length; lastLastIndex = s.lastIndex; } if (emptyMatch) s.lastIndex++; } output = lastLastIndex === this.length ? (s.test("") && !lastLength ? output : output.concat("")) : (limit ? output : output.concat(this.slice(lastLastIndex))); s.lastIndex = origLastIndex; return output; } //OUTPUT MASTER DIV document.write('

<\/div>'); //INITIALIZE A NEW WIDGET mjiWidget = function() { //Determine widget display //Run this logic if a known skin is selected, otherwise output a sparse widget if (!(wdgtSkin == "" || wdgtSkin == "none")) { //Adjust dimensions and set variables based on desired skin and orientation if (wdgtSkin == "glass") { if (wdgtOrient == "y") { //y-oriented //Set dimensions of the corners wdgtTopLeftWidth = 52; wdgtTopLeftHeight = 14; wdgtTopRightWidth = 15; wdgtTopRightHeight = 14; wdgtBotLeftWidth = 52; wdgtBotLeftHeight = 18; wdgtBotRightWidth = 15; wdgtBotRightHeight = 18; } else if (wdgtOrient == "x") { //x-oriented //Set dimensions of the corners wdgtTopLeftWidth = 15; wdgtTopLeftHeight = 39; wdgtTopRightWidth = 15; wdgtTopRightHeight = 39; wdgtBotLeftWidth = 15; wdgtBotLeftHeight = 18; wdgtBotRightWidth = 15; wdgtBotRightHeight = 18; } else { //z-oriented //Set dimensions of the corners wdgtTopLeftWidth = 15; wdgtTopLeftHeight = 12; wdgtTopRightWidth = 15; wdgtTopRightHeight = 12; wdgtBotLeftWidth = 15; wdgtBotLeftHeight = 18; wdgtBotRightWidth = 15; wdgtBotRightHeight = 18; } } else { //matte if (wdgtOrient == "y") { //y-oriented //Set dimensions of the corners wdgtTopLeftWidth = 52; wdgtTopLeftHeight = 14; wdgtTopRightWidth = 14; wdgtTopRightHeight = 14; wdgtBotLeftWidth = 52; wdgtBotLeftHeight = 16; wdgtBotRightWidth = 14; wdgtBotRightHeight = 16; } else if (wdgtOrient == "x") { //x-oriented //Set dimensions of the corners wdgtTopLeftWidth = 14; wdgtTopLeftHeight = 39; wdgtTopRightWidth = 14; wdgtTopRightHeight = 39; wdgtBotLeftWidth = 14; wdgtBotLeftHeight = 16; wdgtBotRightWidth = 14; wdgtBotRightHeight = 16; } else { //z-oriented //Set dimensions of the corners wdgtTopLeftWidth = 15; wdgtTopLeftHeight = 14; wdgtTopRightWidth = 15; wdgtTopRightHeight = 14; wdgtBotLeftWidth = 15; wdgtBotLeftHeight = 16; wdgtBotRightWidth = 15; wdgtBotRightHeight = 16; } } //Adjust dimensions of chrome based on above wdgtTopWidth = wdgtWidth - (wdgtTopLeftWidth + wdgtTopRightWidth); //Adjust width of mjiWdgtTop wdgtBotWidth = wdgtTopWidth; //Adjust width of mjiWdgtBot wdgtLeftHeight = wdgtHeight - (wdgtTopLeftHeight + wdgtBotLeftHeight); //Adjust height of mjiWdgtLeft wdgtRightHeight = wdgtLeftHeight; //Adjust height of mjiWdgtRight wdgtBoxWidth = wdgtTopWidth; //Adjust width of mjiWdgtContent_foo wdgtBoxHeight = wdgtLeftHeight; //Adjust height of mjiWdgtContent_foo //Set badge src if (wdgtBadge == "") { badgeSRC = 'http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_'+wdgtID+'.png'; } else { badgeSRC = wdgtBadge; } //Set the widget html as a variable wdgtHTML = ''+ '
' + '
 <\/div>' + '
 <\/div>' + '
 <\/div>' + '
 <\/div>' + '
 <\/div>' + '
<\/div>' + '
 <\/div>' + '
 <\/div>' + '
 <\/div>' + '
 <\/div>' + '<\/div>' + ''; } //If no skin or unknown is selected, output a sparse widget else { wdgtBoxWidth = wdgtWidth; wdgtBoxHeight = wdgtHeight; wdgtHTML = ''+ '
' + '
<\/div>' + '<\/div>' + ''; } //Output the widget html document.getElementById('mjiWdgt_'+wPos).innerHTML = wdgtHTML; //Set png transparencies for ie 5.5-6.0 if (!(wdgtSkin == "" || wdgtSkin == "none")) { if (isIE6Win) { document.getElementById('mjiWdgtTopLeft_'+wPos).style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_tl.png",sizingMethod="scale")'; document.getElementById('mjiWdgtTop_'+wPos).style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_t.png",sizingMethod="scale")'; document.getElementById('mjiWdgtTopRight_'+wPos).style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_tr.png",sizingMethod="scale")'; document.getElementById('mjiWdgtLeft_'+wPos).style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_l.png",sizingMethod="scale")'; document.getElementById('mjiWdgtBadge_'+wPos).style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+badgeSRC+'",sizingMethod="scale")'; document.getElementById('mjiWdgtContent_'+wPos).style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_bk.png",sizingMethod="scale")'; document.getElementById('mjiWdgtRight_'+wPos).style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_r.png",sizingMethod="scale")'; document.getElementById('mjiWdgtBotLeft_'+wPos).style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_bl.png",sizingMethod="scale")'; document.getElementById('mjiWdgtBot_'+wPos).style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_b.png",sizingMethod="scale")'; document.getElementById('mjiWdgtBotRight_'+wPos).style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_br.png",sizingMethod="scale")'; } else { document.getElementById('mjiWdgtTopLeft_'+wPos).style.backgroundImage = 'url(http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_tl.png)'; document.getElementById('mjiWdgtTop_'+wPos).style.backgroundImage = 'url(http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_t.png)'; document.getElementById('mjiWdgtTopRight_'+wPos).style.backgroundImage = 'url(http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_tr.png)'; document.getElementById('mjiWdgtLeft_'+wPos).style.backgroundImage = 'url(http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_l.png)'; document.getElementById('mjiWdgtBadge_'+wPos).style.backgroundImage = 'url('+badgeSRC+')'; document.getElementById('mjiWdgtContent_'+wPos).style.backgroundImage = 'url(http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_bk.png)'; document.getElementById('mjiWdgtRight_'+wPos).style.backgroundImage = 'url(http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_r.png)'; document.getElementById('mjiWdgtBotLeft_'+wPos).style.backgroundImage = 'url(http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_bl.png)'; document.getElementById('mjiWdgtBot_'+wPos).style.backgroundImage = 'url(http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_b.png)'; document.getElementById('mjiWdgtBotRight_'+wPos).style.backgroundImage = 'url(http://'+sd+'/feeds/skins/'+pf+'/media/standard/common/'+pf+'_wdgt_'+wdgtSkin+'_'+wdgtSkinColor+'_'+wdgtOrient+'_br.png)'; } } //Confirm animation type and execute // Ticker if (wdgtType == "ticker") { var mjiArray_2784 = rssDelimited.split(new RegExp("[|MJI|]{5}", "g")); doInitTicker_2784 = new initTicker_2784(mjiArray_2784, wPos); } // Fader else if (wdgtType == "fader") { document.getElementById('mjiWdgtContent_'+wPos).innerHTML = rssRaw; doInitFader_2784 = new initFader_2784(wPos, 500, 3000); } // Scroller else if (wdgtType == "scroller") { var mjiArray_2784 = rssDelimited.split(new RegExp("[|MJI|]{5}", "g")); var items_2784 = mjiArray_2784.length; scrollerWidth_2784 = wdgtBoxWidth; scrollerHeight_2784 = wdgtBoxHeight; heightAdj_2784 = new Array(); scrollAdj_2784 = new Array(); doInitScroller_2784 = new initScroller_2784(mjiArray_2784, items_2784, wPos); } else { document.getElementById('mjiWdgtContent_'+wPos).innerHTML = rssRaw; } } //TICKER LOGIC tickerContent_2784 = ''; typedPortion_2784 = ''; cursorChar_2784 = ''; cursorHTML_2784 = '@<\/span>'; workHTML_2784 = ''; currentItem_2784 = 0; var initTicker_2784 = function(mjiArray_2784, pos) { document.getElementById('mjiWdgtContent_'+pos).innerHTML = ''; count_2784 = 0; if (currentItem_2784 > mjiArray_2784.length - 1) { currentItem_2784 = 0; } tickerContent_2784 = mjiArray_2784[currentItem_2784]; itemLength_2784 = tickerContent_2784.length; typeInterval_2784 = setInterval(function() {typeText_2784(mjiArray_2784, pos);},40); } var typeText_2784 = function(mjiArray_2784, pos) { if (count_2784 == itemLength_2784) { clearInterval(typeInterval_2784); count_2784 = 0; currentItem_2784++; setTimeout(function() {initTicker_2784(mjiArray_2784, pos);},2000); } else if (count_2784 == 0) { typedPortion_2784 = ''; } else { typedPortion_2784 = tickerContent_2784.substring(0, count_2784); cursorChar_2784 = tickerContent_2784.charAt(count_2784); } if (/]+>/); if (tag_2784) { typedPortion_2784 += tag_2784[0]; count_2784 += tag_2784[0].length; } } else { workHTML_2784 = ''; workHTML_2784 += typedPortion_2784; if (count_2784 != itemLength_2784 - 1) { workHTML_2784 += cursorHTML_2784.replace(/@/, cursorChar_2784); document.getElementById('mjiWdgtContent_'+pos).innerHTML = workHTML_2784; } count_2784++; } } //FADER LOGIC //Pause and resume functions function pauseFader_2784() { doInitFader_2784.stopFade_2784(); } function resumeFader_2784() { doInitFader_2784.startFade_2784(); } //Constructor function initFader_2784 = function(pos, fadetime, delay) { //create empty array for the unknown DIVs var divs_2784 = new Array(); //get all the children of "mjiWdgtContent_foo" and create an array var children_2784 = new Array(); children_2784 = document.getElementById('mjiWdgtContent_'+pos).getElementsByTagName('div'); //populate the "divs" array with id attribute of found children for (var i=0; i < children_2784.length; i++) { divs_2784[i] = children_2784.item(i).getAttribute("id"); } this.nAct_2784 = -1; this.aDivs_2784 = divs_2784; for (var i=0;i -1) { document.getElementById(this.aDivs_2784[this.nOldAct_2784]).style.opacity = 1 - op_2784; document.getElementById(this.aDivs_2784[this.nOldAct_2784]).style.filter = "alpha(opacity="+(100 - ieop_2784)+")"; } if (this.nTime_2784 == this.nDur_2784) { clearInterval(this.nID2_2784); if (this.nOldAct_2784 > -1) { document.getElementById(this.aDivs_2784[this.nOldAct_2784]).style.visibility = "hidden"; } var p_2784 = this; this.nID1_2784 = setInterval(function() { p_2784.newFade_2784() }, this.nDelay_2784); } //IE is brain-dead, so remove filter to re-enable ClearType if (document.getElementById(this.aDivs_2784[this.nAct_2784]).style.filter && document.getElementById(this.aDivs_2784[this.nAct_2784]).style.removeAttribute) { document.getElementById(this.aDivs_2784[this.nAct_2784]).style.removeAttribute('filter'); } } initFader_2784.prototype.easeInOut_2784 = function(t,b,c,d) { return c/2 * (1 - Math.cos(Math.PI*t/d)) + b; } //SCROLLER LOGIC pauseScrollerBol_2784 = false; collA_2784 = null; collB_2784 = null; collTop_2784 = 0; collOffset_2784 = 0; function pauseScroll_2784(collAItem_2784,bol) { pauseScrollerBol_2784 = true; } function resumeScroll_2784(collBItem_2784,bol) { pauseScrollerBol_2784 = false; if (bol == 1) { objd_2784 = document.getElementById('mjiWdgtCollBItem_2784_'+collBItem_2784); } else { objd_2784 = document.getElementById('mjiWdgtCollAItem_2784_'+collBItem_2784); } } var doScroll_2784 = function() { if (pauseScrollerBol_2784 == false) { collTop_2784--; if (collTop_2784 < (-1*collOffset_2784)) { collTop_2784 = 0; collB_2784.style.top = scrollerHeight_2784+'px'; } collA_2784.style.top = collTop_2784+'px'; if ((collTop_2784+collOffset_2784)Initializing Music News Content...<\/div>'; for (i=0;i'+mjiArray_2784[i]+'<\/div>'; } innertxt_2784 = innertxt_2784+'<\/div>'; innertxt_2784 = innertxt_2784+'
'; for (i=0;i'+mjiArray_2784[i]+'<\/div>'; } innertxt_2784 = innertxt_2784+'<\/div>'; shellDiv_2784 = document.getElementById('mjiWdgtContent_'+pos); var t = document.createElement('div'); t.innerHTML = innertxt_2784; shellDiv_2784.appendChild(t); //shellDiv_2784.innerHTML = innertxt_2784; // Wait for page to fully load in non-mozilla browsers before running initScroller2 if (navigator.userAgent.match(/msie/i)) { var pageloaded = true; var t=setTimeout("if (document.readyState == 'completed') pageloaded = true",1000); while (pageloaded == false) { // do nothing } clearTimeout(t); } setTimeout(function() {initScroller2_2784(mjiArray_2784, items_2784, pos)},5000); //start time }