/*--------------------------------------------------
BASE-1.0.0 contains BASE
Generated: 7/4/2010
--------------------------------------------------*/
UKISA.namespace("site");UKISA.site.Container=null;UKISA.site.Modal=function(h,d,c){var b,f,e,g,a;b=document.getElementById(h);a=UKISA.site.Container;if(b&&a){a.setBody(d);return a}else{b=document.createElement("div");f=b.cloneNode(false);e=b.cloneNode(false);g=b.cloneNode(false);b.id=h;b.className="yui-panel-container yui-dialog shadow";f.className="hd";e.className="bd";g.className="ft";b.appendChild(f);b.appendChild(e);b.appendChild(g);document.body.appendChild(b);UKISA.site.Container=new YAHOO.widget.Panel(h,{fixedcenter:true,modal:true,visible:false,close:true,underlay:"shadow",constraintoviewport:true,zIndex:500,autofillheight:"body"});a=UKISA.site.Container;a.setBody(d);a.render(document.body);return a}};UKISA.site.Modal.prototype.panel=null;UKISA.site.Navigation={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(j){var i;var k=['<p class="print-modal"','<a class="print" href="#" onclick="return UKISA.util.print(\'modal-terms-print-reference\');">Print</a>',"</p>"];c.setBody(e(j.responseText));c.setFooter(k.join(""));var h=document.createElement("iframe");h.id="modal-terms-print-reference";h.name="modal-terms-print-reference";h.src=b.href;h.width="1";h.height="1";h.style.position="absolute";h.style.left="-999em";h.style.top="-999em";document.body.appendChild(h)},failure:function(h){c.setBody(a())}};ajax=YAHOO.util.Connect.asyncRequest("GET",f.href,g);return false}};
