// Copyright 2005 David J. Nixon. All rights reserved.
var z=new Array("Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"),a4=new Array("Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"),w=0,x=0,y="$ de $ de $",v="Dificuldade",s="substr",u="getElementById",t="innerHTML";function Init(a){document[u]("bd").style.width=document[u]("bd").style.height=[272,336,408,498,632][a]+"px";A(a);B()}function B(){C(document[u]("ck").checked)}function C(o){var i,r,c,q,b=0,f="",d;if(!o){o=1;i=window.location.search.indexOf("=");if(i>-1){f=window.location.search[s](i+1);if(f.length>0){d=f[s](0,81);o=0}}}document[u]("c1")[t]=(!o&&f.length>89)?v+": "+unescape(f[s](89)):"&nbsp;";document[u]("c2")[t]=(!o&&f.length>88)?D(f[s](81,8)):"&nbsp;";for(r=0;r<9;r++){for(c=0;c<9;c++){q=o?" ":d[s](b+c,1);if(q=="-")q=" ";document[u](""+r+c)[t]=q}b+=9}}function A(a){var r,c,h=m="",j=new Array(30,37,45,55,70),l=new Array(10,12,18,24,34),e=new Array(8,10,8,10,10),k=(document.all)?12:13,p=" 2px solid;";for(r=0;r<9;r++){for(c=0;c<9;c++){h+="<div style='position:absolute;left:"+c*j[a]+"px;top:"+r*j[a]+"px;width:"+(j[a]-2)+"px;height:"+(j[a]-2)+"px;border-top:#"+(r%3?"BBB":"000")+p+(r>7?"border-bottom:#000"+p:"")+"border-left:#"+(c%3?"BBB":"000")+p+(c>7?"border-right:#000"+p:"")+"background-color:#fff;'></div>";m+="<div style='position:absolute;left:"+(k+c*j[a])+"px;top:"+(e[a]+r*j[a])+"px;border:0;width:"+(j[a]-21)+"px;font:bold "+l[a]+"pt arial,sans-serif;text-align:center;vertical-align:middle"+(navigator.userAgent.toLowerCase().indexOf('safari')<0?";color:#000;background-color:#fff":"")+"' id='"+r+c+"'></div>"}}document[u]("gd")[t]=h+m}function D(n){var g=n[s](6,2)-0,i=w&&g<10?"0":"",j=x?["th","st","nd","rd"][!(g>10&&g<14||g%10>3)*g%10]:"",r=a4[n[s](4,2)-1];return z[new Date(n[s](0,4),n[s](4,2)-1,n[s](6,2)).getDay()]+", "+y.replace("$",i+g+j).replace("$",r).replace("$",n[s](0,4))}
