// ASSIGN CORRECT STYLESHEET

	if (navigator.userAgent.indexOf("Win") != -1) {
		document.write ('<link rel=stylesheet href="../resources/css/win.css" type="text/css">') 
		} else {
		document.write ('<link rel=stylesheet href="../resources/css/mac.css" type="text/css">')
		}


// STYLE SHEETS BASED ON BROWSER
	if (navigator.userAgent.indexOf("Win") != -1) {       // windows
		imgStye = "gif";	// allow for windows to use gifs
		if (navigator.appName.indexOf('Microsoft Internet Explorer') != -1) {
			// IE
			document.write ('<link rel=stylesheet href="../resources/css/winIE.css" type="text/css">') 
			}
		else {
			//NN
			document.write ('<link rel=stylesheet href="../resources/css/winNN.css" type="text/css">') 
			}
			
		} else {     //Mac
			
		imgStyle = "png";	// allow for windows to use gifs
			
		if (navigator.appName.indexOf('Microsoft Internet Explorer') != -1) {
			document.write ('<link rel=stylesheet href="../resources/css/macIE.css" type="text/css">') 
			// IE
			} else { 
			document.write ('<link rel=stylesheet href="../resources/css/macNN.css" type="text/css">') 
			//NN
			}
			
		}
		

/* NAVIGATION BUTTONS */


	////////// IMAGE SWAPPING SCRIPT //////////
	
	var about = "about";
	var bios = "bios";
	var repertoire = "repertoire";
	var dj = "dj";
	var faq = "faq";
	var tesimonials = "tesimonials";
	var rates = "rates";
	var contact = "contact";
	
	
	// necesary
	
	if (document.images) {
		relPath = "../resources/gifs/"
	
		imag = new Array();
		
		imag[0] = relPath + "about." + imgStyle;
		imag[1] = relPath + "about-o." + imgStyle;			
		imag[2] = relPath + "bios." + imgStyle;
		imag[3] = relPath + "bios-o." + imgStyle;
		imag[4] = relPath + "repertoire." + imgStyle;
		imag[5] = relPath + "repertoire-o." + imgStyle;			
		imag[6] = relPath + "dj." + imgStyle;
		imag[7] = relPath + "dj-o." + imgStyle;			
		imag[8] = relPath + "faq." + imgStyle;
		imag[9] = relPath + "faq-o." + imgStyle;	
		imag[12] = relPath + "testimonial." + imgStyle;
		imag[13] = relPath + "testimonial-o." + imgStyle;	
		imag[14] = relPath + "rates." + imgStyle;
		imag[15] = relPath + "rates-o." + imgStyle;	
		imag[16] = relPath + "contact." + imgStyle;
		imag[17] = relPath + "contact-o." + imgStyle;	
	
		im = new Array();
		for (var i = 0; i < imag.length; i++) {
			im[i] = new Image; im[i].src = imag[i]; 
			}
		}
	
	function swapImage(imgName, num) {
		if (document.images && imgName) {
			imgName.src = im[num].src;	
			}
			
		return;	
		}






/* CONTENT RELATED SCRIPTS */
	
// CHECK FOR QUICKTIME
	hasQuick = false
	for (i = 0; i < navigator.plugins.length; i++) {
		if (navigator.plugins[i].name.indexOf("QuickTime") >= 0) {
			hasQuick = true
			}
		}		
	
// LISTEN TO SOUND
	function downSound (theTrack, theTitle) {
		newWin = window.open ('','','scrollbars=no,status=yes,width=400,height=60')
		
		if (hasQuick == true) {
			newWin.document.write ("<html><head><title>" + theTitle + "<\/title><\/head><body bgcolor='#cccc99'><div class='helvetica10'><b>" + theTitle + "<\/b><\/div><embed width='350' height='25' src='../resources/sound/" + theTrack + ".mp3'>.<\/body><\/html>")				
			} else {
			newWin.document.write ("<html><head><title>" + theTitle + "<\/title><\/head><body bgcolor='#cccc99'><div class='helvetica10'>You do not have the QuickTime plugin, but you can still listen to the musical track. <br><a href='../resources/sound/" + theTrack + ".mp3' onclick='window.close'>Click to download " + theTitle + ".<\/a> and use your favorite MP3 player to listen to this track.<\/div><\/body><\/html>")	
			}				
		}

	function downSoundEmbed (theTrack, theTitle) {
		//newWin = window.open ('','','scrollbars=no,status=yes,width=400,height=60')
		
		if (hasQuick == true) {
			//newWin.document.write ("<html><head><title>" + theTitle + "<\/title><\/head><body bgcolor='#ffffff'><div class='helvetica10'><b>" + theTitle + "<\/b><\/div><embed width='350' height='25' src='resources/sound/" + theTrack + ".mp3'>.<\/body><\/html>")				
			newWin.document.write ("<html><head><title>" + theTitle + "<\/title><\/head><body bgcolor='#cccc99'><div class='helvetica10'><b>" + theTitle + "<\/b><\/div><embed width='350' height='25' src='../resources/sound/" + theTrack + ".mp3'>.<\/body><\/html>")							
			} else {
			newWin.document.write ("<html><head><title>" + theTitle + "<\/title><\/head><body bgcolor='#cccc99'><div class='helvetica10'>You do not have the QuickTime plugin, but you can still listen to the musical track. <br><a href='../resources/sound/" + theTrack + ".mp3' onclick='window.close'>Click to download " + theTitle + ".<\/a> and use your favorite MP3 player to listen to this track.<\/div><\/body><\/html>")	
			}				
		}


		
// WATCH VIDEO
	function watchVideo (theExt) {
		vidWin = window.open ('','','scrollbars=no,status=yes,width=340,height=280')
		vidWin.document.write ("<html><head><title>Two of Us Flute and Guitar Duo<\/title><\/head><body bgcolor='#cccc99'><div style='text-align:center;'><embed width='320' height='250' src='../resources/video/two-of-us." + theExt + "'><\/div><\/body><\/html>")				
		}