<!--

opera = (navigator.userAgent.indexOf('Opera') >= 0)? true : false;
dom = (document.getElementById)? true : false;
ie4 = (document.all && !dom)? true : false;
nn4 = (document.layers)? true : false;
isLoaded = false;

function showHide (id){
  //display the section if it's not displayed; hide it if it is displayed
  if (document.all){
    if(document.all["q_block_"+id].style.display == 'none'){
      document.all["q_block_"+id].style.display = 'block';
      document.all["a_block_"+id].style.display = 'none';
    } else {
      document.all["q_block_"+id].style.display = 'none';
      document.all["a_block_"+id].style.display = 'block';
    }
    return false;
  } else if (document.getElementById){
    if(document.getElementById("q_block_"+id).style.display == 'none'){
      document.getElementById("q_block_"+id).style.display = 'block';
      document.getElementById("a_block_"+id).style.display = 'none';
    } else {
      document.getElementById("q_block_"+id).style.display = 'none';
      document.getElementById("a_block_"+id).style.display = 'block';
    }
    return false;
  }
}

document.writeln("<style>h3 { font-size: 100%; margin-top: 0px; margin-bottom: 5px; }</style>");
function showElem(elemId) {
  if (dom) document.getElementById(elemId).style.visibility = "visible";
    else if (ie4) document.all[elemId].style.visibility = "visible";
      else if (nn4) document.layers[elemId].visibility = "show";
}

function hideElem(elemId) {
  if (dom) document.getElementById(elemId).style.visibility = "hidden";
    else if (ie4) document.all[elemId].style.visibility = "hidden";
      else if (nn4) document.layers[elemId].visibility = "hide";
} 

var newwin;
//Begin Pop up Script
function popUp(wpath,wname,wwidth,wheight) {
    if (newwin) {newwin.close();}
	var posX=Math.round((screen.width-wwidth)/2);
	var posY=Math.round((screen.height-wheight)/2);
	var posCode = (nn4) ? "screenX="+posX+",screenY="+posY : "left="+posX+",top="+posY;
	newwin = window.open(wpath,wname,"toolbar=no,directories=no,menubar=no,scrollbars=no,width=" + wwidth + ",height=" + wheight + ",resizable=no,"+posCode);
	newwin.focus();
	return;
}
//End Pop up Script 

function rollOver(defaultImage, lightedUp) {
	this.def = new Image();
	this.def.src = defaultImage;
	this.light = new Image();
	this.light.src = lightedUp;
	return this
}
ros = new Array()
ros['tm-legals-Img'] = new rollOver("/images/tm-legals.gif","/images/tm-legals-over.gif");
ros['tm-registration-Img'] = new rollOver("/images/tm-registration.gif","/images/tm-registration-over.gif");
ros['tm-bankruptcy-Img'] = new rollOver("/images/tm-bankruptcy.gif","/images/tm-bankruptcy-over.gif");
ros['tm-audit-Img'] = new rollOver("/images/tm-audit.gif","/images/tm-audit-over.gif");
ros['tm-valuation-Img'] = new rollOver("/images/tm-valuation.gif","/images/tm-valuation-over.gif");
ros['tm-foreign-Img'] = new rollOver("/images/tm-foreign.gif","/images/tm-foreign-over.gif");
ros['tm-working-Img'] = new rollOver("/images/tm-working.gif","/images/tm-working-over.gif");

ros['tm-corporate-Img'] = new rollOver("/images/tm-corporate.gif","/images/tm-corporate-over.gif");
ros['tm-legalsup-Img'] = new rollOver("/images/tm-legalsup.gif","/images/tm-legalsup-over.gif");
ros['tm-employee-Img'] = new rollOver("/images/tm-employee.gif","/images/tm-employee-over.gif");
ros['tm-auditacc-Img'] = new rollOver("/images/tm-auditacc.gif","/images/tm-auditacc-over.gif");
ros['tm-russian-Img'] = new rollOver("/images/tm-russian.gif","/images/tm-russian-over.gif");

function init() {
	isLoaded = true;
}
function lightUp(which) {
	if (document.images)	if (ros[which+"-Img"]) document.images[which+"-Img"].src = ros[which+"-Img"].light.src;
}
function lightDn(which) {
	if (document.images)	if (ros[which+"-Img"]) document.images[which+"-Img"].src = ros[which+"-Img"].def.src;
}

function Design(whitch, elemId) {
showElem(elemId);
if (document.images) document.images["Design-Img"].src = "/images/design_"+whitch+".jpg";
}

function doWorldwide(f) {
	var url2Go = f.worldwide.options[f.worldwide.selectedIndex].value;
	if ( url2Go ) window.location.href = 'http://' + url2Go
	return false
}
function doSearch() {
	if ( document.search.text.value ) { 
		document.search.action='/search/index.html'
		return true 
	}
	else 
		return false
}
function doCountry(f,section) {
	var url2Go = f.countries.options[f.countries.selectedIndex].value;
	if ( url2Go ) window.location.href = 'http://' + url2Go + '/' + section + '/'
	return false
}

onload=init;
//-->

