// JavaScript Document
function naviAbout(str)
{
	var Url = "";
	switch(str)
	{
		case '0':
				Url = "about.html";
				 break;
		case '1':
				Url = "message.html";
				 break;
		case '2':
				 Url = "mission.html";
				 break;
		case '3':
				Url = "team.html";
				break;
		case '4':
				Url = "history.html";
				break;
		case '5':
				Url = "pressreleases.html";
				break;
				case '6':
				Url = "partners.html";
				break;
		default:
				Url = "null.html";
			    
	}
	createCookie('ppkcookie1','yes',1);
	//top.frames['page'].window.location = Url;
	window.location = Url;
	//alert("Test:"+str);
}

function naviMain(str)
{
	var Url = "";
	switch(str)
	{
		case '1':
				 Url = "about.html";
				 break;
		case '2':
				 Url = "value.html";
				 break;
		case '3':
				Url = "services.html";
				break;
		case '4':
				Url = "portfolio.html";
				break;
		case '5':
				Url = "contact.html";
				break;
		default:
				Url = "null";
			    
	}
	createCookie('ppkcookie1','yes',1);
	//top.frames['page'].window.location = Url;
	window.location = Url;
	//alert("Test:"+str);
}
function naviValues(str)
{
	var Url = "";
	switch(str)
	{
		case '1':
				 Url = "value.html";
				 break;
		case '2':
				 Url = "fundamentals.html";
				 break;
		case '3':
				 Url = "testimonials.html";
				 break;
		default:
				Url = "null";
			    
	}
	createCookie('ppkcookie1','yes',1);
	//top.frames['page'].window.location = Url;
	window.location = Url;
}
function naviServices(str)
{
	var Url = "";
	switch(str)
	{
		case '1':
				 Url = "portfolio.html";
				 break;
		case '2':
				 Url = "propertymanagement.html";
				 break;
		default:
				Url = "null";
			    
	}
	createCookie('ppkcookie1','yes',1);
	//top.frames['page'].window.location = Url;
	window.location = Url;
}
function naviPortfolio(str)
{
	var Url = "";
	switch(str)
	{
		case '1':
				 Url = "lafayette/index.html";
				 break;
		case '2':
				 Url = "mclevy/index.html";
				 break;
		case '3':
				 Url = "fairfield/index.html";
				 break;
		case '4':
				 Url = "residential/#.html";
				 break;
		case '5':
				 Url = "Mechanics/index.html";
				 break;
		default:
				Url = "null";
			    
	}
	createCookie('ppkcookie1','yes',1);
	//top.frames['page'].window.location = Url;
	window.location = Url;
}
function naviContact(str)
{
	var Url = "";
	switch(str)
	{
		case '1':
				 Url = "contact.html";
				 break;
		case '2':
				 Url = "inforequest.html";
				 break;
		default:
				Url = "null";
			    
	}
	createCookie('ppkcookie1','yes',1);
	//top.frames['page'].window.location = Url;
	window.location = Url;
}

///////////////////  BOX   Data 
function naviBox(str)
{
	var Url = "";
	switch(str)
	{
		case '1':
				 Url = "strategy.html";
				 break;
		case '2':
				 Url = "portfolio.html";
				 break;
		case '3':
				 Url = "soundfundamentals.html";
				 break;
		case '4':
				 Url = "newinitiatives.html";
				 break;
		default:
				Url = "null";
			    
	}
	createCookie('ppkcookie1','yes',1);
	//top.frames['page'].window.location = Url;
	window.location = Url;
}

///////////////////////////////
///////////////////  Bottom Menu  Data 
function naviBottom(str)
{
	var Url = "";
	switch(str)
	{
		case '1':
				 Url = "investors.html";
				 break;
		case '2':
				 Url = "tenants.html";
				 break;
		case '3':
				 Url = "partners.html";
				 break;
		case '4':
				 Url = "brokers.html";
				 break;
		default:
				Url = "null";
			    
	}
	createCookie('ppkcookie1','yes',1);
	//top.frames['page'].window.location = Url;
	window.location = Url;
}

/////////square..........
function navisquire(str)
{
	var Url = "";
	switch(str)
	{
		case '1':
				 Url = "strategy.html";
				 break;
		case '2':
				 Url = "portfolio.html";
				 break;
		case '3':
				 Url = "fundamentals.html";
				 break;
		case '4':
				 Url = "newinitiatives.html";
				 break;
		default:
				Url = "null";
			    
	}
	createCookie('ppkcookie1','yes',1);
	//top.frames['page'].window.location = Url;
	window.location = Url;
}
////////////////////jumple.......
function navijumple(str)
{
	var Url = "";
	switch(str)
	{
		case '1':
				 Url = "newinitiatives.html";
				 break;
		case '2':
				 Url = "green.html";
				 break;
		default:
				Url = "null";
			    
	}
	createCookie('ppkcookie1','yes',1);
	//top.frames['page'].window.location = Url;
	window.location = Url;
}



//////////////////////////////////////////////////////
/// Handle Cookies Javascript Code
function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(120*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}