function checkBrowser() {
  browsername = navigator.appName;
  var colsetobj = window.parent.document.getElementById("framecolset");
  if (colsetobj != null) {
	  if (browsername == "Microsoft Internet Explorer") {
	    colsetobj.cols = "315,*";	
	  } else {
	    colsetobj.cols = "330,*";		
	  }
	}
}

function initPage(obj) {
  var tabrow = window.parent.frames["navmenu"].document.getElementById("tabtoolbar");
  if ( tabrow != null ) {
    changeTabStatus(tabrow, document.title);      	
  }
}

function setPage(obj) {
  var cObj = document.getElementById("contentarea");
  if (cObj) {
    cObj.style.height = document.body.clientHeight - 80;
    cObj.style.width = document.body.clientWidth - 5;
  }  
}

function changeTabStatus(obj, selectedid) {
  
  var col = obj.getElementsByTagName("DIV");
  // reset status
  for (i=0;i<col.length;i++) {
    if ( col[i].id != "navresult" ) {
      col[i].className = "tab";
    } else {
      col[i].className = "tabresult";
    }
  }
  
  // change status	
  var elem = window.parent.frames["navmenu"].document.getElementById(selectedid);
  if (elem != null) {
    if ( elem.id != "navresult" ) {   	
      elem.className = "tab_active";	
    } else {
      elem.className = "tabresult_active";
    }	
  }
}

function resizeObject() {
  var navBarObj = this.NavBar_prefilters;
  if (navBarObj != null) {  
    navBarObj.CssClass = "NavBar";  
  }	
}

function clearPrevHistory() {
  
}

var _gaq = _gaq || [];
_gaq.push(["_setAccount", "UA-16835075-1"]);  
_gaq.push(["_trackPageview"]);
      
(function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();