// jQuery No Conflict
var $j = jQuery.noConflict();


$j(document).ready(function(){

// CLIENT CARROUSEL
 if ( $j('.clc').length) { 
	$j('div.clc').load('clientlogos.html', '', function() {
			$j('#mycarousel').jcarousel({
				 easing: 'easeOutBack',
				 animation: 1000,
				 auto: 6,
				 wrap: 'last'
			 // itemLoadCallback: mycarousel_itemLoadCallback
			}); 	
	   }); 
 } 
//  
// LANGUAGE BAR ROLL OVER

	$j("span.language a").hover(function() {
		$j("div.langbar").slideDown('fast').show(); 

		$j("div.langbar").hover(function() {
			}, function(){
		$j("div.langbar").slideUp('slow'); 
		});

		}).hover(function() {
			$j(this).addClass("subhover"); 
		}, function(){	
			$j(this).removeClass("subhover");
	});
// TO HERE

// OTHER TEST
// if ( $j('#carousel1').length) { 
//	$j('#carousel').inc('carousel/horizontal.html', null, function() {
//	   }); 
// } 

// MAIN NAV ROLL

      function addMega(){
        $j(this).addClass("subhover");
        }

      function removeMega(){
        $j(this).removeClass("subhover");
        }

    var megaConfig = {
         interval: 100,
         sensitivity: 7,
         over: addMega,
         timeout: 0,
         out: removeMega
    };

    $j("ul.mainav li").hoverIntent(megaConfig)

	var zIndexNumber = 1000;
	$j('ul.mainav li div').each(function() {
		$j(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});

///

// SIDEBAR INIT
 $j("dd").hide();

 $j("dt a").click(function() {
 	$j("dd:visible").slideUp("slow");
 	$j(this).parent().next().slideDown("slow");
 	return false;
 });

 // $j("dd:eq(0)").slideDown("slow");
 return false;			
	
// SCRIPT ENDS		
});

