
$(document).ready(fixIETransparency);

function fixIETransparency() {
	if ($.browser.msie && $.browser.version < 7) {
		$(".logo, .btn_search").pngfix().css("zoom", 1);
	}
}

var newWin = null;
function popUp(strURL, strType, strHeight, strWidth) {
  if (newWin != null && !newWin.closed)
    newWin.close();
    var strOptions="";
  if (strType=="popup")
    strOptions="location=0,menubar=1,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0,height="+strHeight+",width="+strWidth;
  newWin = window.open(strURL, 'newWin', strOptions);
  newWin.focus();
}
//Function for expanding or collapsing a chosen tag in the XSL template
function expand(thistag) {
  if(document.getElementById(thistag)){
  
      $('.faqs div.editor').hide('slow'); 
          var see = '#'+thistag;
        $(see).show('slow');    
  
   // styleObj = document.getElementById(thistag).style;
  //  if (styleObj.display=='none') {
  //  styleObj.display = '';}
  //else {styleObj.display = 'none';}
  }
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
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";
    }
  }
}