function enlarge2(which, imgwidth, imgheight) {
if(navigator.userAgent.toLowerCase().indexOf('msie 6.0')+1)
	for(i=0; (a = document.getElementsByTagName("select")[i]); i++)
		a.style.visibility = 'hidden';
document.getElementById("overlay").style.display = "block";
if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage

pgyoffset=ns6? parseInt(pageYOffset) : parseInt(ietruebody().scrollTop)
horzpos=ns6? pageXOffset+window.innerWidth/2-imgwidth/2 : ietruebody().scrollLeft+ietruebody().clientWidth/2-imgwidth/2
vertpos=ns6? pgyoffset+window.innerHeight/2-imgheight/2-bottomPanel/2 : pgyoffset+ietruebody().clientHeight/2-imgheight/2-bottomPanel/2
if (window.opera && window.innerHeight) //compensate for Opera toolbar
vertpos=pgyoffset+window.innerHeight/2-imgheight/2
vertpos=Math.max(pgyoffset, vertpos)

crossobj.style.left=horzpos+"px"
crossobj.style.top=vertpos+"px"
arr = new Array ()
bla = new Array();
if (typeof(which)=="object") {
  arr=which 
  which=which[0] }
for (i=0;i<arr.length;i++) {bla[i] = new Image(); bla[i].src = arr[i]; } /*preload*/
sthg='<div style="width:'+imgwidth+'px" align="right" id="dragbar"><span id="closetext" onClick="closepreview()">ZAVŘÍT&nbsp;<img src="images/web/close-javascript.gif" alt="x" /></span></div>';
sthg+='<div style="width:'+imgwidth+'px">';
sthg+='<a href="?volba=FindKola&amp;auto=sk"><img style="float:left;" src="images/web/konfigalert.jpg" alt="" border="0"/></a>';
sthg+='<div style="margin-left: 201px; height:160px; background-color: white">';
sthg+='<h1><br />Pasují na moje auto?</h1>';
sthg+='<p><br />Chcete vědět, jestli Vámi vybraná kola lze použít na&nbsp;Vaše auto?</p>';
sthg+='<h3><br /><a href="?volba=FindKola&amp;auto=sk"><b>Ano, spustit konfigurátor</b></a></h3>';
sthg+='<h3><br /><span id="closeprew" onClick="closepreview()"><b>Ne, nezajímá mě to</span></a></h3>';
sthg+='</div>';
sthg+='</div>';
crossobj.innerHTML=sthg
crossobj.style.display="block"
return false
}
else //if NOT IE 4+ or NS 6+, simply display image in full browser window
return true
}

function addEvent(elm, evType, fn, useCapture)  
// cross-browser event handling for IE5+, NS6+ and Mozilla/Gecko
// By Scott Andrew
{
 if (elm.addEventListener) {
   elm.addEventListener(evType, fn, useCapture);  
   return true;  
 } else if (elm.attachEvent) {
   var r = elm.attachEvent('on' + evType, fn);  
   return r;  
 } else {
   elm['on' + evType] = fn;
 }
}
