function startup() {
  //alert("enter startup function");
   initTip()
   contestOver()
   }

  function contestOver() {
/*Compare Two Dates

The Date object is also used to compare two dates.

The following example compares today's date with the May 1,2010*/
var myDate=new Date();
myDate.setFullYear(2010,8,1);  /* january=0....december=11*/
var today = new Date();

if (myDate>today)
  {
  //alert("Today is before 01 september 2010");
  $("div#contest").show();

  }
else
  {
  //alert("Today is on or after  01 september 2010");
  $("div#contest").hide();
  }
}



$('#gallery').cycle({
	fx: 'fade',                /*vs scrollRight */
	timeout: 3000,
	speed: 3000,
	delay: -2000,
	pager: '#pager',
	next: '#next',
	prev: '#prev'
});

$('#playControl').toggle(
		function() {
			$('#gallery').cycle('pause');
			$(this).text('Play');
		},
		function() {
			$('#gallery').cycle('resume');
			$(this).text('Pause');
		});
 $('#controls').hide();
