jQuery(function($) {
	$(".ie6 ul.sf-menu > .menu-item").mouseenter(function(){
		$(this).find("ul.sub-menu").css("top","32px");
		$(".ie6 ul.sf-menu").mouseleave(function(){
			$(".ie6 ul.sub-menu").each(function(){
				$(this).css("top","-9999px");
			})
		})
	});
	//------------------------------------------Gioia Fueter----------------------------------//
	swfobject.registerObject("myFlashContent", "9.0.0");
	swfobject.registerObject("my_anim_home", "9.0.0");
	//----------------------------------------------------------
	jQuery('body.video #container .entry-content').hover(
		function(){
			if ($("body").hasClass("slug-animaciones") == false) {
				jQuery(this).children().children("img").animate({"opacity": "0.1"},400);
			}
		},
		function () {
			if ($("body").hasClass("slug-animaciones") == false) {
				jQuery(this).children().children("img").animate({"opacity": "1"},800);
			}
		}
	)
	var count = 0;
	var max = jQuery(".slide-content .slideElement").size()-1;
	jQuery("body.slug-webs #container a.left").animate({
	    marginLeft: '-=40'
	});
	jQuery("body.slug-webs #container a.left").click(function() {
		jQuery("#container.webs .slide-content").animate({
    		marginLeft: '+=840'
  		});
  		count--;
		if (count == 0) {
			jQuery("body.slug-webs #container a.left").animate({
	    		marginLeft: '-=40'
	  		});
		}
		if (count == max -1) {
			jQuery("body.slug-webs #container a.right").animate({
	    		marginRight: '+=40'
	  		});
		}
	})
	jQuery("body.slug-webs #container a.right").click(function() {
		jQuery("body.slug-webs #container .slide-content").animate({
    		marginLeft: '-=840'
  		});
  		count++;
  		if (count == 1) {
			jQuery("body.slug-webs #container a.left").animate({
	    		marginLeft: '+=40'
	  		});
		}
		if (count == max) {
			jQuery("body.slug-webs #container a.right").animate({
	    		marginRight: '-=40'
	  		});
		}
	})
});
//-------Cufon
Cufon.replace("ul.sf-menu > li > a,.entry-title,.page-title,body.slug-home h3,body .entry-content h3,#sidebar h3");

//-------DD_roundies
//DD_roundies.addRule('#slide,body.slug-web #container .entry-content .thumbnail,.entry-content', '10px', true);
//DD_roundies.addRule('#wrapper', '130px 3px 130px 3px', true);
//DD_roundies.addRule('#lang-nav', '0 0 130px 130px', true);
//DD_roundies.addRule('#footer', '130px', true);
//DD_roundies.addRule('body.slug-web #header,body.slug-web #container #content', '100px', true);
//DD_roundies.addRule('body.slug-recursos .entry-content', '0px', true);
//DD_roundies.addRule('body.slug-webs #container #content .slideElement', '6px', true);

