// JavaScript Document

function zaprightmenu(id){
	if(document.getElementById(id).className =='boxbig'){
		document.getElementById(id).className = 'box';
		document.getElementById(id+'_text').style.display = 'none';
	}else{
		document.getElementById(id).className = 'boxbig';
		document.getElementById(id+'_text').style.display = 'block';
	}
}

function zap(id) {
    if (document.getElementById(id).style.display == 'block') {
        $('#' + id + '').slideUp(500);
        //document.getElementById(id).style.display = 'none'
    } else {
    $('#' + id + '').slideDown(500);
        //document.getElementById(id).style.display = 'block'
    }
}

function hidenshow(hideid,showid){
		document.getElementById(hideid).style.display = 'none';
		document.getElementById(showid).style.display = 'block';
}

function setTitle(o, title, id) {
    if (o.value == "") {
        o.title = "";
        o.id = "";
        errorLayout(o, true)
    } else {
        o.title = title;
        o.id = id;
    }
}

function ShowContactFormResult(content) {
    document.getElementById("contactForm").style.display = 'none';
    document.getElementById("contactFormResult").style.display = 'block';
}

function rollme(){
	if($('#container_header').css('height') == '4px'){
		$('#container_header').css('height','auto')
		$('#container_header').css('display','none')
		$('#container_header').slideDown("slow")
	}else{
		$('#container_header').slideUp("slow", function(){
			$('#container_header').css('height','4px')
			$('#container_header').slideDown("fast")
		})
	}
}