var bc_count=0;
    var bc_collection="";
var isValidBrowser =document.getElementById;


var lastopen = "";
  var sitemapwin;
  var bver = "nn2"; 
  var browserName = navigator.appName;
  var browserVersion = parseInt(navigator.appVersion);
  var isIE = false;
  var isNN = false;
  var isDOM = false;
  var isDomIE = false;
  var isDomNN = false;
  var cfok = false
  var layerok = false;
  var dynimok = false;

  var isIE = browserName.indexOf("Microsoft Internet Explorer" )==-1?false:true;
  var isNN = browserName.indexOf("Netscape")==-1?false:true;
  var isOpera = browserName.indexOf("Opera")==-1?false:true;
  var isDOM = document.getElementById?true:false;
  var isDomNN = document.layers?true:false;
  var isDomIE = document.all?true:false;
    
  if ( isNN && browserVersion >= 3) bver = "nn3";
  if ( isNN && browserVersion >= 4) bver = "nn4";
  if ( isNN && browserVersion >= 5) bver = "nn5";
  if ( isIE && browserVersion >= 3) bver = "ms3";
  if ( isIE && browserVersion >= 4) bver = "ms4";
  if ( isIE && browserVersion >= 5) bver = "ms5";
  if ( isOpera && browserVersion >= 5) bver = "op5";

  if ( isNN && browserVersion>=3 ) dynimok=true;
  if ( isIE && browserVersion>=4 ) dynimok=true;
  if ( isNN && browserVersion>=4 ) layerok=true;
  if ( isIE && browserVersion>=4 ) layerok=true;
  if ( isOpera && browserVersion>=5 ) layerok=true;
  
   
    function doMenu(inId){
    	 if(!isValidBrowser){return(false);}
        var theDiv =document.getElementById(inId);
        if(theDiv){
            theDiv.className="MenuHighlight";
        }
    }
    function showHiddenBacklinks(){
        var c=0;
        var theDiv=document.getElementById("bc_container");
        if(theDiv.hasChildNodes()){
            for(var i=0;i<theDiv.childNodes.length;i++){
                if(theDiv.childNodes[i].id.indexOf("bcinvisi")>-1){
                    
                     theDiv.childNodes[i].style.display="inline";
                     //theDiv.childNodes[i].style.position="absolute";
                    //theDiv.childNodes[i].style.top=54+c*18;
                    c+=1;
                }
            }
        }
    }
    function hideHiddenBacklinks(){
        var theDiv=document.getElementById("bc_container");
        if(theDiv.hasChildNodes()){
            for(var i=0;i<theDiv.childNodes.length;i++){
                if(theDiv.childNodes[i].id.indexOf("bcinvisi")>-1){
                    theDiv.childNodes[i].style.display="none";
                }
            }
        }
    }
function highlight(id,on){
		 if(!isValidBrowser){return(false);}
        var color=(on==true)?"#1b528c":"#113388"
        var theDiv=document.getElementById(id);
			if(theDiv){
				if(theDiv.getAttribute("class")=="Menu" || theDiv.getAttribute("className")=="Menu"){
           			 theDiv.style.backgroundColor=color;
				}
			}
    }
	
	


function nospammail(name,domain,toplev,text)
{
  if (text)
	    document.write('<a href="mailto:'+name+'@'+domain+'.'+toplev+'" class="alink">'+text+'</a>');
  else

    document.write('<a href="mailto:'+name+'@'+domain+'.'+toplev+'" class="alink" >'+name+'@'+domain+'.'+toplev+'</a>');
}




    function openmap(startpage) {
	    if (bver == "nn4" || bver == "nn5" || bver == "op5") {
		    sitemapwin=window.open(startpage,'polzinsitemap','resizable=no,scrolling=no,status=no,location=no,menubar=no,toolbar=no,width=300,height=400');
		    sitemapwin.focus();
	    }
	    if (bver == "ms4" || bver == "ms5" ) {
		    sitemapwin=window.open(startpage,'polzinsitemap','resizable=no,scrolling=no,status=no,location=no,menubar=no,toolbar=no,width=300,height=388');
		    setTimeout('sitemapwin.focus()',200);
	    }
    }
	
    function openorfocus ( startpage ) {
	  this.window.name = "111";
	    if ( typeof( sitemapwin ) != 'undefined' ) { 
		    if ( ! sitemapwin.closed && startpage==lastopen ) sitemapwin.focus();
		    else openmap( startpage );
	    }
	    else openmap( startpage );
      lastopen = startpage
    } 
	
    function closesitemap() {
	    if ( typeof( sitemapwin ) != 'undefined' )
		    if ( ! sitemapwin.closed )
			    sitemapwin.close()
    }

	
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-22581127-1']);
  _gaq.push(['_setDomainName', 'none']);
  _gaq.push(['_setAllowLinker', true]);
  _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);
  })();
