<!--
var ie = (document.all)?true:false;
var ns = (document.layers)?true:false;
var bw6 = (document.getElementById)?true:false;
var strObj = "";

/**************************************************************************
	Function Name: fvOpenLink
	Description: This function opens an image in browser window.
	Input Parameters: 	1) strUrl - url of the link
					2) intWidth - width of the browser window
					3) intHeight - height of the browser window
	Return Values: none
	Author: Kiran Raut
	Date: 16-Mar-2004
	Modification Log:
	_______________________________________________________
		Date		Author		Modification
	ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
				Kiran Raut	First Version
***************************************************************************/
function fvOpenLink(strUrl, intWidth, intHeight)
{	var objWindow = window.open(strUrl, "objNew", "height=" + intHeight + ",width=" + intWidth + ",fullscreen=0,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,left=100,top=26")
}

/**************************************************************************
	Function Name: fvOpenImage
	Description: This function opens an image in browser window.
	Input Parameters: 	1) strUrl - url of the image.
	Return Values: none
	Author: Kiran Raut
	Date: 16-Mar-2004
	Modification Log:
	_______________________________________________________
		Date		Author		Modification
	ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
				Kiran Raut	First Version
***************************************************************************/
function fvOpenImage(strUrl)
{	var objWindow = window.open(strUrl, "objImage", "fullscreen=0,toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,left=100,top=26")
}

/**************************************************************************
	Function Name: Menu
	Description: This is the constructor for object Menu.
	Input Parameters: 	1) strTitle - display text of the link.
					2) strUrl - url of the file.
					3) strTarget - to open in a new window or same.
	Return Values: none
	Author: Kiran Raut
	Date: 16-Mar-2004
	Modification Log:
	_______________________________________________________
		Date		Author		Modification
	ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
				Kiran Raut	First Version
***************************************************************************/
function Menu(strTitle, strUrl, strTarget, strImage, strImageOver, strImageActive)
{	this.strTitle = strTitle;
	this.strUrl = strUrl;
	this.strTarget = strTarget;
	this.strImage = strImage;
	this.strImageOver = strImageOver;
	this.strImageActive = strImageActive;
	this.objImage = foCreateImage(strImage);
	this.objImageOver = foCreateImage(strImageOver);
	this.objImageActive = foCreateImage(strImageActive);
	this.aroSubmenu = new Array();
	//strObj += strTitle + " vbNewLine " ;
}

/**************************************************************************
	Function Name: fvAddSubmenu
	Description: This function adds submenu to the menu object.
	Input Parameters: 	1) objMenu - Menu object to which the submenu has
						to be added.
					2) objSubmenu - Menu object which will be added
						as submenu.
	Return Values: none
	Author: Kiran Raut
	Date: 16-Mar-2004
	Modification Log:
	_______________________________________________________
		Date		Author		Modification
	ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
				Kiran Raut	First Version
***************************************************************************/
function fvAddSubmenu(objMenu, objSubmenu)
{	objMenu.aroSubmenu[objMenu.aroSubmenu.length] = objSubmenu;
}

/**************************************************************************
	Function Name: foCreateImage
	Description: This function creates new image.
	Input Parameters: 	1) strSource - url for the image.
	Return Values: image object
	Author: Kiran Raut
	Date: 16-Mar-2004
	Modification Log:
	_______________________________________________________
		Date		Author		Modification
	ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
				Kiran Raut	First Version
***************************************************************************/
function foCreateImage(strSource)
{	if (document.images) {
		objImage = new Image();
		objImage.src = strSource;
		return objImage;
	}
}

/**************************************************************************
	Function Name: fvChangeImages
	Description: This function creates the mouse-over effect.
	Input Parameters: 	1) image id.
					2) image source
	Return Values: image object
	Author: Kiran Raut
	Date: 16-Mar-2004
	Modification Log:
	_______________________________________________________
		Date		Author		Modification
	ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
				Kiran Raut	First Version
***************************************************************************/
function fvChangeImages()
{	if (document.images)
	{	for (var intCount = 0; intCount < fvChangeImages.arguments.length; intCount += 2)
			document[fvChangeImages.arguments[intCount]].src = fvChangeImages.arguments[intCount + 1];
	}
}

var aroMenu = new Array();
var intMenuCount = -1;
aroMenu[++intMenuCount] = new Menu("Prologue", "index.html", "_self", "images/prologue.gif", "images/prologue_over.gif", "images/prologue_active.gif");
aroMenu[++intMenuCount] = new Menu("Poetry", "KRPoetry.html", "_self", "images/poetry.gif", "images/poetry_over.gif", "images/poetry_active.gif");
//fvAddSubmenu(aroMenu[intMenuCount], new Menu("English", "/poetry/PYMain.asp", "_self", "images/english.gif", "images/english_over.gif", "images/english_active.gif"));
//fvAddSubmenu(aroMenu[intMenuCount], new Menu("Marathi", "/poetry/PYMain.asp?strLang=mar", "_self", "images/marathi.gif", "images/marathi_over.gif", "images/marathi_active.gif"));
aroMenu[++intMenuCount] = new Menu("Faces", "KRFaces.html", "_self", "images/faces.gif", "images/faces_over.gif", "images/faces_active.gif");
aroMenu[++intMenuCount] = new Menu("Bumpffiti", "KRBumpffiti.html", "_self", "images/bumpffiti.gif", "images/bumpffiti_over.gif", "images/bumpffiti_active.gif");
//aroMenu[++intMenuCount] = new Menu("Guestbook", "/guestbook/GBMain.asp", "_self", "images/guestbook.gif", "images/guestbook_over.gif", "images/guestbook_active.gif");
//fvAddSubmenu(aroMenu[intMenuCount], new Menu("Sign-in Guestbook", "/guestbook/GBMain.asp", "_self", "images/signin_guestbook.gif", "images/signin_guestbook_over.gif", "images/signin_guestbook_active.gif"));
//fvAddSubmenu(aroMenu[intMenuCount], new Menu("View Guestbook", "/guestbook/GBView.asp", "_self", "images/view_guestbook.gif", "images/view_guestbook_over.gif", "images/view_guestbook_active.gif"));
aroMenu[++intMenuCount] = new Menu("Downloads", "KRDownloads.html", "_self", "images/downloads.gif", "images/downloads_over.gif", "images/downloads_active.gif");
//fvAddSubmenu(aroMenu[intMenuCount], new Menu("Wallpapers", "/Downloads/Wallpapers/DWMain.asp", "_self", "images/wallpapers.gif", "images/wallpapers_over.gif", "images/wallpapers_active.gif"));
aroMenu[++intMenuCount] = new Menu("Links", "KRLinks.html", "_self", "images/links.gif", "images/links_over.gif", "images/links_active.gif");
var intICount = 0;
var intJCount = 0;
var strMenu = "";
for(intICount = 0; intICount < aroMenu.length; intICount++)
{	if (strPageTitle == aroMenu[intICount].strTitle)
	{	strMenu += '<tr><td><img alt="' + aroMenu[intICount].strTitle + '" src="' + aroMenu[intICount].strImageActive + '" width="170" height="20" border="0" /></td></tr>';
		for(intJCount = 0; intJCount < aroMenu[intICount].aroSubmenu.length; intJCount++)
		{	if (strPageSubmenu == aroMenu[intICount].aroSubmenu[intJCount].strTitle)
				strMenu += '<tr><td><img alt="' + aroMenu[intICount].aroSubmenu[intJCount].strTitle + '" src="' + aroMenu[intICount].aroSubmenu[intJCount].strImageActive + '" width="170" height="18" border="0" /></td></tr>';
			else
				strMenu += '<tr><td><a href="' + aroMenu[intICount].aroSubmenu[intJCount].strUrl + '" title="' + aroMenu[intICount].aroSubmenu[intJCount].strTitle + '" target="' + aroMenu[intICount].aroSubmenu[intJCount].strTarget + '" onmouseover="fvChangeImages(\'' + aroMenu[intICount].aroSubmenu[intJCount].strTitle + '\', \'' + aroMenu[intICount].aroSubmenu[intJCount].strImageOver + '\'); return true;" onmouseout="fvChangeImages(\'' + aroMenu[intICount].aroSubmenu[intJCount].strTitle + '\', \'' + aroMenu[intICount].aroSubmenu[intJCount].strImage + '\'); return true;"><img name="' + aroMenu[intICount].aroSubmenu[intJCount].strTitle + '" id="' + aroMenu[intICount].aroSubmenu[intJCount].strTitle + '" alt="' + aroMenu[intICount].aroSubmenu[intJCount].strTitle + '" src="' + aroMenu[intICount].aroSubmenu[intJCount].strImage + '" width="170" height="18" border="0" /></a></td></tr>';
		}
	}
	else
		strMenu += '<tr><td><a href="' + aroMenu[intICount].strUrl + '" title="' + aroMenu[intICount].strTitle + '" target="' + aroMenu[intICount].strTarget + '" onmouseover="fvChangeImages(\'' + aroMenu[intICount].strTitle + '\', \'' + aroMenu[intICount].strImageOver + '\'); return true;" onmouseout="fvChangeImages(\'' + aroMenu[intICount].strTitle + '\', \'' + aroMenu[intICount].strImage + '\'); return true;"><img name="' + aroMenu[intICount].strTitle + '" id="' + aroMenu[intICount].strTitle + '" alt="' + aroMenu[intICount].strTitle + '" src="' + aroMenu[intICount].strImage + '" width="170" height="20" border="0" /></a></td></tr>';
}
//-->
