// Capturing The Mouse Position in IE4-6 & NS4-6
// (C) 2000 www.CodeLifter.com
// Free for all users, but leave in this  header

var IE = document.all?true:false
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;

var mouseX = 0
var mouseY = 0

function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    mouseX = event.clientX + document.body.scrollLeft
    mouseY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    mouseX = e.pageX
    mouseY = e.pageY
  }  
  // catch possible negative values in NS4
  if (mouseX < 0){mouseX = 0}
  if (mouseY < 0){mouseY = 0}
  return true
}


// Show a DIV, dynamic with parameters
function showDIV(nameDIV,content,company) {
if (nameDIV == "companyInfoDIV") {
document.getElementById(nameDIV).style.left = mouseX;
document.getElementById(nameDIV).style.top = mouseY;
document.getElementById(nameDIV + 'Content').innerHTML = document.getElementById('longDescTEMP' + company).innerHTML;
}
document.getElementById(nameDIV).style.visibility = "visible";
}


// Hide a DIV
function hideDIV(nameDIV) {
document.getElementById(nameDIV).style.visibility = "hidden";
}


// Remove value if null, or replace with value
function removeReplaceValue(value) {
	document.eventEmail.email.value = value;
}

// Gallery Flash System

function showDIVgallery(noPics) {
document.getElementById('gallery').style.visibility = "visible";
document.getElementById('galleryContent').innerHTML = "<iframe src =\"gallery-loader.asp?noPics="+noPics+"\" width=\"569\" height=\"320\" scrolling=\"no\" border=\"0\"></iframe>";
}

function gallery(noPics) {
var strString = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width=569 height=320><param name=movie value="gallery/gallery.swf?noPics='+noPics+'"><param name=quality value=high><param name="wmode" value="transparent"><embed src="gallery/gallery.swf?noPics='+noPics+'" quality=high wmode="transparent" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width=569 height=320></embed></object>';
document.write (strString);
}

//flash script
function homeFlash() {
var strString = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width=749 height=210><param name=movie value="images/tundra-2.swf"><param name=quality value=high><param name="wmode" value="transparent"><embed src="images/tundra-2.swf" quality=high wmode="transparent" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width=749 height=210></embed></object>';
document.write (strString);
}