
/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246 
 */

jQuery.noConflict();
//jQuery('#trailer').hide();
jQuery(document).ready(function($) {  

  $('#incert-inside > ul').tabs({fx:{height: 'toggle', duration: 'slow' }}).tabs('rotate', 5000, true);
  $('#newstabs ul').tabs({
    fx:{opacity: 'toggle'},
    select: function(event,ui) {
            var url = $.data(ui.tab, 'load.tabs');

            if (url==='somepage'){
                //follow the link
                window.location.href=url;
                return false;
            }

        },

    spinner: ''  
    
    
  }).tabs('rotate', 12000, true); 
  
$('div.ui-tabs-panel').hover(function(){
  $('#newstabs ul').tabs('rotate', 0, false);
  $('#incert-inside > ul').tabs('rotate', 0, false);
});

$('div.ui-tabs-panel').mouseleave(function(){
  $('#newstabs ul').tabs({
    fx:{opacity: 'toggle'},
    select: function(event,ui) {
            var url = $.data(ui.tab, 'load.tabs');

            if (url==='somepage'){
                //follow the link
                window.location.href=url;
                return false;
            }

        },

    spinner: ''  
    
    
  }).tabs('rotate', 12000); 
  $('#incert-inside > ul').tabs({fx:{height: 'toggle', duration: 'slow' }}).tabs('rotate', 10000, true); 
});


  
  $('#footer-carousel ul').jcarousel();    
  
  $("#footer-carousel li").hover(function() { 

		$(this).find("span").stop().fadeTo('normal', 0 , function() {
			$(this).hide() 
		});
	} , function() { 
		$(this).find("span").stop().fadeTo('normal', 1).show();
	}); 

});
