
// tests for cookies enabled
var cookieEnabled = false;
if (typeof document.cookie == "string") {
	if (document.cookie.length == 0) {
		setCookie("joanallenctest", "hello");
		var joanallenctestRead = getCookie("joanallenctest");
		if (joanallenctestRead == "hello") {
			cookieEnabled = true;
		}
		else {
			cookieEnabled = false;
		}
	}
	else {
		cookieEnabled = true;
	}
}



function getCookieVal(offset) {
	var endstr = document.cookie.indexOf(";", offset);
	if (endstr == -1) {
		endstr = document.cookie.length;
	}
	return unescape(document.cookie.substring(offset, endstr));
}


function getCookie(name) {
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen) {
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg) {
			return getCookieVal(j);
		}
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0) break;
	}
	return "";
}


function setCookie(name, value) {
	var exp = new Date(); // to fix bug with Safari
	exp.setTime(exp.getTime() + 995000000);
	var expires = true;
	var path = false;
	var domain = false;
	var secure = false;
	document.cookie = name + "=" + escape (value) +
		((expires) ? "; expires=" + exp.toGMTString() : "") +
		((path) ? "; path=" + path : "") +
		((domain) ? "; domain=" + domain : "") +
		((secure) ? "; secure" : "");
}



function deleteCookie(name,path,domain) {
	if (getCookie(name)) {
		document.cookie = name + "=" +
			((path) ? "; path=" + path : "") +
			((domain) ? "; domain=" + domain : "") +
			"; expires=Thu, 01-Jan-70 00:00:01 GMT";
	}
}


function cookiesNotOnMessage() {
	alert("Your web browser is not accepting cookies which are necessary for our e-commerce system.  Please either enable cookies or order via our Sales Hotline");

}



function knockOffSomeDecPlaces(expr, decplaces) {	
	var str = "" + Math.round (eval(expr) * Math.pow(10,decplaces));
	while (str.length <= decplaces) { str = "0" + str; }
	var decpoint = str.length - decplaces
	return str.substring(0,decpoint) + "." + str.substring(decpoint,str.length);
}	




function fillBasketDiv(extraToAdd) { // extraToAdd will be 0 or a number
	var basketTotal = getCookie("joanAllenTotal");
	if (basketTotal == "") {
		basketTotal = 0;
	}
	else {
		basketTotal = parseFloat(basketTotal);
	}
	basketTotal += parseFloat(extraToAdd);
	basketTotal = knockOffSomeDecPlaces(basketTotal, 2);
	setCookie("joanAllenTotal", basketTotal);
	var basketHTML = "";
	if ( basketTotal > 0 || thisPage == 22 ) {
		basketHTML += '<p class="amount"><a href="a_shopping_basket.html"><img src="images\/basketlogoflash.gif" alt="Click to view your shopping basket" \/></a>&nbsp;: &pound;' + basketTotal + '</p><p><button onclick="viewBasket()">View Basket</button></p>';
	}
	else {
		basketHTML += '<p><img src="images\/basketlogo.gif" alt="*" \/>&nbsp;: &pound;0.00</p><p><button onclick="location.href=\'a_howtoorder.html\'">How to order</button></p>';

	}
	document.getElementById("basket").innerHTML = basketHTML;
}




function addItemToBasketArray(itemNumber) {
	var basketArray = getCookie("joanAllenBasketItems");
	var eitmStr = "EITM";
	if (basketArray == "") { //no items yet
		eitmStr = ""; // don't want on first item
	}
	basketArrayStr = new String(basketArray);
	basketArrayStr += eitmStr;
	basketArrayStr += itemNumber;
	setCookie("joanAllenBasketItems", basketArrayStr);
}

function savePageToCookie(thePage) {
	var pageVisitedArray = new String(getCookie("joanAllenPageHistory"));
	if (pageVisitedArray == "") {
		pageVisitedArray += thePage;
	}
	else {
		if (pageVisitedArray.length > 1500) { // avoid too large cookies
			pageVisitedArray = pageVisitedArray.substr(0, 500);
		}
		var thePageShort = new String(thePage);	
		thePageShort = thePageShort.substr(0, 2);// to stop phrase and source repeating
		pageVisitedArray += "_" + thePageShort;
	}
	setCookie("joanAllenPageHistory", pageVisitedArray);
}


function setServerUrls() {
		var locPagesVisited = getCookie("joanAllenPageHistory");
		var locBasketArrayRaw = getCookie("joanAllenBasketItems");
		var locBasketTotal = getCookie("joanAllenTotal");
		locBasketTotal = knockOffSomeDecPlaces(locBasketTotal, 2);
		if (locBasketTotal == "") {
			locBasketTotal = 0;
		}
		urlNil = "https://www.joanallen.co.uk/secure/a_secure_checkout.html?tPn=" + locBasketTotal + "&server=nil&orderNo=DR" + myMonthYearCode + "N" + myOrderNo + "&basketArray=" + locBasketArrayRaw + "&pagesVisited=" + locPagesVisited;
		urlMay = "";
}



function setServerUrlsBrochure() {
		var locPagesVisited = getCookie("joanAllenPageHistory");
		urlNil = "https://www.joanallen.co.uk/secure/a_secure_brochurerequest.html?server=nil" + "&pagesVisited=" + locPagesVisited;
		urlMay = "";

}



function setServerUrlsCredit() {
		var locPagesVisited = getCookie("joanAllenPageHistory");
		urlNil = "https://www.joanallen.co.uk/secure/a_secure_creditapplic.html?server=nil&orderNo=CA" + myMonthYearCode + "N" + myOrderNo + "&pagesVisited=" + locPagesVisited;
		urlMay = "";

}





var idExp6 = "no";
var agt2 = new String(navigator.userAgent.toLowerCase());
if (agt2.indexOf("msie 6") != -1) {
	idExp6 = "yes";
}



var winHeight = 400;
function getInsideWindowHeight() {
	isIE6CSS = (document.compatMode && document.compatMode.indexOf("CSS1") >= 0) ? true : false;
	if (window.innerHeight) {
		return window.innerHeight;
	}
	else if (isIE6CSS) {
		// measure the html element's clientHeight
		return document.documentElement.clientHeight;
	}
	else if (document.body && document.body.clientHeight) {
		return document.body.clientHeight;
	}
	return 1; // 0 could lead to dividing 0 by 2.
}




var winWidth = 740;
function getInsideWindowWidth() {
	isIE6CSS = (document.compatMode && document.compatMode.indexOf("CSS1") >= 0) ? true : false;
	if (window.innerWidth) {
		return window.innerWidth;
	}
	else if (isIE6CSS) {
		// measure the html element's clientWidtht
		return document.documentElement.clientWidth;
	}
	else if (document.body && document.body.clientWidth) {
		return document.body.clientWidth;
	}
	return 1; // 0 could lead to dividing 0 by 2.
}






function resetStyleSheet() {
		winWidth = getInsideWindowWidth();
		if (winWidth > 1000) { // keep it simple
			winWidth = 1000;
		}
		var extraWidAv = winWidth - 740;
		if (extraWidAv > 2) { // don't bother for less
			if (document.styleSheets[0].rules) { // IE
				document.styleSheets[0].rules[13].style.width = (550 + extraWidAv) + "px";
				document.styleSheets[0].rules[20].style.width = (260 + extraWidAv) + "px";
				if (extraWidAv > 190) {
					document.styleSheets[0].rules[4].style.marginLeft = "40px"; 
					document.styleSheets[0].rules[26].style.marginLeft = "10px"; 
				}
				document.styleSheets[0].rules[5].style.left = (620 + extraWidAv) + "px";
				document.styleSheets[0].rules[10].style.left = (593 + extraWidAv) + "px";
				document.styleSheets[0].rules[11].style.left = 255 + extraWidAv/2 + "px";

				var agt = navigator.userAgent.toLowerCase(); 
				if ((agt.indexOf("mac_")!=-1) || (agt.indexOf("macintosh")!=-1)) {
					if (agt.indexOf("msie")!=-1) {
						document.styleSheets[0].rules[24].style.left = "-292px"; 
					}
				} 

			}
			else { // MOZILLA
				extraWidAv -= 20; // doesn't allow for scrollbars	

				document.styleSheets[0].cssRules[13].style.width = (550 + extraWidAv) + "px";
				document.styleSheets[0].cssRules[20].style.width = (260 + extraWidAv) + "px";
				if (extraWidAv > 190) {
					document.styleSheets[0].cssRules[4].style.marginLeft = "40px"; 
					document.styleSheets[0].cssRules[26].style.marginLeft = "10px"; 
				}
				document.styleSheets[0].cssRules[5].style.left = (620 + extraWidAv) + "px";
				document.styleSheets[0].cssRules[10].style.left = (593 + extraWidAv) + "px";
				document.styleSheets[0].cssRules[11].style.left = 255 + extraWidAv/2 + "px";
			}
			// nb: opera has issues here - fix sometime (works OK as is though)
		}
}





function navigate(choice) {
	var url = choice.options[choice.selectedIndex].value;
	if (url) {
		top.location.href = url;
	}
}



function navigate2(pageAddress) {
	pageAddress = "a_" + pageAddress + "_uk.html";
	top.location.href = pageAddress;
}

function navigate3(pageAddress) {
	top.location.href = pageAddress;
}



function showTestReport(modelName) {
	var pageName = "a_testreports/" + modelName + ".html?src=internal";
	var newWinName = modelName;
	var newWinHeight = parseInt(winWidth*.8*.6);
	var newWinFeatures = "width=1000,height=" + newWinHeight + ",left=0,toolbar,status,resizable=no,location=yes,scrollbars=yes";
	window.open(pageName, newWinName, newWinFeatures );
}





function resetSelectElements() {
	document.getElementById("manufacturer").options[0].selected = true;
	document.getElementById("byprice").options[0].selected = true;
}





function addToBasket(locPrice, locItemNo) {
	if (cookieEnabled == false) {
		cookiesNotOnMessage();
	}
	else {
		addItemToBasketArray(locItemNo);		
		fillBasketDiv(parseFloat(locPrice)); // adds to Total etc
		viewBasket();							
	}
}




function recordPage() {
	if (cookieEnabled == false) { // do nothing
	}
	else {
		savePageToCookie(thisPage);							
	}
}



function viewBasket() {
	top.location.href = "a_shopping_basket.html";
}




///////////////////////////////////// PRELOAD FOR PANEL BUTTONS /////////////////////////////
///////////////////////////////////// PRELOAD FOR PANEL BUTTONS /////////////////////////////
///////////////////////////////////// PRELOAD FOR PANEL BUTTONS /////////////////////////////

userAgent = window.navigator.userAgent;
browserVers = parseInt(userAgent.charAt(userAgent.indexOf("/")+1),10);
function findElement(n,ly) {
	if (browserVers < 4)		return document[n];
	var curDoc = ly ? ly.document : document;
	var elem = curDoc[n];
	if (!elem) {
		for (var i=0;i<curDoc.layers.length;i++) {
			elem = findElement(n,curDoc.layers[i]);
			if (elem) return elem;
		}
	}
	return elem;
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images) {
		var img;
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			img = null;
			if (document.layers) {
				img = findElement(changeImages.arguments[i],0);
			}
			else {
				img = document.images[changeImages.arguments[i]];
			}
			if (img) {
				img.src = changeImages.arguments[i+1];
			}
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		metal_detectors_01_over = newImage("images/metal-detectors_01-over.gif");
		metal_detectors_02_over = newImage("images/metal-detectors_02-over.gif");
		metal_detectors_04_over = newImage("images/metal-detectors_04-over.gif");
		metal_detectors_05_over = newImage("images/metal-detectors_05-over.gif");
		metal_detectors_06_over = newImage("images/metal-detectors_06-over.gif");
		metal_detectors_07_over = newImage("images/metal-detectors_07-over.gif");
		metal_detectors_08_over = newImage("images/metal-detectors_08-over.gif");
		metal_detectors_09_over = newImage("images/metal-detectors_09-over.gif");
		metal_detectors_10_over = newImage("images/metal-detectors_10-over.gif");
		metal_detectors_11_over = newImage("images/metal-detectors_11-over.gif");
		metal_detectors_12_over = newImage("images/metal-detectors_12-over.gif");
		metal_detectors_13_over = newImage("images/metal-detectors_13-over.gif");
		preloadFlag = true;
	}
}



/////////////////////////// PANEL JAVASCRIPT /////////////////////////////
/////////////////////////// PANEL JAVASCRIPT /////////////////////////////
/////////////////////////// PANEL JAVASCRIPT /////////////////////////////
/////////////////////////// PANEL JAVASCRIPT /////////////////////////////




/***********************************************
* Drop Down/ Overlapping Content-  Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code



* SOME OF THE CODE HAS BEEN ADAPTED BY SIMON MEES AND IS COPYRIGHT PROTECTED *

***********************************************/



//Drop Down/ Overlapping Content: http://www.dynamicdrive.com
//**Updated: Dec 19th, 07': Added ability to dynamically populate a Drop Down content using an external file (Ajax feature)
//**Updated: Feb 29th, 08':
				//1) Added ability to reveal drop down content via "click" of anchor link (instead of default "mouseover")
				//2) Added ability to disable drop down content from auto hiding when mouse rolls out of it
				//3) Added hidediv(id) public function to directly hide drop down div dynamically

//**Updated: Sept 11th, 08': Fixed bug whereby drop down content isn't revealed onClick of anchor in Safari/ Google Chrome

var simon="666";

var dropdowncontent={
	disableanchorlink: true, //when user clicks on anchor link, should link itself be disabled (always true if "revealbehavior" above set to "click")
 hidedivmouseout: [true, 200], //Set hiding behavior within Drop Down DIV itself: [hide_div_onmouseover?, miliseconds_before_hiding]
	ajaxloadingmsg: "Loading content. Please wait...", //HTML to show while ajax page is being feched, if applicable
	ajaxbustcache: true, //Bust cache when fetching Ajax pages?

	getposOffset:function(what, offsettype){
		return (what.offsetParent)? what[offsettype]+this.getposOffset(what.offsetParent, offsettype) : what[offsettype]
	},

	isContained:function(m, e){
		var e=window.event || e
		var c=e.relatedTarget || ((e.type=="mouseover")? e.fromElement : e.toElement)
		while (c && c!=m)try {c=c.parentNode} catch(e){c=m}
		if (c==m)
			return true
		else
			return false
	},

	show:function(anchorobj, subobj, e){

		if (!this.isContained(anchorobj, e) || (e && e.type=="click")){
			var e=window.event || e
			if (e.type=="click" && subobj.style.visibility=="visible"){
				subobj.style.visibility="hidden"
				return
			}
			var simonAcross = 0;
			var simonUp = 0;
	

			if (simon == "searchlink1" ){ simonAcross = -195; simonUp = 60; fillProductDivs(1); }
			else if (simon == "searchlink2" ){ simonAcross = -90; simonUp = 60; fillProductDivs(2);	}
			else if (simon == "searchlink3" ){ simonAcross = -195; simonUp = 112; fillProductDivs(3);}
			else if (simon == "searchlink4" ){ simonAcross = -90; simonUp = 112; fillProductDivs(4);}
			else if (simon == "searchlink5" ){ simonAcross = -195; simonUp = 180; fillProductDivs(5);}
			else if (simon == "searchlink6" ){ simonAcross = -90; simonUp = 180; fillProductDivs(6);}

			else if (simon == "searchlink7" ){ simonAcross = 367; simonUp = 60; fillProductDivs(7);	}
			else if (simon == "searchlink8" ){ simonAcross = 458; simonUp = 60; fillProductDivs(8);	}
			else if (simon == "searchlink9" ){ simonAcross = 367; simonUp = 112; fillProductDivs(9);}
			else if (simon == "searchlink10" ){ simonAcross = 458; simonUp = 112; fillProductDivs(10);}
			else if (simon == "searchlink11" ){ simonAcross = 367; simonUp = 180; fillProductDivs(11);}
			else if (simon == "searchlink12" ){ simonAcross = 458; simonUp = 180; fillProductDivs(12);}

			simonAcross += (getInsideWindowWidth() - 1000)/2;


			var horizontaloffset=(subobj.dropposition[0]=="left")? -(subobj.offsetWidth-anchorobj.offsetWidth) : 0 //calculate user added horizontal offset
			var verticaloffset=(subobj.dropposition[1]=="top")? -subobj.offsetHeight : anchorobj.offsetHeight //calculate user added vertical offset
			subobj.style.left=this.getposOffset(anchorobj, "offsetLeft") + horizontaloffset-simonAcross + "px"
			subobj.style.top=this.getposOffset(anchorobj, "offsetTop")+verticaloffset-simonUp+"px"
			subobj.style.clip=(subobj.dropposition[1]=="top")? "rect(auto auto auto 0)" : "rect(0 auto 0 0)" //hide drop down box initially via clipping
			subobj.style.visibility="visible"
			subobj.startTime=new Date().getTime()
			subobj.contentheight=parseInt(subobj.offsetHeight)
			if (typeof window["hidetimer_"+subobj.id]!="undefined") //clear timer that hides drop down box?
				clearTimeout(window["hidetimer_"+subobj.id])
			this.slideengine(subobj, (subobj.dropposition[1]=="top")? "up" : "down")
		}
	},

	curveincrement:function(percent){
		return (1-Math.cos(percent*Math.PI)) / 2 //return cos curve based value from a percentage input
	},

	slideengine:function(obj, direction){
		var elapsed=new Date().getTime()-obj.startTime //get time animation has run
		if (elapsed<obj.glidetime){ //if time run is less than specified length
			var distancepercent=(direction=="down")? this.curveincrement(elapsed/obj.glidetime) : 1-this.curveincrement(elapsed/obj.glidetime)
			var currentclip=(distancepercent*obj.contentheight)+"px"
			obj.style.clip=(direction=="down")? "rect(0 auto "+currentclip+" 0)" : "rect("+currentclip+" auto auto 0)"
			window["glidetimer_"+obj.id]=setTimeout(function(){dropdowncontent.slideengine(obj, direction)}, 10)
		}
		else{ //if animation finished
			obj.style.clip="rect(0 auto auto 0)"
		}
	},

	hide:function(activeobj, subobj, e){
		if (!dropdowncontent.isContained(activeobj, e)){
			window["hidetimer_"+subobj.id]=setTimeout(function(){
				subobj.style.visibility="hidden"
				subobj.style.left=subobj.style.top=0
				clearTimeout(window["glidetimer_"+subobj.id])
			}, dropdowncontent.hidedivmouseout[1])
		}
	},

	hidediv:function(subobjid){
		window.scrollTo(0,0);
		var simonRef = subobjid + "b"; 
		document.getElementById(simonRef).scrollTop = 0;
		document.getElementById(subobjid).style.visibility="hidden"
	},

	ajaxconnect:function(pageurl, divId){
		var page_request = false
		var bustcacheparameter=""
		if (window.XMLHttpRequest) // if Mozilla, IE7, Safari etc
			page_request = new XMLHttpRequest()
		else if (window.ActiveXObject){ // if IE6 or below
			try {
			page_request = new ActiveXObject("Msxml2.XMLHTTP")
			} 
			catch (e){
				try{
				page_request = new ActiveXObject("Microsoft.XMLHTTP")
				}
				catch (e){}
			}
		}
		else
			return false
		document.getElementById(divId).innerHTML=this.ajaxloadingmsg //Display "fetching page message"
		page_request.onreadystatechange=function(){dropdowncontent.loadpage(page_request, divId)}
		if (this.ajaxbustcache) //if bust caching of external page
			bustcacheparameter=(pageurl.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime()
		page_request.open('GET', pageurl+bustcacheparameter, true)
		page_request.send(null)
	},

	loadpage:function(page_request, divId){
		if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)){
			document.getElementById(divId).innerHTML=page_request.responseText
		}
	},

 init:function(anchorid, pos, glidetime, revealbehavior){
		var anchorobj=document.getElementById(anchorid)
		var subobj=document.getElementById(anchorobj.getAttribute("rel"))
		var subobjsource=anchorobj.getAttribute("rev")
		if (subobjsource!=null && subobjsource!="")
			this.ajaxconnect(subobjsource, anchorobj.getAttribute("rel"))
		subobj.dropposition=pos.split("-")
		subobj.glidetime=glidetime || 1000
		subobj.style.left=subobj.style.top=0
		if (typeof revealbehavior=="undefined" || revealbehavior=="mouseover"){
			anchorobj.onmouseover=function(e){dropdowncontent.show(this, subobj, e)}
			anchorobj.onmouseout=function(e){dropdowncontent.hide(subobj, subobj, e)}
			if (this.disableanchorlink) anchorobj.onclick=function(){return false}
		}
		else
			anchorobj.onclick=function(e){simon=anchorid; dropdowncontent.show(this, subobj, e); return false}
//		if (this.hidedivmouseout[0]==true) //hide drop down DIV when mouse rolls out of it?
//			subobj.onmouseout=function(e){dropdowncontent.hide(this, subobj, e)}
	}
}





var rememberLittlePicNo = 0;

function fillProductDivs(littlePicNo) {

	if (rememberLittlePicNo != 0) {
		if (rememberLittlePicNo == 1) {
			dropdowncontent.hidediv('subcontent1')
		}
		else if (rememberLittlePicNo == 2) {
			dropdowncontent.hidediv('subcontent2')
		}
		else if (rememberLittlePicNo == 3) {
			dropdowncontent.hidediv('subcontent3')
		}
		else if (rememberLittlePicNo == 4) {
			dropdowncontent.hidediv('subcontent4')
		}
		else if (rememberLittlePicNo == 5) {
			dropdowncontent.hidediv('subcontent5')
		}
		else if (rememberLittlePicNo == 6) {
			dropdowncontent.hidediv('subcontent6')
		}
		else if (rememberLittlePicNo == 7) {
			dropdowncontent.hidediv('subcontent7')
		}
		else if (rememberLittlePicNo == 8) {
			dropdowncontent.hidediv('subcontent8')
		}
		else if (rememberLittlePicNo == 9) {
			dropdowncontent.hidediv('subcontent9')
		}
		else if (rememberLittlePicNo == 10) {
			dropdowncontent.hidediv('subcontent10')
		}
		else if (rememberLittlePicNo == 11) {
			dropdowncontent.hidediv('subcontent11')
		}
		else if (rememberLittlePicNo == 12) {
			dropdowncontent.hidediv('subcontent12')
		}

	}

	rememberLittlePicNo = littlePicNo;

	proHTML = "";

	if (littlePicNo == "1") { 
		proHTML += showFeature(1);
	}
	else if (littlePicNo == "2") {
		proHTML += showFeature(2);
	}
	else if (littlePicNo == "3") { 
		proHTML += showFeature(3);
	}
	else if (littlePicNo == "4") { 
		proHTML += showFeature(4);
	}
	else if (littlePicNo == "5") { 
		proHTML += showFeature(5);
	}
	else if (littlePicNo == "6") { 
		proHTML += showFeature(6);
	}
	else if (littlePicNo == "7") { 
		proHTML += showFeature(7);
	}
	else if (littlePicNo == "8") { 
		proHTML += showFeature(8);
	}
	else if (littlePicNo == "9") { 
		proHTML += showFeature(9);
	}
	else if (littlePicNo == "10") { 
		proHTML += showFeature(10);
	}
	else if (littlePicNo == "11") { 
		proHTML += showFeature(11);
	}
	else if (littlePicNo == "12") { 
		proHTML += showFeature(12);
	}


	var productListIDName = "productList" + littlePicNo;

	// window.scrollTo(0,0);
	document.getElementById(productListIDName).innerHTML = proHTML;

	 // alert(proHTML)

}












function showFeature(prodNo) {
	var returnHTML = "";

	if (prodNo == "1") {
		returnHTML += '<div class="featureDropDown">Sensitivity is as <strong>important</strong> as depth!<br><br>Minelab detectors are <strong>ultra sensitive</strong> to even the smallest of coins/items under any ground conditions.<br><br>Any detector can find large items!</div>';
	}
	else if (prodNo == "2") {
		returnHTML += '<div class="featureDropDown">From the ETRAC down to the super Xterra Series, Minelab detectors have fantastic target identification abilities.<br><br>These machines are incredibly clever - <strong>yet so easy to interpret</strong>.</div>';
	}
	else if (prodNo == "3") {
		returnHTML += '<div class="featureDropDown">It is well known in detecting circles that Minelab detectors have <strong>excellent depth penetration</strong>.<br><br>For this reason most seasoned users <strong>aspire</strong> to own a Minelab.</div>';
	}
	else if (prodNo == "4") {
		returnHTML += '<div class="featureDropDown">Next to sensitivity and depth <strong>junk identity</strong> and <strong>rejection</strong> is most important.<br><br>Why <strong>waste</strong> time digging junk?  Minelab detectors are renowned for their excellent discrimination.</div>';
	}
	else if (prodNo == "5") {
		returnHTML += '<div class="featureDropDown">Different types of ground present different challenges to a metal detector.<br><br><strong>Mineralisation</strong> and <strong>electromagnetic interference</strong> will lead to false signals and lots of unneccesary digging unless your detector is clever enough to <strong>re-balance</strong> itself to the prevailing ground conditions.<br><br>Beach and river bed detecting require <strong>waterproof coils</strong> which come as standard on all Minelab machines.<br><br></div>';
	}
	else if (prodNo == "6") {
		returnHTML += '<div class="featureDropDown"><strong>You need a light detector!</strong> Minelab excel at packing in the most features without adding to the weight.<br><br>Minelab machines come with <strong>fully adjustable shafts to fit any height</strong>.<br><br>The <strong>ultra clear LCD displays</strong> are comfortable on the eyes. With <strong>both</strong> visual and audio signals to follow you won\'t strain your eyes on a long day of detecting.<br><br>All models allow headphone or in-built speaker use.<br><br></div>';
	}
	else if (prodNo == "7") {
		returnHTML += '<div class="featureDropDown">Reliability is very important when buying a detector. Minelab pride themselves on their <strong>quality</strong> and <strong>reliability</strong>. Their rugged design will allow you many years of use.<br><br>All machines come with waterproof coils as standard.</div>';
	}
	else if (prodNo == "8") {
		returnHTML += '<div class="featureDropDown">Minelab have led the way in technology for many years now. Their innovations have kept them far out in front of other manufacturers.<br><br>Yet owners with older machines are still fully supported with a wide range of accessories.</div>';
	}
	else if (prodNo == "9") {
		returnHTML += '<div class="featureDropDown">All Minelab machines accept <strong>smaller/larger coils</strong>.  Experienced users will also demand the ability to use <strong>different frequencies</strong> in different different ground conditions.<br><br>All Minelab machines are either multi-frequency within a single coil or allow you to switch between different frequency coils.</div>';
	}
	else if (prodNo == "10") {
		returnHTML += '<div class="featureDropDown">Adaptability is paramount with Minelab!<br><br>Although every Minelab detector works extremely well in fully automatic mode, a huge wealth of <strong>extra intelligence</strong> is waiting for you to adapt and customise.</div>';
	}
	else if (prodNo == "11") {
		returnHTML += '<div class="featureDropDown">From the professional starter X-Terra 305 up to the best selling ETRAC and on to the unique GPX4500, Minelab have a wide range of detectors to suit all <strong>pockets</strong> and <strong>every requirement</strong>.</div>';
	}
	else if (prodNo == "12") {
		returnHTML += '<div class="featureDropDown">All Minelab units come with a <strong>FULL THREE YEAR</strong> Parts/Labour Warranty. The only exception is the fully diver operated Excalibur which has a one year warranty.<br><br>Joan Allen have been exclusive UK distributors for the Minelab range for many years.</div>';
	}


	return returnHTML;
}





