																														function ReplaceAll (TSV1, TSV2, TSV3) {if (TSV2 != TSV3) {while (TSV1.indexOf(TSV2) != -1) {TSV1 = TSV1.replace(TSV2, TSV3);}}return TSV1;}function ChangeInnerHTML (LayerName, TSV) {if (document.layers) {TP = document.layers[LayerName].document; TP.open(); TP.write(TSV); TP.close();}else if (document.getElementById) {document.getElementById(LayerName).innerHTML = TSV;}else if (document.all) {document.all[LayerName].innerHTML = TSV;}}function GetElement (TSV) {if (document.getElementById) {if (document.getElementById(TSV) != null) {return document.getElementById(TSV);}}return document.all[TSV];}function GetWindowDimensions () {var myWidth = 0, myHeight = 0;if( typeof( window.innerWidth ) == 'number' ) {myWidth = window.innerWidth;myHeight = window.innerHeight;} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {myWidth = document.documentElement.clientWidth;myHeight = document.documentElement.clientHeight;} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {myWidth = document.body.clientWidth;myHeight = document.body.clientHeight;}return new Array(myWidth, myHeight);}function GetScrollXY () {var scrOfX = 0, scrOfY = 0;if (typeof(window.pageYOffset) == 'number') {scrOfY = window.pageYOffset;scrOfX = window.pageXOffset;} else if (document.body && (document.body.scrollLeft || document.body.scrollTop)) {scrOfY = document.body.scrollTop;scrOfX = document.body.scrollLeft;} else if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) {scrOfY = document.documentElement.scrollTop;scrOfX = document.documentElement.scrollLeft;}return new Array(scrOfX, scrOfY);}function SetElementOpacity (TSV1, TSV2) {var TP1;TP1 = GetElement(TSV1).style;TP1.filter = (TSV2 != '' ? 'alpha(opacity=' + (TSV2 * 100) + ')' : '');if (TP1.setProperty) {TP1.setProperty('opacity', TSV2, '');TP1.setProperty('-moz-opacity', TSV2, '');TP1.setProperty('-khtml-opacity', TSV2, '');}}function ChangeProductPicture (TV1) {CurrentProductPicture = 'pictures/tn2_' + TV1 + '.jpg';GetElement('ProductPicture').src = 'http://www.dolphinfitness.co.uk/rs/' + CurrentProductPicture;}function MoveLargeProductPictureLayer () {var TA1, TA2;TA1 = GetWindowDimensions();TA2 = GetScrollXY();GetElement('HiddenLayer').style.left = (TA1[0] - GetElement('ProductLargePicture').width) / 2;GetElement('HiddenLayer').style.top = TA2[1] + 5;}function ShowLargeProductPicture () {var TSV1, TP1;TSV1 = "<TABLE cellpadding='1' cellspacing='0' style='BORDER:#C7D7E7 1px dotted'>"+ "<TR style='BACKGROUND:#E0E7F0'>"+ "<TD style='TEXT-ALIGN:right; PADDING-RIGHT:5px'>"+ "<A href='javascript:HideLargeProductPicture()'><IMG src='" + FileBase + "images/Icon_Close.gif' alt='Close'></A>"+ "</TD>"+ "</TR>"+ "<TR>"+ "<TD style='BACKGROUND:#E0E7F0'>"+ "<IMG id='ProductLargePicture' src='http://www.dolphinfitness.co.uk/rs/" + ReplaceAll(CurrentProductPicture, 'tn2_', 'tn1_') + "'>"+ "</TD>"+ "</TR>"+ "</TABLE>";ChangeInnerHTML('HiddenLayer', TSV1);SetElementOpacity('MainLayer', '0.25');GetElement('HiddenLayer').style.visibility = 'visible';GetElement('ProductLargePicture').onload = MoveLargeProductPictureLayer;}function HideLargeProductPicture () {var TP1;GetElement('HiddenLayer').style.visibility = 'hidden';SetElementOpacity('MainLayer', '');}function DrawPrice (Price) {document.write("<SPAN style='COLOR:#666666'>Price: &#163;</SPAN>"+ "<SPAN style='FONT-SIZE:13px; FONT-WEIGHT:bold'>" + Price + "</SPAN>");}function DrawListOptions (ProductID, Price, Page) {document.write("<DIV style='MARGIN-TOP:6px'>"+ "<TABLE cellpadding='0' cellspacing='0' style='WIDTH:100%'>"+ "<TR>"+ "<TD align='right' style='WIDTH:100%'>"+ "<SPAN style='COLOR:#999999'>Price: &#163;</SPAN>" + Price+ "</TD>"+ "<TD style='PADDING:0px; PADDING-LEFT:13px'>"+ "<FORM action='http://www.dolphinfitness.co.uk/do/order' method='post'>"+ "<INPUT type='hidden' name='v[order_id]' value='" + ProductID + "'>"+ "<INPUT type='image' src='" + FileBase + "images/Button_AddToBasket.gif' alt='Add to Basket'>"+ "</FORM>"+ "</TD>"+ "<TD style='PADDING:0px; PADDING-LEFT:13px'>"+ "<A href='" + Page + "'><IMG src='" + FileBase + "images/Button_MoreDetails.gif' alt='More Details' style='FLOAT:right'></A>"+ "</TD>"+ "</TR>"+ "</TABLE>"+ "</DIV>");}function DrawPageTop (DomainGroupFile) {document.write("<DIV style='HEIGHT:140px; BACKGROUND:url(" + FileBase + "images/BG_2.jpg) 10px bottom no-repeat'>"+ "<DIV style='HEIGHT:140px; FLOAT:right; PADDING:105px 25px 0px 245px; BACKGROUND:url(" + FileBase + "images/BG_3.gif) left 20px no-repeat'>"+ "<FORM action='http://www.dolphinfitness.co.uk/en/search/' method='post'>"+ "<TABLE cellpadding='2' cellspacing='0'>"+ "<TR>"+ "<TD>"+ "<INPUT type='text' name='v[find_key]' class='Text' style='WIDTH:120px'>"+ "</TD>"+ "<TD>"+ "<INPUT type='image' src='" + FileBase + "images/Button_Go.gif' alt='Go'>"+ "</TD>"+ "</TR>"+ "</TABLE>"+ "</FORM>"+ "</DIV>"+ "<DIV style='PADDING-LEFT:20px; TEXT-ALIGN:left; VERTICAL-ALIGN:middle'>"+ "<IMG src='" + FileBase + "images/Logo_" + DomainGroupFile + ".gif'>"+ "</DIV>"+ "</DIV>");}function DrawPageMenu () {TA1 = new Array('Home => ','ContactUs => /en/contact-us','Delivery => /en/delivery','MoneyBackGuarantee => /en/money-back-guarantee');TSV1 = '';TV1 = TA1.length;for (TV2 = 0; TV2 <= TV1 - 1; TV2++) {TA2 = TA1[TV2].split(' => ');TSV1 += "<TD style='TEXT-ALIGN:center; BACKGROUND:#3260AD" + (TV2 > 0 ? "; BORDER-LEFT:2px solid #FFFFFF" : "") + "'>"+ "<A href='http://www.dolphinfitness.co.uk" + TA2[1] + "'><IMG src='" + FileBase + "images/Menu_" + TA2[0] + ".gif'></A>"+ "</TD>";}document.write("<DIV style='MARGIN-BOTTOM:20px'>"+ "<TABLE cellpadding='4' cellspacing='0' style='WIDTH:100%'>"+ "<TR>"+ TSV1+ "</TR>"+ "</TABLE>"+ "</DIV>");}function DrawPageBottom () {TA1 = new Array('Terms &amp; Conditions => terms-and-conditions','Delivery => delivery','Money back guarantee => money-back-guarantee','VAT and the E.U. => vat-and-the-eu','Contact us => contact-us');TSV1 = '';TV1 = TA1.length;for (TV2 = 0; TV2 <= TV1 - 1; TV2++) {TA2 = TA1[TV2].split(' => ');if (TV2 > 0) {TSV1 += "<IMG src='" + FileBase + "images/Icon_Seperator.gif'>";}TSV1 += "<A href='http://www.dolphinfitness.co.uk/en/" + TA2[1] + "'>" + TA2[0] + "</A>";}document.write("<DIV class='Border1' style='TEXT-ALIGN:left; BORDER-BOTTOM-WIDTH:1px; PADDING:7px 0px 7px 15px'>"+ TSV1+ "</DIV>"+ "<DIV style='TEXT-ALIGN:left; PADDING:7px 0px 7px 15px'>"+ "Errors &amp; omissions excepted &copy; Copyright 2007-2010 Dolphin Fitness LTD"+ "</DIV>");}if (L != '') {document.location = 'http://www.dolphinfitness.co.uk' + L;}																																						
