
$(document).ready(function(){


	Cufon.replace('h1', { fontFamily: 'alber-rg'});

/*
	$('#sections li a').click(function () {

		if (!$(this).parent().hasClass('active')) {
			$('#sections li').removeClass('active');
			$(this).parent().addClass('active');

			var target = $(this).attr('href');
			$('.left-box .toggle').slideToggle('slow');
			//if (target) $(target).show('slow');
		}
		return false;
	});
*/

	$('blockquote p').each(function() {
		$(this).css({float: 'left'});
		var w = $(this).width();
		//if (w ) 720
		$(this).css({float: 'none'});
		if (w < 680) $(this).css({width: w+'px'});
		if (w < 680) {
			var h = $(this).html();
			h = h.replace(/ /g, '&nbsp;');
			$(this).html(h);
			
		}
		//$(this).append(w);
	});


	$('#show-request').click(function() {
		$(this).slideToggle('slow');
		$('#request').slideToggle('slow');
		return false;
	});

	$('a.fancy').fancyZoom({
		overlay:0.8
	});


	$('.offer-new').SetScroller({
		//startfrom: 'top',
		direction: 'vertical'
	});

/*
	$('.offer-new').cycle({ 
		fx:     'scrollUp',
		speed:  800, 
		timeout: 3000,
		cleartype:  true,
		cleartypeNoBg:  true
	});
*/	
	
});


