function mouseOver(image)
{
	var imageSrc = image.src;
	imageSrc = imageSrc.substring(0, imageSrc.length - 4);
	var index = imageSrc.indexOf('_rollover');
	if (index == -1)
	{
	 image.src = imageSrc + '_rollover.gif';
	}
}

function mouseOut(image)
{
	var imageSrc = image.src;
	imageSrc = imageSrc.substring(0, imageSrc.length - 4);
	var index = imageSrc.indexOf('_rollover');
	if (index > 0)
	{
		image.src = imageSrc.substring(0, index) + '.gif';
	}
}


function edress(edress, subject, body)
{
	var re= /_at_/gi;
	edress = edress.replace(re,'@');
	var re= /_dot_/gi;
	edress = edress.replace(re,'.');
	var the_link="mai" + "lto" +":"+edress+"?subject=" + subject +"&body=" + body ;
	//window.location=the_link;
	document.write("<a href=\"" + the_link + "\">" + edress + "</a>");
}

function changeWallpaper(src)
{
  var icon = document.getElementById('wallpaper');
  icon.src="wallpapers/" + src + ".jpg";
}

function preload()
{
  index++;
  if (index == slides.length) index = 0;
  image = new Image();
	 
  image.src = slides[index];
  image.onLoad = blend();
}
  
function blend()
{
  if (document.all)
  {
    document.images['title'].filters[0].apply();
  }
  document.images['title'].src = image.src; 
  if (document.all)
  {
    document.images['title'].filters[0].play();
  }
  wait();
}
	
function wait()
{
  setTimeout("preload()", 15000);
}

/*
function playmp3()
{
  document.write("<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\" height=\"2\" width=\"2\"> <param name=\"hidden\" value=\"true\" /> <param name=\"volume\" value=\"100\" /> <param name=\"loop\" value=\"false\" /> <param name=\"autostart\" value=\"true\" /> <param name=\"src\" value=\"mp3/shakti.mp3\" /> <param name=\"autoplay\" value=\"true\" /> <param name=\"controller\" value=\"false\" /> <embed height=\"2\" hidden=\"true\" pluginspage=\"http://www.apple.com/quicktime/download/\" src=\"mp3/shakti.mp3\" type=\"audio/mpeg\" width=\"2\" controller=\"false\" autoplay=\"true\" autostart=\"true\" loop=\"false\" volume=\"100\" /> </object>");
}
*/
