
function initmacyreturntotop(_uniqueId){
	//alert(_macyreturntotop_effectParam[_uniqueId]);
	if(_macyreturntotop_effectParam[_uniqueId]=='1'){
		$('macyreturntoptop'+_uniqueId).addEvent('click',function(event){
			event = new Event(event).stop();
			var scroll = new Fx.Scroll(window, {
				wait: false,
				transition:_macyreturntotop_effecttransition[_uniqueId],
				duration:_macyreturntotop_durationTransition[_uniqueId]

			});

			//var myEffect = new Fx.Scroll($(document.body){transition:_macyreturntotop_effecttransition[_uniqueId],duration:_macyreturntotop_durationTransition[_uniqueId]});
			scroll.toTop();
		});
	}
	else{
		$('macyreturntoptop'+_uniqueId).addEvent('click',function(event){
			event = new Event(event).stop();

			var scroll = new Fx.Scroll(window, {
				wait: false,
				transition:_macyreturntotop_effecttransition[_uniqueId],
				duration:0

			});

			//var myEffect = new Fx.Scroll($(document.body){transition:_macyreturntotop_effecttransition[_uniqueId],duration:_macyreturntotop_durationTransition[_uniqueId]});
			scroll.toTop();
		});
	}
	if(_macyreturntotop_type_align[_uniqueId]==0){
		$('macyreturntoptop'+_uniqueId).setStyle('left',15);
		$('macyreturntoptop'+_uniqueId).setStyle('top',15);
	}
	else if(_macyreturntotop_type_align[_uniqueId]==1){
		$('macyreturntoptop'+_uniqueId).setStyle('right',15);
		$('macyreturntoptop'+_uniqueId).setStyle('top',15);
	}
	else if(_macyreturntotop_type_align[_uniqueId]==2){
		$('macyreturntoptop'+_uniqueId).setStyle('left',15);
		$('macyreturntoptop'+_uniqueId).setStyle('bottom',15);
	}
	else if(_macyreturntotop_type_align[_uniqueId]==3){
		$('macyreturntoptop'+_uniqueId).setStyle('right',15);
		$('macyreturntoptop'+_uniqueId).setStyle('bottom',15);
	}
	/*$('macyreturntoptop'+_uniqueId).addEvent('mousenter',function(){

	});*/
}


