/*
Simple Image Trail script- By JavaScriptKit.com
Visit http://www.javascriptkit.com for this script and more
This notice must stay intact
*/

var offsetfrommouse=[15,15]; //image x,y offsets from cursor position in pixels. Enter 0,0 for no offset
var displayduration=5; //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)
return document.getElementById("trailimageid").style
else if (document.all)
return document.all.trailimagid.style
}

function gettrailobjnostyle(){
if (document.getElementById)
return document.getElementById("trailimageid")
else if (document.all)
return document.all.trailimagid
}

function showtrail(imagename,title,description,showthumb,height){

gettrailobj().left=545+"px"
gettrailobj().top=170+"px"
//document.onmousemove=followmouse;

newHTML = '<div style="padding: 5px; background-color: #FFFFFF; border: 1px solid #888888;">';
newHTML = newHTML + '<div style="padding: 3px; background-color: #DAEEB4; font-family :Trebuchet MS; font-size:12px; font-weight: bold; background-image: url(/images/arrowpoint.jpg); background-repeat: no-repeat; background-position: right;">Stay up to date with our RSS News Feed</div>';
newHTML = newHTML + '<div style="padding: 4px; background-color: #FFFFFF;">Don\'t know what RSS is?  Click this orange icon to find out more<br/>Its easy, non-intrusive, informative and simple to setup<br/><br/>Click <a href="#" onclick="hidetrail()">here</a> to close this window</div>';

if (showthumb > 0){
newHTML = newHTML + '<div align="center" style="padding: 8px 2px 2px 2px;">';
newHTML = newHTML + '<img src="' + imagename + '" border="0"></div>';
}

gettrailobjnostyle().innerHTML = newHTML;
gettrailobj().visibility="visible";

}

function hidetrail(){
gettrailobj().visibility="hidden"
gettrailobj().left="-500px"
}
