$(function(){
	$("ul.drop").superfish({
		hoverClass:"sfHover",
		delay:400,
		animation:{height:"show"}
	});//	
	
	$('.replace-medium').flash({ 
		src: 'http://www.vc2ti.com.br/wp-content/themes/vc2ti/js/solexmedium.swf', 
		flashvars: { css: [ '* {color:#2fcce6}' ].join(' ') }
		},
		
		{ version: 8 },
		function(htmlOptions) {
			htmlOptions.flashvars.txt = this.innerHTML;
			this.innerHTML = '<div>'+this.innerHTML+'</div>';
			var $alt = $(this.firstChild);
    	htmlOptions.height = "29px";
    	htmlOptions.width = $alt.width();
    	$alt.addClass('alt');
    	$(this).addClass('flash-replaced').prepend($.fn.flash.transform(htmlOptions));						
		});	
	
	$('.replace-regular').flash({ 
		src: 'http://www.vc2ti.com.br/wp-content/themes/vc2ti/js/solexregular.swf', 
		flashvars: { css: [ '* {color:#24e2f9}' ].join(' ') }
		},
		
		{ version: 8 },
		function(htmlOptions) {
			htmlOptions.flashvars.txt = this.innerHTML;
			this.innerHTML = '<div>'+this.innerHTML+'</div>';
			var $alt = $(this.firstChild);
    	htmlOptions.height = $alt.height();
    	htmlOptions.width = $alt.width();
    	$alt.addClass('alt');
    	$(this).addClass('flash-replaced').prepend($.fn.flash.transform(htmlOptions));						
		});	
});

