$(document).ready(function(){
	$("#WNMemberCenter-cols2345top strong").html("<span style='font:normal 11px Helvetica,arial,verdana;'>MEMBER CENTER&nbsp;&#124;</span>");
	//Breaking News
	$("#WNDS-30 .wnDVSummary:first").prepend("<span class='header'>Breaking News</span>") ;
	/* OPTIMUS V1 CODE */
	$("#DisplaySizeId-30 .headline:first").prepend("<span class='prefix'>Breaking News</span>") ;
	
	//Read More Ribbon Link
	$(".wnMoreLink").text("More");
	/* OPTIMUS UPDATE */
	$(".wnBlock .header .more .text").text("More");
	
	//Read More Summary Link
	$(".wnSummaryLink").text("Read More");
	$(".wnRole-CLIP").siblings("p").find(".wnSummaryLink").text("Watch Video");

	$(".wnDVHeadlineBox .wnDVSummary").each(function(){
		$(this).find(".wnImage").insertBefore($(this).find("h4"));
	});
	
	$(".wnDVNestedCategory .wnDVSummary").each(function(){
		$(this).find(".wnImage").insertBefore($(this).find("h4"));
	});	
	
	$("#WNHorizontals .wnDVSummary").each(function(){
		$(this).find(".wnImage").insertBefore($(this).find("h4"));
	});
	/* OPTIMUS UPDATE */
	if($wn("#DisplaySizeId-4").length){
		$wn("#DisplaySizeId-4").find(".summaryImage").each(function(){
			$wn(this).insertBefore($wn(this).parents(".feature").find(".headline:first"));
		})
	}
	if ($wn("#DisplaySizeId-7").length) {
		$wn("#DisplaySizeId-7").find(".summaryImage").each(function () {
			$wn(this).insertBefore($wn(this).parents(".feature").find(".headline:first"));
		})
	}
	
	//Default Weather Branding
	$("#WNDS70 .wnDVWxAbbreviated .wnWxCurrentForecast .wnWxHigh").prepend("<span>Hi&nbsp;</span>");
	$("#WNDS70 .wnDVWxAbbreviated .wnWxCurrentForecast .wnWxHigh span:last").html("&nbsp;/&nbsp;");
	$("#WNDS70 .wnDVWxAbbreviated .wnWxCurrentForecast .wnWxLow").prepend("<span>Lo&nbsp;</span>");

	//With Col.3 Remove Float for Col.2 Headline Boxes
	if($("#WNCol3").length){
		$("#WNDS80 .wnDSItemsRow").css("margin-bottom","0px");
		$("#WNDS82 .wnDSItemsRow").css("margin-bottom","0px");
		$("#WNCol2 .wnDVHeadlineBox").css("width", "100%");
		$("#WNCol2 .wnDVHeadlineBox").removeClass("wnOdd").removeClass("wnOddLast").removeClass("wnEven").removeClass("wnEvenLast");
	}
	
	//Lifestyle
	$("#WNAd44 table tr:first td:first").wrapInner("<div class='ribbonText'></div>");
});
