<!--

//popup
function openBroker() {
	var myWin=window.open("select-broker.html","Broker","status=no,scrollbars=no,resize=no,width=500,height=600");
	if (! myWin) {
	alert("A popup blocker was detected. Please\n" +
          "disable popup blocker to open window.");
  	}
}

//includes
function topnav()
{
   document.write('<a href="index.html">HOME</a><a href="login.asp">MEMBER LOGIN</a><a href="contact.asp">CONTACT US</a>');
}

function footer()
{
   document.write('<br /><h4 style="color:#99ccff;"><a href="http://www.thebigideagroup.com" target="_blank" style="color:#99ccff;text-decoration:none;">Designed and Developed by The Big Idea Group</a></h4>');
}

function flash()
{
   document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="742" height="135" id="tdl-header" align="middle">');
   document.write('<param name="allowScriptAccess" value="sameDomain" />');
   document.write('<param name="allowFullScreen" value="false" />');
   document.write('<param name="movie" value="tdl-header.swf" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" />	<embed src="tdl-header.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="742" height="135" name="tdl-header" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
   document.write('</object>');
}

// mouseover
function reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);

function findObj(n, d) { //v4.0
  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=findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function closeAll(){ }



function preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

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

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


//show hide content

function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
}
function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}

function NewSwapContent(d, off, on) {
  if(d.length < 1) {
    return;
  }
  
  var obj = document.getElementById(d);
  // swap the visibility of the object.
  if(obj != null) {
    if(obj.style.display == "none") {
      obj.style.display = "block";
    }
    else {
      obj.style.display = "none";
    }
  }

  // now turn off the old one and turn on the new one.  
  document.getElementById(off).style.display="none";
  document.getElementById(on).style.display="block";
}



// clear form

 function doclear(theText) {
     if (theText.value == theText.defaultValue) {
         theText.value = ""
     }
 }


// -->

