//Photos
//alert("start");

var myCode = "";
var toDay = new Date();
var theDate = toDay.getDate();

var today = new Date();
var day = today.getDay();
daysOfWeek = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
monthsOfYear = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var caption = '<marquee scrollamount="3">&nbsp;';
//caption += 'Teaser\'s ';
//caption += 'Halloween Party Saturday, October 31st. ... ';
//caption += '9th Anniversary Party Saturday, November 7th ... ';
//caption += 'Christmas Party Satuday, December 12th ... ';
//caption += 'New Years Eve Party Thursday, December 31st. ...';
caption += 'Teaser\'s picture a day for ' + daysOfWeek[day] + ', ' + monthsOfYear[today.getMonth()] + ' ' + today.getDate() + ', ' + today.getFullYear() + ', Enjoy!';
caption += '</marquee>';
//var caption = 'Picture for ' + daysOfWeek[day] + ', ' + monthsOfYear[today.getMonth()] + ' ' + today.getDate() + ', ' + today.getFullYear() + ' at ' + today.getHours() + ' o\'clock. Current, former, and guest dancers!';
//var caption = 'New pictures coming soon.';
//var caption = 'Please join us for our New Year\'s Eve Party, December 31st.<hr style="width:50%"/>';


//var footer2 = '<br>Teaser\'s 8th Anniversary Party is Saturday, November 15th.';
//var footer1 = '<br/>Teaser\'s Christmas Party is Saturday, December 13th.';
var footer1 = '';
//var footer1 = 'Teaser\'s New Years\'s Eve Party is Wednesday, December 31st.';
//var footer1 = 'Watch the Super Bowl at Teasers. Sunday, Feb. 4 <br/>with the Teaser\'s cheerleaders.';
//var footer1 = 'Thank you for visiting Teasers Mens Club.'
var footer2 = '';
//'<br/>The picture changes every hour.';


var thePictures = new Array();
var pictureCount = 36;

//alert("Start");
var i = 0;
for (i=1; i <= pictureCount; i++) 
{
	var x = "000" + String(i);
	var y = x.length;
    thePictures[i] = 'images/200805web/DSC_' + x.substring(y-3,y) + '.jpg';
}
//thePictures[1] = 'images/pictures/new_pics_rsn.gif';

//alert("Check Point 2");

 
//i = 1 + Math.floor(Math.random() * pictureCount);

var h = 1 + today.getHours();
//alert(h);

i = h*theDate;

while (i > pictureCount) {
	//alert(i);
  	i = i - pictureCount;
}



//alert(thePictures[i]);

//myCode = thePictures[i] + footer1 + footer2 + '<br/>' + i;

//myCode = footer1 + footer2;
myCode += '<img border="0" alt="The Dancers would appreciate it if you will refrain from downloading their pictures!" src="' + thePictures[i] + '" name="tmc1" onmousedown="mouseDown()" onmouseup="mouseUp()" />';
myCode += '<br/>#' + i + ' a different picture every hour!';


function mouseDown()
{
document.tmc1.src = 'images/tmcGirl.jpg';
}
function mouseUp()
{
//document.tmc1.src = thePictures[i];
}

//if (theDate > i){
//	theDate = 1 + Math.floor(Math.random() * (i));
	//alert(i + "\n" + theDate);
//}

//var x = 1 + Math.floor(Math.random() * (i));
//if (x <= 1 || x == 3) {x=5};
//var y = 1 + Math.floor(Math.random() * (i));
//var z = 1 + Math.floor(Math.random() * (i));

//alert(thePictures[theDate] + '\n' + theDate);



//myCode = getCode(get_n());
//Top Banner
//var myCode = thePictures[theDate] + footer1 + footer2;	
//myCode += thePictures[29] + footer1 + footer2;
//var myCode = '<img src="images/dancers_200612/06-009.jpg">' + footer1 + footer2;



//alert("End");
