	var picX=0;

	$(function(){
				
		$('a.lbox').lightBox();
		
		
		
		//PNGFIX FOR IE6
		/*if (jQuery.browser.version.substr(0,2)=='6.'){
			DD_belatedPNG.fix('img, .png_bg');
		}*/
		
		//EMAIL PROTECTION
		/*$('.eprot').each(
			function(){
				$(this).html('<a href="mailto:'+$(this).html().replace('|','@').replace('/','').replace(':','.')+'" title="E-mail: '+$(this).html().replace('|','@').replace('/','').replace(':','.')+'">'+$(this).html().replace('|','[kukac]').replace('/','').replace(':','.')+'</a>');
			}
		);*/

	});
	
	//FILL VAL IF CHECK
	function inpCheckFill(item,check,val){
		if($(item).val()==check) $(item).val(val);
	}
	
	function apparate(item){
		if ($('#'+item).is(':hidden')) $('#'+item).show('fast');
		else $('#'+item).hide('fast');
	}
	
	function appItem(item){
		if ($(item).is(':hidden')) $(item).show('fast');
		else $(item).hide('fast');
	}

	function picGal(num){
				
		var actSize=(-1*$('#pic_measure').width())+Math.abs(num);
		if (num>0 && picX<0) picX+=num;
		if (num<0 && picX>actSize) picX+=num;
		
		$('#picholder').animate({left: picX});
		
	}
	
	function dispTxt(str,tip){
		if (tip=='warn'){
			return "<div class='warn' style='margin: 5px; padding: 5px;' >"+str+"</div>";
		}
		if (tip==''){
			return "<div style='padding: 10px;' >"+str+"</div>";
		}
		if (tip=='buback'){
			return "<div class='buback' style='padding: 10px; margin-top:1px;' >"+str+"</div>";
		}
	}
