function onHome()
{
	document.location.href = sCurrentPath + "Default.asp";
}
function onPetDirectory (iType, id, iPreviewMode)
{
	var sTmp = sCurrentPath;
	if (id != null & id != "")
	{
		if (iPreviewMode == 1)
			document.location.href = sTmp + "TopAreasList.asp?ObjectID="+id;
		else
			document.location.href = sTmp + id;
	}
	else
	{document.location.href = sTmp + "PetDirectory.asp?CategoryType="+iType;}
}
function onPetServices (iType, id)
{
	var sTmp = sCurrentPath;
	if (id != null & id != "")
	{document.location.href = sTmp + "TopAreasList.asp?ObjectID="+id;}
	else
	{document.location.href = sTmp + "SubAreasList.asp?ListingType=4";}
}
function onBreeders (iType, id)
{
	var sTmp = sCurrentPath;
	if (id != null & id != "")
	{document.location.href = sTmp + "SubAreasList.asp?ListingType=1&ObjectID="+id;}
	else
	{document.location.href = sTmp + "SubAreasList.asp?ListingType=1";}
}
function onClassifieds (iType, id)
{
	var sTmp = sCurrentPath;
	if (id != null & id != "")
	{document.location.href = sTmp + "SubAreasList.asp?ListingType=2&ObjectID="+id;}
	else
	{document.location.href = sTmp + "SubAreasList.asp?ListingType=2";}
}
function onClubs (iType, id)
{
	var sTmp = sCurrentPath;
	if (id != null & id != "")
	{document.location.href = sTmp + "SubAreasList.asp?ListingType=5&ObjectID="+id;}
	else
	{document.location.href = sTmp + "SubAreasList.asp?ListingType=5";}
}
function onImages (iType, id)
{
	var sTmp = sCurrentPath;
	if (id != null & id != "")
	{document.location.href = sTmp + "ImageGallery.asp?ObjectID=id";}
	else
	{document.location.href = sTmp + "ImageGallery.asp?ObjectID=0";}
}
function onEvents (id)
{
	var sTmp = sCurrentPath;
	if (id != null & id != "")
	{document.location.href = sTmp + "EventListCalendar.asp?ObjectID="+id;}
	else
	{document.location.href = sTmp + "EventListCalendar.asp";}
}
function onEDU (id)
{
	var sTmp = sCurrentPath;
	if (id != null & id != "")
	{document.location.href = sTmp + "Articles.asp?ObjectID="+id;}
	else
	{document.location.href = sTmp + "Articles.asp";}
}
function onNewService ()
{alert("In Development");}
function onNewBreeder ()
{alert("In Development");}
function onNewClassified()
{alert("In Development");}
function onListYourClub()
{alert("In Development");}
function onNewImage()
{alert("In Development");}
function onNewEvent()
{
	//document.location.href= sCurrentPath+"EventSubmit/frmStep1.asp";
}
function onNewArticle()
{alert("In Development");}
if (document.body != null)
{
	document.body.onclick = oPMMainMenu0.Hide;
	document.body.onclick = oPMMainMenu1.Hide;
}
