<!-- Begin

/* refreshing for menu positioning */
function rerunmenu() {
    //document.execCommand('Refresh'); 
} 
//onresize=rerunmenu


/* popping up windows - script 1*/
function popup(mypage, myname, w, h, scroll) {
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',statusbar=yes,resizable'
  win = window.open(mypage, myname, winprops)
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


/* opening the current page in tamil */
function poptamil(page) {
  //alert (page);
  page2=page;
  page = page.toLowerCase();
  if ( (page == 'http://www.azhagi.com') || (page == 'http://www.azhagi.com/') || (page == 'http://www.azhagi.com/index.html') || (page == 'http://azhagi.com') || (page == 'http://azhagi.com/') || (page == 'http://azhagi.com/index.html') || (page == 'http://localhost') || (page == 'http://localhost/') || (page == 'http://localhost/index.html') )    {
    topop = '/index-t.html';
  }
  else {
    page=page2;
    topop = page.slice(0,-5) + '-t.html';
  }
  winprops="";
  win=window.open(topop, '_self', '');
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
  return topop;
}

/* opening the current page in english */
function popeng(page) {
  //alert(page);
  if ( (page == 'http://www.azhagi.com/index-t.html') || (page == 'http://azhagi.com/index-t.html') || (page == 'http://localhost/index-t.html') )    {
    topop = '/';
  }
  else {    
    topop = page.slice(0,-7) + '.html';
  }
  winprops="";
  win=window.open(topop, '_self', '');
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
  return topop;
}

/* opening the current page in english */
function popengu(page) {
  //alert(page);
  if ( (page == 'http://www.azhagi.com/index-u8.html') || (page == 'http://azhagi.com/index-u8.html') || (page == 'http://localhost/index-u8.html') )    {
    topop = '/';
  }
  else {    
    topop = page.slice(0,-8) + '.html';
  }
  winprops="";
  win=window.open(topop, '_self', '');
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
  return topop;
}


//  End -->
