//document.title = "Genesis RealtySites - Your Site...Your Style!";

// these functions compiled from open sources

// add only browsersafe/approved scripts in this served routine

// to avoid error alerts

// find a bug? if you have a solution - we will credit you - send it

//







// this stops errors

// unhash to block error catching for testing

function stopError() {

//alert('error');

		return true;

//				return false;

}

window.onerror = stopError;



// end error stopper



// begin window close

function closehelp(){

            window.close();

 }

//end windo close









function mOver(navTD, caption)

{

        if (!navTD.contains(event.fromElement))

        {

                navTD.style.backgroundColor='#C4D9BB';

                window.status=caption;

                navTD.style.cursor='hand';

        }

}



function mOut(navTD, caption)

{

        if (!navTD.contains(event.toElement))

        {

                navTD.style.backgroundColor='#FFFFFF';

                window.status=caption;

                navTD.style.cursor='default';

        }

}



// - dynamic drop menus



function sel(UrlAdress){

UrlAdress=document.frm.com[document.frm.com.selectedIndex].value;

if (UrlAdress !='0')document.location.href=UrlAdress;

}





// - safepops hardcoded to upper 80-80

popupp = null;

function safepop(url,width,height) {

        window.open(url,'fulltext','toolbar=no,menubar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height+',left=80,top=80');

        if (popupp != null) {

                if (popupp.opener == null) {

                        popupp.opener = self;

                        }

                popupp.location.href = url;

        }

}

// end safepops



// begin check before reset function

function beSure(theForm){

  if (window.confirm("Do you really want to RESET this form?")) {

  return (true);

  } else {

    return (false);

}

}

// end check before reset function



















// begin dreamweaver call javascript eval function

function MM_callJS(jsStr) { //v2.0

  return eval(jsStr)

}

// END dreamweaver call javascript eval function

// begin Dreamweaver jumper function

function MM_jumpMenu(targ,selObj,restore){ //v3.0

  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

  if (restore) selObj.selectedIndex=0;

}

// end Dreamweaver jumper function

// begin Dreamweaver msgstatus

function MM_displayStatusMsg(msgStr) { //v1.0

  status=msgStr;

  document.MM_returnValue = true;

}

// end Dreamweaver msgstatus







// begin miprint

function miPrint() {

  if (window.print) {

    if (confirm("Print This Page Now?")) {

      window.print();

    }

if(!window.print){alert("Your Browser is too old to automatically print this page.  To print this page you must use your Menu on your Browser or Right-Click your Mouse and select Print.")



			}

  }

}

// end miprint



// begin RightClickMenu



function showmenuie5(){

		var rightedge=document.body.clientWidth-event.clientX

		var bottomedge=document.body.clientHeight-event.clientY

		if (rightedge<ie5menu.offsetWidth)

			ie5menu.style.left=document.body.scrollLeft+event.clientX-ie5menu.offsetWidth

		else

			ie5menu.style.left=document.body.scrollLeft+event.clientX

		if (bottomedge<ie5menu.offsetHeight)

			ie5menu.style.top=document.body.scrollTop+event.clientY-ie5menu.offsetHeight

		else

			ie5menu.style.top=document.body.scrollTop+event.clientY

		ie5menu.style.visibility="visible"

		return false

}

function hidemenuie5(){

		ie5menu.style.visibility="hidden"

}

function highlightie5(){

		if (event.srcElement.className=="menuitems"){

			event.srcElement.style.backgroundColor="highlight"

			event.srcElement.style.color="white"

		}

}

function lowlightie5(){

		if (event.srcElement.className=="menuitems"){

			event.srcElement.style.backgroundColor=""

			event.srcElement.style.color="white"

		}

} 

function jumptoie5(){

		if (event.srcElement.className=="menuitems"){

			if (event.srcElement.url != ''){

				if (event.srcElement.getAttribute("target")!=null)

					window.open(event.srcElement.url,event.srcElement.getAttribute("target"))

				else

					window.location=event.srcElement.url

			}

		}

}

//  end rightclick stuff



// begin add to favs

function AddToFaves_hp(){

	var is_4up = parseInt(navigator.appVersion);

	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;

	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;

	var thePage = location.href;

	if (thePage.lastIndexOf('#')!=-1)

		thePage = thePage.substring(0,thePage.lastIndexOf('#'));

	if (is_ie && is_4up && !is_mac) 

		window.external.AddFavorite(thePage,document.title);

	else if (is_ie || document.images)

		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');

	//booker_hp.focus();

	}



if (window.name=='booker_'){

	var pre_fix = document.images? '<BR>':'';

	document.write(pre_fix + '<P align="center">'

	+ 'Use the menu or ctrl/cmd-D now <BR>to bookmark the page then <BR>'

	+ '<A href="javascript:window.close();">close this window</A></p>'

	+ '<P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P>');

	}

// end add to favs



//  this gets user stuff

function initUserStuff(){

// don't use var otherwise it is a local var and can't be used later

var versionIs = parseInt(navigator.appVersion);

//alert("versionIs= "+versionIs+"!");







var xy = navigator.appVersion;

xz = xy.substring(0,4);



// use these instead

thisAppIs = navigator.appName;

thisAppCodeIs = navigator.appCodeName;

thisVersionIs = xz;

thisPlatIs = navigator.platform;

	if (navigator.javaEnabled()) {

		thisJavEnabIs = "Yes";

		}else {

		thisJavEnabIs = "No";

		}

thisScreeWidIs = screen.width;

thisScreeHeiIs = screen.height;

}



function printUserStuff(){

//document.write("<table ><tr><td class=tablecontent4>");

//document.write("<b>", thisAppIs,"</b>");

//document.write("</td></tr><tr><td class=tablecontent4>");

//document.write("<table ><tr>");

//document.write("<td class=tablecontent4>Code Name: </td><td class=tablecontent4>");

//document.write("<b>", thisAppCodeIs,"</td></tr>");

//document.write("<tr><td class=tablecontent4>Version: </td><td class=tablecontent4>");

//document.write("<b>",thisVersionIs,"</td></tr>");

//document.write("<tr><td class=tablecontent4>Platform: </td><td class=tablecontent4>");

//document.write("<b>", thisPlatIs,"</td></tr>");

//document.write("<tr><td class=tablecontent4>Pages Viewed: </td><td class=tablecontent4>");

//document.write("<b>", history.length," </td></tr>");

//document.write("<tr><td class=tablecontent4>Java enabled: </td><td><b>");

//document.write("<b>",thisJavEnabIs,"</td></tr>");

//document.write("<tr><td class=tablecontent4>Screen Resolution: </td><td class=tablecontent4>");

//document.write("<b>",thisScreeWidIs," x ",thisScreeHeiIs,"</td></tr>");

//document.write("</table></tr></td></table>");

document.write("<table ><tr><td class=tablecontent4><b>Your Browser Stats<br><tr><td class=tablecontent4>");

document.write("<b>Browser:</b><br>",thisAppIs,"<br>");

document.write("<b>Code Name:</b><br>",thisAppCodeIs,"<br>");

document.write("<b>Version:</b><br>",thisVersionIs,"<br>");

document.write("<b>Platform:</b><br>",thisPlatIs,"<br>");

document.write("<b>Java enabled:</b><br>",thisJavEnabIs,"<br>");

document.write("<b>Screen Width:</b><br>",thisScreeWidIs,"<br>");

document.write("<b>Screen Height:</b><br>",thisScreeHeiIs,"<br>");

//	if (thisVersionIs <= 5 ) {

//document.write("<b>Update Needed?:</b><br>YES!<br>");

//		}else {

//document.write("<b>Update Needed?:</b><br>No!<br>");

//		}



document.write("</td></tr></table>");

}





function setUserData(formOne) {



//alert(formOne);

thisScreeWidIs = screen.width;

thisScreeHeiIs = screen.height;

formOne.ScreenWidth.value = thisScreeWidIs;

formOne.ScreenHeight.value = thisScreeHeiIs;

//formOne.name.value = "asas";

formOne.is_nav.value = is_nav;

formOne.is_nav4up.value = is_nav4up;

formOne.is_nav6up.value = is_nav6up;

formOne.is_ie.value = is_ie;

formOne.is_ie5up.value = is_ie5up;

formOne.is_aol.value = is_aol;

formOne.is_opera.value = is_opera;

formOne.is_js.value = is_js;

formOne.is_win.value = is_win;

formOne.is_mac.value = is_mac;

}



function checkTheVersion() {

	initUserStuff();

	var checkVer = 5;

	var thisOne = roundOff(thisVersionIs);

//	if (thisOne <= checkVer ) {

//	alert("We have detected that you are not using the latest version of your browser.  There are many reasons to upgrade your browser, but most importantly for security reasons.  On this page, you will find links to update your browser for free. We have detected that your are running Version "+thisOne+" of your browser and we are recommending an upgrade to at least Version "+checkVer+" .");

//	}

}





function roundOff(value)

{

        value = "" + value

        precision = 2;

        var whole = "" + Math.round(value * Math.pow(10, precision));

        var decPoint = whole.length - precision;

        if(decPoint != 0)

        {      result = whole.substring(0, decPoint);

                result += ".";

                result += whole.substring(decPoint, whole.length);

        }

        else

        { result = whole; }

        return result;

}









//end of get user stuff

//

//

// begin fireworks

   

      

      var ver  = navigator.appVersion;

      var dom  = document.getElementById ? 1 : 0;

      var ie5  = (ver.indexOf("MSIE 5") > -1 && dom) ? 1 : 0;

      var n  = (document.layers);

      var ie = (document.all);

      

      var sparksAflyin = 0;

      var totalSparks = 0;

      var sparksOn = 1;

      function initMouseEvents() {

      document.onmousedown = mouseDown;

      if (n) document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE);

      }

      function mouseDown(e) {

      if (sparksOn) {

      var mousex = (n) ? e.pageX : event.x+document.body.scrollLeft;

      var mousey = (n) ? e.pageY : event.y+document.body.scrollTop;

      if (!sparksAflyin) {

      for (var k = 0; k <= 9; k++)

         eval('SHOW("sDiv'+k+'")');

      sparksAflyin = 1;

      totalSparks = 0;

      for(i = 0;i <= 9; i++)

      eval('moveTo('+i+',0,'+mousex+','+mousey+')');

            }

         }

      }

      function moveTo(i,j, mousex, mousey){

      if (j < eval('anim_'+i+'_x.length') ){

      var tempx = eval('anim_'+i+'_x[j]+mousex');

      var tempy = eval('anim_'+i+'_y[j]+mousey');

      if (ie) {

      if(tempy+30 > (document.body.offsetHeight+document.body.scrollTop))

      tempy = document.body.offsetHeight+document.body.scrollTop-30;

      if(tempx+30 > (document.body.offsetWidth+document.body.scrollLeft))

      tempx = document.body.offsetWidth+document.body.scrollLeft-30;

      eval('document.all.sDiv'+i+'.style.left = tempx;');

      eval('document.all.sDiv'+i+'.style.top  = tempy;');

      }

      if (n) {

      eval('document.layers.sDiv'+i+'.left = tempx;');

      eval('document.layers.sDiv'+i+'.top  = tempy;');

      }

      j++;

      //  timeout: 50 = fireworks speed, larger number = slower speed

          setTimeout("moveTo("+i+","+j+","+mousex+","+mousey+")",50);

      }

      else {

      eval('HIDE("sDiv'+i+'")');

      totalSparks++;

      }

      if (totalSparks == 10) {

      sparksAflyin = 0;

      totalSparks  = 0;

         }

      }

      function SHOW(divName){

      if (document.all)

      eval('document.all.'+divName+'.style.visibility = "visible";');

      else if (document.layers)

      eval('document.layers["'+divName+'"].visibility = "visible";');

      }

      function HIDE(divName){

      if (document.all)

      eval('document.all.'+divName+'.style.visibility = "hidden";');

      else if (document.layers)

      eval('document.layers["'+divName+'"].visibility = "hide";');

      }

      anim_0_x=new Array(20,20,10,0,0,0,0,0,0,0,0,0);

      anim_0_y=new Array(-20,-40,-60,-80,-60,-40,-20,0,20,40,60,80);

      anim_1_x=new Array(20,20,17,36,60,78,90,92,93,98,108,120,133,152,181);

      anim_1_y=new Array(-20,-20,-33,-38,-38,-27,-2,25,51,84,113,141,162,212,253);

      anim_2_x=new Array(20,20,2,3,4,5,6,7,8,9,10,12,13,15,18);

      anim_2_y=new Array(-20,-20,-33,-38,-38,-27,-2,25,51,84,113,141,162,212,253);

      anim_3_x=new Array(-20,-20,-2,-1,7,10,18,35,60,102,94,94,93,97,108,111,117,127);

      anim_3_y=new Array(-20,-25,-64,-89,-104,-150,-173,-197,-213,-199,-151,-101,-66,-17,27,87,140,189);

      anim_4_x=new Array(-20,-20,-10,-39,-30,-69,-64,-138,-154,-200,-181,-209,-191,-207,-203,-213,-202,-221,-211);

      anim_4_y=new Array(-20,-20,-28,-51,-79,-100,-135,-154,-193,-183,-149,-134,-89,-60,8,51,107,157,201);

      anim_5_x=new Array(-20,-29,-51,-72,-105,-133,-164,-189,-209,-229,-247,-270,-279,-282,-283,-283,-285,-286,-288);

      anim_5_y=new Array(-20,-55,-86,-116,-154,-183,-205,-217,-217,-198,-169,-120,-44,-8,40,87,144,190,248);

      anim_6_x=new Array(-20,-20,-7,14,44,79,143,186,217,226,234,244,250,259,265,274);

      anim_6_y=new Array(-20,-21,-72,-113,-139,-166,-188,-181,-126,-68,-3,54,134,187,215,257);

      anim_7_x=new Array(20,20,-3,-9,-13,-27,-33,-44,-54,-66,-77,-95,-107,-136,-150,-160,-164,-168,-171,-172,-172,-176,-175);

      anim_7_y=new Array(-20,-26,-43,-63,-89,-116,-145,-169,-201,-222,-240,-253,-254,-245,-220,-195,-160,-124,-81,-53,-26,19,68);

      anim_8_x=new Array(-20,20,-35,39,0,45,-1,24,-15,14,-20,35,-18,38,-11,16,49,64,81,93,100,103,109);

      anim_8_y=new Array(-20,-20,-32,-42,-62,-76,-89,-107,-132,-147,-173,-180,-192,-209,-236,-193,-119,-73,-24,51,95,130,188);

      anim_9_x=new Array(-20,-51,-89,-110,-165,-191,-228,-240,-259,-271,-277,-281,-287);

      anim_9_y=new Array(-20,-20,-35,-37,-34,-16,10,47,105,150,189,227,273);

// end of fireworks

//-->

