function fullPageSlider(){
            this.offset = $(".logo_slider").offset();
            this.mainWidth=$('.site_head_container').width();
            this.itemCnt=0;
            this.maxItemCnt=0;
            this.itemContener=$("#fullPageSlider");
			this.durationTime=6000;
                        
            this.start=function (itemCnt) {
                $("BODY").append($(".logo_slider").html());
                $(".logo_slider").html("");
                $(".fullPageSlider_cont").css("top",this.offset.top-50);
                $(".fullPageSlider_cont .fullPageSlider .fullPageSlider_item").css('width',this.mainWidth);

                $(".fullPageSlider_prev").css("left",(this.mainWidth-680)/2);
                $(".fullPageSlider_next").css("left",(this.mainWidth+650)/2);

                this.maxItemCnt=itemCnt-1;				
				autoPlay=setInterval("fps.prev()",this.durationTime);
            }
            			
            this.setMargin=function (direction){
               
                if(direction==0){
                    this.hideArrow();
					clearInterval(autoPlay);          
                    if (this.itemCnt==this.maxItemCnt) {
                        this.itemCnt=0;
                        $("#fullPageSlider").animate(
                            { left:  "0px"},
                            {duration: 2000, easing: 'easeOutCirc',complete:function() {
                                $(".fullPageSlider_prev_cover").css("display","none");
                                $(".fullPageSlider_next_cover").css("display","none");
                            }}
                        );
                    } else {
                        if(this.itemCnt<this.maxItemCnt) {
                            animLeft=(parseInt($("#fullPageSlider").css('left'))-this.mainWidth );
                            $("#fullPageSlider").animate(
                                { left:  animLeft},
                                {duration: 1000, easing: 'easeOutCirc',complete:function() {
                                    $(".fullPageSlider_prev_cover").css("display","none");
                                    $(".fullPageSlider_next_cover").css("display","none");
                                }}
                            );
                            this.itemCnt++;
                        }
                    }
					autoPlay=setInterval("fps.prev()",this.durationTime);
                }
                if(direction==1){        
					this.hideArrow();
					clearInterval(autoPlay);          
				     if (this.itemCnt==0) {
						  this.itemCnt=this.maxItemCnt;
                    	 animLeft=-(this.mainWidth* this.maxItemCnt);
                            $("#fullPageSlider").animate(
                                { left:  animLeft},
                                {duration: 1000, easing: 'easeOutCirc',complete:function() {
                                    $(".fullPageSlider_prev_cover").css("display","none");
                                    $(".fullPageSlider_next_cover").css("display","none");
                                }}
                            );					   
                    } else {					
						if( (this.itemCnt!=0)) {							
							animLeft=(parseInt($("#fullPageSlider").css('left'))+this.mainWidth);
							$("#fullPageSlider").animate(
								{ left:  animLeft},
								{duration: 1000, easing: 'easeOutCirc',complete:function() {
									$(".fullPageSlider_prev_cover").css("display","none");
									$(".fullPageSlider_next_cover").css("display","none");
								}}
							);
							this.itemCnt--;
						}						
					}
					autoPlay=setInterval("fps.next()",this.durationTime);
                }
				
            }

            this.prev=function () {
                if (!this.isAnimation()) {
                    this.setMargin(0);
                }
            }

            this.next=function () {
                if (!this.isAnimation()) {
                    this.setMargin(1);
                }
            }

            this.isAnimation=function() {
                //alert($(".fullPageSlider_prev_cover").css("display"));
                if ($(".fullPageSlider_prev_cover").css("display")=="block") {
                    return true;
                } else {
                    return false;
                }
            }

            this.hideArrow=function () {
                $(".fullPageSlider_prev_cover").css({'left':(this.mainWidth-680)/2,'display':'block'});
                $(".fullPageSlider_next_cover").css({'left':(this.mainWidth+650)/2,'display':'block'});
            }
			
			
			this.overArrowAnim=function(leftPos){	
				if(leftPos==0){ 
					$(".fullPageSlider_cont").append("<div class='fullPageSlider_prevAnim'><\/div>");
				 	var currentLeft=$('.fullPageSlider_prev').css('left');					
				 	$(".fullPageSlider_prevAnim").css({'left':currentLeft,'opacity':'1'}).animate(
                            { left:  parseInt(currentLeft)-40+'px', opacity: 0},
                            { duration: 1000, easing: 'easeOutCirc',complete:function() {
                                $(".fullPageSlider_prevAnim").remove();                                
                            }}
                      );
				}
				if(leftPos==1){ 
					$(".fullPageSlider_cont").append("<div class='fullPageSlider_nextAnim'><\/div>");
				 	var currentLeft=$('.fullPageSlider_next').css('left');					
				 	$(".fullPageSlider_nextAnim").css({'left':currentLeft,'opacity':'1'}).animate(
                            { left:  parseInt(currentLeft)+40+'px', opacity: 0},
                            { duration: 1000, easing: 'easeOutCirc',complete:function() {
                                $(".fullPageSlider_nextAnim").remove();                                
                            }}
                      );
				 }
			}
			
			this.overArrow=function(leftPos){				
				if(leftPos==0){
					  this.overArrowAnim(leftPos);
				}
				 if(leftPos==1){
					  this.overArrowAnim(leftPos);
				}				
			}
			
		
			
 }
