var posicion=0;
var velocidad=40;
var temporitzador;
try {// si es IE...
  document.execCommand("BackgroundImageCache", false, true);
  // desactiva la chace de IE, per les imatges de fons
} catch(err) {} // per els altres navegadors res.


/*function iniciar2() {
	//for(i=0; i<10; i++) {
		var i=30;
		document.getElementById('divPatrocinadors').style.background="transparent url(../Model/patrocinadors.jpg) repeat-y scroll 0px "+i+"px";
		//alert(i);
		//document.getElementById('divPatrocinadors').style.backgroundPositionY=i;
	
	
		var cssCode='div.patrocinadors{   	margin-top:7px;	text-align:center; 	background: url("../Model/patrocinadors.jpg") repeat-y '+i+'px 0px; height:150px;}';
	
		var styleElement = document.createElement("style");
		styleElement.type = "text/css";
		if (styleElement.styleSheet) {
		styleElement.styleSheet.cssText = cssCode;
	
		} else {
		styleElement.appendChild(document.createTextNode(cssCode));
		}
		document.getElementsByTagName("head")[0].appendChild(styleElement);

	//}//fi for;
}*/


function MourePatrocinadors() {
		temporitzador=setTimeout("MourePatrocinadors()",velocidad); //1000= 1 seg.
		//repite esa funcion cada tanto tiempo. para pararlo se utilizatria un clearTimeout(variable_de_tiempo)
		
		var browserType=navigator.userAgent;
		if (browserType.indexOf("MSIE")==-1){ //FIREFOX
				//document.getElementById('divPatrocinadors').style.background="url(../Model/patrocinadors.jpg) repeat-y scroll center "+posicion+"px";
				document.getElementById('divPatrocinadors').style.backgroundPosition="0px "+posicion+"px";
				
				//document.getElementById('divPatrocinadors').style.backgroundPosition="0px "+posicion+"px";			
		}	else{ //IE
			
			document.getElementById('divPatrocinadors').style.backgroundPositionY=posicion+"px";
		}
			
		posicion++;
return 0;
}
