
jQuery(document).ready(function() {

	/*PROMOCOES HIDE*/
	jQuery('#box_embreve').hide();
	
	/*REVISTA HIDE*/
	jQuery('#box_cult').hide();
	jQuery('#box_estilo').hide();
	jQuery('#box_atitude').hide();
	jQuery('#box_ligada').hide();
	jQuery('#box_saude').hide();
	jQuery('#box_colabore').hide();
	
	
	/*HOME HIDE*/
	
	jQuery('#box_beleza').hide();	
	jQuery('#box_musica').hide();	
	jQuery('#box_moda').hide();	
	jQuery('#box_outro').hide();	
	
	/*Downloads*/

	jQuery('#box_backgrounds').hide();	
	jQuery('#box_emoticons').hide();
	
	
	/*
	if (jQuery.watermark)
	{
		jQuery('input[title!=""], textarea[title!=""]').each(function(){
			jQuery(this).watermark($(this).attr("title"));
		});
	}  
	
	jQuery(".aba a").click(function() {
		
		jQuery(".aba ul li a img").each(function(){
			this.src = this.src.replace("_on","_off");
		});
		jQuery(this).find('img').attr('src', $(this).find('img').attr('src').replace("_off","_on")).addClass('ativo');
	
	});
	
	*/
	
	/*Colabore*/
	jQuery("#bt_colabore").click(function() {
		
		jQuery('#box_colabore').show();
		jQuery('#box_dados').hide();
		jQuery('#box_networking').hide();	
		
		
		
	});	

	jQuery("#bt_dados").click(function() {
		
		jQuery('#box_dados').show();
		jQuery('#box_colabore').hide();
		jQuery('#box_networking').hide();	
		
	});	

	jQuery("#bt_networking").click(function() {
		
		jQuery('#box_networking').show();
		jQuery('#box_colabore').hide();
		jQuery('#box_dados').hide();	
		
	});	
	
	
	/*HOME*/
	jQuery("#bt_moda").click(function() {
		
		
		jQuery("#bt_moda img").each(function(){
			this.src = this.src.replace("_off","_on");			
		});	
		
		
		jQuery("#bt_beleza img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		
		jQuery("#bt_musica img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		
		jQuery("#bt_atitude img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});		
		jQuery("#bt_outras img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		
		jQuery('#box_moda').show();
		jQuery('#box_beleza').hide();
		jQuery('#box_musica').hide();	
		jQuery('#box_atitude2').hide();
		jQuery('#box_outro').hide();
	});
		
	jQuery("#bt_beleza").click(function() {
		
		
		jQuery("#bt_moda img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		
		
		jQuery("#bt_beleza img").each(function(){
			this.src = this.src.replace("_off","_on");			
		});	
		
		jQuery("#bt_musica img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		
		jQuery("#bt_atitude img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_outras img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		
		
		jQuery('#box_beleza').show();
		jQuery('#box_moda').hide();
		jQuery('#box_musica').hide();	
		jQuery('#box_atitude2').hide();
		jQuery('#box_outro').hide();
	});	

	jQuery("#bt_musica").click(function() {
		
		
		jQuery("#bt_moda img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		
		
		jQuery("#bt_beleza img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		
		jQuery("#bt_musica img").each(function(){
			this.src = this.src.replace("_off","_on");			
		});	
		
		jQuery("#bt_atitude img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_outras img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		
		
		jQuery('#box_musica').show();
		jQuery('#box_moda').hide();
		jQuery('#box_beleza').hide();	
		jQuery('#box_atitude2').hide();
		jQuery('#box_outro').hide();
	});

	jQuery("#bt_atitude").click(function() {
		
		
		jQuery("#bt_moda img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		
		
		jQuery("#bt_beleza img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		
		jQuery("#bt_musica img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		
		jQuery("#bt_atitude img").each(function(){
			this.src = this.src.replace("_off","_on");			
		});	
		
		jQuery("#bt_outras img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		
		jQuery('#box_atitude2').show();
		jQuery('#box_moda').hide();
		jQuery('#box_beleza').hide();	
		jQuery('#box_musica').hide();
		jQuery('#box_outro').hide();
	});
	
	jQuery("#bt_outras").click(function() {
		
		
		jQuery("#bt_moda img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		
		
		jQuery("#bt_beleza img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		
		jQuery("#bt_musica img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		
		jQuery("#bt_atitude img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		
		jQuery("#bt_outras img").each(function(){
			this.src = this.src.replace("_off","_on");			
		});	
		
		jQuery('#box_atitude2').hide();
		jQuery('#box_moda').hide();
		jQuery('#box_beleza').hide();	
		jQuery('#box_musica').hide();
		jQuery('#box_outro').show();
	});
	
	
	
	
	
	
		
	/*PROMOCOES*/
	jQuery("#bt_embreve").click(function() {
		
		
		jQuery("#bt_embreve img").each(function(){
			this.src = this.src.replace("_off","_on");			
		});	
		
		
		jQuery("#bt_maisconsurso img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	

		
		jQuery('#box_embreve').show();
		jQuery('#box_maisconsurso').hide();

	});
	
	jQuery("#bt_maisconsurso").click(function() {
		
		
		jQuery("#bt_maisconsurso img").each(function(){
			this.src = this.src.replace("_off","_on");			
		});	
		
		
		jQuery("#bt_embreve img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	

		
		jQuery('#box_maisconsurso').show();
		jQuery('#box_embreve').hide();

	});
	
	
	
	
	
	
	
	
	
	/*REVISTA*/
	jQuery("#bt_mixtudo").click(function() {
		
		
		jQuery("#bt_mixtudo img").each(function(){
			this.src = this.src.replace("_off","_on");			
		});			
		jQuery("#bt_cult img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_estilo img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});
		jQuery("#bt_atitude img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});
		jQuery("#bt_ligada img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_saude img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_colabore img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});		
		
		
		jQuery('#box_mixtudo').show();
		jQuery('#box_cult').hide();
		jQuery('#box_estilo').hide();
		jQuery('#box_atitude').hide();
		jQuery('#box_ligada').hide();
		jQuery('#box_saude').hide();
		jQuery('#box_colabore').hide();
		
	});
	
	
	jQuery("#bt_cult").click(function() {
		
		
		jQuery("#bt_mixtudo img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});			
		jQuery("#bt_cult img").each(function(){
			this.src = this.src.replace("_off","_on");			
		});	
		jQuery("#bt_estilo img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});
		jQuery("#bt_atitude img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});
		jQuery("#bt_ligada img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_saude img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_colabore img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});		
		
		
		jQuery('#box_mixtudo').hide();
		jQuery('#box_cult').show();
		jQuery('#box_estilo').hide();
		jQuery('#box_atitude').hide();
		jQuery('#box_ligada').hide();
		jQuery('#box_saude').hide();
		jQuery('#box_colabore').hide();
		
	});
	
	
	jQuery("#bt_estilo").click(function() {
		
		
		jQuery("#bt_mixtudo img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});			
		jQuery("#bt_cult img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_estilo img").each(function(){
			this.src = this.src.replace("_off","_on");			
		});
		jQuery("#bt_atitude img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});
		jQuery("#bt_ligada img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_saude img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_colabore img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});		
		
		
		jQuery('#box_mixtudo').hide();
		jQuery('#box_cult').hide();
		jQuery('#box_estilo').show();
		jQuery('#box_atitude').hide();
		jQuery('#box_ligada').hide();
		jQuery('#box_saude').hide();
		jQuery('#box_colabore').hide();
		
	});
	
	
	jQuery("#bt_atitude").click(function() {
		
		
		jQuery("#bt_mixtudo img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});			
		jQuery("#bt_cult img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_estilo img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});
		jQuery("#bt_atitude img").each(function(){
			this.src = this.src.replace("_off","_on");			
		});
		jQuery("#bt_ligada img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_saude img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_colabore img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});		
		
		
		jQuery('#box_mixtudo').hide();
		jQuery('#box_cult').hide();
		jQuery('#box_estilo').hide();
		jQuery('#box_atitude').show();
		jQuery('#box_ligada').hide();
		jQuery('#box_saude').hide();
		jQuery('#box_colabore').hide();
		
	});
	
	
	
	jQuery("#bt_ligada").click(function() {
		
		
		jQuery("#bt_mixtudo img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});			
		jQuery("#bt_cult img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_estilo img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});
		jQuery("#bt_atitude img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});
		jQuery("#bt_ligada img").each(function(){
			this.src = this.src.replace("_off","_on");			
		});	
		jQuery("#bt_saude img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_colabore img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});		
		
		
		jQuery('#box_mixtudo').hide();
		jQuery('#box_cult').hide();
		jQuery('#box_estilo').hide();
		jQuery('#box_atitude').hide();
		jQuery('#box_ligada').show();
		jQuery('#box_saude').hide();
		jQuery('#box_colabore').hide();
		
	});
	
	
	jQuery("#bt_saude").click(function() {
		
		
		jQuery("#bt_mixtudo img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});			
		jQuery("#bt_cult img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_estilo img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});
		jQuery("#bt_atitude img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});
		jQuery("#bt_ligada img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_saude img").each(function(){
			this.src = this.src.replace("_off","_on");			
		});	
		jQuery("#bt_colabore img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});		
		
		
		jQuery('#box_mixtudo').hide();
		jQuery('#box_cult').hide();
		jQuery('#box_estilo').hide();
		jQuery('#box_atitude').hide();
		jQuery('#box_ligada').hide();
		jQuery('#box_saude').show();
		jQuery('#box_colabore').hide();
		
	});
	
	
	
	jQuery("#bt_colabore").click(function() {
		
		
		jQuery("#bt_mixtudo img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});			
		jQuery("#bt_cult img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_estilo img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});
		jQuery("#bt_atitude img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});
		jQuery("#bt_ligada img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_saude img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_colabore img").each(function(){
			this.src = this.src.replace("_off","_on");			
		});		
		
		
		jQuery('#box_mixtudo').hide();
		jQuery('#box_cult').hide();
		jQuery('#box_estilo').hide();
		jQuery('#box_atitude').hide();
		jQuery('#box_ligada').hide();
		jQuery('#box_saude').hide();
		jQuery('#box_colabore').show();
		
	});
	
	
	
	
	
	
	
	/*DOWNLOADS*/
	jQuery("#bt_wallpapers").click(function() {
		
		
		jQuery("#bt_wallpapers img").each(function(){
			this.src = this.src.replace("_off","_on");			
		});			
		jQuery("#bt_backgrounds img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_emoticons img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});

		jQuery('#box_wallpapers').show();
		jQuery('#box_backgrounds').hide();		
		jQuery('#box_emoticons').hide();


		
	});	
	
	jQuery("#bt_backgrounds").click(function() {
		
		
		jQuery("#bt_wallpapers img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});			
		jQuery("#bt_backgrounds img").each(function(){
			this.src = this.src.replace("_off","_on");			
		});	
		jQuery("#bt_emoticons img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});

		jQuery('#box_wallpapers').hide();
		jQuery('#box_backgrounds').show();		
		jQuery('#box_emoticons').hide();


		
	});
	
	jQuery("#bt_emoticons").click(function() {
		
		
		jQuery("#bt_wallpapers img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});			
		jQuery("#bt_backgrounds img").each(function(){
			this.src = this.src.replace("_on","_off");			
		});	
		jQuery("#bt_emoticons img").each(function(){
			this.src = this.src.replace("_off","_on");			
		});

		jQuery('#box_wallpapers').hide();
		jQuery('#box_backgrounds').hide();		
		jQuery('#box_emoticons').show();


		
	});
	
	
	
	
	
	
	
	/*
  jQuery(".fichario .content").slider({
    animate: true,
    change: handleSliderChange,
    slide: handleSliderSlide
  });	
  */
	
});

function  handleSliderChange(e, ui)
{
  var maxScroll = $("#content-scroll").attr("scrollWidth") -
                  $("#content-scroll").width();
  $("#content-scroll").animate({scrollLeft: ui.value *
     (maxScroll / 100) }, 1000);
}

function handleSliderSlide(e, ui)
{
  var maxScroll = $("#content-scroll").attr("scrollWidth") -
                  $("#content-scroll").width();
  $("#content-scroll").attr({scrollLeft: ui.value * (maxScroll / 100) });
}


