var WndHomeWindow;
var sWalkStylesHome = "http://www.walkstyles.com";


//----------------------------------------------------------------------

function ShowWalkStylesHome()
{
	ShowWalkStylesWindow( sWalkStylesHome );
}


//----------------------------------------------------------------------

function ShowWalkStylesURL( sAdditionalPath )
{
	var sURL = sWalkStylesHome + "/" + sAdditionalPath;
	
	ShowWalkStylesWindow( sURL );
}


//----------------------------------------------------------------------

function ShowWalkStylesWindow( sURL )
{
	//
	//  if our opener is still around and accessible and open... 
	//
	if ((window.opener)  &&  (typeof(window.opener.closed) == "boolean")  &&  (!window.opener.closed) )
	{
		//
		//  then transition it to the ws home page and focus on it.
		//
		window.opener.location.href = sURL;	
		window.opener.focus();
	}
	else
	{
		//
		//  Otherwise open a new home window.
		//
		WndHomeWindow = window.open( sURL, "HomeWindow" );
		if ( WndHomeWindow != null && !WndHomeWindow.closed )
		{
			WndHomeWindow.focus();	
		}
	}
}


//----------------------------------------------------------------------

function ShowCSRequest( )
{
	var WndRequest;
	WndRequest = window.open( "http://www.walkstyles.com/SiteCorpInfo/CSRequest.aspx?FS=1", "RequestWnd",
		"height=530,width=780,top=0,left=0,toolbar=no,menubar=no,location=no,resizable=no,status=no,address=no" );
	if ( WndRequest != null )
	{
		WndRequest.focus();	
	}
}		
			
//----------------------------------------------------------------------
			

function ShowMKTRequest( )
{
	var WndRequest;
	WndRequest = window.open( "http://www.walkstyles.com/SiteCorpInfo/MDRequest.aspx?FS=1", "RequestWnd",
		"height=530,width=780,top=0,left=0,toolbar=no,menubar=no,location=no,resizable=no,status=no,address=no" );
	if ( WndRequest != null )
	{
		WndRequest.focus();	
	}
}		

//----------------------------------------------------------------------

function ShowWMRequest( )
{
	var WndRequest;
	WndRequest = window.open( "http://www.walkstyles.com/SiteCorpInfo/WMRequest.aspx?FS=1", "RequestWnd",
		"height=530,width=780,top=0,left=0,toolbar=no,menubar=no,location=no,resizable=no,status=no,address=no" );
	if ( WndRequest != null )
	{
		WndRequest.focus();	
	}
}		
					