/*
function showSearch(hlaska){
var ftText = document.getElementById("fulltextSearchText");
									if ( ftText.value == "" )
										ftText.value = hlaska;

									ftText.tabIndex = "1";

									// Doplneni udalosti onfocus a onblur na pole pro zadani vyhledavaneho textu
									ftText.onfocus	= function() { checkInputValue(this, hlaska); };
									ftText.onblur		= function() { checkInputValue(this, hlaska); };

									// Kontrola odesilaneho vyhledavaneho textu, aby se neodesilal vychozi text
									document.getElementById("fulltextSearch").onsubmit = function() { return checkFormValue(hlaska); };
                 }
                 
                           */
function showForm(jmeno,telefon){

var email = 'e-mail';
var ftJmeno = document.getElementById("pfJmeno");
var ftTelefon = document.getElementById("pfTelefon");
var ftEmail = document.getElementById("pfEmail");

									if ( ftJmeno.value == "" )
										ftJmeno.value = jmeno;
									if ( ftTelefon.value == "" )
                  	ftTelefon.value = telefon;
									if ( ftEmail.value == "" )
                    ftEmail.value = email;

									ftJmeno.tabIndex = "1";

									// Doplneni udalosti onfocus a onblur na pole pro zadani vyhledavaneho textu
									ftJmeno.onfocus	= function() { checkInputValue(this, jmeno); };
									ftJmeno.onblur		= function() { checkInputValue(this, jmeno); };
									
                  ftTelefon.onfocus	= function() { checkInputValue(this, telefon); };
									ftTelefon.onblur		= function() { checkInputValue(this, telefon); };
									
                  ftEmail.onfocus	= function() { checkInputValue(this, email); };
									ftEmail.onblur		= function() { checkInputValue(this, email); };
									
									// Kontrola odesilaneho vyhledavaneho textu, aby se neodesilal vychozi text
									document.getElementById("pfJmeno").onsubmit = function() { return checkFormValue(jmeno); };
									document.getElementById("pfTelefon").onsubmit = function() { return checkFormValue(telefon); };
									document.getElementById("pfEmail").onsubmit = function() { return checkFormValue("e-mail"); };
                 }
                 
function faqChangeIcon (el, viewClass, hideClass, viewTitle, hideTitle ) {

	if ( el.className.search(viewClass) !== -1 )
	{
		el.className	= el.className.replace(viewClass, hideClass);
		el.title			= hideTitle;
	}
	else
	{
		el.className	= el.className.replace(hideClass, viewClass)
		el.title			= viewTitle;
	}

}

function checkInputValue (el, val) {

	if (el.value == val)
		el.value = "";
	else if (el.value == "")
		el.value = val;

}

function checkFormValue (val) {

	if ( ftText.value == val )
	{
		ftText.focus();
		return false;
	}

	return true;

}

function slideshowHover (el, hover) {

	if ( hover == true )
	{
		if ( RubicusFrontendIns.isSlideshowMode() )
			el.className = 'enableControl hoverButton slideshowRunningHover';
		else
			el.className = 'enableControl hoverButton';
	}
	if ( hover == false )
	{
		if ( RubicusFrontendIns.isSlideshowMode() )
			el.className = 'enableControl slideshowRunning';
		else
			el.className = 'enableControl';
	}

}
                 
