// browser detection

function browser_css( ) {
	if ( navigator.product == 'Gecko' ){
		document.write('<link rel = "stylesheet" type = "text/css" href = "../scripts/stylefx.css">');
    }

	else if ( navigator.userAgent.toLowerCase().indexOf('chrome') > -1 ) {
	    document.write('<link rel = "stylesheet" type = "text/css" href = "../scripts/styleChrome.css">');
	    }
	else {
		document.write('<link rel = "stylesheet" type = "text/css" href = "../scripts/style.css">');
	}
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//// arrows

var arrowout=new Image();
arrowout.src="/images/bluearrows.gif";
var arrowover=new Image();
arrowover.src="/images/bluearrows-o.gif";


//// expand / collapse

imgout=new Image(9,9);
imgin=new Image(9,9);
imgout.src="/images/plus.gif";
imgin.src="/images/minus.gif";

function filter(imagename,objectsrc){
	if (document.images){
		document.images[imagename].src=eval(objectsrc+".src");
	}
}

function shoh(id) { 
	
	if (document.getElementById) { // DOM3 = IE5, NS6
		if (document.getElementById(id).style.display == "none"){
			document.getElementById(id).style.display = 'block';
			filter(("img"+id),'imgin');			
		} else {
			filter(("img"+id),'imgout');
			document.getElementById(id).style.display = 'none';			
		}	
	} else { 
		if (document.layers) {	
			if (document.id.display == "none"){
				document.id.display = 'block';
				filter(("img"+id),'imgin');
			} else {
				filter(("img"+id),'imgout');	
				document.id.display = 'none';
			}
		} else {
			if (document.all.id.style.visibility == "none"){
				document.all.id.style.display = 'block';
			} else {
				filter(("img"+id),'imgout');
				document.all.id.style.display = 'none';
			}
		}
	}
}


