// JavaScript Document

/*
Simple Image Trail script- By JavaScriptKit.com
Visit http://www.javascriptkit.com for this script and more
This notice must stay intact
*/
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
<!--

var trailimage=["music7.gif", 20, 20] //image path, plus width and height
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="position:absolute;visibility:visible;left:0px;top:0px;width:1px;height:1px"><img src="'+trailimage[0]+'" border="0" width="'+trailimage[1]+'px" height="'+trailimage[2]+'px"></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().visibility="hidden"
document.onmousemove=""

}

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)
if (xcoord+trailimage[1]+3>docwidth || ycoord+trailimage[2]> docheight)
gettrailobj().display="none"
else 
gettrailobj().display=""
gettrailobj().left=xcoord+"px"
gettrailobj().top=ycoord+"px"
}

document.onmousemove=followmouse

if (displayduration>0)
setTimeout("hidetrail()", displayduration*1000)

//-->
<!--

// Copyright 1996 - Tomer and Yehuda Shiran
// This example will appear in our forthcoming book on JavaScript.
// Feel free to "steal" this code provided that you leave this notice as is.
// Additional examples from the book can be found at http://www.geocities.com/SiliconValley/9000/
// For more information contact Tomer or Yehuda Shiran <yshiran@iil.intel.com>

function getMessage() {
	// create array of quotes
	var ar = new Array(27)
	ar[0] = "Only a life lived for others is worth living. - Albert Einstein"
	ar[1] = "The world is a dangerous place, not because of those who do evil, but because of those who look on and do nothing. - Albert Einstein"
	ar[2] = "Life's most persistent and urgent question is: What are you doing for others? - Martin Luther King Jr."
	ar[3] = "A person who aims at nothing is sure to hit it.  - Unknown"
	ar[4] = "Good, better, best; never let it rest till your good is better and your better is best.  - Unknown"
	ar[5] = "I write music with an exclamation point! - Richard Wagner"
	ar[6] = "Without music, life is a journey through a desert. - Pat Conroy"
	ar[7] = "I have never let my schooling interfere with my education. - Mark Twain"
	ar[8] = "When you come to a fork in the road, take it. - Yogi Berra"
	ar[9] = "If you tell the truth you don't have to remember anything. - Mark Twain"
	ar[10] = "You can observe a lot just by watching. - Yogi Berra"
	ar[11] = "Success is liking yourself, liking what you do, and liking how you do it. - Maya Angelou"
	ar[12] = "Art is making something out of nothing and selling it. - Frank Zappa"
	ar[13] = "The first question I ask myself when something doesn't seem to be beautiful is why do I think it's not beautiful. And very shortly you discover that there is no reason. - John Cage"
	ar[14] = "I love Mickey Mouse more than any woman I've ever known. - Walt Disney"
	ar[15] = "My future starts when I wake up every morning... Every day I find something creative to do with my life. - Miles Davis"
	ar[16] = "It is like De Ja Vu all over again. - Yogi Berra" 
	ar[17] = "It is amazing what you can accomplish if you do not care who gets the credit. - Harry S. Truman"
	ar[18] = "Impossible is a word to be found only in the dictionary of fools. - Unknown"
	ar[19] = "Too many pieces of music finish too long after the end. - Igor Stravinsky"
	ar[20] = "Watch your thoughts; they become words.  Watch your words; they become actions.  Watch your actions; they become habits.  Watch your habits; they become character.  Watch your character; it becomes your destiny. -Frank Outlaw"
	ar[21] = "You cannot raise a man up by calling him down. - William Boetcker"
	ar[22] = "Leadership is doing what is right when no one is watching.- George Van Valkenburg"
	ar[23] = "I owe the public just one thing - a good performance. - Bob Gibson"
	ar[24] = "What is the Difference between a Duck? - Unknown"
	ar[25] = "Why also equals Why Not. - Unknown"
	ar[26] = "Why are you looking at me?"
	var now = new Date()
	var sec = now.getSeconds()
	 alert("Random Quotes:\r" + ar[sec % 27])
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->


            

