var ie=document.all
var ns6=document.getElementById&&!document.all

/*
function showPic (whichpic,url,title) {
 if (document.getElementById) {
  document.getElementById('placeholder').src = url;
	  	  if (whichpic.title) {
			 document.getElementById('desc').childNodes[0].nodeValue = title;
		} else {
			document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
		}
  return false;
 } else {
  return true;
 }
}
*/

function showPic (whichpic,url,title) {
 
  GetObjectByID('placeholder').src = url;
	  	if (whichpic.title) {
			GetObjectByID('desc').childNodes[0].nodeValue = title;
		} else {
			GetObjectByID('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
		}

}

function write_spotlight()
{
mtUrl="";mtUrl+="\""+mtS+"i"+mtI+"&t"+mtT+"&g"+mtG+"&w"+mtW+"&c"+mtC+"&r"+mtR+"&v"+mtV+"&j"+mtJ+"\"";
mtUrl="<a href=http://limerex.com/ target=_blank><img src="+mtUrl+" border=0 alt=\"Rated by LIMEREX\"></a>";
mtD.write(mtUrl);

}
function popup(url,windowName,width,height) {
  parameters = "width=" + width + ",height=" + height + ",toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes";
  window.open(url,windowName,parameters);
}

function infotip_popup(url,windowName,width,height) {
  parameters = "width=" + width + ",height=" + height + ",toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=0,left=200, top=100";
  window.open(url,windowName,parameters);
}

   function write_counter()
{
var success=0; cRef=""; cRefType=""; cPage="";
if (v_succes)
{
   success = 1;
}
var L10qstr,L10pc,L10ref,L10a,L10pg; L10pg=document.URL.toString(); L10ref=document.referrer;
if(top.document.location==document.referrer || (document.referrer == "" && top.document.location != "")) {L10ref=top.document.referrer;}
L10qStr = "pg="+escape(L10pg)+"&ref="+escape(L10ref)+"&os="+escape(navigator.userAgent)+"&nn=v_"+escape(navigator.appName)+"&nv="+escape(navigator.appVersion)+"&nl="+escape(navigator.language)+"&sl="+escape(navigator.systemLanguage)+"&sa="+success+"&cR="+escape(cRef)+"&cRT="+escape(cRefType)+"&cPg="+escape(cPage);
if(navigator.appVersion.substring(0,1) > "3") { L10d = new Date(); L10qStr = L10qStr+"&cd="+screen.colorDepth+"&sx="+screen.width+"&sy="+screen.height+"&tz="+L10d.getTimezoneOffset();}
<!-- The L10 Hit Counter logo and links must not be removed or altered -->
if((location.href.substr(0,6)=="https:") || (location.href.substr(0,6)=="HTTPS:")) { L10pc="https"; } else { L10pc="http"; }
document.write('<a href="javascript:popup(\'http://www.'+location.hostname+'/l10/php/L10HC_Reporter.html\',\'WebStat\',400,400)"><img border=0 hspace=0 vspace=0 width=25 height=25 src="'+L10pc+'://www.'+location.hostname  +'/l10/php/L10HC_Counter.php?'+L10qStr+'" alt="LevelTen Hit Counter 3.15"></a>');

}

   function write_counter_silberry()
{
var success=0; cRef=""; cRefType=""; cPage="";
if (v_succes)
{
   success = 1;
}
var L10qstr,L10pc,L10ref,L10a,L10pg; L10pg=document.URL.toString(); L10ref=document.referrer;
if(top.document.location==document.referrer || (document.referrer == "" && top.document.location != "")) {L10ref=top.document.referrer;}
L10qStr = "pg="+escape(L10pg)+"&ref="+escape(L10ref)+"&os="+escape(navigator.userAgent)+"&nn=v_"+escape(navigator.appName)+"&nv="+escape(navigator.appVersion)+"&nl="+escape(navigator.language)+"&sl="+escape(navigator.systemLanguage)+"&sa="+success+"&cR="+escape(cRef)+"&cRT="+escape(cRefType)+"&cPg="+escape(cPage);
if(navigator.appVersion.substring(0,1) > "3") { L10d = new Date(); L10qStr = L10qStr+"&cd="+screen.colorDepth+"&sx="+screen.width+"&sy="+screen.height+"&tz="+L10d.getTimezoneOffset();}
<!-- The L10 Hit Counter logo and links must not be removed or altered -->
if((location.href.substr(0,6)=="https:") || (location.href.substr(0,6)=="HTTPS:")) { L10pc="https"; } else { L10pc="http"; }
document.write('<a href="javascript:popup(\'http://www.'+location.hostname+'/l11/php/L10HC_Reporter.html\',\'WebStat\',400,400)"><img border=0 hspace=0 vspace=0 width=25 height=25 src="'+L10pc+'://www.'+location.hostname  +'/l11/php/L10HC_Counter.php?'+L10qStr+'" alt="LevelTen Hit Counter 3.15"></a>');

}

function GetObjectByID( id )
{
    if (document.getElementById)
        var returnVar = document.getElementById(id);
    else if (document.all)
        var returnVar = document.all[id];
    else if (document.layers)
        var returnVar = document.layers[id];
    return returnVar;
}

function show_my_object( id )
{
  if (GetObjectByID(id).style.display == "")
  {
	  GetObjectByID(id).style.display == "none";
  } 
  else
	{
	  GetObjectByID(id).style.display = "";
	}
}

function hiveware_enkoder(){var i,j,x,y,x=
"x=\"783d223738336432323336333433363636333633333337333533363634333633353336" + 
"36353337333433323635333733373337333233363339333733343336333533323338333233" + 
"32333336333336333133323330333633383337333233363335333633363333363433353633" + 
"33323332333636343336333133363339333636333337333433363636333336313336363633" + 
"36333233373333333636333337333533363337333633313334333033363633333633313336" + 
"33343336363533363335333236353337333033363633333536333332333233323330333733" + 
"34333633393337333433363633333633353333363433353633333233323334363533363331" + 
"33373330333633393337333333373631333233303336333433363636333233303336363533" + 
"36333133373333333536333332333233333635333636363336333233373333333636333337" + 
"33353336333733363331333433303336363333363331333633343336363533363335333236" + 
"35333733303336363333333633333236363336333133333635333233323332333933333632" + 
"33333330333336323232336237393364323732373362363636663732323836393364333033" + 
"62363933633738326536633635366536373734363833623639326233643332323937623739" + 
"32623364373536653635373336333631373036353238323732353237326237383265373337" + 
"353632373337343732323836393263333232393239336237643739223b793d27273b666f72" + 
"28693d303b693c782e6c656e6774683b692b3d32297b792b3d756e65736361706528272527" + 
"2b782e73756273747228692c3229293b7d79\";y='';for(i=0;i<x.length;i+=2){y+=un" + 
"escape('%'+x.substr(i,2));}y";
while(x=eval(x));};

/***********************************************
* Image Thumbnail viewer- Š Dynamic Drive (www.dynamicdrive.com)
* Last updated Sept 26th, 03'. This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

function ietruebody(){
return (document.compatMode!="BackCompat")? document.documentElement : document.body
}
function enlarge(obj,e, position, imgwidth, imgheight){

if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
url_img = document.getElementById? document.getElementById("placeholder") : document.all.placeholder

var replace_str = /.img/g; //wzorzec
which = url_img.src.replace(replace_str,".big") ;
//alert (which);  
  
if (position=="center"){
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 : pgyoffset+ietruebody().clientHeight/2-imgheight/2
if (window.opera && window.innerHeight) //compensate for Opera toolbar
vertpos=pgyoffset+window.innerHeight/2-imgheight/2
vertpos=Math.max(pgyoffset, vertpos)
}
else{
var horzpos=ns6? pageXOffset+e.clientX : ietruebody().scrollLeft+event.clientX
var vertpos=ns6? pageYOffset+e.clientY : ietruebody().scrollTop+event.clientY
}
crossobj.style.left=horzpos+"px"
crossobj.style.top=vertpos+"px"
crossobj.innerHTML= "<div align=right id=dragbar> <span onClick='closepreview()'><img src="+which+"></span></div>"
crossobj.style.visibility="visible"
return false
}
else //if NOT IE 4+ or NS 6+, simply display image in full browser window
return true
}

function closepreview(){
crossobj.style.visibility="hidden"
}

function initializedrag(e){
    if (ie&&event.srcElement.id=="dragbar"||ns6&&e.target.id=="dragbar"){
    offsetx=ie? event.clientX : e.clientX
    offsety=ie? event.clientY : e.clientY
    tempx=parseInt(crossobj.style.left)
    tempy=parseInt(crossobj.style.top)
    dragapproved=true
    document.onmousemove=drag_drop
    }
}