//popup
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';

  cookie_str = document.cookie;
  cookie_str.toString();

  pos_start  = cookie_str.indexOf(name);
  pos_start  = cookie_str.indexOf('=', pos_start);
  pos_end    = cookie_str.indexOf(';', pos_start);
  if (pos_end <= 0) pos_end = cookie_str.length;
  cookie_val = cookie_str.substring(pos_start + 1, pos_end);

  if (cookie_val  == "done")
    return;
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}


//menu
function menu(CateStr) {
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width=926 height=50 id=ShockwaveFlash1>')
 document.write('<param name="movie" value="/flash/'+CateStr+'">')
 document.write('<param name="menu" value="false">')
 document.write('<param name="quality" value="best">')
 document.writeln('<embed src="/flash/'+CateStr+'" width="926" height="50" menu=false quality=best pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>')
 document.writeln('</object>')
}


//image
function img(CateStr) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width=730 height=270 id=ShockwaveFlash1>')
document.write('<param name="movie" value="/flash/'+CateStr+'">')
document.write('<param name="menu" value="false">')
document.write('<param name="quality" value="best">')
document.write('<embed src="/flash/'+CateStr+'" width=730 height=270 menu=false quality=best pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>')
document.write('</object>')
}


function closeWin() 
{ 
        self.close(); 
} 
