// JavaScript Document
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 MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}

theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}

//flash activation

var bo_ns_id = 0;

function startIeFix(){
  if(isIE()){
  document.write('<div id="bo_ns_id_' + bo_ns_id + '"><!-- ');
  }
}

function endIeFix(){
  if(isIE()){
   document.write('</div>');

   var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++);
   var theCode = theObject.innerHTML;

   theCode = theCode.substring(4 ,9+theCode.indexOf("</object>"))
   document.write(theCode);
   }
}

function isIE(){
  // only for Win IE 6+
  // But not in Windows 98, Me, NT 4.0, 2000

  var strBrwsr= navigator.userAgent.toLowerCase();

  if(strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0){
 
    if(parseInt(strBrwsr.charAt(strBrwsr.indexOf("msie")+5)) < 6){
      return false;
    }
    if(strBrwsr.indexOf("win98") > -1 ||
    strBrwsr.indexOf("win 9x 4.90") > -1 ||
    strBrwsr.indexOf("winnt4.0") > -1 ||
    strBrwsr.indexOf("windows nt 5.0") > -1)
    {
      return false;
    }
      return true;
  }
  else
  {
    return false;
  }
}


function showMOffice()  {
	
		if(document.getElementById("moffice").style.display = 'none'){
			document.getElementById("foffice_txt").style.display = 'none';
			document.getElementById("moffice").style.display = 'block';
		}  
}

function hideMOffice()  {
	
		if(document.getElementById("moffice").style.display = 'block'){
			document.getElementById("moffice").style.display = 'none';
			document.getElementById("foffice_txt").style.display = 'block';
		}  
}

function showFOffice()  {
	
		if(document.getElementById("foffice").style.display = 'none'){
			document.getElementById("moffice_txt").style.display = 'none';
			document.getElementById("foffice").style.display = 'block';
		}  
}

function hideFOffice()  {
	
		if(document.getElementById("foffice").style.display = 'block'){
			document.getElementById("foffice").style.display = 'none';
			document.getElementById("moffice_txt").style.display = 'block';
		}  
}


