    
    function highlight1() {	
        document.getElementById('img_'+4).setAttribute("src", "/fls/13500/site_graphics/DL/Tab4.jpg");
        document.getElementById('img_'+3).setAttribute("src", "/fls/13500/site_graphics/DL/Tab3.jpg");
        document.getElementById('img_'+2).setAttribute("src", "/fls/13500/site_graphics/DL/Tab2.jpg");
        document.getElementById('img_'+1).setAttribute("src", "/fls/13500/site_graphics/DL/Tab1_on.jpg");			
    }
    
    function highlight2() {	
        document.getElementById('img_'+4).setAttribute("src", "/fls/13500/site_graphics/DL/Tab4.jpg");
        document.getElementById('img_'+3).setAttribute("src", "/fls/13500/site_graphics/DL/Tab3.jpg");
        document.getElementById('img_'+2).setAttribute("src", "/fls/13500/site_graphics/DL/Tab2_on.jpg");
        document.getElementById('img_'+1).setAttribute("src", "/fls/13500/site_graphics/DL/Tab1.jpg");			
    }
    
     function highlight3() {	
        document.getElementById('img_'+4).setAttribute("src", "/fls/13500/site_graphics/DL/Tab4.jpg");
        document.getElementById('img_'+3).setAttribute("src", "/fls/13500/site_graphics/DL/Tab3_on.jpg");
        document.getElementById('img_'+2).setAttribute("src", "/fls/13500/site_graphics/DL/Tab2.jpg");
        document.getElementById('img_'+1).setAttribute("src", "/fls/13500/site_graphics/DL/Tab1.jpg");			
    }
    
     function highlight4() {	
        document.getElementById('img_'+4).setAttribute("src", "/fls/13500/site_graphics/DL/Tab4_on.jpg");
        document.getElementById('img_'+3).setAttribute("src", "/fls/13500/site_graphics/DL/Tab3.jpg");
        document.getElementById('img_'+2).setAttribute("src", "/fls/13500/site_graphics/DL/Tab2.jpg");
        document.getElementById('img_'+1).setAttribute("src", "/fls/13500/site_graphics/DL/Tab1.jpg");			
    }
    
    
    
    
    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('#Content_4').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('#Content_4').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'}); 
    jQuery('#Content_4').css({'display' : 'none'});        
    }); 
    
     jQuery('#Tab_4').click(function() {
    highlight4(); 
    jQuery('#Content_2').css({'display' : 'none'});    
    jQuery('#Content_1').css({'display' : 'none'});
    jQuery('#Content_3').css({'display' : 'none'}); 
    jQuery('#Content_4').css({'display' : 'block'});        
    }); 
    
	}); 
	
	
/*START ROTATOR*/
jQuery(document).ready(function()  {  
   if(jQuery("#RotatorBox").length>0) {    
   jQuery('#scroller').show();
   jQuery('#scrollerThumbs').show();
    jQuery('#scroller').cycle({
        fx:     'fade', 
        speed:  'slow', 
        timeout: 5000, 
        prev:    '#prev',
        next:    '#next',     
         pager:  '#scrollerThumbs', 
        pagerAnchorBuilder: function(idx, slide) { 
        // return selector string for existing anchor 
        return '#scrollerThumbs li:eq(' + idx + ') a'; 
        }                     
    });   
    }
    
});

/*END ROTATOR*/




/*LIVE SCROLL*/
jQuery(document).ready(function()  {  

   if(jQuery("#LiveBoxScroll").length>0) {
   jQuery('#LiveBoxScroll').show();
   jQuery('#SMScroll').show();
     
  jQuery('#LiveBoxScroll').cycle({
        fx:     'scrollHorz', 
        speed:  'slow', 
        timeout: 5000, 
        cleartype:  1,
        prev:    '#GoPrev',
        next:    '#GoNext'
    }); 
    
      jQuery('#SMScroll').cycle({
        fx:     'fade', 
        speed:  'slow',
        timeout: 5000, 
        cleartype:  1,       
        prev:    '#GoPrev',
        next:    '#GoNext'
    }); 
    
    
    
   
    }
    
});

/*END LIVE SCROLL*/



/*Galleries*/

jQuery(document).ready(function()  { 
  if(jQuery("#GallerieArea").length>0) {
jQuery('#GallerieArea').show();
    jQuery('#GallerieArea').cycle({       
        fx:     'fade', 
        speed:  'slow', 
        startingSlide: 0,
        timeout: 4000, 
        cleartype:  1,
        prev:    '#GallPrev',
        next:    '#GallNext'
    });  
    }   
   
});

/*Articles*/

function articleText(sign) {
	articleTextObj = jQuery("#article-content .text");
	currentFontSize = articleTextObj.css("font-size");
	strLen = currentFontSize.length;
	currentFontSize = parseInt(currentFontSize.substr(0,strLen-2));
		if(sign=='+') {
			if(currentFontSize < 18) {
				//console.log("+");
				currentFontSize ++;
				articleTextObj.css("font-size",currentFontSize+"px");
			}
		}
		else {
			if(currentFontSize > 9) {
				//console.log("-");
				currentFontSize --;
				articleTextObj.css("font-size",currentFontSize+"px");
			}
		}	
}

/*Twitter*/
jQuery(document).ready(function () {
	
	jTwitterText = jQuery("#twitterFeed .tweetText");
	addLinkToTwitter();
});

function addLinkToTwitter() {
	if(jTwitterText.length>0) {
		data = jTwitterText.html();
		data = jQuery.trim(data);
		start = data.indexOf("http://");
		if(start>0) {

			for(x=start;x<=data.length;x++) {
				if(data.charAt(x)==' ') {
					
					end = x;
					break;
				}	
				end = x;
			}
			linkText = data.substring(start,end); 
			newLinkText = '<a target="_BLANK" class="twitter-link" href="'+linkText+'">'+linkText+'</a>';

			start2 = data.indexOf("http://", end);

			if (start2>0) {
				
				for(x=start2;x<=data.length;x++) {
					if(data.charAt(x)==' ') {
						end2 = x;
						break;
					}	
					end2 = x;
				}
				linkText2 = data.substring(start2,end2); 
				newLinkText2 = '<a target="_BLANK" class="twitter-link" href="'+linkText2+'">'+linkText2+'</a>';
				data = data.replace(linkText2,newLinkText2);
			}
			
			data = data.replace(linkText,newLinkText);

			jTwitterText.html(data);
		}
	}
}

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

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


