<!--
  /* FLOATING IMAGE */

  /*
  Simple Image Trail script- By JavaScriptKit.com
  Visit http://www.javascriptkit.com for this script and more
  This notice must stay intact
  Taken From VideoCopilot.net - See Tutorials
  */

  var offsetfrommouse=[5,1]; //image x,y offsets from cursor position in pixels. Enter 0,0 for no offset
  var displayduration=0; //duration in seconds image should remain visible. 0 for always.
  var currentimageheight = 270;	// maximum image size.

  if (document.getElementById || document.all){
  	document.write('<div id="trailimageid">');
  	document.write('</div>');
  }

  function gettrailobj(){
  if (document.getElementById && document.getElementById("trailimageid"))
  return document.getElementById("trailimageid").style
  else if (document.all)
  return document.all.trailimagid.style
  }

  function gettrailobjnostyle(){
  if (document.getElementById && document.getElementById("trailimageid"))
  return document.getElementById("trailimageid")
  else if (document.all)
  return document.all.trailimagid
  }


  function truebody(){
  return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
  }

  function showtrail1(){

  }

  function showtrail(imagename,type,title,width,height,catid,copyright,description){

  	document.onmousemove=followmouse;

  	var newHTML = '<table border="0" width="240" cellpadding="3" cellspacing="0">';
  	newHTML = newHTML + '<tr><td width="100%" valign="top">';
  	newHTML = newHTML + '<table width="222">';
  	newHTML = newHTML + '<tr><td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">';
  	newHTML = newHTML + '<tr><td width="100%"><p align="center">';

  	if(type=='photo'){
  		newHTML = newHTML + '<div align="center" style="padding:5px;background:#fff;border:solid 1px #333">';
  		newHTML = newHTML + '<img src="' + imagename + '" border="0"">';
  		newHTML = newHTML + '</div>';
  	}
  	if(type=='video') {


  		temp = 	'<div style="border:solid 5px #fff;width:'+width+'px;height:'+height+'"><embed'
  		+'		src="players/player4.6485.swf"'
  		+'		width="'+width+'"'
  		+'		height="'+height+'"'
  		+'		allowscriptaccess="always"'
  		+'		allowfullscreen="false"'
  		+'		flashvars=autostart=true&repeat=true&height='+height+'&width='+width+'&file='+imagename+'&searchbar=false&controlbar=none&screencolor=FFFFFF&autostart=true&displayclick=none&icons=false&repeat=always&stretching=exactfit&usefullscreen=false"'
  		+'		/></div>';

  		newHTML = newHTML + '<div align="center" style="border:solid 1px #000">';
  		newHTML = newHTML += temp;
  		newHTML = newHTML + '</div>';
  	}

  	gettrailobjnostyle().innerHTML = newHTML;

  	gettrailobj().visibility="visible";

  }


  function hidetrail(){
  	gettrailobj().visibility="hidden"
  	gettrailobjnostyle().innerHTML=""
  	document.onmousemove=""
  	gettrailobj().left="-500px"
  }


  function followmouse(e){

  	var xcoord=offsetfrommouse[0]
  	var ycoord=offsetfrommouse[1]

  	if (typeof e != "undefined"){
  		xcoord+=e.pageX
  		ycoord+=e.pageY

  	} else if (typeof window.event != "undefined"){
  		xcoord+=truebody().scrollLeft+event.clientX
  		ycoord+=truebody().scrollTop+event.clientY
  	}

  	var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-200
  	var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)

  	gettrailobj().left=xcoord+"px"
  	gettrailobj().top=ycoord+"px"

  }
-->
