$(document).ready(function(){
	var $j = jQuery.noConflict();
	var $ = {};
    var COOKIE_NAME = 'visited';
    var options = { path: '/', expires: 7 };
    var ThisURL = document.location.href;
    $j("#facebook2").toggle();
    // delete cookie
    $j('#cookie').click(function() { 
        $j.cookie(COOKIE_NAME, null, options);
		$j(location).attr('href',ThisURL);
    });


/*if($j.cookie(COOKIE_NAME) != "visited"){
	$j("#wrapper").hide();
	$j("#fondu").toggle();	
	$j("#center").toggle();		
	$j("#go").click(function(){
        $j("#fondu").animate({ 
	          opacity: 0,
	          backgroundColor:"#d2996d"
	        }, 500 );
        $j("#fondu").toggle();	
		$j("#wrapper").fadeIn();
		$j.cookie(COOKIE_NAME, 'visited', options);	
		$j(location).attr('href',ThisURL);
	});
}*/

$j("#breves").accordion();
var mainWidth = $j('#main').width();	
$j('#main img').each(function(){		
	var imgSRC = $j(this).attr("src");
	var imgOriWidth = $j(this).width();
	$j(this).width(mainWidth-"20");
	var imgWidth = $j(this).width();
	$j(this).replaceWith('<img style="width: '+imgWidth+'px;border:none;" src="'+imgSRC+'" />');  
	});
$j('#facebook').click(function() { 
	$j("#facebook2").toggle();
});
});