var ANIMATION=0;var SCROLL=1;var TIME=2;var TIME_ON_PAGE=3;var STATIC_MESSAGE=4;var DEFAULT=5;var ss_f, ss_i, ss_lead, ss_timeout, ss_mn;function ss_load(type,timeout,pre){ss_timeout=timeout;if(type==ANIMATION){ss_f=ss_t.length;ss_i=0;}else if(type==SCROLL){ss_f=ss_t.length;ss_i=0;ss_mn=0;ss_lead="";for(var i=0;i<135;i++)ss_lead+=" ";}else if(type==TIME){}else if(type==TIME_ON_PAGE){if(pre)ss_lead=pre;else ss_lead="";ss_f=new Date();}else if(type==STATIC_MESSAGE){if(pre)ss_lead=pre;else ss_lead="";}else if(type==DEFAULT){if(pre)window.top.defaultStatus=pre;}
ss_tryStart(type);}
function ss_tryStart(type){if((window.status=" ")==" "){if(type==ANIMATION)ss_animationGo();else if(type==SCROLL)ss_scrollGo();else if(type==TIME)ss_timeGo();else if(type==TIME_ON_PAGE)ss_timeOnPageGo();else if(type==STATIC_MESSAGE)ss_staticGo();else if(type==DEFAULT)return;}else setTimeout("ss_tryStart("+type+");",500);}
function ss_staticGo(){window.top.status=ss_lead;setTimeout("ss_staticGo()",ss_timeout);}
function ss_timeOnPageGo(){var date=new Date();var dif=date-ss_f;var seconds=parseInt(dif/1000);var minutes=parseInt(seconds/60);var hours=parseInt(minutes/60);var days=parseInt(hours/24);seconds%=60;minutes%=60;hours%=24;if(seconds.toString().length<2)seconds="0"+seconds;if(minutes.toString().length<2)minutes="0"+minutes;if(hours.toString().length<2)hours="0"+hours;var out;if(days>0)out=days+", "+hours+":"+minutes+":"+seconds;else if(hours>0)out=hours+":"+minutes+":"+seconds;else if(minutes>0)out=minutes+":"+seconds;else out="00:"+seconds;window.top.status=ss_lead+out;setTimeout("ss_timeOnPageGo()",ss_timeout);}
function ss_timeGo(){var date=new Date();window.top.status=date.toLocaleString();setTimeout("ss_timeGo()",ss_timeout);}
function ss_animationGo(){if(ss_i>=ss_f)ss_i=0;window.top.status=ss_t[ss_i++];setTimeout("ss_animationGo()",ss_timeout);}
function ss_scrollGo(){var out;out=ss_lead+ss_t[ss_mn];if(ss_i>=out.length){if(++ss_mn==ss_f)ss_mn=0;ss_i=0;}
out=(ss_lead+ss_t[ss_mn]).substring(ss_i++);window.top.status=out;setTimeout("ss_scrollGo()",ss_timeout);}

