var ie = navigator.userAgent.toLowerCase().indexOf("msie") != -1; 
var etdiv = document.getElementById('etdiv')
var etwidth = etdiv.offsetWidth;

if (ie) {
  window.onscroll = myscroll;
  window.onresize = myscroll;
};


var lm = ''+document.lastModified
var d = new Date(); var curr_year = d.getFullYear()
if (lm.indexOf(''+(curr_year-1))<0 && lm.indexOf(''+(curr_year))<0 && document.body.clientWidth>300 &&  document.body.clientHeight>300) {
  var loc = ''+document.location
  if (loc.indexOf('sdhpelhrimov')<0 ) {

  //vybrane weby

  etdiv.onmouseover = etdivonmouseover
  etdiv.onmouseout = etdivonmouseout
  etdiv.style.bottom = '1px'
  etdiv.style.right = '1px'
  etdiv.style.backgroundColor = 'white'
  etdiv.style.color = 'black'
  etdiv.style.paddingLeft = '5px'
  etdiv.style.width = '500px'
  if (ie) {
    etdiv.style.position = 'absolute'
    etdiv.insertAdjacentHTML('afterBegin', '<img style="float:right;cursor:hand" src="http://r.kde.cz/i/editor/ed_delete.gif" border="0" onclick="return hideetdiv()">')

//    etdiv.insertAdjacentHTML('AfterEnd', '<div id="pometdiv">&nbsp;</div>')
//    var pometdiv = document.getElementById('pometdiv')
//    pometdiv.style.height = etdiv.offsetHeight
  } else {
    etdiv.style.position = 'fixed'
		etdiv.innerHTML = '<img style="z-index:1;float:right;cursor:hand" src="http://r.kde.cz/i/editor/ed_delete.gif" border="0" onclick="return hideetdiv()">' + etdiv.innerHTML

//    document.body.innerHTML += '<div id="pometdiv" style="height:300">&nbsp;</div>';

  };
  etdivonmouseout();
  //vybrane weby -end
  };
};


function etdivonmouseover() { if (ie) etdiv.style.filter=''; else etdiv.style.MozOpacity='1'; };
function etdivonmouseout()  { if (ie) etdiv.style.filter='alpha(opacity=70)'; else etdiv.style.MozOpacity='.7'; };

function myscroll() {
  if (ie) {
    etdiv.style.right = '1px'
    etdiv.style.bottom = 'auto'
    etdiv.style.top = document.body.scrollTop + document.body.clientHeight - etdiv.offsetHeight - 5;
  };
}

function hideetdiv(){
	etdiv.style.visibility = 'hidden'
}
