﻿// JScript File
/* <![CDATA[ */
function emil (a1, a2, a3, a4) {
var xxx = '&#109;a' + 'i&#108;' + '&#116;o';
var yyy = 'hr' + 'ef' + '=';
var zzz = a3 + '&#64;' + a2 + '&#46;' + a1;
if (a4=='') { a4 = zzz; }
document.write( '<a ' + yyy + '\'' + xxx + ':' + zzz + '\'>'+a4+'</a>' );
}

function emil2 (a3, a4) {
var xxx = '&#109;a' + 'i&#108;' + '&#116;o';
var yyy = 'hr' + 'ef' + '=';
var zzz = a3 + '&#64;' + '&#99aritas-vo&#115' + '&#46;' + '&#99&#122';
var qqq = ''
if (a4 != '') { qqq = a4;} else { qqq = zzz; }
document.write( '<a ' + yyy + '\'' + xxx + ':' + zzz + '\'>'+qqq+'</a>' );
}


function antispam(){
	document.getElementById('warning').style.display="none";
}


var KEYwebRoot = 'http://localhost:2152/Caritas_CZ/';
var KEYcancel = 'cancel';
function Anotace(id)
{
  var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
  var height = document.documentElement.clientHeight + document.documentElement.scrollTop;
  document.body.style.position = 'static';

  var layer = document.createElement('div');
  layer.style.zIndex = 2;
  layer.id = 'layer';
  layer.style.position = 'absolute';
  layer.style.top = '0px';
  layer.style.left = '0px';
  layer.style.height = document.documentElement.scrollHeight + 'px';
  layer.style.width = width + 'px';
  layer.style.backgroundColor = 'black';
  layer.style.opacity = '.6';
  layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=60)");
  document.body.appendChild(layer);    
  var div = document.createElement('div');
  div.style.zIndex = 3;
  div.id = 'apmlfilter';
  div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
  div.style.top = '200px';
  div.style.left = (width / 2) - (400 / 2) + 'px';	
  div.style.height = '50px';
  div.style.width = '400px';
  div.style.backgroundColor = 'white';
  div.style.border = '2px solid silver';
  div.style.padding = '20px';
  document.body.appendChild(div);  
  document.URL = 'siteMap.aspx';
/*
  var p = document.createElement('p');
  p.innerHTML = 'KEYapmlDescription';
  p.style.margin = '0px';
  div.appendChild(p);
  
  var form = document.createElement('form');
  form.method = 'get';
  form.style.display = 'inline';
  form.action =  KEYwebRoot; 
  div.appendChild(form);
  
  var textbox = document.createElement('input');
  textbox.type = 'text';
  textbox.style.width = '325px';
  textbox.id = 'txtapml';
  textbox.name = 'apml';
  textbox.style.background = 'url('+KEYwebRoot+'pics/apml.png) no-repeat 2px center';
  textbox.style.bgcolor = '#cacaca';
  textbox.style.paddingLeft = '16px';
  form.appendChild(textbox);
  textbox.focus();
  */
/*  var button = document.createElement('input');
  button.type = 'submit';
  button.value = 'KEYfilter';
  button.onclick = function(){ location.href = KEYwebRoot + '?apml=' + encodeURIComponent($('txtapml').value)};  
  form.appendChild(button);
 
  var br = document.createElement('br');
  div.appendChild(br);
*/  
  var a = document.createElement('a');
  a.innerHTML = KEYcancel;
  a.href = 'javascript:void(0)';
  a.onclick = function() {document.body.removeChild($('layer'));
  document.body.removeChild($('apmlfilter'));
  document.body.style.position = '';};
  div.appendChild(a);

}
/* ]]> */
