// www.TANTRIX.hu - client side javascripts
// Copyright (c) 2001-2003, Uniqsoft Ltd., info@uniqsoft.hu
// Author: Stefan Krausz, krausz.istvan@uniqsoft.hu

function ImgChg( sImgName, lOn ){
   sOn = "";
   nImgLen = eval( 'document.' + sImgName + '.src.length' );
   sExt = eval( 'document.' + sImgName + '.src.substr(nImgLen-4,4)' );
   eval( 'document.' + sImgName + '.src = document.' + sImgName + '.src.substr(0,nImgLen-4) + sOn + ".gif"' );
   if( lOn )
      sOn = "_on";
   else
      nImgLen -= 3;
   eval( 'document.' + sImgName + '.src = document.' + sImgName + '.src.substr(0,nImgLen-4) + sOn + sExt' );
}

function WriteHead( sTitle ){
   sTitle = sTitle ? sTitle : ' ';
   document.writeln( '<table width="100%">' );
   document.writeln( '   <tr>' );
   document.write( '      <td rowspan="2">' );
   document.write( '<a name="top"></a><a href="/index.html" onmouseover="ImgChg(\'tantrix\',true)" onmouseout="ImgChg(\'tantrix\')">' );
   document.write( '<img src="/_img/tantrix.gif" name="tantrix" alt="www.TANTRIX.hu" border="0"></a>' );
   document.writeln( '</td>' );
   document.write( '      <td nowrap width="80%">' );
   document.write( ' ' );
   document.write( '<a href="javascript:void(0)" onmouseover="ImgChg(\'mozaik\',true);popUp(\'HM_Menu1\',event)" onmouseout="ImgChg(\'mozaik\');popDown(\'HM_Menu1\')">' );
   document.write( '<img src="/_img/m_mozaik.gif" name="mozaik" align="middle" border="0">' );
   document.write( '</a>' );
   document.write( ' ' );
   document.write( '<a href="javascript:void(0)" onmouseover="ImgChg(\'jatek\',true);popUp(\'HM_Menu2\',event)" onmouseout="ImgChg(\'jatek\');popDown(\'HM_Menu2\')">' );
   document.write( '<img src="/_img/m_jatek.gif" align="middle" border="0" name="jatek">' );
   document.write( '</a>' );
   document.write( ' ' );
   document.write( '<a href="javascript:void(0)" onmouseover="ImgChg(\'bolt\',true);popUp(\'HM_Menu3\',event)" onmouseout="ImgChg(\'bolt\');popDown(\'HM_Menu3\')">' );
   document.write( '<img src="/_img/m_bolt.gif" align="middle" name="bolt" border="0">' );
   document.write( '</a>' );
   document.write( ' ' );
   document.writeln( '</td>' );
   document.write( '      <td rowspan="2">' );
   document.write( '<a href="http://www.tantrix.com" onmouseover="ImgChg(\'game\',true)" onmouseout="ImgChg(\'game\')" target="_blank">' );
   document.write( '   <img src="/_img/players.gif" border="0" alt="www.tantrix.com" name="game"></a>' );
   document.writeln( '</td>' );
   document.writeln( '   </tr>' );
   document.writeln( '   <tr>' );
   document.writeln( '      <td nowrap><b><font size="4"> ' + sTitle + '</font></b></td>' );
   document.writeln( '   </tr>' );
   document.writeln( '   <tr>' );
   document.writeln( '      <td colspan="3" bgcolor="#006699" height="8"><img src="/1pixel.gif"></td>' );
   document.writeln( '   </tr>' );
   document.writeln( '</table>' );
}

function WriteFoot(){
   document.writeln( '<table width="100%">' );
   document.writeln( '   <tr>' );
   document.writeln( '      <td colspan="4" bgcolor="#006699" height="8"><img src="/1pixel.gif"></td>' );
   document.writeln( '   </tr>' );
   document.writeln( '   <tr valign="top">' );
   document.writeln( '      <td nowrap><font size="1"><a href="mailto:info_kukac_tantrix_pont_hu">info_kukac_tantrix_pont_hu</a></font></td>' );
   document.write( '      <td width="99%" align="center"><font size="1">' );
   document.write( '<a href="/index.html" onmouseover="ImgChg(\'gohome\',true)" onmouseout="ImgChg(\'gohome\')"><img src="/_img/iconhome.gif" name="gohome" border="0" title="Home"></a> | ' );
   document.write( '<a href="javascript:history.back();" onmouseover="ImgChg(\'goback\',true)" onmouseout="ImgChg(\'goback\')"><img src="/_img/iconleft.gif" name="goback" border="0" title="Back"></a> | ' );
   document.write( '<a href="/jatek/online/game/game.html">Játék</a> | ' );
   document.write( '<a href="/jatek/online/puzzle/puzzle.html">Kirakó</a> | ' );
   document.write( '<a href="/jatek/online/game/gyik.html">GYIK</a> | ' );
   document.write( '<a href="/shop/shops/shops.html">Boltok</a> | ' );
   document.write( '<a href="/mozaik/links/links.html">Linkek</a> | ' );
   document.write( '<a href="/copyright.html">©</a> | ' );
   document.write( '<a href="mailto:info_kukac_tantrix_pont_hu">@</a> | ' );
   document.write( '<a href="#top" onmouseover="ImgChg(\'gotop\',true)" onmouseout="ImgChg(\'gotop\')"><img src="/_img/iconup.gif" name="gotop" border="0" title="Top"></a>' );
   document.writeln( '   </font></td>' );
   document.writeln( '      <td><a href="http://www.uniqsoft.hu/" target="_blank" onmouseover="ImgChg(\'uniq\',true)" onmouseout="ImgChg(\'uniq\')"><img src="/_img/icon_uniq.gif" border="0" name="uniq"></a></td>' );
   document.writeln( '      <td nowrap align="right"><font size="1">© 2002-09,<br>Uniqsoft Kft.</font></td>' );
   document.writeln( '   </tr>' );
   document.writeln( '</table>' );
}

// Menu arrays for HM
HM_Array1 = [
[150,      // menu width
167,       // left_position
31,       // top_position
,   // font_color
,   // mouseover_font_color
,   // background_color
,   // mouseover_background_color
,   // border_color
,    // separator_color
,         // top_is_permanent
,         // top_is_horizontal
,         // tree_is_horizontal
,         // position_under
,         // top_more_images_visible
1,         // tree_more_images_visible
,    // evaluate_upon_tree_show
,    // evaluate_upon_tree_hide
,          // right_to_left
],     // display_on_click
["Hírek","/index.html",1,0,0],
["Események","/mozaik/events/events.html",1,0,0],
["Érdekességek","/mozaik/other/other.html",1,0,0],
["Hírlevél","/mozaik/mailist/mailist.html",1,0,0],
["Linkek","/mozaik/links/links.html",1,0,0]
];

HM_Array2 = [
[135,      // menu width
291,       // left_position
31,       // top_position
,   // font_color
,   // mouseover_font_color
,   // background_color
,   // mouseover_background_color
,   // border_color
,    // separator_color
,         // top_is_permanent
,         // top_is_horizontal
,         // tree_is_horizontal
,         // position_under
,         // top_more_images_visible
1,         // tree_more_images_visible
,    // evaluate_upon_tree_show
,    // evaluate_upon_tree_hide
,          // right_to_left
],     // display_on_click
["Online Játék","/jatek/online/game/game.html",1,0,0],
["Online Kirakó","/jatek/online/puzzle/puzzle.html",1,0,0],
["Bajnokságok","/jatek/tour/tour.html",1,0,0],
["Kirakók","/jatek/kirakok/kirakok.html",1,0,0],
["Online Eredmények","/jatek/online/results/results.html",1,0,0],
["Tantrix szótár","/jatek/szotar/szotar.html",1,0,0]
];

HM_Array3 = [
[175,      // menu width
395,       // left_position
31,       // top_position
,   // font_color
,   // mouseover_font_color
,   // background_color
,   // mouseover_background_color
,   // border_color
,    // separator_color
,         // top_is_permanent
,         // top_is_horizontal
,         // tree_is_horizontal
,         // position_under
,         // top_more_images_visible
1,         // tree_more_images_visible
,    // evaluate_upon_tree_show
,    // evaluate_upon_tree_hide
,          // right_to_left
],     // display_on_click
//["Játékboltok","/shop/shops/shops.html",1,0,1],
["Budapesti játékboltok","/shop/shops/shops_bp.html",1,0,0],
["Vidéki játékboltok","/shop/shops/shops_cs.html",1,0,0],
["Internetes áruházak","/shop/shops/shops_web.html",1,0,0],
["Játéktárak, Játszóházak","/shop/shops/shops_jt.html",1,0,0],
["Ajándékboltok","/shop/shops/shops_aj.html",1,0,0],
["Tantrix játékok","/shop/products.html",1,0,0]
];

/*HM_Loader.js
* by Peter Belesis. v4.1.2 011030
* Copyright (c) 2001 Peter Belesis. All Rights Reserved.
*/
HM_DOM = (document.getElementById) ? true : false;
HM_NS4 = (document.layers) ? true : false;
HM_IE = (document.all) ? true : false;
HM_IE4 = HM_IE && !HM_DOM;
HM_Mac = (navigator.appVersion.indexOf("Mac") != -1);
HM_IE4M = HM_IE4 && HM_Mac;
HM_Opera = (navigator.userAgent.indexOf("Opera")!=-1);
HM_Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);

HM_IsMenu = !HM_Opera && !HM_Konqueror && !HM_IE4M && (HM_DOM || HM_NS4 || HM_IE4);

HM_BrowserString = HM_NS4 ? "NS4" : HM_DOM ? "DOM" : "IE4";

if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

HM_GL_MenuWidth          = 150;
HM_GL_FontFamily         = "Verdana, Arial, Helvetica, sans-serif";
//HM_GL_FontFamily         = "Arial,sans-serif";
HM_GL_FontSize           = 9;
HM_GL_FontBold           = true;
HM_GL_FontItalic         = false;
HM_GL_FontColor          = "#0099CC";
HM_GL_FontColorOver      = "#FFFFFF";
HM_GL_BGColor            = "#FFFFFF";
HM_GL_BGColorOver        = "#006699";
HM_GL_ItemPadding        = 2;

HM_GL_BorderWidth        = 2;
HM_GL_BorderColor        = "black";
HM_GL_BorderStyle        = "solid";
HM_GL_SeparatorSize      = 2;
HM_GL_SeparatorColor     = "#006699";

HM_GL_ImageSrc = "/js/HM_More_white_right.gif";
HM_GL_ImageSrcLeft = "/js/HM_More_white_left.gif";
HM_GL_ImageSrcOver = "/js/HM_More_black_right.gif";
HM_GL_ImageSrcLeftOver = "/js/HM_More_black_left.gif";

HM_GL_ImageSize          = 5;
HM_GL_ImageHorizSpace    = 5;
HM_GL_ImageVertSpace     = 5;

HM_GL_KeepHilite         = false;
HM_GL_ClickStart         = false;
HM_GL_ClickKill          = 0;
HM_GL_ChildOverlap       = 0;
HM_GL_ChildOffset        = -2;
HM_GL_ChildPerCentOver   = null;
HM_GL_TopSecondsVisible  = .5;
HM_GL_ChildSecondsVisible = .3;
HM_GL_StatusDisplayBuild = 0;
HM_GL_StatusDisplayLink  = 1;
HM_GL_UponDisplay        = null;
HM_GL_UponHide           = null;

HM_GL_RightToLeft      = false;
HM_GL_CreateTopOnly      = HM_NS4 ? true : false;
HM_GL_ShowLinkCursor     = true;

if(HM_IsMenu) {
   document.write("<SCR"+"IPT LANGUAGE='JavaScript1.2' SRC='/_js/HM_Script"+HM_BrowserString+".js' TYPE='text/javascript'><\/SCR"+"IPT>");
}
//end HM