	
	// galeria
 	hs.graphicsDir = '../media/layout/hs-galeria/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.fadeInOut = true;
	hs.wrapperClassName = 'dark';
	hs.dimmingOpacity = 0.75;

	// define the restraining box
	hs.useBox = false;
	hs.width = 900;
	hs.height = 600;
	hs.dimmingOpacity = 0.75;
	
	// Add the controlbar
	hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			opacity: 1,
			position: 'bottom center',
			hideOnMouseOut: true
		}
	});
	
	
	//
	function phpads_deliverActiveX(content)
	{
		document.write(content);	
	}


	// 
	function Co(url, txt)
	{	
		var where_to= confirm(txt);
		if (where_to== true)
			{	window.location=url;	}
	}


	//
	function emoticon(text) 
	{
		var txtarea = document.post.tresctematu;
		text = ' ' + text + ' ';
		if (txtarea.createTextRange && txtarea.caretPos) {
			var caretPos = txtarea.caretPos;
				caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text;
				txtarea.focus();
		} else {
			txtarea.value  += text;
			txtarea.focus();
		}
	}
 
	
	//
	function addBBCode(tag)
	{
		var txtarea = document.post.tresctematu;
		document.getElementsByName("tresctematu")[0].value += "[" + tag + "] [/" + tag + "]";
	}
	
	
	//
	function addURL()
	{
		var url = prompt("Podaj link:", "");
		if(url != null)
			document.getElementsByName("tresctematu")[0].value += "[url=" + url + "]" + url + "[/url]";
	}
	
	
	//
	function addEmail()
	{
		var url = prompt("Podaj adres email:", "");
		if(url != null)
			document.getElementsByName("tresctematu")[0].value += "[email=" + url + "]" + email + "[/email]";
	}
	
	
	//
	function addImg()
	{
		var url = prompt("Podaj adres obrazka:", "");
		if(url != null)
			document.getElementsByName("tresctematu")[0].value += "[img]" + url + "[/img]";
	}	