function getStyleValue(_1,_2){var _3="";if(_1.style[_2]){_3=_1.style[_2];}else{if(_1.currentStyle){_3=_1.currentStyle[_2];}else{if(window.getComputedStyle){var _4=window.getComputedStyle(_1,"");_3=_4.getPropertyValue(_2);}}}
return _3;};function getDistance(P,Q){return Math.sqrt((Math.pow(Q.x-P.x,2))+(Math.pow(Q.y-P.y,2)));};function fixE(e){return e||window.event;};function getPosition(e){var _5={};if(e.pageX){_5.x=e.pageX;_5.y=e.pageY;}else{_5.x=e.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;_5.y=e.clientY+document.documentElement.scrollTop+document.body.scrollTop;}
return _5;};function Sleep(_6){var _7=new Date();var _8=_7.getTime();var _9;do{var _a=new Date();_9=_a.getTime();}while((_9-_8)<_6);};function getAbsoluteLeft(_b){var _c=0;while(_b!=null){_c+=parseInt(_b.offsetLeft);_b=_b.offsetParent;}
return _c;};function getAbsoluteTop(_d){var _e=0;while(_d!=null){_e+=parseInt(_d.offsetTop);_d=_d.offsetParent;}
return _e;};function getTimeString(_f){var _10="";if(_f==undefined||_f==null||_f<=0){return "0 minuti";}
try{_f=parseInt(_f);}
catch(e){_f=0;}
var _11=Math.floor(_f/60);var _12=Math.floor(_11/24);if(_12>0){_10+=_12+(_12==1?" giorno":" giorni");_11=_11%24;}
if(_11>0){if(_12>0){_10+=", ";}
_10+=_11+(_11==1?" ora":" ore");_f=_f%60;}
if(_f>0){if(_12>0||_11>0){_10+=", ";}
_10+=_f+(_f==1?" minuto.":" minuti.");}else{_10+="meno di un minuto";}
return _10;};

