// JavaScript Document
// On load

var FHportal_on_load = 0;

function show_new(day, month, year, start) {

  var today = new Date();
  var orig  = new Date(year,month-1,day+1);
  var days  = (today.getTime() - orig.getTime())/(24*60*60*1000);

  if( days <  start ) { 
    document.write('<img src="../images/ico_new.gif" border="0">');
  }

}

function this_page () {
}

function cursor_with_logo (logo) {
    // Text, který bude sledovat kurzor myši
    var str=logo;

    if (document.all){
      // Pokud prohlížeč podporuje kolekci document.all,
      // zapíše se do stránky definice textu a nastaví
      // se mu styl
      document.write('<div id="cursortext"');
      document.write(
        'style="position:absolute;visibility:hidden">');
      // Obsahem prvku bude předem nadefinovaný řetězec,
      // ale mohl by tu být například i obrázek
      document.write(str);
      document.write('</div>');
    }

    // Nastavení pozice loga (textu)
    function SetPosition(){
      if (document.all){
        // Zobrazení loga (textu)
        cursortext.style.visibility="visible"
      }
      
      // Nastavení pozice textu na stránce podle
      // kurzoru myši
      cursortext.style.left=document.body.scrollLeft+
        event.clientX+20;
      cursortext.style.top=document.body.scrollTop+
        event.clientY+0;
    }

    // Nastavení obsluhy události onmousemove
    document.onmousemove=SetPosition
}

function alert_volne () {
  self.location.href="view.php?cisloclanku=2009100037";
}

function alert_volne_load () {
  alert("Chcete zde umístit Váš banner, neváhejte mne kontaktovat.\r\r Baner je možné umístit i na titulní stránku");
}

function OpenGIF(GIF,TITLE)
{
  if (navigator.appName.indexOf("Explorer") != -1)
  {
   if (null==TITLE) TITLE = "Obrázek" ;
   top.okno = window.open("","Obrázek","width=1,height=1,resizable");

   if ( GIF != null )
   {
    top.okno.document.open();
    top.okno.document.write("<HEAD><TITLE>"+TITLE+"</TITLE></HEAD>");
    top.okno.document.write("<BODY LEFTMARGIN=0 TOPMARGIN=0 onLoad='window.resizeTo(document.GIFPICT.width+10,document.GIFPICT.height+30);'>") ;
    top.okno.document.write("<CENTER><IMG SRC='"+GIF+"'NAME='GIFPICT'></IMG></CENTER></BODY>") ;
    top.okno.document.close();
    top.okno.focus();
   }
  }
  else
  {
  window.open(GIF,TITLE);
  }
  return;
} 

<!-- Rotator Zacatek -->
var rotator_data=new Array(
 'e-Fana', 'http://www.fhportal.cz/kontakt.htm', 'http://www.fhportal.cz/images/volnemisto.gif', '468', '60',
 'Parfémy levně - Parfémy - prodej on-line - Slevy 30-65% na parfémy','http://www.valentine.cz/?refId=316','http://www.valentine.cz/img/ikona_valentine.gif ','88','31',
 'Seznam firem | Poptávky | Nabídky | E-shopy | Vyhledávač zboží | Soutěže o ceny | Marketingové nástroje zdarma', 'http://www.b2bc.cz/?refid=2350', 'http://www.b2bc.cz/gfx/img/provize/searchpanel468x60.gif', '470', '60',
 'Internetový obchodní dům Patro.cz', 'http://www.patro.cz', 'http://www.fhportal.cz/images/logopatro.gif', '468', '60',
 'Retro rádia Lenco', 'http://ishop.cps-europe.cz/retro-radia?refId=1808', 'http://ishop.cps-europe.cz/banner/retro20.gif', '468', '60',
 'Aukro', 'http://www.aukro.cz/show_user_auctions.php?uid=3482567', 'http://www.fhportal.cz/images/logoaukro.gif', '470', '60',
 'REALITY z celé ČR', 'http://www.avareality.cz/index.php', 'http://www.avareality.cz/images/banner180x45.gif', '180', '45',
 'Svět parfémů', 'http://www.parfemy.cz/?deal=136', 'http://www.fhportal.cz/images/logoparfemy.gif', '447', '61',
 'Invia - zájezdy do celého světa', 'http://partner2.invia.cz/?advert=21841&app=15', 'http://www.fhportal.cz/images/logoinvia.gif', '462', '62',
 'Top-Cz', 'http://www.topcz.net/?ref=580', 'http://fhportal.cz/images/topcz.gif', '468', '60',
 'Autohits Horys', 'http://autohits.horys.com/index.php?refer=honsa', 'http://autohits.horys.com/bannery/s468x60-2.gif', '468', '60',
 'Systém výměny reklamy Lišta', 'http://www.lista.cz/?ref=10918', 'http://banners.lista.cz/4.gif', '468', '60',
 'Internetový supermarket EVA', 'http://www.eva.cz/jumptopromo.php?pp=MFFXWL', 'http://www.fhportal.cz/images/evalogo.gif', '89', '57',
 'HOLAN Sport -  vybavení do přírody', 'http://www.holan.cz/default.asp?IDP=275', 'http://www.holan.cz/boxes/2banner60x468.gif', '468', '60',
 'FUN Store -  království her', 'http://www.funstore.cz/web.php?id=fana', 'http://www.fhportal.cz/images/funstorelogo.gif', '300', '60',
 'Sonnerie -  mobil snů', 'http://fhportal.sonnerie.net/cz/', 'http://www.fhportal.cz/images/sonnerielogo.gif', '247', '60',
 'e-Fana', 'http://www.fhportal.cz/kontakt.htm', 'http://www.fhportal.cz/images/volnemisto.gif', '468', '60'
 );
var rotator_index = 0;
var rotator_max_index = ( rotator_data.length / 5 ) - 1;
var rotator_timer;    // Časovač na automatické přepínání banneru
var rotator_interval = 20000;  // Interval mezi jednotlivými bannery (20 s)

function rotator_next_banner() {
  if ( rotator_index == rotator_max_index ) {
    rotator_index = 0;
  }
  else {
    rotator_index += 1;
  }
  rotator_lnk.href  = rotator_data[ 5*rotator_index + 1 ];
  rotator_img.alt   = rotator_data[ 5*rotator_index ];
  rotator_img.src   = rotator_data[ 5*rotator_index + 2 ];
  rotator_img.width = rotator_data[ 5*rotator_index + 3 ];
  rotator_img.height= rotator_data[ 5*rotator_index + 4 ];
}

function rotator_random_banner() {
  rotator_index = Math.floor (Math.random()*rotator_max_index);

  rotator_lnk.href  = rotator_data[ 5*rotator_index + 1 ];
  rotator_img.alt   = rotator_data[ 5*rotator_index ];
  rotator_img.src   = rotator_data[ 5*rotator_index + 2 ];
  rotator_img.width = rotator_data[ 5*rotator_index + 3 ];
  rotator_img.height= rotator_data[ 5*rotator_index + 4 ];
}

function rotator_next_click() {
  clearInterval (rotator_timer);
  rotator_random_banner();
  rotator_timer = setInterval ("rotator_random_banner();", rotator_interval);
}

function rotator_init (random) {
  var html = '';
  if ( random ) {
    rotator_index = Math.floor (Math.random()*rotator_max_index); 
  } 
  else {
    rotator_index = 1;
  }
  
  html += '<TABLE width="100%" height="65" cellSpacing=0 cellPadding=0 border=0>';
  html += '<TBODY>';
  html += '<TR align=center><TD>';
  html += '<TABLE cellSpacing=0 cellPadding=0 border=0>';
  html += '<TBODY>';
  html += '<TR><TD>';
  html += '<A href="' + rotator_data[ 5*rotator_index + 1 ] +'" name="rotator_lnk" target="_blank"><IMG name="rotator_img" src="' + rotator_data[ 5*rotator_index + 2 ] +'" alt="' + rotator_data[ 5*rotator_index ] + '" width='+ rotator_data[ 5*rotator_index + 3 ] + '" height='+ rotator_data[ 5*rotator_index + 4 ] + 'border=0></A>';
  html += '</TD><TD>&nbsp;&nbsp;</TD><TD>';
  html += '<BUTTON name="Next" value="Dalsi" onclick="rotator_next_click()">Další<BR>reklama</BUTTON>';
  html += '</TD></TR>';
  html += '</TBODY></TABLE>';
  html += '</TD></TR>';
  html += '</TBODY></TABLE>';
  document.write(html);
  if ( random ) {
    rotator_timer = setInterval ("rotator_random_banner();", rotator_interval);
  }
}
<!-- Rotator Konec -->
<!-- Opt-In Zacatek --> 
var allowpop=1;
function popWin(){
var ppl="popLayer";var objppl=findObj(ppl);
var prev_url = '';
prev_url = ReadCookie('URL_PREV',prev_url);
if (objppl==null){return;}// if the layer does not exist, do nothing.
if (prev_url.search("info") != -1) {
  WriteCookie ('URL_PREV','vakci','','/','www.fhportal.cz','');
  hideLayer(ppl);
  return;
} else {
  WriteCookie ('URL_PREV','vakci','','/','www.fhportal.cz','');
}
var args=arguments,movetoX=parseInt(args[0]),movetoY=parseInt(args[1]),movespeed=parseInt(args[2]);
var cycle=10,pxl="";
if(!document.layers){objppl=objppl.style;}
if(objppl.tmofn!=null){clearTimeout(objppl.tmofn);}
var pplcoordX=parseInt(objppl.left),pplcoordY=parseInt(objppl.top);
var xX=movetoX,yY=movetoY;if((pplcoordX!=movetoX)||(pplcoordY!=movetoY)){
   var moveX=((movetoX-pplcoordX)/movespeed),moveY=((movetoY-pplcoordY)/movespeed);
   moveX=(moveX>0)?Math.ceil(moveX):Math.floor(moveX);movetoX=pplcoordX+moveX;
   moveY=(moveY>0)?Math.ceil(moveY):Math.floor(moveY);movetoY=pplcoordY+moveY;
   if((parseInt(navigator.appVersion)>4||navigator.userAgent.indexOf("MSIE")>-1) && (!window.opera)) {pxl="px";}
   if (moveX!=0){eval("objppl.left='" + movetoX + pxl + "'");}
   if (moveY != 0) {eval("objppl.top = '" + movetoY + pxl + "'");}
   var sFunction = "popWin(" + xX + "," + yY + "," + movespeed+ ")";
   objppl.tmofn = setTimeout(sFunction,cycle);
   }
}
function findObj(theObj, theDoc){
var p, i, foundObj;
if(!theDoc) theDoc = document;
if((p = theObj.indexOf("?")) > 0 && parent.frames.length)
   {theDoc = parent.frames[theObj.substring(p+1)].document;
    theObj = theObj.substring(0,p);}
if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
for (i=0; !foundObj && i < theDoc.forms.length; i++)
foundObj = theDoc.forms[i][theObj];
for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++)
foundObj = findObj(theObj,theDoc.layers[i].document);
if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
return foundObj;
}
function hideLayer(layername){
layer=findObj(layername);
if(layer.style){layer=layer.style;}
layer.visibility='hidden'; }

<!-- Opt-In Konec -->

function div_onclick(str)
{
  var strdiv = "div" + str;
  var objNode = document.all ? document.all[strdiv] : document.getElementById(strdiv);

  if(objNode.style.display=="none"){
     objNode.style.display="block";
  }else{
    objNode.style.display="none" ;
  }
}

function div_openall()
{
    tempColl = document.getElementsByTagName("DIV");
	for (i=0; i<tempColl.length; i++) {
		tempColl[i].style.display = "block";
	}
}
function file_se(kid)
{	
	popupWin = window.open('se.htm?kid='+kid, "File", 'resizable,scrollbars,menubar=0,width=580,height=460');
} 

function file_print(id)
{	
	window.print();
//      popupWin = window.open('print.htm?pid='+id, "File", 'resizable,scrollbars,menubar=0,width=580,height=280');
} 

function change_frame (url) {
  if (url.search("menu_jak") != -1) {
    parent.left.location.href="menu_jak.htm";
    parent.right.location.href="jak_na_to.htm";
  }
  else if (url.search("ieFavorites") != -1) {
    parent.left.location.href="ieFavorites.htm";
    parent.right.location.href="description_cs.htm";
  }
  else if (url.search("webmaster") != -1) {
    parent.left.location.href="http://www.frantisekhonsa.cz/menu.htm";
    parent.right.location.href="http://www.frantisekhonsa.cz/uvodni_stranka.htm";
  }
  else if (url.search("fhportal") != -1) {
    parent.left.location.href="../menu.htm";
    parent.right.location.href="../uvodni_stranka.htm";
  }
  else if (url.search("kontakt") != -1) {
    parent.left.location.href="http://www.frantisekhonsa.cz/menu.htm";
    parent.right.location.href="http://www.frantisekhonsa.cz/kontakt.htm";
  }
  else if (url.search("novakj") != -1) {
    parent.left.location.href="novakj/menu.htm";
    parent.right.location.href="novakj/uvodni_stranka.htm";
  }
  else {
    parent.left.location.href="menu.htm";
    parent.right.location.href="uvodni_stranka.htm";
  }
}

function link_parent()
{
 var m1  = " Tak trochu se stydím za design těchto stránek. Asi je to tím, že jsem vyrůstal v hospodě čtvrté cenové kategorie a mám to v krvi. "
 var m2  = " Otec nebyl majitelem, ale pouze vedoucím.  Komunisti více nedovolili. Hospodu mému dědečkovi sebrali a majitelem byla Jednota. ";
 var m3  = " Já mám to štěstí, že jsem v mé eHospodě svým pánem a tak s tím časem snad něco udělám.";
 var m4  = " ";

     var msg=m1+m2+m3+m4;
     alert(msg);
}

function no_link()
{
 var m1  = " Stránky se připravují ";
 var m2  = "  ";
 var m3  = "  ";
 var m4  = "  ";
     var msg=m1+m2+m3+m4;
     alert(msg);
}

function selOn(ctrl)
{
    if(ctrl){
 	    ctrl.style.borderColor = '#000000';
	    ctrl.style.backgroundColor = '#B5BED6';
	    ctrl.style.cursor = 'hand';	
	    ctrl.style.borderWidth = '1px';
	    ctrl.style.borderStyle = 'outset';
    }
}

function selOff(ctrl)
{
    if(ctrl){
	    ctrl.style.borderColor = 'silver';  
	    ctrl.style.backgroundColor = '#D6D3CE';
	    
            ctrl.style.borderStyle = 'solid';
            ctrl.style.borderWidth = '0px';
            if (document.images[cur_img].src.search(ctrl.src) != -1) {
               document.images[cur_img].style.borderWidth = '2px';
	       document.images[cur_img].style.borderColor = '#FF0000';
               document.images[cur_img].style.borderStyle = 'solid';
            }
    }
}

function selDown(ctrl)
{
    if(ctrl){
	    ctrl.style.backgroundColor = '#8492B5';
    }
}


function selUp(ctrl)
{   
    if(ctrl){
        ctrl.style.backgroundColor = '#B5BED6';
    }
}

function ch_lng() {
   if  (parent.bottom.location.href.search("/en/") != -1){
       newstr=parent.bottom.location.href.replace("/en/","/cz/");
       parent.bottom.location.href =newstr;
       parent.head.location.href="../cz/head.html"
   }
   else { newstr=parent.bottom.location.href.replace("/cz/","/en/")
       parent.bottom.location.href=newstr
       parent.head.location.href="../en/head.html"
   }
}

/* Copyright (C)1996 Web Integration Systems, Inc. DBA Websys, Inc.All Rights Reserved.
This applet can be re-used or modified, if credit is given in the source code.
*/
function scrollit_r2lx(seed)
{
 var m1  = " Vitejte na me WWW strance - ";
 var m2  = " Za starých dobrých časů – ve „zlaté éře“ počítačů, bylo snadné odlišit muže od chlapců ";
 var m3  = " (v literatuře označovaných „Opravdový muži“ a „Pojídače koláčů“). ";
 var m4  = " Opravdoví programátoři nepoužívají Pascal... ";
     var msg=m1+m2+m3+m4;
     var out = " ";
     var c   = 1;
       if (seed > 100) {
                seed--;
               var cmd="scrollit_r2l(" + seed + ")";
               timerTwo=window.setTimeout(cmd,100);
       }
        else if (seed <= 100 && seed > 0) {
               for (c=0 ; c < seed ; c++) {
                       out+=" ";
               }
                out+=msg;
               seed--;
              var cmd="scrollit_r2l(" + seed + ")";
                    window.status=out;
                timerTwo=window.setTimeout(cmd,100);
        }
        else if (seed <= 0) {
                if (-seed < msg.length) {
                        out+=msg.substring(-seed,msg.length);
                        seed--;
                        var cmd="scrollit_r2l(" + seed + ")";
                        window.status=out;
                        timerTwo=window.setTimeout(cmd,100);
                }
                else {
                        window.status=" ";
                        timerTwo=window.setTimeout("scrollit_r2l(100)",75);
                }
       }
}

function scrollit_r2l(seed)
{
 if (FHportal_on_load > 0)  {
   alert_volne_load ();
   FHportal_on_load = 0;
 }
 var m1  = " Vítejte na mé WWW stránce - jste na dobré cestě do světového elektronického obchodování.";
 var m2  = " Výroba, správa, údržba a hosting webových prezentací.";
 var m3  = " Jednoduché, ale vysoce funkční internetové stránky jako od velkých agentur.";
     var msg=m1+m2+m3;
     var out = " ";
     var c   = 1;
       if (seed > 100) {
                seed--;
               var cmd="scrollit_r2l(" + seed + ")";
               timerTwo=window.setTimeout(cmd,100);
       }
        else if (seed <= 100 && seed > 0) {
               for (c=0 ; c < seed ; c++) {
                       out+=" ";
               }
                out+=msg;
               seed--;
              var cmd="scrollit_r2l(" + seed + ")";
                    window.status=out;
                timerTwo=window.setTimeout(cmd,100);
        }
        else if (seed <= 0) {
                if (-seed < msg.length) {
                        out+=msg.substring(-seed,msg.length);
                        seed--;
                        var cmd="scrollit_r2l(" + seed + ")";
                        window.status=out;
                        timerTwo=window.setTimeout(cmd,100);
                }
                else {
                        window.status=" ";
                        timerTwo=window.setTimeout("scrollit_r2l(100)",75);
                }
       }
}

