<!--hide script from old browsers 
//////////////////////////////////////////////////////////////////////
//								    //	
// This file holds javascript functions that are used throughout    //
// mclarenindustries.com website for navigation and popups.   	    //
//								    //	
// BG Version. 							    //		
//								    //	
// Copyright (c) 2002 - 2005 VeDa Group, Ltd.			    //
//								    //
// Author: Vess Kavrakov, vkavrakov@vedagroup.com		    //
//								    //
//////////////////////////////////////////////////////////////////////

// code for LifeBadge TV

var popWin = null;

function openTV(link)
{

     if (popWin && !popWin.closed) {

	popWin.close();

     }

     popWin = window.open(link, "popWin", "width=410,height=618,scrollbars=0,toolbars=0,resizable=0")

     popWin.focus()

}   


function openTV1(link)
{

     if (popWin && !popWin.closed) {

	popWin.close();

     }

     popWin = window.open(link, "popWin", "width=320,height=260,scrollbars=0,toolbars=0,resizable=0")

     popWin.focus()

} 

function openTV2(link)
{

     if (popWin && !popWin.closed) {

	popWin.close();

     }

     popWin = window.open(link, "popWin", "width=320,height=260,scrollbars=0,toolbars=0,resizable=0")

     popWin.focus()

} 


var tabSelected = 'tab1';
var itemSelected = 'tabItem1';


function toggleTab(tabid,id)
{
	if (document.getElementById)
	{
		var b = document.getElementById(tabid);
		var e = document.getElementById(id);

		if (b)
		{
			if (tabSelected)
			{
				var d = document.getElementById(tabSelected);
				d.attributes['class'].value='tabItem';
			}

			b.attributes['class'].value='tabItemSelected';
			tabSelected=tabid;
		}

		if (e)
		{
			if (itemSelected)
			{
				var c = document.getElementById(itemSelected);
				c.style.display = "none";
			}

			e.style.display = "block";
			itemSelected = id;
		}
	}
}

////////////////////////////////////////////////////////////
//							  //
// 			END OF SCRIPT			  //
//							  //
////////////////////////////////////////////////////////////
//-->
