	/*
	The below function provides support for old browsers such as Netscape Navigator 3 or 4, 
	that cannot resolve the className property.
	A number of input form buttons will use this script in their rollover effects
	*/
	function changeClass(loc,cls){
	   if(loc.className)
		  loc.className=cls;
	}
	
	function open_window(link, title, width, height){
	WREF = window.open(link, title, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height);
	if(!WREF.opener)
	{
		WREF.opener = this.window;
	}
}





function findObj(theObj, theDoc)

{

  var p, i, foundObj;

  

  if(!theDoc) theDoc = document;

  if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)

  {

    theDoc = parent.frames[theObj.substring(p+1)].document;

    theObj = theObj.substring(0,p);

  }

  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];

  for (i=0; !foundObj && i < theDoc.forms.length; i++) 

    foundObj = theDoc.forms[i][theObj];

  for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 

    foundObj = findObj(theObj,theDoc.layers[i].document);

  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);

  

  return foundObj;

}

function whichBrs() {
	var agt=navigator.userAgent.toLowerCase();		
	if (agt.indexOf("opera") != -1) return 'Opera';
	if (agt.indexOf("staroffice") != -1) return 'Star Office';
	if (agt.indexOf("webtv") != -1) return 'WebTV';
	if (agt.indexOf("beonex") != -1) return 'Beonex';
	if (agt.indexOf("chimera") != -1) return 'Chimera';
	if (agt.indexOf("netpositive") != -1) return 'NetPositive';
	if (agt.indexOf("phoenix") != -1) return 'Phoenix';
	if (agt.indexOf("firefox") != -1) return 'Firefox';
	if (agt.indexOf("safari") != -1) return 'Safari';
	if (agt.indexOf("skipstone") != -1) return 'SkipStone';
	if (agt.indexOf("msie") != -1) return 'Internet Explorer';
	if (agt.indexOf("netscape") != -1) return 'Netscape';
	if (agt.indexOf("mozilla") != -1) return 'Camino';
	if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
	if (agt.indexOf('\/') != -1) {
	if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
	return navigator.userAgent.substr(0,agt.indexOf('\/'));}
	else return 'Netscape';} else if (agt.indexOf(' ') != -1)
	return navigator.userAgent.substr(0,agt.indexOf(' '));
	else return navigator.userAgent;
}


/*
to use the tab view you must initialise the following

#a tab object
var tab3 = new Object();
tab3.active = false;
tab3.cnt_id = "prestige_plates_tab";
tab3.heading_id = "prestige_plates_th";

#prevTab
var prevTab = tab1;

#newTab
var newActiveTab = "";

#timeOutId
var timeOutId;

*/

function openTab(tab){
	for (var i=0; i < tabs.length; i++){
		var curTab = findObj(tabs[i].cnt_id);
		if (tabs[i] == tab){		
			if (tab.opened == "true"){
				curTab.style.display = 'none';
				tab.opened = "false";	
			}else{
				curTab.style.display = 'block';
				tab.opened = "true";
			}			
		}else{
			curTab.style.display = 'none';
			tabs[i].opened = "false";			
		}	
	}	
}
