/**
* Main Menu Javascript File for http://www.megaputer.com.
* Copyright Megaputer Intelligence, Inc. All Rights Reserved
* Author: Josh Froelich
* Updated: 1/17/2008
*/

var menus = new Array();
menus["solutions"] = '<table width="100%" cellpadding=0 cellspacing=0 border=0><tr>'+
 '<td background="/img/solutions_menu_bg.gif" valign="top">'+
 '<table width="100%" cellpadding=0 cellspacing=0 border=0>'+
 '<tr><td><img src="/img/s.gif" height=27 width=10 border=0 align="left"></td>'+
 '<td nowrap valign="top" width=90><a href="solutions.php" class="submenuitem">ÎÁÇÎÐ</a></td>'+
 '<td nowrap valign="top" width=130><a href="success_stories.php" class="submenuitem">ÂÍÅÄÐÅÍÈß</a></td>'+
 '<td nowrap valign="top" width=100><a href="data_mining.php" class="submenuitem">DATA MINING</a></td>'+
 '<td nowrap valign="top" width=100><a href="text_mining.php" class="submenuitem">TEXT MINING</a></td>'+
 '<td nowrap valign="top" width=360><a href="education.php" class="submenuitem">ÎÁÐÀÇÎÂÀÍÈÅ</a></td>'+
 '</tr></table>'+
 '</td></tr></table>';

menus["products"] = '<table width="100%" cellpadding=0 cellspacing=0 border=0><tr>'+
 '<td background="/img/products_menu_bg.gif" valign="top" nowrap>'+
 '<table width="100%" cellpadding=0 cellspacing=0 border=0><tr>'+
 '<td><img src="/img/s.gif" height=27 width=10 border=0 align="left"></td>'+
 '<td nowrap valign="top" width=90><a href="products.php" class="submenuitem">ÎÁÇÎÐ</a></td>'+
 '<td nowrap valign="top" width=130><a href="polyanalyst.php" class="submenuitem">POLYANALYST</a></td>'+
 '<td nowrap valign="top" width=430><a href="xsellanalyst.php" class="submenuitem">X-SELLANALYST</a></td>'+
 '</tr></table></td></tr></table>';

menus["company"] = '<table width="100%" cellpadding=0 cellspacing=0 border=0>'+
 '<tr><td background="/img/company_menu_bg.gif" valign="top" nowrap>'+
 '<table width="100%" cellpadding=0 cellspacing=0 border=0><tr><td><img src="/img/s.gif" height=27 width=10 border=0 '+
 'align="left"></td>'+
 '<td nowrap valign="top" width=90><a href="company.php" class="submenuitem">Î ÍÀÑ</a></td>'+
 '<td nowrap valign="top" width=130><a href="track_record.php" class="submenuitem">ÏÎÊÓÏÀÒÅËÈ</a></td>'+
 '<td nowrap valign="top" width=140><a href="success_stories.php" class="submenuitem">ÂÍÅÄÐÅÍÈß</a></td>'+
 '<td nowrap valign="top" width=100><a href="history.php" class="submenuitem">ÈÑÒÎÐÈß</a></td>'+
 '<td nowrap valign="top" width=100><a href="partners.php" class="submenuitem">ÏÀÐÒÍÅÐÛ</a></td>'+
 '<td nowrap valign="top" width=220><a href="careers.php" class="submenuitem">ÐÀÁÎÒÀ</a></td></tr></table>'+
 '</td></tr></table>';

menus["default"] = '<table width="100%" cellpadding=0 cellspacing=0 border=0><tr><td '+
 'background="/img/default_menu_bg.gif" valign="top" nowrap>'+
 '<img src="/img/s.gif" height=27 width=1 border=0 align="left"></td></tr></table>';

menus[""] = '<img src="/img/s.gif" width=1 height=27>';

var backgrounds = new Array();
backgrounds["solutions"] = 'url(/img/solutions_menu_tbg.gif)';
backgrounds["products"] = 'url(/img/products_menu_tbg.gif)';
backgrounds["company"] = 'url(/img/company_menu_tbg.gif)';
backgrounds["default"] = 'url(/img/default_menu_tbg.gif)';
backgrounds[""] = 'url(/img/bgmenu.gif)';

//var imgs = ['/img/solutions_menu_tbg.gif','/img/products_menu_tbg.gif','/img/company_menu_tbg.gif','/img/default_menu_tbg.gif'];
//var slides = ["/img/home_tm1.gif","/img/home_dm1.gif", "/img/home_solutions1.gif","/img/home_tm2.gif","/img/home_dm2.gif", "/img/home_solutions2.gif",];

// Selects a tab in the main menu
function selectTab(menuId) {
 var sub = new El('submenu'), td = new El('mainmenubg');
 sub.setContent(menus[menuId]);
 td.setBackground(backgrounds[menuId]);
 return true;
}