function showMenu(param) {
	getStyle("menu" + param).visibility = "visible";
	getObj("m" + param).src = "http://www.innermedia.biz/app/webroot/img/menu" + param + "_f2.jpg";
}

function hideMenu(param) {
	getStyle("menu" + param).visibility = "hidden";
	getObj("m" + param).src = "http://www.innermedia.biz/app/webroot/img/menu" + param + ".jpg";
}

// PARSED EVENT ////////////////////////////////////////////////////////////////
// This little kid saves a lot of unnecessarily long event function calls,
// and takes a lot of the cross-browser headache out of extracting event data.

function pEvent(e) {
	this.browser;
	this.mouseX;
	this.mouseY;
	this.innerHTML;
	this.callerID;
	this.callerIndex;
	this.callerClass;
	this.obj;
	
	if (!e) var e = window.event;
	//Mozilla
	if (e.pageX || e.pageY) 	{
		//alert("This is Mozilla, fool.");
		this.browser = "Mozilla";
		this.mouseX = e.pageX;
		this.mouseY = e.pageY;
		this.innerHTML = e.target.innerHTML;
		this.obj = e.target;
		this.callerID = e.target.getAttribute('id');
		this.callerIndex = e.target.getAttribute('index');
		this.callerClass = e.target.getAttribute('class');
		
	}
	//IE
	else if (e.clientX || e.clientY) 	{
		//alert("This is IE.");
		this.browser = "IE";
		this.mouseX = e.clientX + document.body.scrollLeft
			+ document.documentElement.scrollLeft;
		this.mouseY = e.clientY + document.body.scrollTop
			+ document.documentElement.scrollTop;
		this.obj = e.srcElement;
		this.innerHTML = e.srcElement.innerHTML;
		this.callerID = e.srcElement.getAttribute('id');
		this.callerIndex = e.srcElement.getAttribute('index');
		this.callerClass = e.srcElement.getAttribute('class');
		
	} else {
		alert("It's not Mozilla or IE!");
	}
}

// HANDY ///////////////////////////////////////////////////////////////////////

function getObj(name)
{
  if (document.getElementById)
  {
  	return document.getElementById(name);
	//this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	return document.all[name];
	//this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	return document.layers[name];
   	//this.style = document.layers[name];
  }
}


function getStyle(name)
{
  if (document.getElementById)
  {
  	//this.obj = document.getElementById(name);
	return document.getElementById(name).style;
  }
  else if (document.all)
  {
	//this.obj = document.all[name];
	return document.all[name].style;
  }
  else if (document.layers)
  {
   	//this.obj = document.layers[name];
   	return document.layers[name];
  }
}


function getElementsByClassName(classname, node) {
	
  if(!node) node = document.getElementsByTagName("body")[0];
  
  var a = [];
  var re = new RegExp('\\b' + classname + '\\b');
  var els = node.getElementsByTagName("*");
  for(var i=0,j=els.length; i<j; i++)
    if(re.test(els[i].className))a.push(els[i]);
  
  return a;
}

/***********************************************
* Disable Text Selection script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

function disableSelection(target){
	if (typeof target.onselectstart!="undefined") //IE route
		target.onselectstart=function(){return false};
	else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
		target.style.MozUserSelect="none";
	else //All other route (ie: Opera)
		target.onmousedown=function(){return false}
	target.style.cursor = "default";
}

