
	//if ((document.URL=='http://home.iprimus.com.au/jb_brown') || (document.URL=='http://home.iprimus.com.au/jb_brown/default.php') || (document.URL=='http://home.iprimus.com.au/jb_brown/propmgmt.php') || (document.URL=='http://home.iprimus.com.au/jb_brown/propsales.php') || (document.URL=='http://home.iprimus.com.au/jb_brown/contactus.php'))
  //	{
  //	if (document.referrer != 'http://www.tb-realestate.com.au')
	//		{
	//			window.location.href='http://www.tb-realestate.com.au';
	//		}
  //	}


// General variables

var winNSCSS = "style.css";
var winIECSS = "style.css";
var macIE5CSS = "style.css";
var macCSS = "style.css";

// *************************************************************
//  CLIENT_SIDE SNIFFER CODE
// *************************************************************
// convert all characters to lowercase to simplify testing
var agt=navigator.userAgent.toLowerCase();

// *** BROWSER VERSION ***
// Note: On IE5, these return 4, so use is_ie5up to detect IE5.
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);

// *** BROWSER TYPE ***
var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
            && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
            && (agt.indexOf('webtv')==-1));
var is_nav4up = (is_nav && (is_major >= 4));
var is_ie   = (agt.indexOf("msie") != -1);
var is_ie3  = (is_ie && (is_major < 4));
var is_ie4  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1) );
var is_ie4up  = (is_ie  && (is_major >= 4));
var is_ie5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
var is_ie5up  = (is_ie  && !is_ie3 && !is_ie4);

// *** PLATFORM ***
var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
var is_mac    = (agt.indexOf("mac")!=-1);

//  Select the appropriate stylesheet
if ((is_nav4up || is_ie4up) || (!is_nav && !is_ie)) {
  ChooseStyleSheet();
}



// Function to choose the style sheet for use based on the platform
// and browser version
function ChooseStyleSheet() {
  var styles = macCSS;
  if (is_win) {
	if (is_nav) {
      styles = winNSCSS;
	} else {
	  // Windows Netscape fonts need to be larger than those for IE
	  styles = winIECSS;
	}
  } else if (is_mac) {
      if (is_ie5up) {
	    // Default font settings for Mac IE5 match PC IE fonts
        styles = cssDir + macIE5CSS;
	  } else {
	    styles = macCSS;
	  }

  } else {
    // Default style = macCSS
	// Macintosh stylesheets have the largest font sizes, which
	// will ensure readability
	styles = macCSS;
  }
  document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + styles + "\">");
  return true;
}


if (document.images)
	{
		img0on = new Image();
		img0on.src="images/hom-on.gif";
		img1on = new Image();
		img1on.src="images/pro-on.gif";
		img2on = new Image();
		img2on.src="images/sal-on.gif";
		img3on = new Image();
		img3on.src="images/abo-on.gif";
		img4on = new Image();
		img4on.src="images/con-on.gif";
		img5on = new Image();
		img5on.src="images/pro-on.gif";

		imga1on = new Image();
		imga1on.src="images/admin-on.gif";
		imga2on = new Image();
		imga2on.src="images/stats-on.gif";
		imga3on = new Image();
		imga3on.src="images/logoff-on.gif";


		img0off = new Image();
		img0off.src="images/hom-off.gif";
		img1off = new Image();
		img1off.src="images/pro-off.gif";
		img2off = new Image();
		img2off.src="images/sal-off.gif";
		img3off = new Image();
		img3off.src="images/abo-off.gif";
		img4off = new Image();
		img4off.src="images/con-off.gif";
		img5off = new Image();
		img5off.src="images/pro-off.gif";

		imga1off = new Image();
		imga1off.src="images/admin-off.gif";
		imga2off = new Image();
		imga2off.src="images/stats-off.gif";
		imga3off = new Image();
		imga3off.src="images/logoff-off.gif";
	}


function imgOn(imgName)
	{
		if (document.images)
		{
			document[imgName].src = eval(imgName + "on.src");
		}
	}


function imgOff(imgName)
	{
		if (document.images)
		{
			document[imgName].src = eval(imgName + "off.src");
		}
	}

//Hide status bar msg II script- by javascriptkit.com
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use

function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus


