﻿/*
Simple Image Trail script- By JavaScriptKit.com
Visit http://www.javascriptkit.com for this script and more
This notice must stay intact
*/

var offsetfrommouse=[10,-20] //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.

if (document.getElementById || document.all)
document.write('<div id="trailimageid" style="text-align:left;position:absolute;z-index:100;visibility:visible;left:0px;top:0px;width:280px;height:280px;padding:10px 10px 10px 10px;border:3px solid #C0C0C0;color:#666666;background-color:#ffffff;"><iframe id="selectblocker" style="position:absolute;width:280px;height:280px;z-index:-1;" frameBorder="0" scrolling="no" src="../../themes/a_global_objects/blank.htm"></iframe><table id="contents" style="position:absolute;"><tr><td valign="top"><b>Debt types we can help with:</b><ul class="unsecuredList"><li>Credit card bills<li>Store charge cards<li>Medical bills<li>Phone bills<li>Other debts not tied to an asset</li></ul><b>Please <u>do not include</u> any of the following<br /> in your debt total:</b><ul class="securedList"><li>Auto loans<li>Student loans<li>Tax debt<li>Mortgage loans</li></ul></td></tr></table></div>')

function gettrailobj(){
if (document.getElementById)
return document.getElementById("trailimageid").style
else if (document.all)
return document.all.trailimagid.style
}

function truebody(){
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function hideTrail(){
    gettrailobj().innerHTML = " ";
	gettrailobj().display="none"
	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-15
var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)
gettrailobj().display=""
gettrailobj().left=xcoord+"px"
gettrailobj().top=ycoord+"px"
}

function showTrail()
{
    document.onmousemove=followmouse
}

if (displayduration>0)
setTimeout("hidetrail()", displayduration*1000)

showTrail()
hideTrail()
