// code to enable png transparency on all elements in IE6/PC //
//if(document.all && document.styleSheets && document.styleSheets[0] && document.styleSheets[0].addRule){
//	document.styleSheets[0].addRule('*', 'behavior: url(_styles/iepngfix.htc)');
//}

// function to enable standards compliant 'rel="external"' to be used instead of 'target="_blank"' //
function externalLinks(){
	if(!document.getElementsByTagName) return;
		var anchors = document.getElementsByTagName("a");
		for(var i=0; i<anchors.length; i++){
			var anchor = anchors[i];
			if(anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") anchor.target = "_blank";
		}
}
window.onload = externalLinks;

function openWin(theURL,winName,features, myWidth, myHeight, isCenter) {
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
		features+='toolbar=0,menubar=0,scrollbars=1,resizable=0,status=0,location=0,directories=0,copyhistory=0';
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
	return false;
}

function blocking(nr)
{
	if (document.layers)
	{
		current = (document.layers[nr].display == 'none') ? 'block' : 'none';
		document.layers[nr].display = current;
	}
	else if (document.all)
	{
		current = (document.all[nr].style.display == 'none') ? 'block' : 'none';
		document.all[nr].style.display = current;
	}
	else if (document.getElementById)
	{
		vista = (document.getElementById(nr).style.display == 'none') ? 'block' : 'none';
		document.getElementById(nr).style.display = vista;
	}
}