function getCurrentPic() {
  var address = $('.currentPic:eq(0)').css('background-image');
  if( address == null ) return "";
  return "<img src="+address.slice(4,address.length-1)+" class='center' />";  
}

function printIt(getSlug){
    var getTitle = $('#B h1').html();
    $('.recursos_do_texto, .extraNav').remove();
    $('#B .txt *').removeClass();
    $.post("print.php",{
        title: getTitle,
        content: getCurrentPic()+ $('#B .txt').html(),
        siteName: 'Valisère',
        siteURL: 'http://www.valisere.com.br',
        slug: getSlug
    },function(html){
        $('body *').css('display','none');
        $('body').css('background','transparent none');
        $('body').append('<div id="print"><!-- --></div>');
        $('#print').css('display','block');
        $('#print').html(html);
    }
    );
  }

$(document).ready(function(){
    $("#cabecalho input.parametros").focus(function(){ $(this).css('background-position','100px 100px'); });
    $("#cabecalho input.parametros").blur( function(){ if( $(this).val().length == 0 ) $(this).css('background-position','7px 3px'); });
    
    if($(".boxSlideShow").size()){
        $(".boxSlideShow").cycle();
    }
    
 });