var DDSPEED=10;var DDTIMER=15;function ddMenu(id,d){var h=document.getElementById(id+'-ddheader');var c=document.getElementById(id+'-ddcontent');clearInterval(c.timer);if(d==1){clearTimeout(h.timer);if(c.maxh&&c.maxh<=c.offsetHeight){return}
else if(!c.maxh){c.style.display='block';c.style.height='auto';c.maxh=c.offsetHeight;c.style.height='0px';}
c.timer=setInterval(function(){ddSlide(c,1)},DDTIMER);}else{h.timer=setTimeout(function(){ddCollapse(c)},50);}}
function ddCollapse(c){c.timer=setInterval(function(){ddSlide(c,-1)},DDTIMER);}
function cancelHide(id){var h=document.getElementById(id+'-ddheader');var c=document.getElementById(id+'-ddcontent');clearTimeout(h.timer);clearInterval(c.timer);if(c.offsetHeight<c.maxh){c.timer=setInterval(function(){ddSlide(c,1)},DDTIMER);}}
function ddSlide(c,d){var currh=c.offsetHeight;var dist;if(d==1){dist=(Math.round((c.maxh-currh)/DDSPEED));}else{dist=(Math.round(currh/DDSPEED));}
if(dist<=1&&d==1){dist=1;}
c.style.height=currh+(dist*d)+'px';c.style.opacity=currh/c.maxh;c.style.filter='alpha(opacity='+(currh*100/c.maxh)+')';if((currh<2&&d!=1)||(currh>(c.maxh-2)&&d==1)){clearInterval(c.timer);}}
var before="Christmas!"
var current="Today is Christmas. Merry Christmas!"
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
var tod=new Date();
function countdown(yr,m,d,offset)
{

theyear=yr;themonth=m;theday=d;ofs=offset;
var today=new Date()
var todayy=today.getYear()

if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todayh=today.getHours() 
var todaymin=today.getMinutes()
var todaysec=today.getSeconds()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec;
futurestring=montharray[m-1]+" "+d+", "+yr;

//alert(Date.parse(futurestring) +' | '+Date.parse(offset) + ' | ' +Date.parse(tod) +' | '+Date.parse(todaystring));

dd=Date.parse(futurestring)-Date.parse(offset)+Date.parse(tod)-Date.parse(todaystring);

dday=Math.floor(dd/(60*60*1000*24)*1)
dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)+4-4
dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)

if(dday==0&&dhour==0&&dmin==0&&dsec==1){document.forms.count.count2.value=current
return}
else if(dday!=0)
dhour=Math.floor(dday*24+dhour);

if(dhour>12)
dhour=Math.floor(dhour-12);
else
dhour=0;

document.getElementById('date2').innerHTML=dhour;document.getElementById('date3').innerHTML=dmin;document.getElementById('date4').innerHTML=dsec;

setTimeout("countdown(theyear,themonth,theday,ofs)",1000)}
var gaJsHost=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");
document.write(unescape("%3Cscript src='"+gaJsHost+"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try{var pageTracker=_gat._getTracker("UA-xxxxxx-x");pageTracker._trackPageview();}catch(err){}




