var winNum = 0;


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('mozilla')) browser = "Mozilla"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "An unknown browser";

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 = "an unknown operating system";
}
	function setFlashHeight ( newH) {
	document.getElementById('flashid').style.height = newH+"px";
	document.getElementById('movie').style.height = newH+"px";

	if(browser=="Mozilla"){
		document.getElementById('flashid').style.height = newH+"px";
		document.getElementById('movie_embed').style.height =  newH+"px";
	
	
	}
	window.scroll(0,0);
}

function get_focus() {
      window.focus();
	}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}
 function OpenWindow(TheURL,TheName,features){
	  lft = (screen.width/2)-(W/2)
	  tp = (screen.height/2)-(H/2)-20
	  document.write(features)
      window.open(TheURL,TheName,features);
    }
	
	
function MM_findObj(n, d) { //v4.01
  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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
	
	
	function switchVisible(obj){
			var objV=MM_findObj(obj);
			if (objV.style.display=='none')
				objV.style.display='block'
			else
			     objV.style.display='none'
		}
	