<!--

$(document).ready(function() {  
    
    $("a.floatBox").fancybox({ 
        'hideOnContentClick': false,
        'titleShow'		: false,
    		'transitionIn'	: 'elastic',
    		'transitionOut'	: 'fade'
    });
    
});

function checkForm(id) {
    id = document.getElementById(id);
    
    if (id.name.value == "") { 
        alert("Uveďte Vaše meno!");
        id.name.focus();
        return false; 
    }
    if (id.tel.value == "" && id.email.value == "") { 
        alert("Uveďte Vaše telefónne číslo, alebo email!");
        id.tel.focus();
        return false; 
    }
    if (id.text.value=="") { 
        alert("Uveďte text správy!");
        id.text.focus();
        return false; 
    }
	
} 
function menuOpen(id) {
    var submenu = document.getElementById('submenu-'+id);
    //var item = document.getElementById('sub-ico'+id);

    if(submenu.className == 'opened') {
        submenu.className = 'closed';
        //item.source = './image/sub_close.png';
    }
    else {
        submenu.className = 'opened';
        //item.className = 'minus';
        //item.source = './image/sub_open.png';
        //alert(item.source);
    }
} 
function showOrderPlace(id,status) {
    var id = document.getElementById(id);
    var idDelivery = document.getElementById('orderInfoDelivery');
    var idPlace = document.getElementById('orderInfoPlace');

    if(status == 'show') {
        idPlace.className = 'showBox';
        idDelivery.className = 'hideBox';
    }
    else {
        idPlace.className = 'hideBox';
        idDelivery.className = 'showBox';
    }
} 
function showQuotationPlace(id,status) {
    var id = document.getElementById(id);
    var idDelivery = document.getElementById('quotationInfoDelivery');
    var idPlace = document.getElementById('quotationInfoPlace');

    if(status == 'show') {
        idPlace.className = 'showBox';
        idDelivery.className = 'hideBox';
    }
    else {
        idPlace.className = 'hideBox';
        idDelivery.className = 'showBox';
    }
} 

-->

