$.noConflict();

jQuery(document).ready(function(){
  
    
jQuery('#totop').hide(); 

    jQuery(window).scroll(function(){
	
        var scrolltop = jQuery(window).scrollTop(); 
        if(scrolltop != 0) { 
            jQuery('#totop').show('fast'); 
        } else { 
            jQuery('#totop').hide('fast'); 
        } 
    });


jQuery('#totop').click(function(){
   jQuery('html,body').animate({
				scrollTop: 0
				}, 1000)
});
  
    if(frontpage == true) {
	jQuery("body").hide();
	jQuery("body").fadeIn(900);
	
    } 
});
