jQuery(document).bind('ready', function(){
	/*depends to jquery.flash 
	http://jquery.lukelutman.com/plugins/flash/
		
	example of use:
	<flashtag src="http://www.ojornalweb.com/wp-content/uploads/2010/02/gf-box.swf" width="300" height="250">								
	*/
	jQuery('flashtag').each(function(){
		//console.log('flastag iniciado');
		var src = jQuery(this).attr('src');
		var width = jQuery(this).attr('width');
		var height = jQuery(this).attr('height');
		var flashvars = jQuery(this).attr('flashvars');										
			if(flashvars == undefined){
				flashvars = '{}';
			}
		var expsansible = true;	
		var divheight =  jQuery(this).attr('divheight');
			if(divheight == undefined){
				divheight = height;
				expsansible = false;
			}									
		var newDate = new Date;
		var Uid =  newDate.getTime()+'_'+Math.floor(Math.random()*11);
		//console.log(Uid);
		jQuery(this).after('<div id="'+Uid+'"></div>');
		jQuery('#'+Uid).flash({
		    src: src,
		    width: width,
		    height: height,			
			flashvars: flashvars
		});
		jQuery('#'+Uid).height(divheight);
		jQuery(this).remove();
		if(expsansible){
			jQuery('#'+Uid).parent().addClass('ofhidden');
			jQuery('#'+Uid).mouseover(function() {
				//jQuery('#'+Uid).parent().css('overflow', 'visible');
				jQuery('#'+Uid).parent().addClass('ofvisible');
				jQuery('#'+Uid).parent().removeClass('ofhidden');
				
			});
			jQuery('#'+Uid).mouseout(function() {
				//jQuery('#'+Uid).parent().css('overflow', 'hidden');
				jQuery('#'+Uid).parent().addClass('ofhidden');
				jQuery('#'+Uid).parent().removeClass('ofvisible');
			});
			
		}
	});
});
