var currentGalleryLink = new Array();
function LoadPicture(pictureName,imageFile,captionID)
{
		if (document.all)
	{
		document.getElementById(pictureName).style.filter="blendTrans(duration=1)";
		document.getElementById(pictureName).filters.blendTrans.Apply();
	}
	document.getElementById(pictureName).src = imageFile;
	if (document.all)
	{
		document.getElementById(pictureName).filters.blendTrans.Play();
	}
	
	// Which link is currently selected?
	for (i=0; i < document.links.length;i++)
	{
	   	var l=document.links[i];
	   	var n=l.getAttributeNode('onclick');
		if (n)
		{
			var onclick = n.value;
	   		if ((onclick) &&
	   			(onclick.indexOf(pictureName) > 0) &&
	   			(onclick.indexOf(imageFile) > 0))
	   		{
			    currentGalleryLink[pictureName] = i;
			    break;
			}
		}
	}
}


// for videos

var win = null;
function NewWindow(mypage,myname,w,h,scroll)
{
var embedcode = '<embed src="http://blip.tv/play/'+mypage+'" type="application/x-shockwave-flash" width="470" height="396" allowscriptaccess="always" allowfullscreen="true" wmode="transparent"></embed>';
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable';
win = window.open("",myname,settings);
win.document.write('<HTML><HEAD><TITLE>Kerala Holidays</TITLE></HEAD><BODY BGCOLOR="#000000">'+embedcode+'</BODY></HTML>');
}