if(navigator.product == 'Gecko' && !(document.childNodes && !document.all && !navigator.taintEnabled && !accentColorName)) {
	// if any mozilla (not you, lying safari!)
	if(document.location.href.indexOf('english/') > -1) {
		document.write('<link rel="stylesheet" type="text/css" href="../ost-HI.css" />');
	} else {
		document.write('<link rel="stylesheet" type="text/css" href="ost-HI.css" />');
	}
}
if(window.opera) {
	// if opera
	if(document.location.href.indexOf('english/') > -1) {
		document.write('<link rel="stylesheet" type="text/css" href="../ost-OPERA.css" />');
	} else {
		document.write('<link rel="stylesheet" type="text/css" href="ost-OPERA.css" />');
	}
}

function initsound() {
	if(top.location != location) {	//in frame
		if(document.location.href.indexOf('english/') > -1) {
			document.getElementById('sound').firstChild.style.backgroundImage="url('../p/b_sound_off.gif')";
		} else {
			document.getElementById('sound').firstChild.style.backgroundImage="url('p/b_sound_off.gif')";
		}
	}
}

function togglesound() {
	if(top.location != location) {	//in frame
		top.location.href=document.location.href;
	} else {
		if(document.location.href.indexOf('english/') > -1) {
			window.location.href='../_sound.html?'+window.location.href;
		} else {
			window.location.href='_sound.html?'+window.location.href;
		}
	}
}


function over(o) {
	o = document.getElementById('menu_bg').childNodes[o];

	if(o.id.indexOf(document.body.id) == -1) { 

		setto = 0.2;

		if(o.filters) { // ie
			o.filters.alpha.opacity = setto * 100;
		} else { 	//	if(o.style.MozOpacity)
	 		o.style.MozOpacity = setto;
		} 

		//else if(o.style.KhtmlOpacity) {
		//	if(o.style.KhtmlOpacity != 0.3) { o.style.KhtmlOpacity = setto; }
		//} else if(o.style.opacity) {
		//	if(o.style.opacity != 0.3) { o.style.opacity = setto; }
		//}

	}
}


function out(o) {
	o = document.getElementById('menu_bg').childNodes[o];

	if(o.id.indexOf(document.body.id) == -1) { 

		setto = 0.1;

		if(o.filters) { // ie
			o.filters.alpha.opacity = setto * 100;
		} else { 	//if(o.style.MozOpacity)
	 		o.style.MozOpacity = setto;
		} 

		//else if(o.style.KhtmlOpacity) {
		//	if(o.style.KhtmlOpacity != 0.3) { o.style.KhtmlOpacity = setto; }
		//} else if(o.style.opacity) {
		//	if(o.style.opacity != 0.3) { o.style.opacity = setto; }
		//}

	}
}