// JavaScript Document
window['$glr'] = {
	
	light:function(typ, kol, id){
	this.typ = typ;
	this.kol = kol;
	this.id = id;
	this.ini();
		},
	ini:function(){
		$("body").append(
		'<div id="light" onclick="$glr.clos();">'+
		'<div id="pan"> <a href="javascript:$glr.clos();">Zamknij</a></div>'+
		'<div id="li" >'+
		'<img id="cel" src="" style="dispaly:none;" onload="$(this).fadeIn();"'+
		'</div>'+
		'</div>'			 
		);
		$("#light").animate({opacity:"show"},"fast");
		this.sr();
		},
	clos:function(){
		$("#light").remove();
		},
	sr:function(){
		$("#cel").attr("src", "").attr("src", "public/"+this.typ+"/"+this.kol+"/"+this.id+".jpg");
		}
	};