﻿

var divID = ''; 



			function makeHeader(pURL) 

			{

							

			var vHTML = "";

			vHTML += "<div id='headersub'>";

			vHTML += "	<img src='images/header_01.jpg' alt='' height='132' width='770' border='0' /></div>";

			vHTML += "<div id='headersub2'>";

			vHTML += "	<img src='images/header_07.jpg' alt='' height='23' width='470' border='0' /></div>";

			vHTML += "<div id='home'>";

			if (pURL == "index")

			{

				//alert ("index");

				vHTML += "<a href='index.html'><img src='images/header_on_02.jpg' alt='' height='23' width='51' border='0' /></a></div>";

			}

			else

			{

				vHTML += "<a href='index.html'><img src='images/header_02.jpg' alt='' height='23' width='51' border='0' /></a></div>";

			}

			vHTML += "<div id='about'>";

			if (pURL =="about")

			{

				//alert("about");

				vHTML += "<a href='about.html'><img src='images/header_on_03.jpg' alt='' height='23' width='55' border='0' /></a></div>";

			}

			else

			{   

				vHTML += "<a href='about.html'><img src='images/header_03.jpg' alt='' height='23' width='55' border='0' /></a></div>";

				//alert ("not about");

			}

			vHTML += "<div id='music'>";

			if (pURL == "music")

			{

				vHTML += "<a href='music.html'><img src='images/header_on_04.jpg' alt=''height='23' width='56' border='0' /></a></div>";

			}

			else

			{

				vHTML += "<a href='music.html'><img src='images/header_04.jpg' alt='' height='23' width='56' border='0' /></a></div>";

			}

			vHTML += "<div id='reviews'>";

			if (pURL == "reviews")

			{

				vHTML += "<a href='reviews.html'><img src='images/header_on_05.jpg' alt='' height='23' width='68' border='0' /></a></div>";

			}

			else

			{

				vHTML += "<a href='reviews.html'><img src='images/header_05.jpg' alt='' height='23' width='68' border='0' /></a></div>";

			}

			vHTML += "<div id='contact'>";

			if (pURL == "contact")

			{

				vHTML += "<a href='contact.html'><img src='images/header_on_06.jpg' alt='' height='23' width='70' border='0' /></a></div>";

			}

			else

			{				

				vHTML += "<a href='contact.html'><img src='images/header_06.jpg' alt='' height='23' width='70' border='0' /></a></div>";

			}

			//alert (vHTML);

			document.getElementById("idHeader").innerHTML = vHTML;					



			return true;



			}

			function footer() 

			{

				vHTML = "";

				vHTML += " <a href='index.html'>home</a> | <a href='about.html'>about</a> | <a href='music.html'>music</a> | <a href='reviews.html'>reviews</a> | <a href='contact.html'>contact</a><br />";

				vHTML += " © 2009 <a href='mailto:info@vandanavishwas.com'>Vandana Vishwas</a> | designed by Silverbirch Productions | Photos by Dianna Last";

				document.getElementById("idFooter").innerHTML = vHTML;

				

			}	





			

			function leftPanel(pURL)

			{

				vHTML = "";

				

				vHTML += "<img id='side' src='images/side.png' alt='' height='350' width='50' border='0' />";

				if (pURL == "index")

				{

					vHTML += "<img id='side2' src='images/Main.jpg' alt='' height='350' width='250' border='0' />";

				}

				//else if (pURL =="about")

				//{

				//	vHTML += "<img src='images/Main.jpg' alt='' height='350' width='250' border='0' />";

				//}

				else if (pURL == "music")

				{

					vHTML += "<img id='side2' src='images/music.jpg' alt='' height='350' width='250' border='0' />";

				}

				//else if (pURL = "reviews")

				//{

				//	vHTML += "<img src='images/Main.jpg' alt='' height='350' width='250' border='0' />";

				//}

				else if (pURL == "contact")

				{

					vHTML += "<img id='side2' src='images/contact.jpg' alt='' height='350' width='250' border='0' />";

				}

				else

				{

					vHTML += "<img id='side2' src='images/Main.jpg' alt='' height='350' width='250' border='0' />";

				}

				//alert(vHTML);

				document.getElementById("idLeftPanel").innerHTML = vHTML;



			}

			







			function loadPage(pURL)

			{

				makeHeader(pURL);				

				leftPanel(pURL);

				footer();	

			}



		function playSong (vFileName, vTitle, vAuto)

		{

			

			swfobject.registerObject("myFlashContent", "7");

			var flashvars = {};

			flashvars.song_title = vTitle;

			flashvars.song_url = "audio/" +vFileName +".mp3";

			flashvars.autoplay = vAuto;
			
			flashvars.repeat_playlist = "true";

			var params = {};

			params.play = "true";

			params.loop = "false";

			params.menu = "true";

			params.quality = "best";

			params.scale = "noscale";

			params.allowscriptaccess = "always";

			var attributes = {};

			attributes.name = "movie";

			attributes.styleclass = "classPlayer"

			swfobject.embedSWF("mp3Player/xspf_player_slim.swf", "myAlternativeContent", "200", "15", "7.0.0", "expressInstall.swf", flashvars, params, attributes);

		}



