window.onload=function(){
//$(document).ready(function(){

	var jQueryOther = jQuery.noConflict();
		jQueryOther(document).ready(function() {
		    jQueryOther('#foto').cycle({
		        fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
				slideExpr:	'img',  //only look for 'img'-element
    		    speed: 2000,
    	 		timeout: 5000,
    		    random: 1,
  				pager: '#fotos', 
     
 			   // callback fn that creates a thumbnail to use as pager anchor 
 			   pagerAnchorBuilder: function(idx, slide) { 
   			     return '<a href="#"><img src="' + slide.src + '" width="80" height="80" /></a>'; 
			}
    });
}); 

}

function changeBG(elementId,setTo) 

{

                                // checker = 1;
                                if( document.getElementById ) 
                                {
                                    var theElement = document.getElementById( elementId );
                                }
                                
                                else 
                                {
                                    if( document.all )
                                    {
                                        // Proprietary DOM
                                        var theElement = document.all[ elementId ];
                                    }
                                    else
                                    {
                                        // Create an object to prevent errors further on
                                        var theElement = new Object();
                                    }
                                }
                                
                                if( !theElement )
                                {
                                    // The page has not loaded or the browser claims to support
                                    // document.getElementById or document.all but cannot actually
                                    // use either
                                    return;
                                }
            
                                //Reference the style ...
                                if( theElement.style )
                                {
                                    theElement = theElement.style;
                                }
                                
                                if( typeof( theElement.display ) == 'undefined' && !( window.ScriptEngine && ScriptEngine().indexOf('InScript') + 1 ) )
                                {
                                    //The browser does not allow us to change the display style
                                    //Alert something sensible (not what I have here ...)
                                    window.alert( 'Your browser does not support this' );
                                    return;
                                }
                    
                                    //Change the display style
                                    theElement.background = setTo;
                                    //alert(document.getElementById('book').style.background);
                            /*}
                            catch(e)
                            {}*/
}
