/*+ +++
  * *********************************************************************
  * *********************************************************************
  * ***
  * ***  Copyright (C) 2005   Mirra, Inc.
  * ***  All rights reserved.
  * ***
  * ***  No part of this software, in source or object code form, may
  * ***  be modified, compiled, decompiled, redistributed, stored in
  * ***  a retrieval system, or transmitted in any form or by any means,
  * ***  electronic, mechanical, photocopying, recording or otherwise,
  * ***  without the prior written consent of Mirra, Inc.
  * ***
  * ***  Ispiri and Mirra are registered trademarks of Mirra, Inc.
  * ***
  * *********************************************************************
  * *********************************************************************
  - ___ */

//
// This file requires the following files be included as well:
//
// rollovers.js
//

if (typeof hasStaticNavigation != 'undefined')
{
	rolloverButtonPath = "/dyn/m/img/staticnav/";
	
	//	add the standard images to the rolloverButtonList
	
	addRolloverButton("MOW_NavbarStatic_Product",	"1.gif");
	addRolloverButton("MOW_NavbarStatic_Solutions",	"2.gif");
	addRolloverButton("MOW_NavbarStatic_Support",	"3.gif");
	addRolloverButton("MOW_NavbarStatic_About",		"4.gif");
	addRolloverButton("MOW_NavbarStatic_Stores", 	"5.gif");
	
	//	rolloverButtonHilightModifier [protected]
	//
	//	This is the modifier that is appended to the normal URL (set in 
	//	rolloverButtonList) to generate the hilight URL for each image.  
	//	It is possible to change for each partner if you want in "htmlStyles.jsi"
	//
	rolloverButtonHilightModifier = "_h";
}
else
{
	rolloverButtonPath = "/dyn/m/img/";
	
	//	add the standard images to the rolloverButtonList
	
	addRolloverButton("MOW_Header_HelpButton", 	        "icons/but_help.gif");

    addRolloverButton("MOW_Navbar_SharesButton", 	    "nav/nav_shared.gif");
	addRolloverButton("MOW_Navbar_BackupsButton",	    "nav/nav_backups.gif");
	addRolloverButton("MOW_Navbar_AccountButton",	    "nav/nav_account.gif");
	addRolloverButton("MOW_Navbar_SignOutButton",	    "nav/nav_sign.gif");
    addRolloverButton("MOW_Navbar_SharesButtonDown", 	"nav/nav_sharedTab.gif");
	addRolloverButton("MOW_Navbar_BackupsButtonDown",	"nav/nav_backupsTab.gif");
	addRolloverButton("MOW_Navbar_AccountButtonDown",	"nav/nav_accountTab.gif");

	addRolloverButton("MOW_DownloadFolder_Button",	    "icons/but_d_Folder.gif");
	addRolloverButton("MOW_AddFiles_Button", 		    "icons/but_add.gif");
	addRolloverButton("MOW_Refresh_Button",			    "icons/but_refresh.gif");
	addRolloverButton("PreviewPage_DownloadButton",     "icons/but_old_download.gif");
	addRolloverButton("PreviewPage_PreviousButton",     "icons/but_old_previous.gif");
	addRolloverButton("PreviewPage_NextButton",         "icons/but_old_next.gif");
	
	addRolloverButton("SlideShowPage_PreviousButton",   "icons/but_previous.gif");
	addRolloverButton("SlideShowPage_NextButton",       "icons/but_next.gif");
	addRolloverButton("SlideShowPage_PlayButton",       "icons/but_play.gif");
	addRolloverButton("SlideShowPage_StopButton",       "icons/but_stop.gif");
	addRolloverButton("SlideShowPage_SlowerButton",     "icons/but_slower.gif");
	addRolloverButton("SlideShowPage_FasterButton",     "icons/but_faster.gif");
	addRolloverButton("SlideShowPage_DownloadButton",   "icons/but_download.gif");
	addRolloverButton("SlideShowPage_HelpButton",       "icons/but_help.gif");

    //	rolloverButtonHilightModifier [protected]
	//
	//	This is the modifier that is appended to the normal URL (set in 
	//	rolloverButtonList) to generate the hilight URL for each image.  
	//	It is possible to change for each partner if you want in "htmlStyles.jsi"
	//
	rolloverButtonHilightModifier = "_h";
	rolloverButtonGreyoutModifier = "_g";
}

//	goToPartnerHome()
// 
//	This should be overwritten in partner files to go to a partner-specific home.
//
function goToPartnerHome() {
	window.location = "/";
}


//	goToShares()
//
//	Go to the location pointed to by the "Shared Folders" button
//
function goToShares() {
	window.location = "/falcon/shares.jsp";
}


//	goToBackup()
//
//	Go to the location pointed to by the "Backups" button
//
function goToBackup() {
	window.location = "/falcon/remote.jsp";
}


//	goToThird()
//
//	Option to add a third button eventually
//
function goToThird() {
}


//	goToAccount()
//
//	Go to the location pointed to by the "Account Settings" button
//
function goToAccount() {
	window.location = "/falcon/settings.jsp";
}


//	goToSignOut()
//
//	Go to the location pointed to by the "Sign Out" button
//
function goToSignOut() {
	window.location = "/falcon/signout.jsp";
}


//	goToStaticProduct()
//
//	Go to the location pointed to by the "Product" button
//
function goToStaticProduct() {
	window.location = "/product/index.html";
}


//	goToStaticSolutions()
//
//	Go to the location pointed to by the "Solutions" button
//
function goToStaticSolutions() {
	window.location = "/solutions/index.html";
}


//	goToStaticSupport()
//
//	Go to the location pointed to by the "Support" button
//
function goToStaticSupport() {
	window.location = "/support/index.html";
}


//	goToStaticAbout()
//
//	Go to the location pointed to by the "About Us" button
//
function goToStaticAbout() {
	window.location = "/about/index.html";
}


//	goToStaticStores()
//
//	Go to the location pointed to by the "Stores" button
//
function goToStaticStores() {
	window.location = "/buy/index.html";
}


//	goToSignIn()
//
//	Go to the location pointed to by the "Sign In" button
//
function goToSignIn() {
	window.location = "/secure/index.html";
}

//  findLocationParams()
//
//  parse the current location and extracts the page params
//
function findLocationParams() {
    var url = location.href;
    var offset = url.indexOf("?");
    if (offset == -1)
    {
        return "";
    }
    else
    {
        return url.substring(offset, url.length);
    }
}

//	refresh()
//
//	Go to the location pointed to by the "Shared Folders" button
//
function refresh() {
    var params = findLocationParams();
    
    if (params == "")
        refreshTop();
    else
        window.location = 'handleRefreshFiles.jsp' + findLocationParams();
}

function addFiles() {
    window.location = 'addFiles.jsp' + findLocationParams();
}