jQuery(document).ready(function($) {

var h = $('#main').height();
$('#left').height(h-30);
$('#right').height(h-20);

$('#right li').css({
	listStyle: 'none',
	marginLeft: '-2em'
});
$('#right li > a, h4 a').before('<img src="http://www.csdo.it/wordpress/wp-content/themes/csdo/images/li.gif" width="9" heigth="9" alt="" />&nbsp;');

$('.elenco-corsi h4:contains("Stili esterni")').prepend('<span style="font-style: normal;">外家拳</span>&nbsp;');
$('.elenco-corsi h4:contains("Stili interni")').prepend('<span style="font-style: normal;">内家拳</span>&nbsp;');
$('.elenco-corsi a:contains("Kung Fu")').prepend('功夫&nbsp;');
$('.elenco-corsi a:contains("Wu Shu")').prepend('武术&nbsp;');
$('.elenco-corsi a:contains("TaiJi Quan")').prepend('太極拳&nbsp;');
$('.elenco-corsi a:contains("XingYi Quan")').prepend('形意拳&nbsp;');
$('.elenco-corsi a:contains("Bagua Zhang")').prepend('八卦掌&nbsp;');
$('.elenco-corsi a:contains("Liuhe Bafa")').prepend('六合八法&nbsp;');
$('.elenco-corsi a:contains("Tuina")').prepend('推拿&nbsp;');
$('#right a:contains("Qi Gong")').prepend('氣功&nbsp;');
$('#right a:contains("Filosofia Taoista")').prepend('<span style="font-style: normal;">道家</span>&nbsp;');

/* dropright submenus*/
$('#menu li ul').hide();
$('#menu li').hover(function(){
	$(this).children('ul').toggle(200);
});

/* header slide */
$('#head-img').crossSlide({
  sleep: 2,
  fade: 1,
  shuffle: true
}, [
  { src: 'http://www.csdo.it/wordpress/wp-content/themes/csdo/images/corsi/header-taiji.jpg',
  href: 'http://www.csdo.it/corsi/stili-interni/taiji-quan' },
  { src: 'http://www.csdo.it/wordpress/wp-content/themes/csdo/images/corsi/header-kungfu.jpg',
  href: 'http://www.csdo.it/corsi/stili-esterni/kung-fu-tradizionale/' },
  { src: 'http://www.csdo.it/wordpress/wp-content/themes/csdo/images/corsi/header-wushu.jpg',
  href: 'http://www.csdo.it/corsi/stili-esterni/wushu-moderno' },
  //{ src: 'http://www.csdo.it/wordpress/wp-content/themes/csdo/images/corsi/header-filosofia.jpg',
  //href: 'http://www.csdo.it/corsi/filosofia-taoista' },
  { src: 'http://www.csdo.it/wordpress/wp-content/themes/csdo/images/corsi/header-qigong.jpg',
  href: 'http://www.csdo.it/corsi/qi-gong' },
  { src: 'http://www.csdo.it/wordpress/wp-content/themes/csdo/images/corsi/header-bambini.jpg',
  href: 'http://www.csdo.it/corsi/stili-esterni/wu-shu-per-bambini/' },
  //{ src: 'http://www.csdo.it/wordpress/wp-content/themes/csdo/images/corsi/header-ventagli.jpg'},
  { src: 'http://www.csdo.it/wordpress/wp-content/themes/csdo/images/corsi/header-tuina.jpg',
  href: 'http://www.csdo.it/corsi/corsi-di-formazione/corso-massaggio-tuina-professionale-fistq' }
]);

//zebratura tabelle programma corsi fistq
$('.corso-fistq tr:even').css('background', '#DE9864');

//$('.ngg-widget a').fancybox();


});
