			
			
			
			
			var methods_mouseX;
			var methods_mouseY;
			var slideshow_fx = "zoom";
			var slideshow_speed = 4500;
			///
		
			$(document).ready(function()
			{
			
			
				
				
				/* && parseInt(jQuery.browser.version) == 6*/
				
				if(parseInt(jQuery.browser.version) != 9 && (jQuery.browser.msie))
				{
					//slideshow_fx = "zoom";
				}
				
				////
				$("#select_profile_container").topZIndex();
				$("#methods_title").topZIndex();
				//$("#language_switch").topZIndex();
				///
				
				$("#methods_bg").one("load",function(){
			        startSlideshow();
			      })
			      .each(function(){
			        if(this.complete || (jQuery.browser.msie))
			 		{
			 			$(this).trigger("load");
			 		}			        
			      });
				
				
				/*
				$("#methods_bg").load(function()
				{
				
					startSlideshow();
				
				});
				*/
				
				//
				
				setInterval(function()
				{
				
					var _x = (methods_mouseX/$("#methods").width())*50;
					_x = -_x;
					_x = Math.round(_x);
					
					var _y = (methods_mouseY/$("#methods").height())*40;
					_y = 0//Math.round(_y);
					//
					$("#methods_div").stop().animate({marginLeft:_x+"px", marginTop:_y+"px"}, 800);			
				
				}, 50);
				
								
				//
				
				$("#methods").mousemove(function(e)
				{
				
					methods_mouseX = e.pageX;
					methods_mouseY = e.pageY;
				
				
				});
				
				
					
			});
			
			
			
			
			function startSlideshow()
			{
			
			
				$("#methods").stop().animate({top:"0px"}, 1000, "easeInOutExpo");
				///
				
				$("#methods").waitForImages(function()
				{
					$("#methods").show();
					//
					
					//alert(slideshow_speed);
					
					$('#methods').cycle({
						fx:      slideshow_fx, 
					    speedIn:  650, 
					    speedOut: 450, 
					    easeIn:  'easeOutElastic', 
					    easeOut: 'easeInExpo', 
					    sync:     0, 
					    delay:   -10,
					    timeout: slideshow_speed,
					    cleartype: true, cleartypeNoBg: true  
	   				});				
				
				});
			
			
			}
