//hide email addresses
emailE='playbark.com'
emailE=('info' + '@' + emailE)



// quantity calc
var j
j=0
function calc()	{
	j = 5
	//alert(j)
	document.forms[1].myTotal.value = (document.forms[1].length.value * document.forms[1].width.value * document.forms[1].depth.value) /1000
	return false;
}

// Area calc - rectangle
var k
k=0
function calcTurf()	{
	k = 5
	//alert(k)
	document.forms[2].myTotal.value = (document.forms[2].length.value * document.forms[2].width.value ) /1
	return false;
}

// Area calc - circle
// rounded numbers from here
// http://forums.devarticles.com/javascript-development-22/javascript-to-round-to-2-decimal-places-36190.html
//
var l
l=0
function calcCircle()	{

	document.forms[3].myTotal.value = Math.round( Math.round( (((document.forms[3].length.value / 2) * (document.forms[3].length.value / 2) ) * Math.PI ) * Math.pow( 10, 2 + 1 ) ) / Math.pow( 10, 1 ) ) / Math.pow(10,2);
	
	return false;
}





//
//highlight menu
var ready;
varPage1 = ""
varPage2 = ""
varPage3 = ""
varPage4 = ""
varPage5 = ""
varPage6 = ""

if 	(self.location.href.indexOf('default')!= -1)	{ varPage1 = 'active' }
if 	(self.location.href.indexOf('prod')!= -1)	{ varPage2 = 'active' }
if 	(self.location.href.indexOf('calc')!= -1)	{ varPage3 = 'active' }
if 	(self.location.href.indexOf('enquiry')!= -1)	{ varPage4 = 'active' }
if 	(self.location.href.indexOf('past')!= -1)	{ varPage5 = 'active' }
if 	(self.location.href.indexOf('contact.asp')!= -1)	{ varPage6 = 'active' }
ready=true;





// cactus stuff

function PopUp(theURL,winName,features) {
	window.open(theURL,winName,features);
}

function ToggleItem(myItem) {
	if (myItem.style.visibility != 'hidden') {
		HideItem(myItem);
	} else {
		ShowItem(myItem);
	}
	return false;
}
function ShowItem(myItem) {
	myItem.style.visibility = 'visible';
	myItem.style.display = '';
}
function HideItem(myItem) {
	myItem.style.visibility = 'hidden';
	myItem.style.display = 'none';
}

