$().ready(function(){	
 $("a:not([href*=" + (document.location.hostname).replace('www.','') + "])").not("[href^=/]").not("[href^=mailto]").not("[href^=#]").filter("[class=txt]").addClass('external');
 $("a[href$='.pdf']").addClass('pdf');
 $('.content-table').children('tbody').children('tr').hover(function(){$(this).addClass('background-grey');},function(){$(this).removeClass('background-grey');});
 });

function openWin(page, width, height){
 if (typeof(width) == 'undefined') w = 0; else w = 20;
 if (typeof(height) == 'undefined') h = 0; else h = 70;
 width = width || 900 + w;
 height = height || 700 + h;
 nWnd = window.open(page, 'page', 'width=' + width + ', height=' + height  + ', status=no, toolbar=no, scrollbars=yes, resizable=yes, top=30, left=5');
 nWnd.focus();
}

function closeWin(){
 window.close();
}

function addBookmark(url, title){
 if (!url) url = location.href;
 if (!title) title = document.title;
 //Gecko
 if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel (title, url, "");
 //IE4+
 else if (typeof window.external == "object") window.external.AddFavorite(url, title);
 //Opera7+
 else if (window.opera && document.createElement)
 {
  var a = document.createElement('A');
  if (!a) return false; //IF Opera 6
  a.setAttribute('rel', 'sidebar');
  a.setAttribute('href', url);
  a.setAttribute('title', title);
  a.click();
 }
  else return false;
  return true;
}
