// Library release: v1.19.0.4, 16 February 2010
// Documentation: svn\Wiki\JavaScript\
Brand={version:"1.9.3",name:"DorothyPerkins",directory:3,activeSalesCatalogId:20552,isUSStore:false,storeCurrencySymbol:"&#163;",removeCategoryText:false,collapseCategories:true,basicSrollerConfig:{},cycleContentConfig:{},contentTabsConfig:{},newScrollerConfig:{dp_scroller:{orientation:"horizontal",moveLeft:364,moveDown:0,speed:400,easing:"jswing",loop:false},saints_of_soul_scroller:{orientation:"horizontal",moveLeft:690,moveDown:0,speed:400,easing:"jswing",loop:false},styleadvice_scroller:{orientation:"horizontal",moveLeft:364,moveDown:0,speed:400,easing:"jswing",loop:false}},cycleContentConfig:{slideshow:{fx:"fade",timeout:3000,delay:-1000},slideshow2:{fx:"fade",timeout:3000,delay:-2000},header_cycle:{fx:"scrollDown",timeout:3000},hp_tile01_cycle:{fx:"fade",timeout:3000,delay:-1000},hp_tile02_cycle:{fx:"fade",timeout:3000,delay:-1000},hp_tile03_cycle:{fx:"fade",timeout:3000,delay:-1000},hp_tile04_cycle:{fx:"fade",timeout:3000,delay:-1000}},enableProdListerFormatting:true,prodListSetHeight:false,prodListHeightPadding:0,switchProductInsertType:"after",switchProductInsertTarget:"#largerimage2",internationalTrackingUrl:"www.dorothyperkins.com/international/index.html",addThisAccountName:"Dorothy.Perkins",addThisLocation:"",addThisLink:"<li><a href=\"http://www.addthis.com/bookmark.php\" id=\"add_this_link\" title=\"Bookmark this page\"><img src=\"http://s7.addthis.com/button1-bm.gif\" alt=\"Bookmark this page\" /></a></li>",ProductConfig:{cSizeAmmount:'13',cMdlOpacity:'90',cMdlSizeGuide:true,cSizeGuideHide:true,mOutOfStock:'<h2>Sorry, Item Out of Stock</h2>',mBasket:'<span class="headercart-items"></span>&nbsp;item(s) in your bag: &pound;<span class="headercart-total"></span>',mAJAXError:'We&lsquo;re sorry there was a problem, please try again.<br /><br /> If the problem continues please contact us.',mAJAXH2Error:'Error',mAJAXH2Success:'Item added to shopping bag',mAddingToBag:'Adding...',mErrorSize:'You need to select a size before you can add this item to your bag.',mErrorWishlist:'You need to select a size before you can add this item to your wishlist.'},enableMercadoFilters:false,mercadoFiltersH2:"Choose an option to refine your search further",googleAccounts:["UA-806703-8","UA-720649-1"],ajaxConfig:{cmsajax:{root:"/cms/pages/ajax/"}}};Template.initBrandMethods=function(){Template.addProductSearchLink();};Template.addProductSearchLink=function(){if(Template.id!="productdisplay")return;$.getScript("/javascript/template/dorothyperkins_more_colours.js",function(){if(typeof Brand.knitwearProducts!="object")return;$.each(Brand.knitwearProducts,function(){if(this[0]==$("span.catcode").text()){var mercadoUrl="CatalogSearchResultCmd?langId=-1&storeId=12552&catalogId=20552&beginIndex=0&searchTermScope=3&searchTermOperator=LIKE&searchType=ALL&sort_field=Relevance";$("#product_display_details").append("<p id=\"alternative_colour_search\"><a href=\""+mercadoUrl+"&searchTerm="+this[1]+"\" title=\"Click here to view more colours\">Click here to view more colours</a></p>");}})})};Behaviour.initBrandMethods=function(){Behaviour.CapitaliseField();Behaviour.initTransparency();};Behaviour.initTransparency=function(){$(".js_transparency").css({opacity:0.9});};Behaviour.CapitaliseField=function(){if($("input.capitalise").length){$("input.capitalise").blur(function(){if($(this).val()!=""&&$(this).val().length>1){var rtn=$(this).val();var re=/\s/;var words=rtn.split(re);re=/(\S)(\S+)/;re.exec(words[0]);words[0]=RegExp.$1.toUpperCase()+RegExp.$2.toLowerCase();rtn=words.join(' ');$(this).val(rtn);}});}};