
if (document.all)
	document.write('<table id="nahled" style="display: none" onmousedown="nahleddown(event)" onmouseup="unnahled()" cellpadding="0" cellspacing="0"><tr><td colspan="2" rowspan="2" id="nahl"><div><img src="aaa" alt="" onmousemove="return false" onclick="return false" onmousedown="return false" /></div><div id="title">&nbsp;</div></td><td style="height: 16px; width: 8px; background-image: url(\'/graphic/img/showpic/p.h.r.png\'); background-repeat: no-repeat; background-position: left bottom; _background-image: none; _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'http://www.creatity.com/graphic/img/showpic/p.h.r.png\',sizingMethod=\'scale\'">&nbsp;</td></tr><tr><td id="shadow_right" style="width: 8px; background-image: url(\'/graphic/img/showpic/obr2.png\'); background-repeat: repeat-y; _background-image: none; _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'http://www.creatity.com/graphic/img/showpic/obr2.png\',sizingMethod=\'scale\')">&nbsp;</td></tr><tr><td style="width: 16px; _width: 1%; background-image: url(\'/graphic/img/showpic/l.r.png\'); background-repeat: no-repeat; background-position: right top;_background-image: none;	_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'http://www.creatity.com/graphic/img/showpic/l.r.png\',sizingMethod=\'scale\');"><img width="8" height="8" alt="" style="visibility: hidden"/></td><td style="background-image: url(\'/graphic/img/showpic/obr.png\'); background-repeat: repeat-x; _background-image: none; _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'http://www.creatity.com/graphic/img/showpic/obr.png\',sizingMethod=\'scale\');">&nbsp;</td><td style="width: 8px; height: 8px; background-image: url(\'/graphic/img/showpic/p.r.png\'); background-repeat: no-repeat; _background-image: none; _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'http://www.creatity.com/graphic/img/showpic/p.r.png\',sizingMethod=\'scale\');"><img width="8" height="8" alt="" style="visibility: hidden"/></td></tr></table>');
else
 document.write('<table id="nahled" style="display: none" border="0" onmousedown="nahleddown(event)" onmouseup="unnahled()" cellspacing="0" cellpadding="0"><tr><td id="nahl" rowspan="2" colspan="2"><img alt="" onmousemove="return false" width="200" height="200" onclick="return false" onmousedown="return false" /><div id="title"></div></td><td width="16" height="16" style="background-image: url(\'http://www.creatity.com/graphic/img/showpic/p.h.r.png\'); background-repeat: no-repeat; background-position: left bottom;">&nbsp;</td></tr><tr><td style="background-image: url(\'http://www.creatity.com/graphic/img/showpic/obr2.png\'); background-repeat: repeat-Y; background-position: left;">&nbsp;</td>	</tr><tr><td width="16" height="16" style="background-image: url(\'http://www.creatity.com/graphic/img/showpic/l.r.png\'); background-position: right top; background-repeat: no-repeat;">&nbsp;</td><td style="background-image: url(\'http://www.creatity.com/graphic/img/showpic/obr.png\'); background-repeat: repeat-x; background-position: ltop;">&nbsp;</td><td style="background-image: url(\'http://www.creatity.com/graphic/img/showpic/p.r.png\'); background-repeat: no-repeat; background-position: left top;">&nbsp;</td></tr></table>');


var nahled={
	next: false,
	nahl: document.getElementById("nahled"),
	tit: document.getElementById("title"),
	title: document.getElementById("title"),
	stin: document.getElementById("stin"),
	img: null,
	shadow_right: document.getElementById("shadow_right"),
	sWidth: null,
	sHeight: null,
	width: null,
	height: null,
	bWidth: null,
	bHeight: null,
	titleH: 60,
	interval: null,
	x: 0,
	y: 0,
	xMove: 0,
	yMove: 0,
	over: false,
	move: false,
	obj: null,
	xc: null,
	yc: null,
	xo: null,
	yo: null,
	cas: 1,
	posun: 5
};
nahled.img=nahled.nahl.getElementsByTagName("img")[0];
(nahled.nahl).parentNode.removeChild(nahled.nahl);
function nahleddown(evnt)
{
	if (document.all)
		document.getElementsByTagName("body")[0].onmousemove=nahledmove;
	else
	 document.getElementsByTagName("body")[0].setAttribute("onmousemove","nahledmove(event)");
	nahled.xMove=evnt.clientX-nahled.x;
	nahled.yMove=evnt.clientY-nahled.y;
}
function nahledmove(evnt)
{
	nahled.over=true;
	if (!evnt) evnt=event;
	nahled.x=evnt.clientX-nahled.xMove;
	nahled.y=evnt.clientY-nahled.yMove;
	nahled.xc=evnt.clientX;
	nahled.yc=evnt.clientY;
	nahled.xo=evnt.offsetX;
	nahled.yo=evnt.offsetY;
 (nahled.nahl).style.marginLeft=(-nahled.width/2+nahled.sWidth/2-2+nahled.x)+"px";
 (nahled.nahl).style.marginTop=(-nahled.height/2+nahled.sHeight/2-2+nahled.y)+"px";
}
function nahledout()
{
	if (document.all)
		document.getElementsByTagName("body")[0].onmousemove=null;
	else
		document.getElementsByTagName("body")[0].setAttribute("onmousemove","");
	nahled.over=false;
}
function loader_ready()
{
 nahled.interval=window.setInterval("plus()",nahled.cas);
 (nahled.img).onload=null;
 (nahled.img).style.visibility="visible";
 if (nahled.shadow_right) (nahled.shadow_right).style.height=(nahled.height-15)+"px";
		}
function loader()
{
 if (nahled.interval) clearInterval(nahled.interval);
	 (nahled.img).width=nahled.sWidth;
		(nahled.title).style.width=nahled.sWidth+2;
		(nahled.nahl).style.marginLeft=(-nahled.width/2+nahled.sWidth/2-2)+"px";
	 (nahled.img).height=nahled.sHeight;
	 (nahled.nahl).style.marginTop=(-nahled.height/2+nahled.sHeight/2-2)+"px";
		nahled.nahl.style.display="block";
		(nahled.img).style.visibility="hidden";
		(nahled.img).onload=loader_ready;
		(nahled.img).src=nahled.src;
		(nahled.img).oneror=minus;
 if (nahled.shadow_right) (nahled.shadow_right).style.height=(nahled.height-15)+"px";
}
function plus()
{
 nahled.width+=Math.ceil((nahled.bWidth-nahled.width)/nahled.posun);
 nahled.height+=Math.ceil((nahled.bHeight-nahled.height)/nahled.posun);
	if ((nahled.height==nahled.bHeight) && (nahled.width==nahled.bWidth))
	{
		clearInterval(nahled.interval);
		(nahled.title).style.display="block";
	}
 (nahled.img).width=nahled.width;
	(nahled.title).style.width=(nahled.width+2)+"px";
 (nahled.nahl).style.marginLeft=(-nahled.width/2+nahled.sWidth/2-2+nahled.x)+"px";
 (nahled.img).height=nahled.height;
 (nahled.nahl).style.marginTop=(-nahled.height/2+nahled.sHeight/2-2+nahled.y)+"px";
	if (nahled.shadow_right) (nahled.shadow_right).style.height=(nahled.height-15)+"px";
}
function minus()
{
 if ((nahled.height==nahled.sHeight) && (nahled.width==nahled.sWidth))
 {
			nahled.x=0;
			nahled.y=0;
   clearInterval(nahled.interval);
			(nahled.nahl).style.display="none";
   (nahled.nahl).parentNode.removeChild(nahled.nahl);
			(nahled.obj).style.filter="alpha(opacity: 100)";
			(nahled.obj).style.MozOpacity=1;
			(nahled.obj).style.KHTMLOpacity=1;
			(nahled.obj).style.opacity=1;
			if (nahled.next)
   {
			 (nahled.next.obj).parentNode.insertBefore(nahled.nahl,nahled.next.obj);
 			(nahled.title).innerHTML=nahled.next.tt;
				nahled.src=nahled.next.src;
 			nahled.sWidth=nahled.next.sW;
			 nahled.sHeight=nahled.next.sH;
			 nahled.bWidth=nahled.next.bW;
 			nahled.bHeight=nahled.next.bH;
			 nahled.height=nahled.sHeight;
 			nahled.width=nahled.sWidth;
				if (nahled.shadow_right) (nahled.shadow_right).style.height=(nahled.height-15)+"px";
 			nahled.next=false;

					loader();
			}
   return true;
 }
 else
 (nahled.title).style.display="none";
 nahled.width+=Math.floor((nahled.sWidth-nahled.width)/nahled.posun);
 nahled.height+=Math.floor((nahled.sHeight-nahled.height)/nahled.posun);
	nahled.x-=nahled.x/nahled.posun;
	nahled.y-=nahled.y/nahled.posun;
 (nahled.img).width=nahled.width;
	(nahled.nahl).style.marginLeft=(-nahled.width/2+nahled.sWidth/2-2+nahled.x)+"px";
 (nahled.img).height=nahled.height;
 (nahled.nahl).style.marginTop=(-nahled.height/2+nahled.sHeight/2-2+nahled.y)+"px";
	if (nahled.shadow_right) (nahled.shadow_right).style.height=(nahled.height-15)+"px";
}
function unnahled()
{
	if (document.all)
		document.getElementsByTagName("body")[0].onmousemove=null;
	else
		document.getElementsByTagName("body")[0].setAttribute("onmousemove","");
	if (nahled.over)
	{
		nahled.over=false;
		return false;
	}
	nahled.next=false;
 if (nahled.interval) clearInterval(nahled.interval);
 nahled.interval=window.setInterval("minus()",nahled.cas);
}
function preview(src, obj, tt, sW, sH, bW, bH)
{
	if ((nahled.height==nahled.sHeight) && (nahled.width==nahled.sWidth))
	{
	nahled.xMove=0;
	nahled.yMove=0;
 (nahled.nahl).style.display="none";
 	obj.parentNode.insertBefore(nahled.nahl,obj);
 (nahled.tit).innerHTML=tt;
 nahled.sWidth=sW;
 nahled.sHeight=sH;
 nahled.bWidth=bW;
 nahled.bHeight=bH;
 nahled.height=nahled.sHeight;
 nahled.width=nahled.sWidth;
 nahled.obj=obj;
	nahled.src=src;
 loader();
	obj.style.filter="alpha(opacity: 50)";
	obj.style.MozOpacity=0.5;
	obj.style.KHTMLOpacity=0.5;
	obj.style.opacity=0.5;
 }
 else
 {
			nahled.next={obj: obj, src: src, tt: tt, sW: sW, sH: sH, bW: bW, bH: bH};
 		if (nahled.interval) clearInterval(nahled.interval);
 		nahled.interval=window.setInterval("minus()",nahled.cas);
	}
	return false;
}
