
function getPage()
{
	var sPath = window.location.pathname;
	//var sPage = sPath.substring(sPath.lastIndexOf('\\') + 1);
	var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
	return sPage;

}

function for_her()
{
	var currentPage = getPage();
	
	if(currentPage == 'adverts.php')
	{
		document.getElementById('page_holder').style.display = 'none';
		document.getElementById('him').style.display = 'none';
		document.getElementById('yourday').style.display = 'none';
		document.getElementById('her').style.display = 'block';
	//	document.getElementById('menu').src = 'images/menu_her.jpg';
	}
	else
	{
		window.location="adverts.php?category=her";
	}
}

function for_him()
{
	var currentPage = getPage();
	
	if(currentPage == 'adverts.php')
	{
		document.getElementById('page_holder').style.display = 'none';
		document.getElementById('her').style.display = 'none';
		document.getElementById('yourday').style.display = 'none';
		document.getElementById('him').style.display = 'block';
	//	document.getElementById('menu').src = 'images/menu_him.jpg';
	}
	else
	{
		window.location="adverts.php?category=him";
	}
}

function for_yourday()
{
	var currentPage = getPage();
	
	if(currentPage == 'adverts.php')
	{
		document.getElementById('page_holder').style.display = 'none';
		document.getElementById('her').style.display = 'none';
		document.getElementById('him').style.display = 'none';
		document.getElementById('yourday').style.display = 'block';
	//	document.getElementById('menu').src = 'images/menu_yourday.jpg';
	}
	else
	{
		window.location="adverts.php?category=yourday";
	}
}
