/*--------------------------------------------------
BASE-1.0.2 contains BASE
Generated: 26/2/2010
--------------------------------------------------*/
var UKISA=UKISA||{};UKISA.site=UKISA.site||{};UKISA.site.Container={container:null,create:function(g,f,c){var e,a,b,d;b={id:"ukisa-modal"};for(var d in c){if(typeof b[d]!=="undefined"){b[d]=c[d]}}e=function(){var j,i,m,l,n,h,k;i=document.createElement("div");m=i.cloneNode(false);l=i.cloneNode(false);n=i.cloneNode(false);i.id=b.id;i.className="yui-panel-container yui-dialog shadow";m.className="hd";l.className="bd";n.className="ft";i.appendChild(m);i.appendChild(l);i.appendChild(n);document.body.appendChild(i);h=this;k=new YAHOO.widget.Panel(b.id,{fixedcenter:true,modal:true,visible:false,close:true,underlay:"shadow",constraintoviewport:true,zIndex:500,autofillheight:"body"});if(g&&g.length){k.setHeader(g)}k.setBody(f);k.hideEvent.subscribe(function(){UKISA.site.Container.hideMask()});k.render();return k};if(typeof YAHOO.widget.Panel==="undefined"&&typeof YAHOO.util.Get!=="undefined"){a=YAHOO.util.Get.script("/web/yui/container/container-min.js",{onSuccess:function(){return e()},onFailure:function(){alert("Sorry, there was a problem loading the message box.")}})}else{return e()}},destroy:function(){if(this.container){this.container.hideMask();this.container.destroy();this.container=null}}};UKISA.site.Modal=function(c,b,a){this.container=this.create(c,b,a);return this.container};UKISA.site.Modal.prototype=UKISA.site.Container;UKISA.site.DialogContainer={dialog:null,create:function(g,f,c){var e,a,b,d;b={id:"ukisa-dialog"};for(var d in c){if(typeof b[d]!=="undefined"){b[d]=c[d]}}e=function(){var j,i,m,l,n,h,k;i=document.createElement("div");m=i.cloneNode(false);l=i.cloneNode(false);n=i.cloneNode(false);i.id=b.id;i.className="yui-panel-container yui-dialog shadow";m.className="hd";l.className="bd";n.className="ft";i.appendChild(m);i.appendChild(l);i.appendChild(n);document.body.appendChild(i);h=this;k=new YAHOO.widget.Dialog(b.id,{fixedcenter:true,modal:true,visible:false,close:true,underlay:"shadow",constraintoviewport:true,zIndex:500,autofillheight:"body"});if(g&&g.length){k.setHeader(g)}k.setBody(f);k.render();return k};if(typeof YAHOO.widget.Panel==="undefined"&&typeof YAHOO.util.Get!=="undefined"){a=YAHOO.util.Get.script("/web/yui/container/container-min.js",{onSuccess:function(){return e()},onFailure:function(){alert("Sorry, there was a problem loading the message box.")}})}else{return e()}},destroy:function(){if(this.dialog){this.dialog.destroy();this.dialog=null}}};UKISA.site.Dialog=function(c,b,a){this.dialog=this.create(c,b,a);return this.dialog};UKISA.site.Dialog.prototype=UKISA.site.DialogContainer;UKISA.site.Navigation={fixIE:function(){var b,c,a,d;if(document.all&&document.getElementById){b=YAHOO.util.Selector.query("> ul > li","nav");for(c=0,a=b.length;c<a;c++){d=b[c];d.onmouseover=function(){this.className+=" hover"};d.onmouseout=function(){this.className=this.className.replace(" hover","")}}}},terms:function(f){var c,d,e,a,g,b;b=f;d=function(){var i=document.createElement("div");i.id="terms-modal";i.className="busy";var h=document.createElement("p");h.innerHTML="Please wait&hellip;";i.appendChild(h);return i};e=function(i){var h=document.createElement("div");h.id="terms-modal";h.innerHTML=i;return h};var a=function(){var i=document.createElement("div");i.id="add-to-basket-modal";var h=document.createElement("p");h.className="error";h.innerHTML="Sorry, there was a problem and we could not fetch the page for you.";i.appendChild(h);return i};c=new UKISA.site.Modal("",d());c.show();g={success:function(i){var h;var j=['<p class="print-modal">','<a class="print" href="#" onclick="return UKISA.util.print(\'printable\');">Print</a>',"</p>"];c.setBody(e(i.responseText));c.setFooter(j.join(""));h=YAHOO.util.Selector.query("h1, h2, h3","ukisa-modal");if(h){Cufon.replace(h)}},failure:function(h){c.setBody(a())}};ajax=YAHOO.util.Connect.asyncRequest("GET",f.href,g);return false}};