﻿
$(function(){
	$('#slides').slides({
		preload: true,
		preloadImage: '../images/loding-small.gif',
		play: 5000,
		pause: 2500,
		hoverPause: true,
		//effect: 'slide, fade',
		animationStart: function(current){
			$('.caption').animate({
				bottom:-35
			},100);
			   
			if (window.console && console.log) {
				console.log('animationStart on slide: ', current);
			};
		},
		animationComplete: function(current){
			$('.caption').animate({
				bottom:0
			},200);
			
			if (window.console && console.log) {
				console.log('animationComplete on slide: ', current);
			};
		}
	});
});

$(function(){
	$('#slides2').slides({
		preload: true,
		preloadImage: '../images/loding-small.gif',
//		play: 5000,
//		pause: 2500,
//		hoverPause: true,
   		slideSpeed: 350,
        fadeSpeed: 500,
		effect: 'slide, fade',
		generatePagination: false,
		animationStart: function(current){
			$('.caption').animate({
				bottom:-35
			},50);
			   
			if (window.console && console.log) {
				console.log('animationStart on slide: ', current);
			};
		},
		animationComplete: function(current){
			$('.caption').animate({
				bottom:0
			},50);
			
			if (window.console && console.log) {
				console.log('animationComplete on slide: ', current);
			};
		}
	});
});

//$(function(){
//			$('#slides2').slides({
//				preload: true,
//				preloadImage: '../images/loding-small.gif',
//				effect: 'slide, fade',
//				crossfade: true,
//				slideSpeed: 350,
//				fadeSpeed: 500,
//				generateNextPrev: true,
//				generatePagination: false
//			});
//		});


function OverSrc(type)
{
    document.getElementById("ddz").src = "images/yxjs_ddz.gif";    document.getElementById("nn").src = "images/yxjs_nn.gif";
    document.getElementById("sj").src = "images/yxjs_sj.gif";
    document.getElementById("mj").src = "images/yxjs_mj.gif";
    document.getElementById("sk").src = "images/yxjs_sk.gif";
    document.getElementById("wzq").src = "images/yxjs_wzq.gif";        document.getElementById("jq").src = "images/yxjs_jq.gif";        document.getElementById("xq").src = "images/yxjs_xq.gif";    document.getElementById(type).src = "images/yxjs_" +type+ "2.gif";
}$(document).ready(function(){
	$(".Imgstroll").jMarquee({
       visible:4,
      step:1,
      direction:"left"
           });
})
