$(document).ready(function(){
	 $('.gallery a').lightBox();
	 $('.gallery_sa').lightBox();
	 

	 // *** HLASKY
	 $('.bu_button_inf_1').CreateBubblePopup({
		position : 'top',
		align	 : 'center',
		innerHtmlStyle: { color:'#000', 'text-align':'center' },											
		themeName: 	'azure',
		themePath: 	'/js/jquery/jquerybubblepopup/jquerybubblepopup-theme',
			innerHtml: '<i>Po naplnění katalogových listů budou k dispozici i produktové listy<br /><br /></i>'
	 });	 
	 $('.bu_button_inf_2').CreateBubblePopup({
		position : 'top',
		align	 : 'center',
		innerHtmlStyle: { color:'#000', 'text-align':'center' },											
		themeName: 	'azure',
		themePath: 	'/js/jquery/jquerybubblepopup/jquerybubblepopup-theme',
			innerHtml: '<i>Pracuje se na naplnení katalogových listů<br />Děkujeme za trpělivost<br /></i>'
	 });
	 $('.bu_button_inf_en_v').CreateBubblePopup({
		position : 'right',
		align	 : 'center',
		innerHtmlStyle: { color:'#000', 'text-align':'center' },											
		themeName: 	'azure',
		themePath: 	'/js/jquery/jquerybubblepopup/jquerybubblepopup-theme',
			innerHtml: '<i>Anglická verze je dočasne pozastavená<br />Děkujeme za pochopení<br /></i>'
	 });
	 
	 // zobrazenie na kod pri stiahnuti na heslo PDF
	 $("#code_int_ver").click(function () {
		 $("#code_int_ver_inp").toggle("slow");
	 });
	 
	 
});


function sendBack(id, actionz, accor){
	//alert(id);
	//alert(actionz);
	document.getElementById('i_backx_z').value = id;
	document.getElementById('o_a').value = accor;
	//alert(document.getElementById('o_a').value);
	document.getElementById('form_backx').action = actionz;
	document.getElementById('form_backx').submit();
	
	
	/*
	document.getElementById('i_backx_z').action = id;
	document.getElementById('form_backx').action = actionz;
	
	//echo "<br /><a href='{$DOMENA}".($_SESSION["back_"][$id-1])."' onclick=\"sendBack='{$id}';\" >{$id}:{$slink}";
	document.getElementById('form_backx').submit();
	*/
}
