lc.baseURI = url + "www/script/";
lc.register( 'prototype.prototype' );
lc.register( 'prototype.base' );
lc.register( 'prototype.string' );
lc.register( 'prototype.enumerable' );
lc.register( 'prototype.ajax' );
lc.register( 'prototype.array' );
lc.register( 'prototype.dom' );
lc.register( 'prototype.event' );
lc.register( 'prototype.form' );
lc.register( 'prototype.hash' );
lc.register( 'prototype.position' );
lc.register( 'prototype.range' );
lc.register( 'json.json' );


function picWin(im,wi,he,titl,mess,winpars){
	
	var vp = getViewportSize();
	var w = vp[0];
	var h = vp[1];
	 
	wi +=40;
	he +=40;
	var wL = (w-wi) / 2;
	var wT = ((h-he) / 2) + 100;
	var wp;
	var img=new Image();
	img.src=im;
	wp="width="+wi+",height="+(typeof(titl)=="undefined"?he:he+15)+",left="+wL+",top="+wT+(typeof(winpars)=="undefined"?"":winpars);
	var vokno=window.open("","",wp);
	vokno.document.open();
	vokno.document.write('<html><head><title>'+(typeof(titl)=="undefined"?"":titl)+'</title>'+
	'<meta http-equiv="content-type" content="text/html; charset=utf-8">'+
	'<style>body{margin:0;padding:20px 20px 5px 20px;background:#B3B3B3;font-size:10pt;letter-spacing:0.05em;font-family: Arial, Helvetica, sans-serif;body} p{margin-top:5px;text-align:center;font-size:10pt}</style>'+
	'</head><body>'+
	'<img src="'+im+'" alt="'+(typeof(mess)=="undefined"?"Kliknutím zavřete okno":mess)+
	'" title="'+(typeof(mess)=="undefined"?"Kliknutím zavřete okno":mess)+
	'" onclick="window.close()" style="display:block;cursor:pointer;cursor:hand;border:0px #FFFF01 solid;">'+
	(typeof(titl)=="undefined"?"":'<p>'+titl+'</p>')+
	'</body></html>');
	vokno.document.close();
	return typeof(vokno)=="object"?true:false;
}

function img_type1(elm){
	elm.onmouseover = function(){this.style.border='1px #D35501 solid';}
	elm.onmouseout = function(){this.style.border='1px #FFFF01 solid';}
}
function img_type2(elm){
	elm.onmouseover = function(){this.style.border='3px #D35501 solid';}
	elm.onmouseout = function(){this.style.border='3px #FFFF01 solid';}
}
function img_type3(elm){
	elm.onmouseover = function(){this.style.border='3px #D35501 solid';}
	elm.onmouseout = function(){this.style.border='3px #FFFF01 solid';}
}

Loader.register("applyStyles()");
Loader.register("applyMO()");
Loader.register("preFX()");

