/////////////////////////////////////////////////////////////////////

/* javascripts for Puma's #3 site */
/* includes status message; new windows; anti-spam email; logo rollovers */

/////////////////////////////////////////////////////////////


// statusbar alert for new window

function statusynw() {
self.status='opens in new window'; return true;
}
function statusn() { 
self.status=''; return true;
}
/////////////////////////////////////////////////////////////

// open new window to size
// unnumbered opens Indian Motorcycles CMC
// openwin1 opens get map
// openwin2 ....

function openWin() {
        myWin=open("","newWindow","top=70,left=120,width=670,height=385,status=yes,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes"); }

function openWin1() {
        myWin=open("","recWindow","top=150,left=116,width=561,height=380,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes"); }

function openWin2() { 
	myWin=open("","displayWindow","top=180,left=180,width=890,height=330,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes"); }

function closeWin() { close(); }

//////////////////////////////////////////////////////////////

//anti-spambot e-mail

function contactMe (theName, theHost, theContact)
{
  document.write("<a class='email' href=" + "mailto:" + theName + "@" + theHost + " onFocus='if(this.blur)this.blur();'" + ">" + theContact + "</a>");
}

function contactUs (theName, theHost, theContact)
{
  document.write("<a class='dtext' href=" + "mailto:" + theName + "@" + theHost + " onFocus='if(this.blur)this.blur();'" + ">" + theContact + "</a>");
}



