/* 
 * Jquery browser detect plugin to identify browser/os detection.
 * jQuery Browser Plugin - http://jquery.thewikies.com/browser/
 */
(function($){$.browserTest=function(a,z){var u='unknown',x='X',m=function(r,h){for(var i=0;i<h.length;i=i+1){r=r.replace(h[i][0],h[i][1]);}return r;},c=function(i,a,b,c){var r={name:m((a.exec(i)||[u,u])[1],b)};r[r.name]=true;r.version=(c.exec(i)||[x,x,x,x])[3];if(r.name.match(/safari/)&&r.version>400){r.version='2.0';}if(r.name==='presto'){r.version=($.browser.version>9.27)?'futhark':'linear_b';}r.versionNumber=parseFloat(r.version,10)||0;r.versionX=(r.version!==x)?(r.version+'').substr(0,1):x;r.className=r.name+r.versionX;return r;};a=(a.match(/Opera|Navigator|Minefield|KHTML|Chrome/)?m(a,[[/(Firefox|MSIE|KHTML,\slike\sGecko|Konqueror)/,''],['Chrome Safari','Chrome'],['KHTML','Konqueror'],['Minefield','Firefox'],['Navigator','Netscape']]):a).toLowerCase();$.browser=$.extend((!z)?$.browser:{},c(a,/(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari)/,[],/(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/));$.layout=c(a,/(gecko|konqueror|msie|opera|webkit)/,[['konqueror','khtml'],['msie','trident'],['opera','presto']],/(applewebkit|rv|konqueror|msie)(\:|\/|\s)([a-z0-9\.]*?)(\;|\)|\s)/);$.os={name:(/(win|mac|linux|sunos|solaris|iphone)/.exec(navigator.platform.toLowerCase())||[u])[0].replace('sunos','solaris')};if(!z){$('html').addClass([$.os.name,$.browser.name,$.browser.className,$.layout.name,$.layout.className].join(' '));}};$.browserTest(navigator.userAgent,true);})(jQuery);

/*
 * Jquery Plugin - opens external links in a new window.  
 * Checks if the links are relative, and are of the same domain.
 * Sampe Usage - $("#someDiv a").makeLinksExternal();
 */
jQuery.fn.makeLinksExternal=function(){return this.each(function(){var a=$(this).attr("href");if(a.indexOf(location.host)==-1&&a.indexOf("/")!=0){$(this).attr("target","_blank")}})};


/* Supplant Function. Remedial JS. Thanks to Douglas Crockford. 
 * Substitues the variables in a string. The variables must be preceded by {}.
*/

if(!String.prototype.supplant){String.prototype.supplant=function(a){return this.replace(/{([^{}]*)}/g,function(d,c){var e=a[c];return typeof e==="string"||typeof e==="number"?e:d})}};


var artistArray = ['variousartists','theacademyis', 'thecab', 'cobrastarship', 'forgivedurden', 'fun', 'gymclassheroes', 'panicatthedisco','panic!atthedisco', 'paramore', 'theswellers', 'thisprovidence', 'traviemccoy', 'versaemerge', 'arockettothemoon','thefridaynightboys','sublime' ];


/*Templates for the Merch Module */
var merchModuleTemplate = 
		'<li class="merch small item{index}">\
				<div class="merchImg"><a href="{omnitureLinksPThumb}" title="{merchTitle}"><img src="{merchImage}" alt="{merchTitle}"/></a><div class="merchZoomIcon"></div></div>\
				<div class="merchDetail">\
					<div class="merchPriceWrapper"><div class="artistNames">{merchArtistName}</div><div class="merchName"><a href="{omnitureLinksPTitle}" >{merchTitle}</a></div><div class="merchDescription">{merchDesc}</div></div>\
					<div class="merchBuy"><a href="{omnitureLinksPButton}" class="merchBuyLink">{merchPrice}</a></div>\
				</div>\
				<!-- HOVERCARD -->\
		</li>';

/* Templates for the Hovercard module.*/
var	merchHCTemplate ='<div class="merchHC merchHC{index}">\
							<div class="merchHCWrapper">\
								<div class="merchHCInnerWrapper">\
									<div class="merchHCHead"><a href="{omnitureLinksHTitle}">{merchTitle}</a></div>\
									<div class="merchHCBody">\
										<div class="merchHCLeftCon"><a href="{omnitureLinksHThumb}"  title="{merchTitle}"><img src="{merchImage}" alt="{merchTitle}" width="230px"/></a></div>\
										<div class="merchHCRightCon">\
											<h3 class="merchHCPrice">{merchPrice}</h3>\
											{merchDesc}\
											{merchSizes}\
											<div class="merchHCBuyNowCon"><a class="merchHCBuyNow" href="{omnitureLinksHButton}">Buy Now &raquo;</a></div>\
										</div>\
										<div class="clear"></div>\
									</div>\
									<div class="merchHCFoot"></div>\
								</div>\
							</div>\
						</div>';
			
var merchCountryTemplate = '<li><a class="flag {countryName}" href="{countryLink}" target="_new">{countryText}</a></li>';
var merchHeaderTemplate = '<div class="{positionClass}">\
						   		<div class="visitStore">\
									<a class="visitStoreLink" href="{merchViewAllLink}" rel="external" target="_new">View More</a>\
									<ul style="display: none;" class="visitStoreFlyout">\
										<!-- MERCH COUNTRIES -->\
									</ul>\
								</div>\
						   </div>';

function modifyImageSize(cssSelector){
	$(cssSelector).each(function(){
		var photoImageSrc = $(this).attr("src");
		var photoImageSrcNew = "";
		if (null != photoImageSrc) {
			var slashpoint = photoImageSrc.lastIndexOf("/");
			var uspoint = photoImageSrc.lastIndexOf("_");
			var dotpoint = photoImageSrc.lastIndexOf(".");
			var srcLength = photoImageSrc.length;
			var thumbSize = "_4";
			var imgPath_1 = photoImageSrc.substring(0, slashpoint);
			var imgPath_2 = photoImageSrc.substring(slashpoint, uspoint);
			var imgPath_3 = photoImageSrc.substring(dotpoint, (srcLength));
			photoImageSrcNew = imgPath_1 + imgPath_2 + thumbSize + imgPath_3;
			var avatarAncStyle = "display:block !important;width:104px !important;height: 104px !important;";
			var avatarImgStyle = "display:block !important;width:104px !important;height: 104px !important;cursor:pointer !important;";
			$(this).parent().attr("style", avatarAncStyle);
			$(this).attr("style", avatarImgStyle);
			var avatarDivStyle = "background:transparent url(" + photoImageSrcNew + ") no-repeat 0px 0px;";
			$(this).attr("src", photoImageSrcNew);
			$(this).parent().parent().attr("style", avatarDivStyle);
		}
	});	
}
						   
function passImageSelectors(){
	modifyImageSize("#list_audio-294552.list_audio .module .content .body ul.songs li.audio .img a img");
	modifyImageSize("#list_audio-3902013.list_audio .module .content .body ul.songs li.audio .img a img");
}

//This is for cookie writing functionality in artist detail pages
var urlBandArray = new Array();
	urlBandArray["/the-academy-is/"] = "theacademyis";
	urlBandArray["/the-cab/"] = "thecab";
	urlBandArray["/cobra-starship/"] = "cobrastarship";
	urlBandArray["/fun/"] = "fun";
	urlBandArray["/gym-class-heroes/"] = "gymclassheroes";
	urlBandArray["/panic-at-the-disco/"] = "panicatthedisco";
	urlBandArray["/paramore/"] = "paramore";
	urlBandArray["/a-rocket-to-the-moon/"] = "arockettothemoon";
	urlBandArray["/the-swellers/"] = "swellers";
	urlBandArray["/this-providence/"] = "thisprovidence";
	urlBandArray["/travie-mccoy/"] = "traviemccoy";
	urlBandArray["/versaemerge/"] = "versaemerge"
	urlBandArray["/sublime-with-rome/"] = "sublime";

//For getting only artist name part in URL	
function getArtistURL()	{
	var windowURL = window.location.href;
	windowURL = $.trim(windowURL);
	windowURL = windowURL.substring(0, windowURL.length - 1);
	windowURL = windowURL.substring(windowURL.lastIndexOf("/"),windowURL.length) + "/";
	return windowURL;
}

//This function is for implementing the cd,digital flyouts
function albumFlyout(selector)	{
	$(selector).each(function(){
        var ulSize = $(this).children().size();
        if (ulSize == 1) {
            var linkName = $(this).find('a').text();
            linkName = $.trim(linkName.toLowerCase());
            var linkHref = $(this).find('a').attr("href");
            $(this).parents('.buy').find('a').attr("href", linkHref);
			$(this).parents('.buy').find('a').attr("onclick",null);
			$(this).hide();
            if (linkName == "digital") {
                $(this).parents('.buy').find('a').addClass("labelDigital");
            }else if (linkName == "cd") {
                $(this).parents('.buy').find('a').addClass("labelCd");
            }else if (linkName == "buy now") {
                $(this).parents('.buy').find('a').addClass("labelBuyNow");
            }else if (linkName == "preorder") {
                $(this).parents('.buy').find('a').addClass("labelPreOrder");
            }
			$(this).parents('.buy').find('a').attr("rel","external");
			
        }
    });
}

//This function is for changing the buy found in album detail
//Sets onclick as null instead of "return false" and sets "target" as "_blank"
//While updating various labels please check albumFlyout() function above.
function changeAlbumBuy(){
	var variousLabels = ["labelDigital","labelCd","labelBuyNow","labelPreOrder"];
	$.each(variousLabels,function(){
      $("#album_info-383751.album_info .module .content .nav_meta .buy").find("." + this).attr("onclick",null).attr("target","_blank");       
	});
}

function getStripppedURLLastPart(){
	var pgUrl = window.location.href;
    pgUrl = pgUrl.substr(0, (pgUrl.length) - 1);    
    var searchItem1 = '/';    
    indexValue = pgUrl.lastIndexOf(searchItem1);    
    var aUrlName = pgUrl.substr(indexValue + 1, (pgUrl.length) - 1);
	return aUrlName;
}

//Adding filter by to header
function addFilterBy(moduleSelector){
	if(!($(moduleSelector).find(".filterBy").length > 0)){
		$(moduleSelector).append('<a class="filterBy more">filterby</a>');
	}
    
}

//Flyout logic
function associateHandlersFilterBy(filterBy, categoryBody, categoryContent){
    $(filterBy).mouseover(function(){
        $(categoryBody).show();
        $(this).addClass("less");
        $(this).removeClass("more");
    });
    $(categoryContent).mouseover(function(){
        $(categoryBody).show();
    });
    $(categoryContent).mouseout(function(){
        if ($(categoryBody).is(':visible')) {
            $(categoryBody).hide();
            $(filterBy).addClass("more");
            $(filterBy).removeClass("less");
        }
        
    });
}

//Can be used for html modules
//Once the user clicks on an anchor flyout will close
function hideCustomFlyout(internalAnchor, categoryBody, filterBy){

    $(internalAnchor).click(function(){
        $(categoryBody).hide();
        $(filterBy).addClass("more");
        $(filterBy).removeClass("less");
    });
    
}

function consolidatedFilterByAddition(){
	var pageNameInput = $("body").attr("id");
    switch (pageNameInput) {
        case 'photo':
            addFilterBy("#photo_thumbnail-294569.photo_thumbnail .head .title");
			break;
        case 'video':
            addFilterBy("#video_thumbnail-294591.video_thumbnail .head .title");
			break;
        case 'tour_dates':
            addFilterBy("#html-3827342.html .head");
			break;
        case 'twitter':
            addFilterBy("#html-4230161.html .head");
			break;
        case 'blog':
            addFilterBy("#blog_listing-294510.blog_listing .head");
			break;
        case 'blog_detail':
            addFilterBy("#html-3938409.html .head");
			break;
    };
}




/*For modifying module title in blog,photo,video and artist detail pages*/
function changModuleTitle(){
	var aUrlName = getStripppedURLLastPart();
    $('.common-artist .photo_thumbnail .foot .nav_meta li.more a').attr("href", '/photos/category/' + aUrlName);
    $('.common-artist .video_thumbnail .foot .nav_meta ul li.more a').attr("href", '/videos/category/' + aUrlName);
    $('.common-artist .html .body .description a.allreleases').attr("href", '/discography/category/' + aUrlName);
    
	$("#tags-294581.tags li.tag a").each(function(){
		var commaRemoved = $(this).text().replace(",","");
		$(this).text(commaRemoved);
	});
	
	$("#tags-294582.tags li.tag a").each(function(){
		var commaRemoved = $(this).text().replace(",","");
		$(this).text(commaRemoved);
	});
	
    var moduleTitle;
    if ($(".blog_listing  ul.articles").length > 0) {
        moduleTitle = $(".blog_listing  ul.articles li.article:first .category ul li a").text();
    }
    else {
		if(urlBandArray.hasOwnProperty(aUrlName)){
			moduleTitle = urlBandArray[aUrlName]
		}else{
			moduleTitle = aUrlName;
		}
        
    }
	moduleTitle = "News - " + moduleTitle;
	 $('#blog_listing-294510.blog_listing .head .title h3').html(moduleTitle);
   
    if (aUrlName == "all" || aUrlName == "news" || (window.location.href.indexOf("news/p/") != -1) || (window.location.href.indexOf("news/category/all") != -1)) {
        $('#blog_listing-294510.blog_listing .head .title h3').html("News");
    }
    
    if ($('body').attr("id") == "video") {
        var changeSelector = $('#categories-294517.categories .module .content .body ul#category-list li.category.selected a').html();
        if (aUrlName == "pro") {
            changeSelector = "All Videos";
        }
        else 
            if (aUrlName == "video") {
                changeSelector = "Videos";
            }
            else {
                changeSelector = changeSelector.replace(/\(.*?\)\s*/g, "");
                changeSelector = "Videos - " + changeSelector;
            }
        changeSelector = changeSelector.replace(/\(.*?\)\s*/g, "");
        
        $('#video_thumbnail-294591.video_thumbnail .head .title h3').html(changeSelector);
    }
    
    if ($('body').attr("id") == "photo") {
        var changeSelector = $('#categories-294516.categories .module .content .body ul#category-list li.category.selected a').html();
        if (aUrlName == "pro") {
            changeSelector = "All Photos";
        }
        else 
            if (aUrlName == "photo") {
                changeSelector = "Photos";
            }
            else {
                changeSelector = changeSelector.replace(/\(.*?\)\s*/g, "");
                changeSelector = "Photos - " + changeSelector;
            }
        
        $('#photo_thumbnail-294569.photo_thumbnail .head .title h3').html(changeSelector);
    }
}


function customObfuscateCode(){
    /*START- code which obfuscates email addresses #2420*/
    var m_ = "mailto:";
    var a_ = "@";
    var d_ = ".";
    var i = 0;
    var j = 0;
    var q_ = "?";
    var e_ = "=";
    
    $('span.ciReplace').each(function(){
        if (cId[i].format == "") {
            $(this).html('<a href="' + m_ + cId[i].name + a_ + cId[i].domain + d_ + cId[i].tld + '">' + cId[i].name + a_ + cId[i].domain + d_ + cId[i].tld + '</a>');
        }
        else {
            if (cId[i].param == "") {
                $(this).html('<a href="' + m_ + cId[i].name + a_ + cId[i].domain + d_ + cId[i].tld + '">' + cId[i].format + '</a>');
            }
            else {
                $(this).html('<a href="' + m_ + cId[i].name + a_ + cId[i].domain + d_ + cId[i].tld + q_ + 'subject' + e_ + cId[i].param + '">' + cId[i].format + '</a>');
            }
        }
        i++;
    });
    
    
    $('span.footReplace').each(function(){
        if (fId[j].format == "") {
            $(this).html('<a href="' + m_ + fId[j].name + a_ + fId[j].domain + d_ + fId[j].tld + '">' + fId[j].name + a_ + fId[j].domain + d_ + fId[j].tld + '</a>');
        }
        else {
            if (fId[j].param == "") {
                $(this).html('<a href="' + m_ + fId[j].name + a_ + fId[j].domain + d_ + fId[j].tld + '">' + fId[j].format + '</a>');
            }
            else {
                $(this).html('<a href="' + m_ + fId[j].name + a_ + fId[j].domain + d_ + fId[j].tld + q_ + 'subject' + e_ + fId[j].param + '">' + fId[j].format + '</a>');
            }
        }
    });
    
    /*End - code which obfuscates email addresses #2420*/
}
	

$(document).ready(function(){
    
    if (location.href.indexOf("/discography/") != -1) {
        if (($(".song_playlist .module .content .body .playlist").find('.list')).length == 0) {
            $(".song_playlist").css("display", "none");
        }
    }
    /* Suppresses display of empty footers on IE */
    $('.module .foot:empty').addClass('empty');
	
	$("html").addClass($.os.name);
	$("body").addClass($.browser.className);
    $("body").addClass($.browser.name);
	
	
    /* START Add "Launch Player" links to footer nav of all audio playlist modules */
    var launchLink = $('<li class="launchPlayer"><a href="/music-player/" class="launchPlayerLink">Launch Player</a></li>');
    $(".song_playlist .module .content .nav_meta ul").prepend(launchLink);
    /* END Add "Launch Player" links to footer nav of all audio playlist modules */
    
	//inserts the merch module into left wrapper
	$('#html-2050857.html .module .content .body .description .chatContainer #leftWrap').append($('#html-327531.html .module .content .body .description #merchContainer'));
		
    /* add popup onClick handler for audio player links */
    $("a.launchPlayerLink").click(function(){
        window.open("/music-player/", "Window2", "width=368,height=270,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no");
        return false;
    });
    
    /* Make store top nav link open in a new window */
    $('.nav_main ul li.custom a[href*=amazon.com]').attr("rel", "external");
    
	/*START - Fix for truncating author name in the discussions page #698 */
			$('.discussion_listing .topics li .author a').each(function(){
				var trunc = (this).innerHTML;
				if (trunc.length > discussionAuthorLen) {
					trunc = trunc.substring(0, discussionAuthorLen);
					trunc += '<span>' + '...</span>';
					(this).innerHTML = trunc;
				}	
			});		
	/*END - Fix for truncating author name in the discussions page #698 */
	
    $("a[href^=http://starterfanclub1.wmg.ciscoeos.com]").parent(".custom").addClass("Fanclub");
	
    /* START: Custom drop-downs for top nav */
	var $customNavs = $('.nav_main ul li.nav-custom a');
  
	  $customNavs.filter(function(){
	  return (/^Discography/i).test($(this).text())
	}).parent()
  	  .addClass('nav-custom')
	  .addClass('nav-discography');
	  
	  $customNavs.filter(function(){
	  return (/^Webstore/i).test($(this).text())
	}).attr("rel","external")
	  .parent()
  	  .addClass('nav-custom')
	  .addClass('nav-webstore');
	  
	  $customNavs.filter(function(){
	  return (/^Artists/i).test($(this).text())
	}).parent()
  	  .addClass('nav-custom')
	  .addClass('nav-artists');
	  
	  $customNavs.filter(function(){
	  return (/^StreetTeam/i).test($(this).text())
	}).parent()
  	  .addClass('nav-custom')
	  .addClass('nav-streetteam');
	  
	/* END: Custom drop-downs for top nav */
	
	$("body#bio #bioLinks").delegate ("a","click",function(){
		$($(this).attr("href")).scrollToViewPort();
		return false;
	})
	
	$("body#bio .bioBack").click (function(){
		$($(this).attr("href")).scrollToViewPort();
		return false;
	}); 
	
	var storeNavCell= $(".nav_main ul li.nav-store"); 
	
	$(".dropdown").hover(
			function() { $(".flyoutMenu", this).show(); },
			function() { $(".flyoutMenu", this).hide(); }
	);
	

    var photoNavCell = $(".nav_main ul li.photo");
    if (location.href.indexOf("/cellstream/") != -1) {
        photoNavCell.addClass("active");
    }
    
    if (location.href.indexOf("/discography/") != -1) {
        $("a[href^=/discography/]").parent(".nav-custom").addClass("active");
        
    }
    
    if (location.href.indexOf("/album/") != -1) {
        $("a[href^=/discography/]").parent(".nav-custom").addClass("active");
    }	
	
	var artistNavCell= $(".nav_main ul li.nav-artists"); 
	if (location.href.indexOf("/artist/") != -1) {
         artistNavCell.addClass("active");
    }
	
	if ($("body").hasClass('common-artist')){
		 artistNavCell.addClass("active");
	}
	
	/*For conditional display of modules in music page*/
	if (location.href.indexOf("/discography/category/") != -1) {
		$("#list_audio-3902013.list_audio").addClass("show");
		$("#list_audio-294552.list_audio").addClass("hide");
	}
	
	
	$('.common-artist .html .body .description .bio-readmore a').click(function() {
		
		if($(".common-artist .html .body .description .more-details").is(':visible')){
			$('.common-artist .html .body .description .more-details').hide("slow");
			$('.common-artist .html .body .description .bio-readmore a').addClass("more");
			$('.common-artist .html .body .description .bio-readmore a').removeClass("less");
		}
		
		else{
			$('.common-artist .html .body .description .more-details').show("slow");
			$('.common-artist .html .body .description .bio-readmore a').addClass("less");
			$('.common-artist .html .body .description .bio-readmore a').removeClass("more");
		}
  		
	});
	
	 $(".html .more-artist a").addClass("more");
        
	
	$(".html .more-artist a").mouseover(function(){
		$(".artist-list").show();
		$(this).addClass("less");
		$(this).removeClass("more");
	});
	$('.artist-list').mouseover(function(){
		$(".artist-list").show();
	});
	$('.artist-list').mouseout(function(){
		$(".artist-list").hide();
		$(this).addClass("more");
		$(this).removeClass("less");
	
	});
	
	changModuleTitle();
	
	/**************Filter by Flyout code - Start************/
	consolidatedFilterByAddition();
		
		
	/*Photos,videos,music,tour,twitter,blog landing,(blog detail - ?)*/		
	associateHandlersFilterBy("#photo_thumbnail-294569.photo_thumbnail .head .title a.filterBy","#categories-294516.categories .module .content .body","#categories-294516.categories .module .content");
	associateHandlersFilterBy("#video_thumbnail-294591.video_thumbnail .head .title a.filterBy","#categories-294517.categories .module .content .body","#categories-294517.categories .module .content");
	associateHandlersFilterBy("#html-3902014.html .module .content a.filterBy","#html-3902014.html .module .content .body ul.category-list","#html-3902014.html .module .content");
	associateHandlersFilterBy("#html-3827342.html .head a.filterBy","#html-3827342.html .module .content .body","#html-3827342.html .module .content");
	associateHandlersFilterBy("#html-4230161.html .head a.filterBy","#html-4230161.html .module .content .body","#html-4230161.html .module .content");//hav removed showmust code
	associateHandlersFilterBy("#blog_listing-294510.blog_listing .head a.filterBy","#tags-294581.tags .module .content .body","#tags-294581.tags .module .content");
    associateHandlersFilterBy("#html-3938409.html .head a.filterBy","#tags-294582.tags .module .content .body","#tags-294582.tags .module .content");
   
	/*Twitter and tour*/
	hideCustomFlyout("#html-3827342.html .module .content .body ul#category-list li a","#html-3827342.html .module .content .body","#html-3827342.html .head a.filterBy");
	hideCustomFlyout("#html-4230161.html .module .content .body ul.category-list li a","#html-4230161.html .module .content .body","#html-4230161.html .head a.filterBy");
	
	/*****************Filer by Flyout code - End*************/
		
    
    /* Code for repositioning in Blog Detail Page*/
    var filedCategory = '<li>' + $('#blog_entry-294508.blog_entry .article .meta .category ul li').html() + '</li>';
    $('#blog_entry-294508.blog_entry .article .meta .category ul').html(filedCategory);
    filedCategory = $('#blog_entry-294508.blog_entry .article .meta .category');
    $('#blog_entry-294508.blog_entry .article .meta .category').remove();
    $('#blog_entry-294508.blog_entry .article .author').after(filedCategory);
    
    
    /* ********** Merch module code ********* */
    $('#merchContainer').parent(".description").parent(".body").siblings(".head").addClass("clearfix");
    $('#merchContainer').parent(".description").parent(".body").siblings(".head").children("h3").css({
        'border': 'none',
        'font-size': '13px'
    });
    $('#merchContainer').parent(".description").parent(".body").siblings(".head").css({
        'position': 'relative',
        'z-index': '99'
    });
    $('#merchContainer').parent(".description").parent(".body").siblings(".foot").css({
        'z-index': '98',
        'overflow': 'visible'
    });
    $('#merchContainer').parent(".description").parent(".body").css({
        'position': 'relative',
        'clear': 'both',
        'z-index': '99'
    });
    
    var visitStorehead = $('#merchContainer').parent(".description").parent(".body").siblings(".head");
    $('#merchContainer .merchHead').appendTo(visitStorehead);
    
    var visitStoreFoot = $('#merchContainer').parent(".description").parent(".body").siblings(".foot");
    $('#merchContainer .merchFoot').appendTo(visitStoreFoot);
    
    $('#merchContainer').parent(".description").parent(".body").siblings(".foot.empty").addClass("emptyfix");
    
    /* START: Merch module drop-downs */
    $(".merchHead .visitStore").hover(function(){
        $(".visitStoreFlyout", this).show();
    }, function(){
        $(".visitStoreFlyout", this).hide();
    });
    $(".merchFoot .visitStore").hover(function(){
        $(".visitStoreFlyout", this).show();
    }, function(){
        $(".visitStoreFlyout", this).hide();
    });
    $(".firstitem .merchBuy").hover(function(){
        $(".merchBuyFlyout", this).show();
    }, function(){
        $(".merchBuyFlyout", this).hide();
    });
    $(".seconditem .merchBuy").hover(function(){
        $(".merchBuyFlyout", this).show();
    }, function(){
        $(".merchBuyFlyout", this).hide();
    });
    $(".thirditem .merchBuy").hover(function(){
        $(".merchBuyFlyout", this).show();
    }, function(){
        $(".merchBuyFlyout", this).hide();
    });
    /* END: Merch module drop-downs */
    
    if ($("#sign_up-294578 li.input input").attr('class') == "focused") {
        $descriptionDisplay = $("#sign_up-294578 li.input input.focused").parent().contents().filter(".message").children();
        if ($descriptionDisplay.css("display") == "inline" || $descriptionDisplay.css("display") == "none") {
            $descriptionDisplay.css("display", "block");
        }
    }
    
    $("#sign_up-294578 li.input input").click(function(){
        // In this check for the corresponding description div. 		
        $descriptionDisplay = $(this).next().filter(".message").children();
        if ($descriptionDisplay.css("display") == "inline") {
            $descriptionDisplay.css("display", "block");
        }
    });
    
    $("#sign_up-294578 li.select input").click(function(){
        // In this check for the corresponding description div. 
        $descriptionDisplay = $(this).parent().contents().filter(".message").children();
        if ($descriptionDisplay.css("display") == "inline") {
            $descriptionDisplay.css("display", "block");
        }
    });
    
    /* Make rel="external" links open in a new window */
    $("a[rel=external]").attr("target", "_new");
    
    /* Fixing the target for the digg link */
    $(".shareweb .digg a").attr("target", "_new");
    
    /* Append labels to elements in discussion module */
    $(".topics li.list .category li:first-child").prepend("Category: ");
    $(".topics li.list .activity").prepend("Replies: ");
    $(".topics li.list .date").prepend("Last Reply: ");
    
    /* Add "Close" text to close link in social media sharebox on photo and video detail pages */
    $(".sharebox .sb_head .sb_title a.shareclose").prepend("Close");
    
    var noOfImageDscDtl = $("#discussion_entry-294529 .topic .description img").length;
    for (i = 0; i < noOfImageDscDtl; i++) {
        var discussionImageElement = $("#discussion_entry-294529 .topic .description img:eq(" + i + ")");
        var imgHeight = discussionImageElement.height();
        var imgWidth = discussionImageElement.width();
        if (imgHeight > 200 && imgWidth > 200) {
            var calcheight = (imgHeight / imgWidth) * 200;
            discussionImageElement.css("height", calcheight);
            discussionImageElement.css("width", 200);
        }
    }
    
    var noOfImageDscDtl = $("#discussion_listing-340654  .topic .description img").length;
    for (i = 0; i < noOfImageDscDtl; i++) {
        var discussionImageElement = $("#discussion_listing-340654 .topic .description img:eq(" + i + ")");
        var imgHeight = discussionImageElement.height();
        var imgWidth = discussionImageElement.width();
        if (imgHeight > 200 && imgWidth > 200) {
            var calcheight = (imgHeight / imgWidth) * 200;
            discussionImageElement.css("height", calcheight);
            discussionImageElement.css("width", 200);
        }
        
    }
    
    passImageSelectors();//For resizing images in music landing
    // Functionality for add new blogs.
    $(".blog_listing .nav_meta .more a").bind("click", function(e){
    
        $.cookie("blog_body", blogTwitterBlurbText, {
            path: "/"
        });
    });
    if ($("body").attr("id") == "add_new_blog") {
        $.cookie("blog_body", blogTwitterBlurbText, {
            path: "/"
        });
    }
    
	// Showing full description in video detail page
	
	$('#video_detail .video_player .description a.less').parents('.description').css('display','block');
	$('#video_detail .video_player .description a.more').parents('.description').css('display','none');
	
	
    
    //Album detail stuff 
	
	var count = $("#album_info-383751.album_info .module .content .foot .nav_meta ul li.buy ul").children("li").length;
    if(count == 1){
    	var singleLItext = $("#album_info-383751.album_info .module .content .foot .nav_meta ul li.buy ul li a").text();
    	var singleLIhref = $("#album_info-383751.album_info .module .content .foot .nav_meta ul li.buy ul li a").attr("href");
    	var topAnchor = $("#album_info-383751.album_info .module .content .foot .nav_meta ul li.buy a");
    	$(topAnchor).text(singleLItext);
    	$(topAnchor).attr("href",singleLIhref);
    	$(topAnchor).attr("onclick",null);
    	var linkName = $.trim(singleLItext.toLowerCase());
    	if (linkName == "digital") {
   			$(topAnchor).addClass("labelDigital");
    	}else if (linkName == "cd") {
    		$(topAnchor).addClass("labelCd");
    	}else if (linkName == "buy now") {
    		$(topAnchor).addClass("labelBuyNow");
    	}else if (linkName == "preorder") {
    		$(topAnchor).addClass("labelPreOrder");
    	}
		$(topAnchor).attr("rel","external");
  		$("#album_info-383751.album_info .module .content .nav_meta .buy ul").remove();
    }

		
    //$buylinks = $('#album_info-383751 .foot .nav_meta ul');
    //$buylinks.insertBefore('#album_info-383751 .album .txt div.description');
   
    
    //Album detail -> Moving detaildescription below album art
    $("body#album_detail div.album #detailDescription").insertAfter($("body#album_detail .album_info div.album .txt"));
	
	//albumFlyout("#album_info-383751.album_info .module .content .body div.buy");//For album detail
	albumFlyout(".list_album ul.albums li.album .txt .buy ul");//For all album listing modules
	
	/* changing positons of div in album detail -Start */
    var ratingContent = $('#album_info-383751.album_info .module .content .body .txt .rating').html();
    $('#album_info-383751.album_info .module .content .body .txt .rating').remove();
    $('<div class="rating">' + ratingContent + '</div>').insertAfter($('#album_info-383751.album_info .module .content .body .txt .description'));
    
	/* Changing position of buy link after rating stars */
	var buyLink=$('#album_info-383751 .foot').html();
	$('#album_info-383751 .body .txt').append(buyLink);
	$("#album_info-383751.album_info .module .content .nav_meta .buy ul").hide();
	
	// Adding flyout for buy links
	count = $("#album_info-383751.album_info .module .content .nav_meta ul li.buy ul").children("li").length;
	if (count>1)
	{
		$("#album_info-383751.album_info .module .content .nav_meta .buy a").hover(function(){
			$("#album_info-383751.album_info .module .content .nav_meta .buy ul").css("display","block");
			$("#album_info-383751.album_info .module .content .nav_meta .buy").addClass("hover");
		},function(){
			$("#album_info-383751.album_info .module .content .nav_meta .buy ul").css("display","none");
			$("#album_info-383751.album_info .module .content .nav_meta .buy").removeClass("hover");
		});
	}
	
	
	// Repositioing description to foot
	var bodyId = $("body").attr("id");
	if(bodyId == "album_detail"){
	var descHTML = $("#album_info-383751.album_info .module .content .body div.album .description").html();
	descHTML = descHTML.replace(/\n/g, "");
	var patt1=/&lt;div id=["']detailDescription["']&gt;(.*)&lt;\/div&gt;/gi;
	if(descHTML.match(patt1)){
		var descContent = descHTML.replace(patt1, "");
		var patt2=/^.*&lt;div id=["']detailDescription["']&gt;(.*)&lt;\/div&gt;.*$/gi;
		var detailDescription = descHTML.replace(patt2, "$1");
		detailDescription = detailDescription.replace(/<br\/*>/gi, "");
		$("#album_info-383751.album_info .module .content .body div.album .description").html(descContent);
		$("#album_info-383751.album_info .module .content .foot").html(detailDescription);
	}
	}
    /* changing positons of div in album detail -End */
	
	// For hover effect when flyout comes in album detail page
	
	/* for album detail buynow flyouts - Ends */
	
 
    
    //Modifying the legal text in the log in and sign up pages.
    $("body#sign_up #cmsgData\\[agreeToTerms\\]").next().html(privacyPolicyText + "").show();
    $("body#join #cmsgData\\[agreeToTerms\\]").next().html(privacyPolicyText + "").show();
	
	//Normal(Not different) obfuscation code now abstracted into this function
	customObfuscateCode();
	
	
	var prvteCont="<i class='prText'>&nbsp;&nbsp;</i>";

	$('#join-294550.join .annotation span.private').each(function(){
		var cont = (this).innerHTML;		
		(this).innerHTML= prvteCont+cont;
	})
	
	$('li.input.private').each(function(){
		var liCont = (this).innerHTML;		
		(this).innerHTML= liCont+prvteCont;
	});
	
	var footEmpty_msie7=$(".msie7 .grid4point25 .rss_in .foot");
	var footEmpty_msie8=$(".msie8 .grid4point25 .rss_in .foot");
	footEmpty_msie7.removeClass("empty");
	footEmpty_msie8.removeClass("empty");
	
	$(".grid_5 .comments .module .foot").addClass('empty');
	
	
	/*For fixing artist detail IE7 photo thumbnail hover issue*/
	$("body.msie.common-artist .photos li.compact .img a").each(function(){
		var photoImageBg = $(this).parent(".img").css("background");
		$(this).css("background",photoImageBg);
	});
	
	
	if ($('body').attr("id") != "audio") {
			var noOfAlbums  = $('.list_album .module .content .body ul.albums li.album').length;
			 for (var j = 0; j <= noOfAlbums; j++) {
			 	artistFlag=0;
			 	var description = $('.list_album .module .content .body ul.albums li.album:nth-child(' + j + ') .description').html();
				description=$.trim(description);
				if(description != null) {
					description = description.replace(/\s+/g, '').toLowerCase();					
					for(var i=0; i < artistArray.length; i++){
						var bandName = artistArray[i];
						if(description.indexOf(bandName) == 0){
							$('.list_album .module .content .body ul.albums li.album:nth-child(' + j + ') .description').html(getBandName(bandName));
							
							artistFlag=1;
							break;
						} 	
					}
					if(artistFlag==0){
						$('.list_album .module .content .body ul.albums li.album:nth-child(' + j + ') .description').html(getBandName("variousartists"));
					}
					writeToConsole(description);	
				}
			 }	
	}
	
});

function eoscInit(){	
	//Modifying the legal text in the log in and sign up pages.
	$("body#sign_up #cmsgData\\[agreeToTerms\\]").next().html(privacyPolicyText + "").show();
	$("body#join #cmsgData\\[agreeToTerms\\]").next().html(privacyPolicyText + "").show(); 		
	
	/* SP Start */
	$(".edit_account #accountData .buttons.input .button.submit input.submit").removeAttr("onclick");
	$(".edit_account #accountQuestoins .buttons.input .button.submit input.submit").removeAttr("onclick");
	
	$('.edit_account #accountData .buttons.input .button.submit input.submit').die();
	$('.edit_account #accountQuestoins .buttons.input .button.submit input.submit').die();
	
	$.wmgfeature.spFeatureEditAccountAccData(".edit_account #accountData .buttons.input .button.submit input.submit", "edit_account-294534", true, arrElementIDs, "http://www.fueledbyramen.wmg.ciscoeos.com", "3375387");
	$.wmgfeature.spFeatureEditAccountAccQuestions(".edit_account #accountQuestoins .buttons.input .button.submit input.submit", "edit_account-294534", true, arrElementIDs, "http://www.fueledbyramen.wmg.ciscoeos.com", "3375387");
	/* SP End */
	
	passImageSelectors();//For resizing images in music landing
	
	albumFlyout(".list_album ul.albums li.album .txt .buy ul");//For all album listing modules
	changModuleTitle();
	consolidatedFilterByAddition();
	

	
}

	
	
	/* Functions for New Merch.*/

	/*
	 * This function is used to tag store links with different omniture tags, 
	 * to track them. This will enable us to track which links the user clicked. 
	 * 
	 * */
	function getMerchOmnitureArray(omnitureString){
		var omnitureArrayLinks = new Array();
		var omnitureStrRegex = /intcmp=(.*)(&.*|\/)$/;
		omnitureString = $.trim(omnitureString);
		if (omnitureString.charAt(omnitureString.length-1) != "/" ){omnitureString += "/";}
		writeToConsole ("This is the omnitureString " + omnitureString);
		regExCapture = omnitureString.match(omnitureStrRegex);
		//A JSON object could be used and a fuction to populate that could be used. 
		if (regExCapture != null && regExCapture != ""){
			var regularExpCapture = regExCapture[1]; 
			omnitureString = omnitureString.replace(/\/$/,'');
			omnitureArrayLinks["page-title"] = omnitureString.replace(regularExpCapture,regularExpCapture+'-page-title');
			omnitureArrayLinks["page-button"] = omnitureString.replace(regularExpCapture,regularExpCapture+'-page-button');
			omnitureArrayLinks["page-thumb"] = omnitureString.replace(regularExpCapture,regularExpCapture+'-page-thumb');
			omnitureArrayLinks["hovercard-title"] = omnitureString.replace(regularExpCapture,regularExpCapture+'-hovercard-title');
			omnitureArrayLinks["hovercard-thumb"] = omnitureString.replace(regularExpCapture,regularExpCapture+'-hovercard-thumb');
			omnitureArrayLinks["hovercard-button"] = omnitureString.replace(regularExpCapture,regularExpCapture+'-hovercard-button');
		}else{
			omnitureArrayLinks["page-title"] = omnitureString.replace(/\/$/,'?intcmp=page-title');
			omnitureArrayLinks["page-button"] = omnitureString.replace(/\/$/,'?intcmp=page-button');
			omnitureArrayLinks["page-thumb"] = omnitureString.replace(/\/$/,'?intcmp=page-thumb');
			omnitureArrayLinks["hovercard-title"] = omnitureString.replace(/\/$/,'?intcmp=hovercard-title');
			omnitureArrayLinks["hovercard-thumb"] = omnitureString.replace(/\/$/,'?intcmp=hovercard-thumb');
			omnitureArrayLinks["hovercard-button"] = omnitureString.replace(/\/$/,'?intcmp=hovercard-button');
		}				 
		return omnitureArrayLinks;
	}
	
	/*
	 * Function to add the hovercard to the template,
	 * if set in the config xml.
	 * 
	 * */
	function prepareMerchTemplate (merchHoverCardPresent){
		if (merchHoverCardPresent){
			merchModuleTemplate = merchModuleTemplate.replace("<!-- HOVERCARD -->",merchHCTemplate);
		}else{
			merchModuleTemplate = merchModuleTemplate.replace("<!-- HOVERCARD -->","");
		}
		
	}
	
	function getMerchHeader ($merchCountries,merchViewAllLink,positionClass){
		var merchHeaderString = "";
		var merchCountryString = "";
		var countryParams;
		var merchParams = {
							merchViewAllLink : merchViewAllLink,
							positionClass : positionClass};
			$merchCountries.each (function(){

				countryParams = {
					countryName : $(this).children(".countryName").html(),
					countryLink : $(this).children(".countryLink").html(),
					countryText : $(this).children(".countryText").html()
				};
				merchCountryString += merchCountryTemplate.supplant(countryParams);
				
			})

			merchViewAllLink ="javscript:void(0)"; 	
		
		merchHeaderString = merchHeaderTemplate.supplant(merchParams);
		merchHeaderString = merchHeaderString.replace("<!-- MERCH COUNTRIES -->",merchCountryString);
		return merchHeaderString;
	}
	
	/*
	 * This function generates the structure of the merch module. 
	 * The structure is created using templates defined earlier in the page.  
	 */ 
	function generateMerchStructure (){
		var $merchData = $("#merchData");
		var $merchItem = $merchData.children(".merchItems")
		var merchViewAllLink = $merchData.children(".merchViewAll").html();
		var merchHoverCardPresent = $merchData.children(".merchHoverCardPresent").html().trim();
		merchHoverCardPresent = !!merchHoverCardPresent;
		prepareMerchTemplate (merchHoverCardPresent);
		
		/* Code for the Merch Head */
		var merchHead = '<div class="merchHead"><div class="visitStore"><a href="'+ merchViewAllLink +'" class="visitStoreLink"  >ALL</a></div></div>'
		merchHead = getMerchHeader($("#merchInternational .country"),merchViewAllLink,"merchHead");
		var visitStorehead = $('#merchContainer').parent(".description").parent(".body").siblings(".head");
	        $(merchHead).appendTo(visitStorehead);
		$(visitStorehead).find("a").makeLinksExternal();
		/* End of Code for Merch Module */
		
		var merchBody='<ul class="merchItems">';
		$.each($merchItem.children(".merchItem"), function (i){
			var merchBuyNow = $(this).children(".merchBuyNow").html(); 			
			var omnitureLinks = getMerchOmnitureArray(merchBuyNow);
			var merchSizes = $(this).children(".merchSizes").html();
			if (merchSizes !="" && merchSizes !=null){merchSizes = '<h3>Sizes</h3><div>'+merchSizes+'</div>';}
			var merchDesc = $(this).children(".merchDesc").html();
			var merchArtistName = $(this).children(".merchArtistName").html();
			if (merchDesc != "" && merchDesc != null){merchDesc = '<h3>Description</h3><div>'+ merchDesc +'</div>';}
			var merchParsedData = {
				             index:(i+1),
							 merchImage:$(this).children(".merchImage").html(),
							 merchTitle:$(this).children(".merchTitle").html(),
							 merchArtistName:merchArtistName,
							 merchDesc:merchDesc,
							 merchSizes:merchSizes,
							 merchPrice:$(this).children(".merchPrice").html(),
							 omnitureLinksPTitle:omnitureLinks["page-title"],
							 omnitureLinksPThumb:omnitureLinks["page-thumb"],
							 omnitureLinksPButton:omnitureLinks["page-button"],
							 omnitureLinksHTitle:omnitureLinks["hovercard-title"],
							 omnitureLinksHThumb:omnitureLinks["hovercard-thumb"],
							 omnitureLinksHButton:omnitureLinks["hovercard-button"]
							 }
			merchBody = merchBody + merchModuleTemplate.supplant(merchParsedData);
		});
		merchBody += '</ul><div class="clear"></div>';
	
		var merchFoot = '<div class="clear"></div><div class="merchFoot"><div class="visitStore"><a href="'+ merchViewAllLink +'" class="visitStoreLink" >View ALL</a></div></div>';
		merchFoot = '<div class="clear"></div>';
		merchFoot += getMerchHeader($("#merchInternational .country"),merchViewAllLink,"merchFoot");
		var visitStoreFoot = $('#merchContainer').parent(".description").parent(".body").siblings(".foot");
	        $(merchFoot).appendTo(visitStoreFoot);
		$(visitStoreFoot).find("a").makeLinksExternal();

		return merchBody;
	}
	
	
	
	/*These functions are used by the merch HC so that casual hovers less than 300 seconds
	 * are omitted. 
	 */
	function bringMerchHCOn(merchImg){
		merchImg.showTimer = window.setTimeout(function(){
			$(merchImg).siblings(".merchHC").fadeIn(300);
		},300);
	}
	function killMerchHC(merchImg){
		if (merchImg.showTimer){
			window.clearTimeout(merchImg.showTimer);
		}
	}
	
	/* Registereing the hover events */
	function registerMerchHoverEvents(){
		$(".merchImg").hover(function(){
			bringMerchHCOn(this);
		},function(){
			killMerchHC(this);
		});
		$(".merchHC").hover(function(){
		},function(){
			$(this).fadeOut(300);
		});
		
		$(".visitStore").hover (
			function() { $(".visitStoreFlyout", this).show(); },
			function() { $(".visitStoreFlyout", this).hide(); }
		);
	}
	
	/* The piece of code which generates the merch, adds the dom and registers the events. */
	
	$(document).ready(function(){
		if ($("#merchContainer").length > 0){
			$("#merchContainer").html(generateMerchStructure());
			$("#merchData").empty();
			$("#merchContainer a").makeLinksExternal();
			registerMerchHoverEvents();
			
				$(".html .body ul.merchItems li .merchDescription div").each(function(){
			var merchText = $(this).text().trim();
			if(merchText.length > merchDescLength){
				var newMerchText = merchText.substring(0,merchDescLength);
				merchText = newMerchText + "...";
				$(this).text(merchText);
			}
		});

		}
		$(".msie8 .merchFoot").parent().removeClass("empty");
	
	});
    /* End of Functions for New Merch */
	
	
	$(document).ready(function(){
		if ($('body').attr("id") == "blog") {
			var noOfBlogs  = $('#blog_listing-294510.blog_listing .module .content .body ul.articles li.article').length;
			 for (var j = 1; j <= noOfBlogs; j++) {
			 	var categoryOption = $('#blog_listing-294510.blog_listing .module .content .body ul.articles li .category').html();
				$('#blog_listing-294510.blog_listing .module .content .body ul.articles li.article:nth-child(' + j + ') .category').remove().insertBefore('#blog_listing-294510.blog_listing .module .content .body ul.articles li.article:nth-child(' + j + ') .date')
			 }		
		}
	});
	
	/*Start of code for converting music player in album detail page*/
	
	$("body#album_detail .playlist .list ul").delegate("li","click",function(){
		$("#currentplay").text($(this).children(".title").text());
	});

 	$(document).ready(function(){
		 var currentPlayTxt = $('body#album_detail .song_playlist .module .content .body .playlist .info .txt .title h3').html();
		 var audioToolbarHTML = 'This is the day that the lord has made. ';
		 var audioToolbarHTML='<div id="audioToolbarControls"><div id="audioPlayerControls"><div class="clear"></div></div><div id="audioPlayerMore"><a id="audioPlayerMoreButton" >more</a></div><div class="clear"></div></div>';
		 
		 $("body#album_detail .playlist .info").before(audioToolbarHTML);
		
		 var listJoinLink='<div class="joinLinkCont"><a class="thickbox">Join now to listen to the full album &raquo </a></div>';
		 var audioinfo=$('body#album_detail .song_playlist .module .content .body .playlist .info').html();
		 var audiolist=$('body#album_detail  .song_playlist .module .content .body .playlist');
		 $('body#album_detail .song_playlist .module .content .body .playlist .info').remove();
		 audiolist.append("<div class = 'info'>" + audioinfo +"</div>");
		 $("body#album_detail .song_playlist").css("display","block");
		 
		 $("body#album_detail #audioPlayerMoreButton").click(function(){
			 $("body#album_detail .playlist .list").slideToggle('fast');
			 $("body#album_detail  .playlist .info").css("display","block");
		 });	
 
		 $('body#album_detail .playlist .info .txt .title h3').each(function(){
				var trunc = (this).innerHTML;
				if (trunc.length > customPlayerCharLength) {
					trunc = trunc.substring(0, customPlayerCharLength);
					trunc += '<span>' + '...</span>';
					(this).innerHTML = trunc;
				}	
		});
		
		
		
		
		
		
		
		
 
 });

 function changeAudioPlayerInfo(type,id,title,offset){
 writeToConsole(type,id,title,offset);
 }; 
 
  $.urlParam = function(name){
        var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
        if (results == null) {
            return 0;
        }
        else {
            return results[1];
        }
    }	
	
	function getBandName(bandName) {
		bandName = bandName.toLowerCase();
		switch(bandName) {
			case 'variousartists':
				return 'Various Artists';
			case 'theacademyis':
				return 'The Academy Is...';
			case 'thecab':
				return 'The Cab';
			case 'cobrastarship':
				return 'Cobra Starship';
			case 'forgivedurden':
				return 'Forgive Durden';
			case 'fun':
				return 'Fun.';
			case 'gymclassheroes':
				return 'Gym Class Heroes';
			case 'panicatthedisco':
				return 'Panic! At The Disco';
			case 'panic!atthedisco':
				return 'Panic! At The Disco';
			case 'paramore':
				return 'Paramore';
			case 'theswellers':
				return 'The Swellers';
			case 'thisprovidence':
				return 'This Providence';
			case 'traviemccoy':
				return 'Travie McCoy';
			case 'versaemerge':
				return 'VersaEmerge';
			case 'arockettothemoon':
				return 'A Rocket To The Moon';
			case 'thefridaynightboys':
				return 'The Friday Night Boys';
			case 'sublime':
				return 'Sublime With Rome';
			default:
				return '';
		}		
	}

