function auth(){
	$.modal($('#authModal'), {overlay:75});
	$('#authinput').focus();
}

function hideAuth(){
	$('#authModal').close();
}

$(function(){ $("#logoimg").pngfix(); });

$(document).ready( function(){	$('#pre').innerfade({ speed: 'slow', timeout: 10000, type: 'sequence', containerheight: '220px' }); }); 

function show_hide(id)
{
var item = document.getElementById(id);
if (item.style.display == 'none') {item.style.display = 'block';}
else item.style.display = 'none';
}

(function($) {
    $.fn.openCloseBlocks = function(blocks, options) {
        var defaults = { 
            speed: 'normal'
        }, 
        opts         = $.extend(defaults, options),
          togglers     = $(this),
          bls         = $(blocks); if(!bls) return;
          
          togglers.each(function(index) {
              $(this).click(function(e) {
                  e.preventDefault();             
                  $(bls[index]).slideToggle(opts['speed']);
              });
          });
    };
})(jQuery);
$('div > a').openCloseBlocks($('div.blocks'), {
    speed: 'fast'
});
