jQuery(document).ready(function($) {
	
	/**
	 * Change Background
	 */
	
/*	var date = new Date();
	var day  = date.getDate();
	var hour = date.getHours();
	
	if(day % 2 == 0){
		if(hour < 19) {
			if(hour % 2 == 0) {
				$('body').addClass("pattern01");
			}else{
				$('body').addClass("pattern02");
			}
		}else{
			$('body').addClass("pattern05");
		}
	}else{
		if(hour < 19) {
			if(hour % 2 == 0) {
				$('body').addClass("pattern03");
			}else{
				$('body').addClass("pattern04");
			}
		}else{
			$('body').addClass("pattern05");
		}
	}*/

	/**
	 * Change PR Bunner
	 */
	
	$('#adTop').cycle({
		fx:     'scrollUp',
		timeout: 7000
	});

	/**
	 * Change PR Bunner
	 */
	
	$('#pr01').cycle({
		fx:     'scrollDown',
		timeout: 7000,
		delay: 0
	});
	
	$('#pr02').cycle({
		fx:     'scrollDown', 
    	timeout: 7000,
		delay: 500
	});

	$('#pr03').cycle({
		fx:     'scrollDown', 
    	timeout: 7000,
		delay: 1000
	});

	$('#pr04').cycle({
		fx:     'scrollDown', 
    	timeout: 7000,
		delay: 1500
	});
	
	$('#pr05').cycle({
		fx:     'scrollDown', 
    	timeout: 7000,
		delay: 2000
	});

	$('#pr06').cycle({
		fx:     'scrollDown', 
    	timeout: 7000,
		delay: 2500
	});
	
	$('#pr07').cycle({
		fx:     'scrollDown', 
    	timeout: 7000,
		delay: 3000
	});

	$('#pr08').cycle({
		fx:     'scrollDown', 
    	timeout: 7000,
		delay: 3500
	});

	$('#pr09').cycle({
		fx:     'scrollDown', 
    	timeout: 7000,
		delay: 4000
	});
	
	$('#pr10').cycle({
		fx:     'scrollDown', 
    	timeout: 7000,
		delay: 4500
	});

	/**
	 * FaceBox
	 */

	$('a[rel*=facebox]').facebox({
      next_image    : 'http://smile-pro.net/photo/js/facebox/fast_forward.jpg',
      play_image    : 'http://smile-pro.net/photo/js/facebox/play.jpg',
      pause_image   : 'http://smile-pro.net/photo/js/facebox/pause.jpg',
      prev_image    : 'http://smile-pro.net/photo/js/facebox/rewind.jpg'
    });	
});