// JavaScript Document
var list = new Array();

$(window).load(function() {
	initAllButtons(list);
});

function initAllButtons(list){
	if(list.length==0){
		initGxAnim('#qualcosa');
		initGxAnim('#gsi');
		initGxAnim('#pronto');
		initGxAnim('#scrivimi');
		initGxAnim('#notizie');
	} else {
		var i = 0;
		for(i = 0; i<list.length;i++) {
			initGxAnim(list[i]);
		}
	}
}
function initGxAnim(elemId){
	$(elemId).gxInit({queue: 'cancel'});
	
	$(elemId).hover(function() {
			$(elemId+"_but").gx({'top': 5}, 200, 'Sine');
		}, function() {
			$(elemId+"_but").gx({'top': -10}, 200, 'Sine');
		}
	);
	
}
function stopButton(elemId){
	$(elemId+"_but").gx({'top': 5}, 200, 'Sine');
}


$.fx.prototype.cur = function(){
    if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) ) {
      return this.elem[ this.prop ];
    }
    var r = parseFloat( jQuery.css( this.elem, this.prop ) );
    return typeof r == 'undefined' ? 0 : r;
}
