//<SPAN ID="id1" STYLE="position: absolute"> 



//<A HREF="link.html" CLASS="item" onMouseOver="swapColor('id1', 'Return to

// Front Page', this.href, 'item', 'highlight', true)">Return to Front

//Page</A> 



//</SPAN>



// Variables

var bName = navigator.appName;

var bVersion = parseInt(navigator.appVersion);

var NS4 = (bName == "Netscape" && bVersion >= 4);

var IE4 = (bName == "Microsoft Internet Explorer" && bVersion >= 4);



// Function 1

function swapColor(spName, text, URL, oldName, clName, over) 

{

	//alert(spName);

  if (bVersion < 4) 

    return;



  var str = "<A CLASS='" + clName + "' HREF='" + URL + "'";



  if (over) 

  {

    str += " onMouseOut=\"swapColor(\'" + text + "\', \'" + spName + "\', \'" + URL + "\', \'" + clName + "\', \'" + oldName + "\', false)\">";

  } else {

    str += " onMouseOver=\"swapColor(\'" + text + "\', \'" + spName + "\', \'" + URL + "\', \'" + clName + "\', \'" + oldName + "\', true)\">";

  }



  str += text + "</A>";

  display(spName, str); 

}





// function 2

function display(id, str) 

{

  if (NS4 || IE4) 

  { 

    if (NS4) 

    { 

      with (document[id].document) 

      {

        open(); 

        write(str); 

        close(); 

      }

    } else { 

      document.all[id].innerHTML = str; 

    }

  }

}



function getWindow(pic,webPage,theWidth,theHeight){

	var winStats='toolbar=no,location=no,directories=no,menubar=no,';

	winStats+='scrollbars=no,width=' + theWidth + ',height=' + theHeight;

	if (navigator.appName.indexOf("Microsoft")>=0){

		winStats+=',left=0,top=0';

		}

	else{

		winStats+=',screenX=0,screenY=0';

		}

	//alert(pic);

	if (pic==""){

		floater=window.open(webPage,"",winStats);

		}

	else{

		var picHeight=eval(theHeight-50);

		var picWidth=eval(theWidth-20);

		floater=window.open("","",winStats);

		floater.document.open();

		floater.document.write('<html><body>');

		floater.document.write('Click<a href=javascript:window.close()> here</a> to close.')

		floater.document.write('<img src="'+pic+'" align=center height='+picHeight+' width='+picWidth+'>');

		floater.document.write('</body></html>');

		floater.document.close();

		floater.focus();

		}

	}
