//==============================================================================
// FMS
//
// Author: 	Duncan Lawley
// Page: 	support.js
//
// History:     31/12/2004 - DJL - Created
//==============================================================================

//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
function clickLink(page) {

	var linkPage 	= '';
        var linkTitle 	= '';

        // DJL - debug
        //parent.showloaded();

	switch(page) {

        	case 'home': 		linkPage = './home.html'; 		linkTitle = 'FMS Home';		break;
        	case 'news': 		linkPage = './news.html'; 		linkTitle = 'News';		break;
        	case 'aboutus':		linkPage = './aboutus.html'; 		linkTitle = 'About Us';		break;
        	case 'contactus': 	linkPage = './contactus.html'; 		linkTitle = 'Contact Us';	break;
		case 'coverage': 	linkPage = './coverage.html'; 		linkTitle = 'Coverage';		break;
        	case 'benefits': 	linkPage = './benefits.html'; 		linkTitle = 'Benefits';		break;
        	case 'precontract': 	linkPage = './precontracts.html'; 	linkTitle = 'Pre Contracts';	break;
        	case 'postcontract': 	linkPage = './postcontracts.html'; 	linkTitle = 'Post Contracts';	break;
        	case 'testimonials': 	linkPage = './testimonials.html'; 	linkTitle = 'Testimonials';	break;
        	case 'services': 	linkPage = './services.html'; 		linkTitle = 'Services';		break;
        	default:        	linkPage = './home.html'; 		linkTitle = 'FMS Home';		break;
        }

        this.parent.main.location.href = linkPage;

        this.parent.summaryframe.setSummary();

        this.parent.defaultStatus = 'FMS UK Ltd : ' + linkTitle;
}

//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
function hoverLink(title) {

        this.parent.status = this.parent.defaultStatus + ' : Go to - '+ title;
}

//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
function resetLink() {

	this.parent.status = this.parent.defaultStatus;
}

//------------------------------------------------------------------------------
// An page that includes this script will block the context menu
//------------------------------------------------------------------------------
function blockContext(evt) {
	return(false);
}

document.oncontextmenu=blockContext;

//==============================================================================
//==============================================================================
