
    
    
jQuery(document).ready(function()  {  
   if(jQuery("#EcomScroller").length>0) { 
  
    jQuery('#EcomScroller').show();
    jQuery('#EcomScroller').cycle({
         fx: 'scrollHorz',   
         timeout: 0 ,    
         speed:   500,
        prev:    '#EcomControlsPrev',
        next:    '#EcomControlsNext'           
    });       
    }    
});


   
    
 /*Highlight 3 is on the page itself widgets/TabsDL.inc*/
    
    
    
    jQuery(document).ready(function() {         
        
    jQuery('#Tab_1').click(function() {
        highlight1(); 
        jQuery('#Content_1').css({'display' : 'block'});       
        jQuery('#Content_2').css({'display' : 'none'});
        jQuery('#Content_3').css({'display' : 'none'});          
        });
    
    
    jQuery('#Tab_2').click(function() {
    highlight2(); 
    jQuery('#Content_2').css({'display' : 'block'});    
    jQuery('#Content_1').css({'display' : 'none'});
    jQuery('#Content_3').css({'display' : 'none'});      
    });   
    
     jQuery('#Tab_3').click(function() {
    highlight3(); 
    jQuery('#Content_2').css({'display' : 'none'});    
    jQuery('#Content_1').css({'display' : 'none'});
    jQuery('#Content_3').css({'display' : 'block'}); 
       
    }); 
    
    
      }); 
 	
/*START ROTATOR*/
jQuery(document).ready(function()  {  

   if(jQuery("#RotatorBox").length>0) {    
	var Scroll = jQuery('#scroller');
	var ScrollThumbs = jQuery('#scrollerThumbs');
	var PageControl = jQuery('#scrollerThumbs .scrollerpagercontainer');
	var i = 0;
	var y = 0;
	Scroll.show();
	ScrollThumbs.show();
	var ScrollCycler = Scroll.cycle({
			fx:     'fade', 
			speed:  'slow', 
			timeout: 5000, 
			prev:    '#GoPrev',
			next:    '#GoNext',     
			pager:  '#scrollerThumbs', 
			before:onBefore,
			after:onAfter,
			pagerAnchorBuilder: function(idx, slide) { 
				// return selector string for existing anchor 
				return '#scrollerThumbs li:eq(' + idx + ') a'; 
			}                     
		});   
		ScrollCycler.children().each(function(i) { 
			// create input 
			if( i == 0 || i == 4 || i == 8){
				jQuery('<img id="'+i+'"class="scrollpager" src="/fls/18600/site_graphics/2010/scrollbutton.png"/>') 
				// append it to button container 
				.appendTo(PageControl) 
				// bind click handler 
				.click(function() { 
					// cycle to the corresponding slide 
					ScrollCycler.cycle(i);
				});
				// during creation set first button to active
				if( i == 0 ){
					ScrollThumbs.find("#0.scrollpager").attr("src","/fls/18600/site_graphics/2010/scrollbutton-on.png");
				}		
			}
		}); 
    }

	function onBefore() { 
		// get current index id
		i = jQuery(this).attr("id") - 1;
		// sort out if on a new page
		if ( i >=8 ){
			ClearScroller();
			CurrentPage(8);
		}
		else if ( i >= 4 && i <=  7){
			ClearScroller();
			CurrentPage(4);
		}
		else{
			ClearScroller();
			CurrentPage(0);
		}
	} 
	function onAfter() { 
	}
	
	function ClearScroller() { 
		// sort all pager buttons to default
		ScrollThumbs.find(".scrollpager").attr("src","/fls/18600/site_graphics/2010/scrollbutton.png");
		// set thumbnails to hidden
		jQuery('#scrollerThumbs li').css('display','none');
	}
	
	function CurrentPage(i) { 
		// set current page button to active image
		ScrollThumbs.find("#"+ ( i ) +".scrollpager").attr("src","/fls/18600/site_graphics/2010/scrollbutton-on.png");
		for(y=0;y<4;y++){
			// set current page thumbnails to active
			jQuery('#scrollerThumbs li:eq(' + ( y + i ) + ')').css('display','block');
		}	
	}
});

/*END ROTATOR*/




/*SlideDown*/

jQuery(document).ready(function(){
	  if(jQuery("#accordion2").length>0) { 
	  
	jQuery("#accordion2 h3").eq(0).addClass("active");
	
	jQuery("#accordion2 div.dropDownAreaBg").eq(0).show();
	
	jQuery("#accordion2 h3").click(function(){	
		jQuery(this).next("#accordion2 div.dropDownAreaBg").slideToggle("slow")
		.siblings("div:visible").slideUp();		
		jQuery(this).toggleClass("active");
		jQuery(this).siblings("h3").removeClass("active");
	});
	}


});





jQuery(document).ready(function()  {  
   if(jQuery("#ADSlider").length>0) { 
    jQuery('#ADSlider').show();
    jQuery('#ADSlider').cycle({
         fx: 'scrollHorz',   
         timeout: 0 ,    
         speed:   500,
        prev:    '#ADSliderPrev',
        next:    '#ADSliderNext'           
    });       
    }    
});





/*MORE MODULE*/
function thecarousel_initCallback(carousel) {
    
    jQuery('#thecarousel2-next').click(function() {
        carousel.next();
       return false;
    });

    jQuery('#thecarousel2-prev').click(function() {
        carousel.prev();
        return false;
    });
    
};
// Ride the carousel...
jQuery(document).ready(function() {
  jQuery('#MoreArea').show(); 
     jQuery("#thecarousel2").jcarousel({      
        start:1,
        scroll: 1,     
        initCallback: thecarousel_initCallback,         
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });    
});


jQuery(document).ready(function()  {  
jQuery('#MainMenu').show();
jQuery('#SecMenu').show();
});

	
