
//Popup with global features
var WindowObjectReference = null; // global variable

function popper2(strUrl)
{
  if(WindowObjectReference == null || WindowObjectReference.closed)
  {
    WindowObjectReference = window.open(strUrl, "_blank",
           "left=20,top=20,width=500,height=500,toolbar=0,resizable=yes,scrollbars=1");
  }
  else
  {
    WindowObjectReference.focus();
  };
}



//popup with HTML-specified features
function popper(url,name,features) {
window.open(url,name,features);}
		
		
// Image flipper
// Some variables

var base= "images/header_"
var nrm = new Array();
var omo = new Array();
var stuff = new Array('home','news','marketplace','buyersguide','producers','links');

// Pre-load part.

if (document.images)
{
	for (i=0;i<stuff.length;i++)
	{
		nrm[i] = new Image;
		nrm[i].src = base + stuff[i] + ".gif"
		omo[i] = new Image;
		omo[i].src = base + stuff[i] + "_on.gif";
	}
}


// The functions: first mouseover, then mouseout

function over(no)
{
	if (document.images)
	{
		document.images[stuff[no]].src = omo[no].src
	}
}

function out(no)
{
	if (document.images)
	{
		document.images[stuff[no]].src = nrm[no].src
	}
}
		

// Div flipper starts here		

var state = 'none';

function showhide(layer_ref) {

if (state == 'block') {
state = 'none';
}
else {
state = 'block';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].display = state;
}
if (document.getElementById && !document.all) {
maxwell_smart = document.getElementById(layer_ref);
maxwell_smart.style.display = state;
}
}




//-->

