 /* <![CDATA[ */


var time = 6000;


var bild = new Array();
	bild[0] = "images/loesungen/bruecke-schrift.jpg"; 
	bild[1] = "images/services/leuchtturm-schrift.jpg";
	bild[2] = "images/infrastruktur/berg-schrift.jpg";
var link = new Array();
	link[0] = "loesungen.php"; 
	link[1] = "professional-services.php";
	link[2] = "it-infrastruktur.php";

var n = "1";
function bilderswitch() 
{
	$("#hauptbild").ImageSwitch({NewImage:"" + bild[n] + "", Type: "FadeIn", EffectOriginal: false, Speed: 800});
 
	 
	document.getElementById("link").href = link[n];
	 
	n++;
	n = n % bild.length;

}





// start

function start_bilderswitch()
{

if (n % bild.length == 1)
   {
   $('#button_loesungen').css({
	 'background': 'url(../images/buttons/button_top_loesungen.jpg)'
	 })
	 $('#content_loesungen').css({
	 'background-color': '#f8f8f8'
	 })

} 

   if (n % bild.length == 2)
   {
   $('#button_professional').css({
	 'background': 'url(../images/buttons/button_top_professional.jpg)'
	 })
	 $('#content_services').css({
	 'background-color': '#f8f8f8'
	 })

} 

   if (n % bild.length == 0)
   {
   $('#button_infrastruktur').css({
	 'background': 'url(../images/buttons/button_top_infrastruktur.jpg)'
	 })
	 $('#content_infrastruktur').css({
	 'background-color': '#f8f8f8'
	 })

} 
   start = setInterval("bilderswitch()", time);
}

// stop
function stop_bilderswitch()
{
if (n % bild.length == 1)
   {
   $('#button_loesungen').css({
	 'background': 'url(../images/buttons/button_top_loesungen_a.jpg)'
	 })
	 $('#content_loesungen').css({
	 'background-color': '#f4f4f4'
	 })

} 

   if (n % bild.length == 2)
   {
   $('#button_professional').css({
	 'background': 'url(../images/buttons/button_top_professional_a.jpg)'
	 })
	 $('#content_services').css({
	 'background-color': '#f4f4f4'
	 })


} 

   if (n % bild.length == 0)
   {
   $('#button_infrastruktur').css({
	 'background': 'url(../images/buttons/button_top_infrastruktur_a.jpg)'
	 })
	 $('#content_infrastruktur').css({
	 'background-color': '#f4f4f4'
	 })

} 


   clearInterval(start);
}

function loesungen() {

document.getElementById("link").href = "loesungen.php";
if (n == 1)
   {
   $("#hauptbild").ImageSwitch({NewImage:"images/loesungen/bruecke-schrift.jpg", Type: "FadeIn", EffectOriginal: true, Speed: 1});

}
else
{

$("#hauptbild").ImageSwitch({NewImage:"images/loesungen/bruecke-schrift.jpg", Type: "FadeIn", EffectOriginal: true, Speed: 350});
}
n = 1;

$('#button_loesungen').css({
	 'background': 'url(../images/buttons/button_top_loesungen_a.jpg)'
	 })
	 $('#content_loesungen').css({
	 'background-color': '#f4f4f4'
	 })

}

function professional_services() {

document.getElementById("link").href = "professional-services.php";
if (n == 2)
   {
   $("#hauptbild").ImageSwitch({NewImage:"images/services/leuchtturm-schrift.jpg", Type: "FadeIn", EffectOriginal: false});

}
else
{
$("#hauptbild").ImageSwitch({NewImage:"images/services/leuchtturm-schrift.jpg", Type: "FadeIn", EffectOriginal: true, Speed: 350});
}
n = 2;

$('#button_professional').css({
	 'background': 'url(../images/buttons/button_top_professional_a.jpg)'
	 })
	 	 $('#content_services').css({
	 'background-color': '#f4f4f4'
	 })
	 

}

function it_infrastruktur() {

document.getElementById("link").href = "it-infrastruktur.php";

if (n == 0)
   {

   $("#hauptbild").ImageSwitch({NewImage:"images/infrastruktur/berg-schrift.jpg", Type: "FadeIn", EffectOriginal: false});

}
else
{
$("#hauptbild").ImageSwitch({NewImage:"images/infrastruktur/berg-schrift.jpg", Type: "FadeIn", EffectOriginal: true, Speed: 350});
}
n = 0;


$('#button_infrastruktur').css({
	 'background': 'url(../images/buttons/button_top_infrastruktur_a.jpg)'
	 })
	 $('#content_infrastruktur').css({
	 'background-color': '#f4f4f4'
	 })
	 

}

$(document).ready(function() {

$('#button_loesungen').mouseover(function() {
	 $(this).css({
	 'background': 'url(../images/buttons/button_top_loesungen_a.jpg)'
	 })
	 $('#content_loesungen').css({
	 'background-color': '#f4f4f4'
	 })

   });
   
$('#button_loesungen').mouseout(function() {
	 $(this).css({
	 'background': 'url(../images/buttons/button_top_loesungen.jpg)'
	 })
	 $('#content_loesungen').css({
	 'background-color': '#f8f8f8'
	 })


   });
   
   $('#menumainloesungen').mouseover(function() {
	 	 	 	 	 	 $('#menumainloesungen').css({
	 'text-decoration': 'underline'
	 })

	 })
	 
   $('#menumainloesungen').mouseout(function() {
	  $('#menumainloesungen').css({
	 'text-decoration': 'none'
	 })

	 })
   

$('#button_professional').mouseover(function() {
	 $(this).css({
	 'background': 'url(../images/buttons/button_top_professional_a.jpg)'
	 })
	 	 $('#content_services').css({
	 'background-color': '#f4f4f4'
	 })
	 

   });
   
$('#button_professional').mouseout(function() {
	 $(this).css({
	 'background': 'url(../images/buttons/button_top_professional.jpg)'
	 })
	 	 $('#content_services').css({
	 'background-color': '#f8f8f8'
	 })
	 

	 
	
   });
   
      $('#menumainservices').mouseover(function() {
	 	 	 	 	 	 $('#menumainservices').css({
	 'text-decoration': 'underline'
	 })

	 })
	 
   $('#menumainservices').mouseout(function() {
	  $('#menumainservices').css({
	 'text-decoration': 'none'
	 })

	 })
   
$('#button_infrastruktur').mouseover(function() {
	 $(this).css({
	 'background': 'url(../images/buttons/button_top_infrastruktur_a.jpg)'
	 })
	 $('#content_infrastruktur').css({
	 'background-color': '#f4f4f4'
	 })

   });
   
$('#button_infrastruktur').mouseout(function() {
	 $(this).css({
	 'background': 'url(../images/buttons/button_top_infrastruktur.jpg)'
	 })
	 	 $('#content_infrastruktur').css({
	 'background-color': '#f8f8f8'
	 })

   });
  
        $('#menumaininfrastruktur').mouseover(function() {
	 	 	 	 	 	 $('#menumaininfrastruktur').css({
	 'text-decoration': 'underline'
	 })

	 })
	 
   $('#menumaininfrastruktur').mouseout(function() {
	  $('#menumaininfrastruktur').css({
	 'text-decoration': 'none'
	 })

	 })

});


   
   
function clear_loesungen() {
$('#button_loesungen').css({
	 'background': 'url(../images/buttons/button_top_loesungen.jpg)'
	 })
$('#content_loesungen').css({
	 'background-color': '#f8f8f8'
	 })
	 
	  $('#menumainloesungen').css({
	 'text-decoration': 'none'
	 })
}


function clear_professional() {
$('#button_professional').css({
	 'background': 'url(../images/buttons/button_top_professional.jpg)'
	 })
$('#content_services').css({
	 'background-color': '#f8f8f8'
	 })
	 
	  $('#menumainservices').css({
	 'text-decoration': 'none'
	 })
}


function clear_infrastruktur() {
$('#button_infrastruktur').css({
	 'background': 'url(../images/buttons/button_top_infrastruktur.jpg)'
	 })
$('#content_infrastruktur').css({
	 'background-color': '#f8f8f8'
	 })
	 
	  $('#menumaininfrastruktur').css({
	 'text-decoration': 'none'
	 })
}




/* ]]> */


