 /* <![CDATA[ */

var time = 5000;
var bild = new Array();
	bild[0] = "images/services/standard-1.jpg";
	bild[1] = "images/systeme/standard-1.jpg";
	bild[2] = "images/loesungen/standard-1.jpg";
			
var link = new Array();
	link[0] = "it-services.php";
	link[1] = "it-systeme.php";
	link[2] = "it-loesungen.php";

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

// start

function start_bilderswitch()
{



if (bild[n] == "images/services/standard-1.jpg")
   {
   $('#button_services').css({
	 'background': 'url(images/buttons/button_top_services.jpg)'
	 })
	 $('#content_services').css({
	 'background-color': '#f8f8f8'
	 })

} 



if (bild[n] == "images/systeme/standard-1.jpg")
   {
   $('#button_systeme').css({
	 'background': 'url(images/buttons/button_top_systeme.jpg)'
	 })
	 $('#content_systeme').css({
	 'background-color': '#f8f8f8'
	 })

} 


if (bild[n] == "images/loesungen/standard-1.jpg")
   {
   $('#button_loesungen').css({
	 'background': 'url(images/buttons/button_top_loesungen.jpg)'
	 })
	 $('#content_loesungen').css({
	 'background-color': '#f8f8f8'
 })

}  

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

// stop
function stop_bilderswitch()
{
if (bild[n] == "images/services/standard-1.jpg")
   {
   $("#hauptbild").ImageSwitch({NewImage:"images/services/standard-1.jpg", Type: "FadeIn", EffectOriginal: false, Speed: 300});
   $('#button_services').css({
	 'background': 'url(images/buttons/button_top_services_a.jpg)'
	 })
	 $('#content_services').css({
	 'background-color': '#f4f4f4'
	 })
} 
if (bild[n] == "images/systeme/standard-1.jpg")
   {
   $("#hauptbild").ImageSwitch({NewImage:"images/systeme/standard-1.jpg", Type: "FadeIn", EffectOriginal: false, Speed: 300});
   $('#button_systeme').css({
	 'background': 'url(images/buttons/button_top_systeme_a.jpg)'
	 })
	 $('#content_systeme').css({
	 'background-color': '#f4f4f4'
	 })
}
if (bild[n] == "images/loesungen/standard-1.jpg")
   {
   $("#hauptbild").ImageSwitch({NewImage:"images/loesungen/standard-1.jpg", Type: "FadeIn", EffectOriginal: false, Speed: 300});
   $('#button_loesungen').css({
	 'background': 'url(images/buttons/button_top_loesungen_a.jpg)'
	 })
	 $('#content_loesungen').css({
	 'background-color': '#f4f4f4'
	 })

} 
  clearInterval(start);
}

function services() {
document.getElementById("link").href = "it-services.php";
if (bild[n] == "images/services/standard-1.jpg")
   {
   $("#hauptbild").ImageSwitch({NewImage:"images/services/standard-1.jpg", Type: "FadeIn", EffectOriginal: true, Speed: 300});

}
else
{
$("#hauptbild").ImageSwitch({NewImage:"images/services/standard-1.jpg", Type: "FadeIn", EffectOriginal: true, Speed: 300});
}
n = 0;

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

function systeme() {
document.getElementById("link").href = "it-systeme.php";

if (bild[n] == "images/systeme/standard-1.jpg")
   {
   $("#hauptbild").ImageSwitch({NewImage:"images/systeme/standard-1.jpg", Type: "FadeIn", EffectOriginal: true, Speed: 300});

}
else
{ 
$("#hauptbild").ImageSwitch({NewImage:"images/systeme/standard-1.jpg", Type: "FadeIn", EffectOriginal: true, Speed: 300});
}
n = 1;

$('#button_systeme').css({
	 'background': 'url(images/buttons/button_top_systeme_a.jpg)'
	 })
	 	 $('#content_systeme').css({
	 'background-color': '#f4f4f4'
	 })
}

function loesungen() {
document.getElementById("link").href = "it-loesungen.php";
if (bild[n-1] == "images/loesungen/standard-1.jpg")
   {
   $("#hauptbild").ImageSwitch({NewImage:"images/loesungen/standard-1.jpg", Type: "FadeIn", EffectOriginal: true, Speed: 300});

}
else
{
$("#hauptbild").ImageSwitch({NewImage:"images/loesungen/standard-1.jpg", Type: "FadeIn", EffectOriginal: true, Speed: 300});
}
n = 2;

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

$(document).ready(function() {

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

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


   });
   

$('#button_systeme').mouseover(function() {
	 $(this).css({
	 'background': 'url(images/buttons/button_top_systeme_a.jpg)'
	 })
	 	 $('#content_systeme').css({
	 'background-color': '#f4f4f4'
	 })
	 

   });
   
$('#button_systeme').mouseout(function() {
	 $(this).css({
	 'background': 'url(images/buttons/button_top_systeme.jpg)'
	 })
	 	 $('#content_systeme').css({
	 'background-color': '#f8f8f8'
	 })	 
	
   });
   
$('#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'
	 })

   });
  

});
   
function clear_services() {
$('#button_services').css({
	 'background': 'url(images/buttons/button_top_services.jpg)'
	 })
$('#content_services').css({
	 'background-color': '#f8f8f8'
	 })

}

function clear_systeme() {
$('#button_systeme').css({
	 'background': 'url(images/buttons/button_top_systeme.jpg)'
	 })
$('#content_systeme').css({
	 'background-color': '#f8f8f8'
	 })
}

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

}
	if(window.ie){this.lab.setProperty("unselectable","on");}
	if(window.gecko){this.lab.setStyle("MozUserSelect","none");}
	if(window.webkit){this.lab.setStyle("KhtmlUserSelect","none");}

/* ]]> */
