// JavaScript Document
 
$(document).ready(function() {
	var currentPage=1;
 	var	scroller=$(".homeFrontSlider").scrollable({size:1}).circular().navigator({ 
						navi: ".naviItems", 
						naviItem: "a", 
						activeClass: "current"
					}).autoscroll({api:true,autoplay: true,autopause:true,interval:7000})
		scroller.onSeek(function() {
						if(this.getPageIndex()==0){;
							scroller.stop();
							
						};
					});
		$(".naviItems a").click(function(){
			document.location.href=$(this).attr("href");
		})
		$(".naviItems a").mouseenter(function(){	
			var index=$(this).attr("tabindex");	
		
			scroller.seekTo(index)
				
		})
	
/*  window.fbAsyncInit = function() {
    FB.init({
      appId  : '107169575986348',
      status : true, // check login status
      cookie : true, // enable cookies to allow the server to access the session
      xfbml  : true  // parse XFBML
    });
  };

  (function() {
    var e = document.createElement('script');
    e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
    e.async = true;
    document.getElementById('fb-root').appendChild(e);
  }());

	
	//autoscroll({api:true,autoplay: true,autopause:true,interval:6000})
				
		*/			 		

});
