NewMind.registerNameSpace("NewMind.Site");NewMind.Site.ImageCaptions=function(a){$(a).find("img").each(function(f){var e=$(this);var g="";var d;var h=false;var b=0;d=e.attr("class").split(" ");for(b in d){if(d[b]==="caption"){h=true}}if(h&&e.attr("tagName")==="IMG"&&(e.attr("alt")!==""||e.attr("title")!=="")){var c=e.css("width");if(e.css("width")==="auto"){c=e.attr("width")+"px"}else{c=e.css("width")}$(e).wrap('<span class="imgCaptionWrapper '+e.attr("class")+'"></span>');$(e).parent().css({position:"relative",display:"block",width:c});if(e.attr("title")!==""){g=e.attr("title")}else{if(e.attr("alt")!==""){g=e.attr("alt")}}$('<span class="imageCaption"><p>'+g+"</p></span>").insertAfter(e);e.css({display:"block"}).next().css({width:c,display:"block"})}})};NewMind.Site.FeatItems=function(){var a=function(c){$(c).each(function(){var f=$(this);var g=f.find("div.featuredPageOnHomeContentWrapper h2");var d=g.text();var e=f.children("a:first").attr("href");g.remove();f.find("div.featuredPageOnHomeContentWrapper").prepend('<h2><a class="titlelink" href="'+e+'">'+d+"</a></h2>")})};var b=function(){var c=$("#colLeft div.highlights");if(c.find("ul li").text()==="None found"){c.hide()}};return{cloneAnchor:function(c){a(c)},removeEmptyHighlights:function(){b()}}}();NewMind.Site.MoveExtraImages=function(a){$("#productExtraImages").css({display:"none"}).remove().clone(true).css({display:"block"}).appendTo(a)};$(document).ready(function(){NewMind.Site.FeatItems.cloneAnchor("div.featuredPageOnHome > ul > li");NewMind.Site.FeatItems.removeEmptyHighlights();NewMind.Site.MoveExtraImages("#colCenterProdContainer .column1")});$(window).load(function(){NewMind.Site.ImageCaptions("#colCenterIntro")});