﻿/* Long Date Thursday, November 20, 1964 */
/* Begin Script */
function longDate()
{
var now = new Date();

var monthName = now.getMonth() + 1;
var dayName = now.getDay() + 1;
var dayNumber = now.getDate();
var Year = now.getYear();

if(dayName==1) Day = "sunday";
if(dayName==2) Day = "monday";
if(dayName==3) Day = "tuesday";
if(dayName==4) Day = "wednesday";
if(dayName==5) Day = "thursday";
if(dayName==6) Day = "friday";
if(dayName==7) Day = "saturday";

if(monthName==1) Month="january";
if(monthName==2) Month="february";
if(monthName==3) Month="march";
if(monthName==4) Month="april";
if(monthName==5) Month="may";
if(monthName==6) Month="june";
if(monthName==7) Month="july";
if(monthName==8) Month="august";
if(monthName==9) Month="september";
if(monthName==10) Month="october";
if(monthName==11) Month="november";
if(monthName==12) Month="december";

document.open();
document.write( Day + ", " + Month + " " + dayNumber + ", " + Year);
}
/* End Script */

/* Copyright date */
/* Begin Script */
function copyright()
{
today=new Date();
y0=today.getFullYear();
document.write('<font size="2" color="white">Copyright &copy; ' + y0 + ' Chicago Jazz Synchronized Skating Teams<br>Member Chicago Figure Skating Club<br></font>');
}
/* End Script */

/* Add website as home page */
/* Begin Script */

// Internet Explorer
function homepage()
{
if (document.all){
  document.write('<a href="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.chicagojazz.org\');">');
  document.write('<font size="2" color="white">Click here to make this website your homepage!</font></a>');
}

// Netscape 6
else if (document.getElementById){
  document.write('<a href="http://www.chicagojazz.org">Drag this link onto your Home button to make this your Home Page.</a>');
}

// Netscape 4 or lower
else if (document.layers){
  document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
}

else {
  document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
}
}
/* End Script */

/* Display Random Image */
/* Begin Script */
function randomimage()
{
var myimages=new Array()

myimages[1]="http://www.chicagojazz.org/images/pagephotos/page001.jpg"
myimages[2]="http://www.chicagojazz.org/images/pagephotos/page002.jpg"
myimages[3]="http://www.chicagojazz.org/images/pagephotos/page003.jpg"
myimages[4]="http://www.chicagojazz.org/images/pagephotos/page004.jpg"
myimages[5]="http://www.chicagojazz.org/images/pagephotos/page005.jpg"
myimages[6]="http://www.chicagojazz.org/images/pagephotos/page006.jpg"
myimages[7]="http://www.chicagojazz.org/images/pagephotos/page007.jpg"
myimages[8]="http://www.chicagojazz.org/images/pagephotos/page008.jpg"
myimages[9]="http://www.chicagojazz.org/images/pagephotos/page009.jpg"
myimages[10]="http://www.chicagojazz.org/images/pagephotos/page010.jpg"
myimages[11]="http://www.chicagojazz.org/images/pagephotos/page011.jpg"
myimages[12]="http://www.chicagojazz.org/images/pagephotos/page012.jpg"
myimages[13]="http://www.chicagojazz.org/images/pagephotos/page013.jpg"
myimages[14]="http://www.chicagojazz.org/images/pagephotos/page014.jpg"
myimages[15]="http://www.chicagojazz.org/images/pagephotos/page015.jpg"
myimages[16]="http://www.chicagojazz.org/images/pagephotos/page016.jpg"

var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<img src="'+myimages[ry]+'" border=0>')
}
/* End Script */

/* Gallery Slideshow */
/* Begin Script */
function changeslides(which)
{
var imghtml=""
currentindex=(which=="initial")? 0 : parseInt(which)
var mode=(which=="initial")? "initial" : ""
var which=(mode=="initial")? numberslide[0] : numberslide[which]
if (which[1]!="")
imghtml='<a href="'+which[1]+'" target="'+mylinktarget+'">'
imghtml+='<img src="'+which[0]+'" border="'+imgborderwidth+'">'
if (which[1]!="")
imghtml+='</a>'

if (mode=="initial")
document.write('<div>'+imghtml+'</div>')
else{
document.getElementById("imagecontainer").innerHTML=imghtml
changecolors()
}
}

function createnumbers()
{
document.write('<a href="javascript:changeslides(0)" style="color:'+mylinkcolorSelected+'">0</a> ')
for (i=1; i< numberslide.length; i++)
document.write('<a href="javascript:changeslides(\''+i+'\')">'+i+'</a> ')
}

function changecolors()
{
var numberobj=document.getElementById("numberDiv")
numberlinks=numberobj.getElementsByTagName("A")
for (i=0; i<=currentindex; i++)
numberlinks[i].style.color=mylinkcolorSelected
for (i=currentindex+1; i<numberslide.length; i++)
numberlinks[i].style.color=mylinkcolor
}

function goforward()
{
if (currentindex<numberslide.length-1)
changeslides(currentindex+1)
}

function goback()
{
if (currentindex!=0)
changeslides(currentindex-1)
}
/* End Script */


/* Use this URL to create the encrypted hide email address code */
/* http://www.mways.co.uk/prog/hidemail.php */
/* Begin Script */
function emailwebmaster()
{
document.write('<a hre'+'f="m'+'ai'+'lto:'+'%77%65%62%6d%61%73%74%65%72%40%63%68%69%63%61%67%6f%6a%61%7a%7a%2e%6f%72%67">&#119;&#101;&#98;&#109;&#97;&#115;&#116;&#101;&#114;<\/a>');
}

function emaillisadarken()
{
document.write('<a hre'+'f="ma'+'ilto'+':'+'%6c%69%73%61%2e%64%61%72%6b%65%6e%40%63%68%69%63%61%67%6f%6a%61%7a%7a%2e%6f%72%67">&#76;&#105;&#115;&#97;&#32;&#68;&#97;&#114;&#107;&#101;&#110;<\/a>');
}

function emailsandyculver()
{
document.write('<a hre'+'f="ma'+'ilto'+':'+'%73%61%6e%64%79%63%75%6c%76%65%72%40%73%62%63%67%6c%6f%62%61%6c%2e%6e%65%74">&#83;&#97;&#110;&#100;&#121;&#32;&#67;&#117;&#108;&#118;&#101;&#114;<\/a>');
}

function emailrobpedigo()
{
document.write('<a hre'+'f="m'+'ai'+'lto:'+'%72%6f%62%2e%70%65%64%69%67%6f%40%63%68%69%63%61%67%6f%6a%61%7a%7a%2e%6f%72%67">&#82;&#111;&#98;&#32;&#80;&#101;&#100;&#105;&#103;&#111;<\/a>');
}
/* End Script */

/* Begin Script */
function embedIntro(path) {
	document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" height=\"600\" width=\"600\">' +
	'<param name=\"movie\" value=\"' + path + 'jazz_intro.swf\">' +
	'<param name=\"quality\" value=\"best\">' +
	'<param name=\"play\" value=\"true\">' +
	'<embed height=\"600\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" src=\"' + path + 'jazz_intro.swf\" type=\"application/x-shockwave-flash\" width=\"600\" quality=\"best\" play=\"true\">' +
	'</object>');
}

function embedHeader(path) {
	document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" height=\"100\" width=\"780\">' +
	'<param name=\"movie\" value=\"' + path + 'jazz_header.swf\">' +
	'<param name=\"quality\" value=\"best\">' +
	'<param name=\"play\" value=\"true\">' +
	'<embed height=\"100\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" src=\"' + path + 'jazz_header.swf\" type=\"application/x-shockwave-flash\" width=\"780\" quality=\"best\" play=\"true\"> ' +
	'</object>');
}

function embedMenu(path) {
	document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" height=\"25\" width=\"780\">' +
	'<param name=\"movie\" value=\"' + path + 'jazz_menu.swf\">' +
	'<param name=\"quality\" value=\"best\">' +
	'<param name=\"play\" value=\"true\">' +
	'<embed height=\"25\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" src=\"' + path + 'jazz_menu.swf\" type=\"application/x-shockwave-flash\" width=\"780\" quality=\"best\" play=\"true\"> ' +
	'</object>');
}
/* End Script */