//
// murjud.js
//	JavaScript definitions
//

// MJSEND - used to handle sending email

function mjsend ( nam1,nam2, subdom1,subdom2, dom, subj, alt )
{
var anchor, mail, to, colon, at, dot, subject1, subject2, endtag, image, param, altprefix, endanchor;
anchor = "<a href=\"";
mail = "mai";
to = "lt";
colon = "o:";
at = "@";
dot = ".";
subject1 = "\?sub";
subject2 = "ject=";
endtag = "\">";
image = "<img src=\"active_images/send_email.gif\"";
param = " border=\"0\" width=\"93\" height=\"23\" align=\"middle\"";
altprefix = " alt=\"";
endanchor = "</a>";
savedstatus = self.status;
document.write(anchor + mail + to + colon + nam1 + nam2 + at + subdom1 + subdom2 + dot + dom + subject1 +subject2 + subj + "\" onmouseover=\"self.status = \'" + alt + "\'; return true;\" onMouseOut=\"self.status = \'" + savedstatus + "\'; return true;" + endtag + image + param + altprefix + alt + endtag + endanchor);
}

//----------------------------------
// This group of scripts was written by Protoplasm
// http://www.geocities.com/ResearchTriangle/4279

// User-defined parameters...
var Text = "Two bedroom unit available for lease in February.";
var Speed = 60;

// internal parameters...
var Count = 0;
var timerID = null;
var TimerRunning = false;

var i = 0;
while (i ++ < 140)
Text = " " + Text;

function Scroll(){
window.status = Text.substring(Count++, Text.length);
if (Count == Text.length)
Count = 0;
timerID = setTimeout("Scroll()", Speed);
TimerRunning = true;
}

function Start(){
Stop();
Scroll();
}

function Stop(){
if(TimerRunning)
clearTimeout(timerID);
TimerRunning = false;
}

Start(); 

//----------------------------------


function changetitle()
{
if (top != self) top.document.title = document.title;
return true;
}

//----------------------------------

function addtofav( linkUrl, linkTitle )
{
if (!document.all) {
alert('Please hit ctrl-d to bookmark this page');
}
else external.AddFavorite(linkUrl,linkTitle);
return false;
}


