var layerBuyShowing=1;
	var layerNumShowing=1;
var layerRef="null";
var styleSwitch="null";
	function init(){
        if (navigator.appName == "Netscape") {
				layerStyleRef="layer.";
				layerRef="document.layers";
				styleSwitch="";
        }else{
				layerStyleRef="layer.style.";
				layerRef="document.all";
				styleSwitch=".style";
		}
	}

	function showLayerNumber(number){
		var layerNumToShow=number;
		hideLayer(eval('"layer' + layerNumShowing+'"'));
		showLayer(eval('"layer' + layerNumToShow+'"'));
		layerNumShowing=layerNumToShow;	
	}

function showLayer(layerName){
		eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
	}
	
	function hideLayer(layerName){
		eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
	}


function displayText(text,fieldName){
		if (navigator.appName == "Netscape") {
document.layers[fieldName].document.write(text);
document.layers[fieldName].document.close();
		}else{
document.all[fieldName].innerHTML=text;
		}
	}

function showLayerBuy(num){
		var layerBuyToShow=num;
		hideBuy(eval('"layer' + layerBuyShowing+'"'));
		showBuy(eval('"layer' + layerBuyToShow+'"'));
		layerBuyShowing=layerBuyToShow;	
	}

	function showBuy(buyName){
		eval(layerRef+'["'+buyName+'"]'+styleSwitch+'.visibility="visible"');
	}
	
	function hideBuy(buyName){
		eval(layerRef+'["'+buyName+'"]'+styleSwitch+'.visibility="hidden"');
	}


