$(function(){
    $('.theme-text-3').click(function(){
    	idelem = $(this).attr('id');
        idelemdiv = idelem.replace('h-', 'c-');
        $('#'+idelemdiv).toggle("fast");
        $('#'+idelem).toggle("fast");
    });
});

$(function(){
    $('.theme-text-2').click(function(){
    	idelem = $(this).attr('id');
        idelemdiv = idelem.replace('t-', 'c-');
        idelemdiv1 = idelem.replace('t-', 'h-');
        $('#'+idelemdiv).toggle("fast");
        $('#'+idelemdiv1).toggle("fast");
        //$('#'+idelem).toggle("fast");
    });
});

$(function(){
    $('.theme-text-6').click(function(){
    	idelem = $(this).attr('id');
        idelemdiv = idelem.replace('h-', 'c-');
        $('#'+idelemdiv).toggle("fast");
        $('#'+idelem).toggle("fast");
    });
});

$(function(){
    $('.theme-text-4').click(function(){
    	idelem = $(this).attr('id');
        idelemdiv = idelem.replace('t-', 'c-');
        idelemdiv1 = idelem.replace('t-', 'h-');
        $('#'+idelemdiv).toggle("fast");
        $('#'+idelemdiv1).toggle("fast");
        
    });
});


$(function(){
    $('#SERVICE3').click(function(){    	
        $('#MENUE3').toggle("fast");
        });
});

$(function(){
    $('#SERVICE2').click(function(){    	
        $('#M2').toggle("fast");
    });
});

$(function(){
    $('#SERVICE1').click(function(){    	
        $('#M1').toggle("fast");
    });
});

$(function() {
	$('.lightbox').lightBox({fixedNavigation:false});
});

$(function() {
	$('.lightbox1').lightBox({fixedNavigation:false});
});

$(function() {
	$('.lightbox2').lightBox({fixedNavigation:false});
});

$(function() {
	$('.lightbox3').lightBox({fixedNavigation:false});
});

$(function() {
	$('.lightbox4').lightBox({fixedNavigation:false});
});

$(function() {
	$('.lightbox5').lightBox({fixedNavigation:false});
});

$(function() {
	$('.lightbox6').lightBox({fixedNavigation:false});
});

function EnableDisableDIV(_field,_container) {
              if ($('#'+_field).attr("checked")) {
                  $('#'+_container).show();
              												} else {
              	$('#'+_container).hide();
              }             
          }
          
function doSubmitCatalog () {

	$val = "true";
	var Teststring = $("#_Email").val();
	var check1 = Teststring.indexOf ('@',0);
	var check2 = Teststring.indexOf ('.',0);

	$('#_Catalog').attr('checked', 'checked');
	if ($("#_Email").val() == "" || $("#_Name").val() == "" || check1 == "-1" || check2 == "-1") {
		$val = "false";
			} 
	
	if ($val == "true") {
		document.forms.kontakt.submit();
	} else {
		alert("Bitte tragen Sie Ihren Namen und Ihre E-Mail-Adresse ein.");
	}	

}



function doSubmitCatalogS () {
$return = "true";
var valCheck = 'true';
var Teststring = $("#_Email").val();
var check1 = Teststring.indexOf ('@',0);
var check2 = Teststring.indexOf ('.',0);

if($("#_Catalog").is(":checked") == true) {
	if ($("#_Email").val() == "" || $("#_Name").val() == "" || check1 == "-1" || check2 == "-1") {
		valCheck    = -1;
	}
	
	
	
	if (valCheck == "true") {
		document.forms.kontakt.submit();
	} else {
		alert("Bitte tragen Sie Ihren Namen und Ihre E-Mail-Adresse ein.");
		
	} 

} else {
	if ($("#_Email").val() == "" || $("#_Name").val() == "" || check1 == "-1" || check2 == "-1") {
		valCheck    = -1;
	} 

if (valCheck == "true") {
		document.forms.kontakt.submit();
	} else {
		alert("Bitte tragen Sie Ihren Namen und Ihre E-Mail-Adresse ein.");
	} 

	
}


}

function doSubmitService () {

	$val = "true";
	var Teststring = $("#_Email").val();
	var check1 = Teststring.indexOf ('@',0);
	var check2 = Teststring.indexOf ('.',0);

	$("#_Catalog").val("true");
	//alert($("#_Catalog").val());
	
	if ($("#_Email").val() == "" || $("#_Name").val() == "" || check1 == "-1" || check2 == "-1") {
			$val = "false";
		} 
	
	if ($val == "true") {
		document.forms.service.submit();
	} else {
	alert("Bitte tragen Sie Ihren Namen und Ihre E-Mail-Adresse ein.");
	}

}

function doSubmitServiceS () {
	
		
	$val = "true";
	var Teststring = $("#_Email").val();
	var check1 = Teststring.indexOf ('@',0);
	var check2 = Teststring.indexOf ('.',0);
	
	
	if ($("#_Email").val() == "" || $("#_Name").val() == "" || check1 == "-1" || check2 == "-1") {
			$val = "false";
		} 
	
	if ($val == "true") {
		document.forms.service.submit();
	} else {
	alert("Bitte tragen Sie Ihren Namen und Ihre E-Mail-Adresse ein.");
	}

}

$(function() {
$('#set1 *').tooltip();

$("#foottip a").tooltip({
	bodyHandler: function() {
		return $($(this).attr("href")).html();
	},
	showURL: false
});

$('#tonus').tooltip({
	delay: 0,
	showURL: false,
	bodyHandler: function() {
		return $("<img/>").attr("src", this.src);
	}
});

$('#tool a').tooltip({
	track: true,
	delay: 0,
	showURL: false,
	showBody: " - ",
	fade: 250
});

$("select").tooltip({
	left: 25
});

$("map > area").tooltip({ positionLeft: true });

$("#fancy, #fancy2").tooltip({
	track: true,
	delay: 0,
	showURL: false,
	fixPNG: true,
	showBody: " - ",
	extraClass: "pretty fancy",
	top: -15,
	left: 5
});

$('#pretty').tooltip({
	track: true,
	delay: 0,
	showURL: false,
	showBody: " - ",
	extraClass: "pretty",
	fixPNG: true,
	left: -120
});

$('#right a').tooltip({
	track: true,
	delay: 0,
	showURL: false,
	extraClass: "right"
});
$('#right2 a').tooltip({ showURL: false, positionLeft: true });

$("#block").click($.tooltip.block);

});


function doPrint() {
    $('div').show();
	window.print();	
}

