function runLogo()
{
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="713" height="82" id="aamenalogoblack" align="middle">');
    document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
    document.write('<param name="movie" value="http://www.aisha-ali.com/images/aamenalogoblack.swf" />\n');
    document.write('<param name="quality" value="high" /><param name="bgcolor" value="#000000" />');
    document.write('<embed src="http://www.aisha-ali.com/images/aamenalogoblack.swf" quality="high" bgcolor="#000000" width="713" height="82" name="aamenalogoblack" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
    document.write('</object>\n');
}

//Footers
//Footer for most pages
function printVirtualFooter()
{
//Contacts
	var anchortext = "Aisha Ali"; 
	var mailpart1 = "aisha"; 
	var mailpart2 = "aisha-ali.com"; 

//Contact 2
	var anchortext2 = 'Mardi Rollow'; 
	var mailpart12 = 'webmaster'; 

	now = new Date;
	thisYear=now.getYear();
	if (thisYear < 1900) 
	{
	thisYear = thisYear + 1900;
	}

	function send2()
	{
		document.write('<a href=' + 'mail' + 'to:' + mailpart12 + 
'@' + mailpart2 + '>' + anchortext2 + '</a>') 
	}

	var ml1 = '<a href=' + 'mail' + 'to:' + mailpart1 + 
'@' + mailpart2 + '>' + anchortext + '</a>';
	var ml2 = '<a href=' + 'mail' + 'to:' + mailpart12 + 
'@' + mailpart2 + '>' + anchortext2 + '</a>';

	document.write('<table width="90%" cellpadding="0" cellspacing="0" align="center">');
	document.write('<tr><td align="left" class="footer">');
	document.write('<span class=navcolor>Copyright &copy; 1998&ndash;' + thisYear + "&nbsp;&nbsp;" + ml1 + '</span>');
	document.write('</td><td align="center" class="footer">');
	document.write('<span class="navcolor">All rights reserved</span></td>');
	document.write('<td class="footer" align=right>');
	document.write('<span class=navcolor>Web Design:</span> ' + ml2);
	document.write('</td><td width="40"></td></tr></table>');

}

//Footer for Classes and Workshops pages
function printVirtualFooterCls()
{
//Contacts
	var anchortext = "Aisha Ali"; 
	var mailpart1 = "aisha"; 
	var mailpart2 = "aisha-ali.com"; 

//Contact 2
	var anchortext2 = 'Mardi Rollow'; 
	var mailpart12 = 'webmaster'; 

	now = new Date;
	thisYear=now.getYear();
	if (thisYear < 1900) 
		{
			thisYear = thisYear + 1900;
		}

	function send2()
	{
		document.write('<a href=' + 'mail' + 'to:' + mailpart12 + 
'@' + mailpart2 + '>' + anchortext2 + '</a>') 
	}

	var ml1 = '<a href=' + 'mail' + 'to:' + mailpart1 + 
'@' + mailpart2 + '>' + anchortext + '</a>';
	var ml2 = '<a href=' + 'mail' + 'to:' + mailpart12 + 
'@' + mailpart2 + '>' + anchortext2 + '</a>';

	document.write('<table width="925" cellpadding="0" cellspacing="0" align="left">');
	document.write('<tr><td  class="footer"id="classes" align="left">');
	document.write('<span class="footer">Copyright &copy; 1998&ndash;' + thisYear + "&nbsp;&nbsp;" + ml1 + '</span>');
	document.write('</td><td class="footer" id="classes" align="center">');
	document.write('<span class="footer" id="classes">All rights reserved</span></td>');
	document.write('<td class="footer" id="classes" align=right>');
	document.write('<span class="footer">Web Design: ' + ml2 + '</span>');
	document.write('</td><td class="footer" id="classes" width="40"></td></tr></table>');
}
/* End of virtual footers */

//Random photo display, Home page
function dispPhoto()
{
	var photoNumber = 0;
	var photoCredit = "";
	photoNumber = (Math.ceil(Math.random() * 9));
	if (photoNumber == 4)
	{
		photoCredit = "Jules";
	}
	else if (photoNumber == 5)
	{
		photoCredit = "Fattin Haddad";
	}
	else if (photoNumber == 7 | photoNumber == 8)
 	{
		photoCredit = "Paul Esposito";
	}
	else if (photoNumber == 9)
	{
		photoCredit = "Richard Taylor";
	}
	else 
	{
		photoCredit = "Keith Drosin";
	}
	document.write("<img alt='Aisha Ali, Performance Photo' src='images/home0" + photoNumber + ".jpg' height='300' border='1' class='imgborder'><br><span class='footer' style='color:#AAAAAA;'>Photo by " + photoCredit + "</span>");
}

/* FOR SLIDESHOW */
/* Small logo */
function runLogosm()
{
    document.write('<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=200 height=82 id=aasmall align=middle');
    document.write('<param name=allowScriptAccess value=sameDomain />\n');
    document.write('<param name=movie value=\"images/aasmall.swf\">\n');
    document.write('<param name=quality value=high /><param name=bgcolor value=#000000 />');
    document.write('<embed src=\"images/aasmall.swf\" quality=high bgcolor=#000000 width=200 height=82 type=\"application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer\" />');
    document.write('</object>\n');
}

/* Slideshow code */
//variable that will increment through the images
var step=1
var curtextval = document.getElementById("title");
//var curlinkval = document.getElementById("g_link");

function changeText() {
}

function slideit(){
//if browser does not support the image object, exit.
if (!document.images)
return
document.images.slide.src=eval("image"+step+".src")
document.images.slide.width=eval("image"+step+".width")
document.images.slide.height=eval("image"+step+".height")
curtextval.innerHTML = gallery_array[step]
if (step<11)
step++
else
step=1
//call function "slideit()" every 5 seconds
setTimeout("slideit()",5000)
setTimeout("changeText()",5000)
//call function "changeText()" every 5 seconds
//setTimeout("changeText()",5000)
}
/* END OF SLIDESHOW */

//red logo for class and workshop pages
function runLogoRed()
{
    document.write('<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=713 height=82 id=aamenalogored align=middle');
    document.write('<param name=allowScriptAccess value=sameDomain />\n');
    document.write('<param name=movie value=\"images/aamenalogored.swf\">\n');
    document.write('<param name=quality value=high /><param name=bgcolor value=#660000 />');
    document.write('<embed src=\"images/aamenalogored.swf\" quality=high bgcolor=#660000 width=713 height=82 type=\"application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer\" />');
    document.write('</object>\n');
}

// Photo show for index page
// This is a repeat
function photoShow()
{
var photoNumber = 0;
var photoCredit = "";
photoNumber = (Math.ceil(Math.random() * 9));
if (photoNumber == 4)
 {
 photoCredit = "Jules";
 }
else if (photoNumber == 5)
 {
 photoCredit = "Fattin Haddad";
 }
else if (photoNumber == 7 | photoNumber == 8)
 {
 photoCredit = "Paul Esposito";
 }
else if (photoNumber == 9)
 {
 photoCredit = "Richard Taylor";
 }
else 
 {
 photoCredit = "Keith Drosin";
 }
document.write("<img alt='Aisha Ali, Performance Photo' src='images/home0" + photoNumber + ".jpg' height=300 border=1 class='imgborder'><br><span class='footer' style='color:#AAAAAA;'>Photo by " + photoCredit + "</span>");
}
//Contacts
function send()
{
var anchortext = "Aisha Ali"; 
var mailpart1 = "aisha"; 
var mailpart2 = "aisha-ali.com"; 

document.write("<a href=" + "mail" + "to:" + mailpart1 + 
"@" + mailpart2 + ">" + anchortext + "</a>") 
}
//Contact 2
function send2()
{
var anchortext2 = "Mardi Rollow"; 
var mailpart12 = "webmaster"; 

document.write("<a href=" + "mail" + "to:" + mailpart12 + 
"@" + mailpart2 + ">" + anchortext2 + "</a>") 
}
//Contact 3 webmaster with no name
function send3()
{
var anchortext3 = "webmaster"; 
var mailpart13 = "webmaster"; 
var mailpart3 = "aisha-ali.com"; 

document.write("<a href=" + "mail" + "to:" + mailpart13 + 
"@" + mailpart3 + ">" + anchortext3 + "</a>") 
}

//Contact 3
function send4()
{
var anchortext4 = "performance"; 
var mailpart14 = "booking"; 
var mailpart2 = "aisha-ali.com"; 

document.write("<a href=" + "mail" + "to:" + mailpart14 + 
"@" + mailpart2 + ">" + anchortext4 + "</a>") 
}

//Contact 4
function sendfour()
{
var anchortext4 = "private lesson"; 
var mailpart14 = "classes"; 
var mailpart2 = "aisha-ali.com"; 

document.write("<a href=" + "mail" + "to:" + mailpart14 + 
"@" + mailpart2 + ">" + anchortext4 + "</a>") 
}

//Contact 5
function sendfive()
{
var anchortext5 = "DVDs, videos and audio recordings"; 
var mailpart15 = "classes"; 
var mailpart2 = "aisha-ali.com"; 

document.write("<a href=" + "mail" + "to:" + mailpart15 + 
"@" + mailpart2 + ">" + anchortext5 + "</a>") 
}

//Contact 6
function sendsix()
{
var anchortext6 = "email"; 
var mailpart16 = "info"; 
var mailpart2 = "aisha-ali.com"; 

document.write("<a href=" + "mail" + "to:" + mailpart16 + 
"@" + mailpart2 + ">" + anchortext6 + "</a>") 
}

/* Popup for Home page (may not be used) */
function avWindow(url)
{
myWin=window.open(url,"item","width=750,height=595,screenx=50,screeny=5,resizable=yes,alwaysRaised", true)
myWin.focus();
}

/* Popup for slideshow on main gallery page */
function galWindow(url){
myWin=window.open(url,"gallery","width=725,height=570,screenx=150,screeny=100,resizable=yes,alwaysRaised", true)
;
myWin.focus();
}

/* Popup window for dance style description, workshops page */
function descWindow(url){
mywin=window.open(url,"dance","width=355,height=185,screenx=50,screeny=5,resizable=yes,alwaysRaised",true)
mywin.focus();
}

/* Window for new resource */
function exWindow(url)
{
mywin=window.open(url,"item","width=755,height=550,scrollbars,screenx=50,screeny=5,resizable=yes,alwaysRaised",true);
mywin.focus();
}

/* Images for gallery page */
var image1=new Image()
image1.src="gallery/48g.jpg"
image1.width=204
image1.height=290
var image2=new Image()
image2.src="gallery/3g.jpg"
image2.width=426
image2.height=279
var image3=new Image()
image3.src="gallery/32g.jpg"
image3.width=198
image3.height=290
var image4=new Image()
image4.src="gallery/99g.jpg"
image4.width=458
image4.height=290
var image5=new Image()
image5.src="gallery/34g.jpg"
image5.width=229
image5.height=291
var image6=new Image()
image6.src="gallery/95g.jpg"
image6.width=199
image6.height=290
var image7=new Image()
image7.src="gallery/160g.jpg"
image7.width=362
image7.height=290
var image8=new Image()
image8.src="gallery/166g.jpg"
image8.width=196
image8.height=289
var image9=new Image()
image9.src="gallery/7g.jpg"
image9.width=420
image9.height=287
var image10=new Image()
image10.src="gallery/51g.jpg"
image10.width=363
image10.height=290
var image11=new Image()
image11.src="gallery/91g.jpg"
image11.width=202
image11.height=291
//Array for gallery title and photographer
var gallery_array = new Array();
gallery_array[1]="<strong>Aisha Ali Dance Company</strong><br>Photographer: John Heiser"
gallery_array[2]="<strong>Aisha Ali Dance Company</strong><br>Photographer: Fatin Haddad"
gallery_array[3]="<strong>Vintage Photos</strong><br>Photographer: DeMerjian"
gallery_array[4]="<strong>Other Artists</strong><br>Photographer: Andonis Mamillos"
gallery_array[5]="<strong>Aisha Ali</strong><br>Photographer: Maurice Inez"
gallery_array[6]="<strong>Workshops</strong><br>Photographer: Barbara Racy"
gallery_array[7]="<strong>Aisha Ali Dance Company</strong>"
gallery_array[8]="<strong>Other Artists</strong><br>Photographer: Eva"
gallery_array[9]="<strong>Aisha Ali Dance Company</strong><br>Photographer: Richard Taylor"
gallery_array[10]="<strong>Aisha Ali</strong><br>Photographer: Ali Gabry"
gallery_array[11]="<strong>Vintage Photos</strong><br>Photographer: Philip Harland"

function preLoad() {
document.write('<img alt="Aisha Ali, Gallery Photo" src="gallery/48g.jpg" width="204" height="290" class="hiddenPic">');
document.write('<img alt="Aisha Ali, Gallery Photo" src="gallery/3g.jpg" width="426" height="279" class="hiddenPic">');
document.write('<img alt="Aisha Ali, Gallery Photo" src="gallery/32g.jpg"  width="198" height="290" class="hiddenPic">');
document.write('<img alt="Aisha Ali, Gallery Photo" src="gallery/99g.jpg" width="458" height="290" class="hiddenPic">');
document.write('<img alt="Aisha Ali, Gallery Photo" src="gallery/34g.jpg" width="229" height="291" class="hiddenPic">');
document.write('<img alt="Aisha Ali, Gallery Photo" src="gallery/95g.jpg" width="199" height="290" class="hiddenPic">');
document.write('<img alt="Aisha Ali, Gallery Photo" src="gallery/160g.jpg" width="362" height="290" class="hiddenPic">');
document.write('<img alt="Aisha Ali, Gallery Photo" src="gallery/166g.jpg" width="196" height="289" class="hiddenPic">');
document.write('<img alt="Aisha Ali, Gallery Photo" src="gallery/7g.jpg" width="420" height="287" class="hiddenPic">');
document.write('<img alt="Aisha Ali, Gallery Photo" src="gallery/51g.jpg" width="363" height="290" class="hiddenPic">');
document.write('<img alt="Aisha Ali, Gallery Photo" src="gallery/91g.jpg" width="202" height="291" class="hiddenPic">');
}
