function w(s){document.write(s);}

function browserCheck(){
	var xBrowser = navigator.appName;
	var xVersion = parseInt(navigator.appVersion);
	var isNS4x = (xBrowser=="Netscape"&&xVersion<=4);
	var isIE3x = (xBrowser=="Microsoft Internet Explorer"&&xVersion<=3)
	if (isIE3x || isNS4x){
		window.location.href ="/browsersupport.htm";
	}
}

function trimString (str) {
	return str.replace(/^\s+/g,'');
}

function useQuicklinks(select){
	if(select.options[select.selectedIndex].text)window.location.href = select.value;
}

browserCheck();

function writeFlash(flash, width, height) {
	document.write('<object class="flash" type="application/x-shockwave-flash" data="/flash/'+flash+'" width="'+width+'" height="'+height+'">'
	+'<param name="movie" value="/flash/'+flash+'">'
	+'<param name="quality" value="best">'
	+'<param name="menu" value="false">'
	+'<param name="wmode" value="transparent">'
	+'</object>');
}

function flipSideBox(id){
	var className = document.getElementById(id).className;
	var closed_re = /(?: |^)closed(?:$| )/;
	if(className.match(closed_re)){
		className = className.replace(closed_re, '');
	}else{
		className = className+' closed';
	}
	document.getElementById(id).className = className;
	return false;
}

