jQuery('document').ready(function(){
	blendTime = 10000;

	storeUid = getUserStore();
	if(storeUid) {
		setUserStore(storeUid);
		jQuery.ajax({
			url: location.href,
			type: "GET",
			data: "type=22&ppi_puc_store_info_teaser[store_uid]="+storeUid+"&ppi_puc_store_info_teaser[type]=html",
			dataType: "json",
			success: function(response) {
				jQuery('#store_info_teaser').html(response);
				if(jQuery('.info-teaser').length == 2) {
					jQuery('.info-teaser').eq(1).hide();
					setInterval('storeTeaserBlend()',blendTime);
				}
				Cufon.refresh()
			},
			error: function(error) {

			}
		});

		jQuery('.info-teaser').each(function(index) {
			if(index % 2 == 0){
				jQuery($this).hidden;
			} else {
			  jQuery($this).show;
			}
		});

	}
});

function storeTeaserBlend() {
	jQuery('.info-teaser').each(function(i) {
		if(i % 2 == 0){
			if (jQuery(this).is(':hidden')) {
				jQuery(this).fadeIn('slow');
			} else {
				jQuery(this).hide();
			}
		} else {
			if (jQuery(this).is(':hidden')) {
				jQuery(this).fadeIn('slow');
			} else {
				jQuery(this).hide();
			}
		}
	});
}