
	var bauto = 0;
	//var dossier="im/";
	var numero = 1;
	//var auto = 0;
	function objet() {
	this.length = objet.arguments.length
	for (var i = 0; i < this.length; i++) this[i+1] = objet.arguments[i]
	}
	var nom = new objet("flashBannerTOS.jpg", "flashBannerUC.jpg", "FlashBannerVirtualization.jpg", "FlashBannerSolutions.jpg", "FlashBannerServices.jpg");
	var lien = new objet("http://info.netgainit.com/ITManagedServicesOffer", "http://info.netgainit.com/convergednetworkunifiedcomunications", "http://info.netgainit.com/Virtualization", "solutions.aspx", "http://www.mspmentor.net/top-100-msps/mspmentor-100-2010-edition-ranked-1-to-100/");
    function suivante() {
	numero += 1;
	$('#img').fadeOut(500, function() {
		$('#img').fadeIn(500);
		document.image.src = nom[numero];
		document.getElementById('bannerLink').href = lien[numero];
	});
	
	if (numero == nom.length + 1) numero = 1;
	if (bauto == 1) {
		window.clearTimeout(roll);
		roll=setTimeout("changer()", 8000);
	}
	
	}
	function precedente() {
	    var abba = document.getElementById('aut');
	    abba.src = 'auto3.png';
	numero -= 1;
	$('#img').fadeOut(500, function() {
		$('#img').fadeIn(500);
		document.image.src = nom[numero];
		document.getElementById('bannerLink').href = lien[numero];
	});
	if (numero == 0) numero = nom.length;
	if (bauto == 1) {
		window.clearTimeout(roll);
		roll=setTimeout("changer()", 8000);
	}
	
	}
	function changer() {
	
	
	numero += 1;
	$('#img').fadeOut(500, function() {
		$('#img').fadeIn(500);
		document.image.src = nom[numero];
		document.getElementById('bannerLink').href = lien[numero];
	});
	if (numero == nom.length + 1) numero = 1;

	roll = setTimeout("changer()", 7000);
		
	}
	function initial() {
	window.clearTimeout(roll);
	document.image.src = nom[numero];
	document.getElementById('bannerLink').href = lien[numero];
	}
	function auto() {

	    var aut = document.getElementById('aut');
	    
	    //changeStyle('aut');
	    //alert(aut.style.backgroundColor);
	if (bauto == 0) {
	    bauto = 1; roll = setTimeout("changer()", 7000);
	    aut.style.background = "url('auto3.png')";
	//aut.style.backgroundImage = url('auto3.png');
	//document.button.style.backgroundimage = "auto3.png";
	//getComputedStyle(autom,null).background-image = "auto3.png";
	//document.vision.automat.value=" Lect/Stop ";
	}
	else {
	    bauto = 0; initial(); aut.style.background = "url('auto1.png')";
	//document.vision.automat.value=" Lect/Auto ";
	}
    }
    function survol() {

    }

	/*function changeStyle(selectorText) {
	    var theRules = new Array();
	    if (document.styleSheets[0].cssRules) {
	        theRules = document.styleSheets[0].cssRules;
	    }
	    else if (document.styleSheets[0].rules) {
	        theRules = document.styleSheets[0].rules;
	    }
	    for (n in theRules) {
	        if (theRules[n].selectorText == selectorText) {
	            theRules[n].style.color = 'white';
	        }
	    }
	}*/
