var xmlhttp=false;

 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp = false;
  }
 }

if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
	try {
		xmlhttp = new XMLHttpRequest();
	} catch (e) {
		xmlhttp=false;
	}
}
if (!xmlhttp && window.createRequest) {
	try {
		xmlhttp = window.createRequest();
	} catch (e) {
		xmlhttp=false;
	}
}

function switch_div(number){
	var div;
	
	switch(number){
		case 1:
			div = document.getElementById('first');
			document.getElementById('second').className = 'hide';
			document.getElementById('third').className = 'hide';
			div.className = 'show';
		break;
		case 2:
			div = document.getElementById('second');
			document.getElementById('first').className = 'hide';
			document.getElementById('third').className = 'hide';
			div.className = 'show';
		break;
		case 3:
			div = document.getElementById('third');
			document.getElementById('first').className = 'hide';
			document.getElementById('second').className = 'hide';
			div.className = 'show';
		break;
	}
}

function displaymessage(){
	//var elt = document.getElementById("container");
	//document.write('number'+number);
	displayMenu();
}
function getElement(id){
	return document.getElementById(id);
}

function menu(choice){
	alert (choice.id );
}
function toggle_language(lang){
	alert("shc");
	if(lang == 'french'){
		displayMenu(lang);
	}else{
		displayMenu(lang);
	}
}

function grow(){
	var i;
	
	for (i = 0;i < 800; i++){
		for(var j = 0 ; j < 10000; j++){
			
		}
		var thisnav = document.getElementById('grow');
		
		thisnav.style.height = i+'px';
		
	}
}

function tooltip(){
	var newHtml;
	xmlhttp.open("GET", "test.php",true);
 	xmlhttp.onreadystatechange=function() {
 	if (xmlhttp.readyState==4) {
 	 	newHtml = '<p>'+xmlhttp.responseText+'</p>';
 	 	document.getElementById('loader').innerHTML = newHTML;
 	 }
 }
 xmlhttp.send(null)
}

function displayMenu(choice){//english or french
	var newHtml;
	
		if(choice == 'english'){
			newHTML = '<UL>'
					+'<LI><a id = "ehome" onclick = "menu(this);">HOME</a></li>' 
					+'<LI><a id = "einfo" onclick = "menu(this);">ABOUT US</a>'
					+'<LI><a id = "esample" onclick = "menu(this);">OUR CD</a>' 
					+'<LI><a id = "eorder" onclick = "menu(this);">ORDER</a>' 
					+'</UL>';
		}else{
			newHTML = '<UL>'
					+'<LI><a id = "fhome" onclick = "menu(this);">Ë LA MAISON </a>' 
					+'<LI><a id = "finfo" onclick = "menu(this);">AU SUJET DES USA</a>'
					+'<LI><a id = "fsample" onclick = "menu(this);">NOTRE CD</a>' 
					+'<LI><a id = "forder" onclick = "menu(this);">ODRE</a>' 
					+'</UL>';
		}
		document.getElementById('menu').innerHTML = newHTML;
}

function setActive(choice){
	
}

function displayHome(){
	var newContent;
	newContent = '<h1>Welcome to www.Jazzenjoyment.com</h1>'
			 	+'<div id = "image">'
			 	+'<img src= "images/title_small.gif"/>'
			 	+'<img src= "images/JazzMegeveSmall.jpg"/>'
			 	+'</div>';
	document.getElementById('Content').innerHTML = newContent;
}
function displayAbout(){
	var newContent;
	newContent = '<h3>Art Fell and David Cross</h3>'
				 +'For twenty years Art (piano) and David (trumpet, valve trombone and vocals)' 
				 +'have been playing together in Europe, US and Africa.  Specializing in the jazz ' 
				 +'and the dance music of 1920s to 1940s, they can also play an entertaining range ' 
				 +'of styles designed to please audiences.  We would be pleased to play for an event ' 
				 +'you are organizing. If you care to order our CD on the MacJazz label, "Shake Your ' 
				 +'Blues Away", our contacts can be found <a href="javascript:displayEvents();">here</a>. Give us a call or send us a message.'
				 +'<table class = "info_table">'
				 +'<tr><td><img src="images/ArtSmall.jpg"/></td><td>'
				 +'<div id = "artInfo"><span class = "titleInfo"><strong>Art Fell<br>Piano<br></strong></span>'
				 +'Art Fell has played professionally for over 35 years. '
				 +'Born in Bloomington, Indiana, Art\'s first piano teacher, ' 
			     +'a cousin of Hoagy Carmichael, composer of "Georgia on My Mind" '  
			     +'and "Stardust" taught him the classics - Bach and Mozart -'
				 +'and also jazz, ragtime, and improvisation. Art led a band at ' 
				 +'Indiana University, appeared on television and radio, and has ' 
				 +'performed both as a soloist and in many bands in the US, Europe and Africa. '  
				 +'He played with the Askari Stompers (Nairobi, Kenya),  The International Jazzmen '
				 +'(Abidjan, Ivory Coast), the Roger Guerin Big Band (France), and the Dixie Doctors (Paris).'
				 +'  Art  is a member of the American Federation of Musicians, Trad Jazz International, '
				 +'and  is a composer-member in the American Society of Composers, Authors and Publishers '
				 +'(ASCAP).  He received an ASCAP award for his composition "Teri\'s Theme" and has other '
				 +'compositions to his credit.  As a journalist and International Correspondent on the '
				 +'masthead of the "Mississippi Rag" (the premier traditional jazz publication in the '
				 +'United States) he has interviewed many leading jazz figures. Art plays piano and accordion.'
				 +'</div></td></tr>'
				 +'<tr><td><img src="images/DavidSmall.jpg"/></td><td>'
				 +'<div id = "davidInfo"><strong>David Cross<br>'
			 	 +'Trumpet, Valve Trombone, Tuba and Vocals<br></strong>'
				 +'David began playing jazz trumpet in London as a teen-ager' 
				 +'during the traditional jazz revival years of the late 1940s. ' 
				 +'He began leading bands in England and France in the decades that ' 
				 +'followed until, in 1982, he moved to Egypt where he worked with a trio. '
				 +'From 1985 to 1997 he led bands in Africa (notably the International Jazzmen, ' 
				 +'with Art on piano). During that period he often played summer seasons in '
				 +'Europe and the USA, including New Orleans. Then followed two years in Ohio in the USA, ' 
				 +'where he was leader of the Athens Dixieland Jazz Band and played at many jazz festivals. ' 
				 +'In 1999 he settled in the south of France where he and Art formed the Anglo-American ' 
				 +'Jazz Band. As well as playing the trumpet, David sings and plays valve trombone and tuba. '
				 +'</div></td></tr>'
				 +'</table>';	 
	document.getElementById('Content').innerHTML = newContent;
}

function displayEvents(){
	var newContent;
	newContent = '<strong>David and Art look forward to playing for you!<br>'
				+'MUSICAL ENTERTAINMENT FOR PARTIES, FESTIVALS AND RECEPTIONS</strong><br><br>'
				+'Art Fell, piano/accordion and David Cross, trompet/trombone<br>'
				+'Depending on your choice and needs we can add 1 to 4 other musicians.'
				+'<div class = "contacts">'
				+'Contact Art at :  33-(0)467611899<br>'
				+'140 Allée du Nouveau Monde, Montcalm 328, 34000 Montpellier<br>'
         		+'Email :  <A HREF="mailto:arterifell@aol.com">Contact Art</A><br>'
				+'</div>'
				+'<div class = "contacts">'
				+'David at:  33-(0)467253587<br>'
				+'10 ave du Général de Gaulle, 34230 Adissan France<br>'
				+'Email:   <A HREF="mailto:docjazz_fr@yahoo.com">Contact David</A><br>'
				+'</div>'
				+'To order their CD MacJazz Productions label (MAC CD0012) "Shake Your Blues Away with Jazz" '
 				+'Art Fell-David Cross & Friends send $17 (check or money order) to:<br>'
				+'Roses Records<br>325 S. Arbutus Ave, Bloomington, Indiana 47401 USA<br> or in Europe 15 Euros to <br>Art Fell, '
				+'140 Allée du Nouveau Monde, Montcalm 328, 34000 Montpellier France<br>'
				+'Here is a sample of the CD<br><br>'
				+'<a href="javascript:displayCD();">"Shakin Your Blues Away with Jazz"</a>';	
					
	document.getElementById('Content').innerHTML = newContent;			
}
function displayCD(){
	var newContent;
	newContent = '<h3>Here is a sample of the CD Shake Your Blues Away with Jazz</h3>'
				+'<img src="images/cd_cover.jpg">'
				+'<div class ="samples">'
				+'<p><strong><a href="music/Button_Up_Your_Coat.wma">4. Button Up Your Overcoat (by B.G DeSylvia, Lew Brown and Ray Henderson - 1924).</strong></a><br>'
				+'This one evokes the "Great Gatsby" era. David does a stop-chorus to provide it with a traditional jazz stamp.</p>'
				+'</p>You can also find the CD on the MacJazz website:  <a href = "http://www.macjazz.co.uk">www.macjazz.co.uk</a>'
					
	document.getElementById('Content').innerHTML = newContent;	
}





