/*tree*/
var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "Unknown";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "Unknown";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}


// Rev. 09/07/2003
function codepop( url ){
	window.open( url , "general", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=500,height=200,left=250,top=50");
	return false;
}
function previewpop( url ){
	window.open( url , "general", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
	return false;
}

function layoutchange(id) {
	var selectid=document.getElementById(id);
	var theframe=document.getElementById(someframe);
	var stylel=theframe.getElementById(layoutstyle);
	alert ("changed")
	return false;
}

function thechange() {
	var theSelect = document.getElementById("category");
	document.write(theSelect.value);
}
	

function Toggle(item) {
   obj=document.getElementById(item);
   visible=(obj.style.display!="none")
   key=document.getElementById("x" + item);
   if (visible) {
     obj.style.display="none";
     key.innerHTML="<img src='http://www.myspacesources.com/images/bullet_plus.gif' hspace='0' vspace='0' border='0'>";
   } else {
      obj.style.display="block";
      key.innerHTML="<img src='http://www.myspacesources.com/images/bullet_minus.gif' hspace='0' vspace='0' border='0'>";
   }
}

function display(obj,id1,id2) {
txt = obj.options[obj.selectedIndex].value;
document.getElementById(id1).style.display = 'none';
document.getElementById(id2).style.display = 'none';
if ( txt.match(id1) ) {
document.getElementById(id1).style.display = 'block';
}
if ( txt.match(id2) ) {
document.getElementById(id2).style.display = 'block';
}
}