var abierto = 0;
function cambiaCont(id){
	if (abierto == id) {
        abierto = 0;
        $("#item" + id).slideUp("slow");
    } else {
		if (abierto != 0) {
			$("#item" + abierto).slideUp("slow");
			abierto = 0;
		}
		abierto = id;
        $("#item" + id).slideDown("slow");
		
    }
}
$(document).ready(function(){

$('a[href^=#]').bind('click',function(){
		var anch = $(this).attr('href').split('#');
		anch = anch[1];
		var node = $('a[name='+anch+']'); 
		if( node.length > 0 ){
			if($.browser.msie){
				node.css({zoom:'1'});
			}
			$('html').animate({
				scrollTop: node.offset()['top']
			}, 500 );
		} 
		return false;
	})

})


