;

var pw=null;
function pWin(ppg,w,h,scr,res){
 if(w==0){ w=screen.width-64; var winl=32;} else {var winl=(screen.width-w)/2;}
 if(h==0){ h=screen.height-128; var wint=32;} else {var wint=(screen.height-h)/2;}
 var set='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scr+',resizable='+res ;
 pw=window.open(ppg,'tedWin',set);
 if(parseInt(navigator.appVersion)>=4){pw.window.focus();}
}

function localLink(r){
 location.href=siteRoot+r;
}

function posFixedSide(){
 $('#fixSide').css('left', (($(window).width()-960)/2) +'px');
}


$(document).ready(function(){


 $('.headNavN,.headNavA').each(function(){
  $(this).attr('id','TL'+$(this).find('a').attr('href')).html( $(this).find('a').html() ).click(function(){
   localLink($(this).attr('id').substr(2));
  });
 });

 $('.sideNavN,.sideNavA').each(function(){
  $(this).attr('id','SL'+$(this).find('a').attr('href')).html( $(this).find('a').html() ).click(function(){
   localLink($(this).attr('id').substr(2));
  });
 });

 if(acFixHD>0){
  $(window).bind('resize',posFixedSide);
  posFixedSide();
 }

});

