//  browser 

	ns4 = (document.layers)? true:false
	ie4 = (document.all)? true:false

// rollover load

if (document.images){
	listOver = new Image
	aboutOver = new Image
	plugsOver = new Image
	contactOver = new Image
	growingOver = new Image
	buffaloOver = new Image
	pennsedgOver = new Image
	seasonOver = new Image
	block = new Image
	
	listOver.src = "images/crg_prodS.jpg"
	aboutOver.src = "images/groupt.jpg"
	plugsOver.src = "images/plugt.jpg"
	contactOver.src = "images/psmoket.jpg"
	growingOver.src = "images/geraniumt.jpg"
	buffaloOver.src = "images/buffalot.jpg"
	pennsedgOver.src = "images/small/pennsedg_2.jpg"
	seasonOver.src = "images/septt.jpg"
	block.src = "images/block.gif"
}
else {
	aboutOver = ""
	plugsOver = ""
	contactOver = ""
	growingOver = ""
	buffaloOver = ""
	pennsedgOver = ""
	seasonOver = ""	
	block = ""
	plantlistOver = ""

	document.about =""
	document.plugs =""
	document.buffalo =""
	document.pennsedg =""
	document.contact =""
	document.growing =""
	document.season =""
	document.plantlist = ""
}

// image popups

function newWindow(html, winName) {
		imageWindow = window.open(html, winName, 'width=450,height=350')
	}

function newWindow2(html, winName) {
		imageWindow = window.open(html, winName, 'width=350,height=450')
	}
function newWindow3(html, winName) {
		imageWindow = window.open(html, winName, 'width=325,height=160')
	}
	
function wideWindow(html, winName) {
		imageWindow = window.open(html, winName, 'width=700,height=250')
	}
//  layer

function getLayer(div, src, frame) {
	showLayer (div);
	loadSrc (div, src, frame);
}

function showLayer (layer) {
	if (ns4){
		width = window.innerWidth
		height = window.innerHeight
		h = width - document[layer].clip.width
		v = height - document[layer].clip.height - 30
		document[layer].left = h / 2
		document[layer].top = v / 2
		document[layer].visibility = "show"
	}
	if (ie4) {
		width = parent.document.body.clientWidth
		height = parent.document.body.clientHeight
		h = width - parent.document.all[layer].clientWidth
		v = height - parent.document.all[layer].clientHeight - 30
		parent.document.all[layer].style.left = h / 2
		parent.document.all[layer].style.top = v / 2
		parent.document.all[layer].style.visibility = "visible"
	}
}

function loadSrc (layer,src,frame) {
	if (ns4) {document[layer].src = [src]}
	if (ie4) {parent[frame].document.location = [src]}
}


function closeLayer (layer) {
	if (ns4) {
		window.document.layers[layer].visibility = "hide"
	}
	if (ie4) {
		parent.document.all[layer].style.visibility = "hidden"
	}
}

function check(){
	if(document.form.search.value == null ||
		document.form.search.value == ''){
	alert('Please enter in your search criteria.')}
	}