function init()
	{
		 show(0);
	}
//
	function show(def)
{
	if(def==0)
	{
		switchVisible('Custom',1);
		switchVisible('Superior',0);
		switchVisible('Key',0);
		switchVisible('History',0);
		switchVisible('FAQ',0);
		switchVisible('whole_footer_Office',1);
		switchVisible('common_footer',1);
		switchVisible('whole_footer_Office_Superior',0);
		switchVisible('common_footer_Superior',0);
		switchVisible('whole_footer_Office_Key',0);
		switchVisible('common_footer_Key',0);
		switchVisible('Key_bot',0);
		switchVisible('whole_footer_Office_History',0);
		switchVisible('common_footer_History',0);
		switchVisible('common_footer_FAQ',0);
		switchVisible('whole_footer_Office_FAQ',0);
		switchVisible('leftsidea',1);
		switchVisible('but1a',1);
		switchVisible('but2a',1);
		switchVisible('but3a',1);
		switchVisible('but4a',1);
		switchVisible('but5a',1);
		switchVisible('leftsideb',0);
		switchVisible('but1b',0);
		switchVisible('but2b',0);
		switchVisible('but3b',0);
		switchVisible('but4b',0);
		switchVisible('but5b',0);
		switchVisible('leftsidec',0);
		switchVisible('but1c',0);
		switchVisible('but2c',0);
		switchVisible('but3c',0);
		switchVisible('but4c',0);
		switchVisible('but5c',0);
		switchVisible('leftsided',0);
		switchVisible('but1d',0);
		switchVisible('but2d',0);
		switchVisible('but3d',0);
		switchVisible('but4d',0);
		switchVisible('but5d',0);
		switchVisible('leftsidee',0);
		switchVisible('but1e',0);
		switchVisible('but2e',0);
		switchVisible('but3e',0);
		switchVisible('but4e',0);
		switchVisible('but5e',0);
	}
	if(def==1)
	{
		switchVisible('Custom',0);
		switchVisible('Superior',1);
		switchVisible('Key',0);
		switchVisible('History',0);
		switchVisible('FAQ',0);
		switchVisible('whole_footer_Office',0);
		switchVisible('common_footer',0);
		switchVisible('whole_footer_Office_Superior',1);
		switchVisible('common_footer_Superior',1);
		switchVisible('whole_footer_Office_Key',0);
		switchVisible('common_footer_Key',0);
		switchVisible('Key_bot',0);
		switchVisible('whole_footer_Office_History',0);
		switchVisible('common_footer_History',0);
		switchVisible('common_footer_FAQ',0);
		switchVisible('whole_footer_Office_FAQ',0);
		switchVisible('leftsidea',0);
		switchVisible('but1a',0);
		switchVisible('but2a',0);
		switchVisible('but3a',0);
		switchVisible('but4a',0);
		switchVisible('but5a',0);
		switchVisible('leftsideb',1);
		switchVisible('but1b',1);
		switchVisible('but2b',1);
		switchVisible('but3b',1);
		switchVisible('but4b',1);
		switchVisible('but5b',1);
		switchVisible('leftsidec',0);
		switchVisible('but1c',0);
		switchVisible('but2c',0);
		switchVisible('but3c',0);
		switchVisible('but4c',0);
		switchVisible('but5c',0);
		switchVisible('leftsided',0);
		switchVisible('but1d',0);
		switchVisible('but2d',0);
		switchVisible('but3d',0);
		switchVisible('but4d',0);
		switchVisible('but5d',0);
		switchVisible('leftsidee',0);
		switchVisible('but1e',0);
		switchVisible('but2e',0);
		switchVisible('but3e',0);
		switchVisible('but4e',0);
		switchVisible('but5e',0);

	}
	if(def==2)
	{
		switchVisible('Custom',0);
		switchVisible('Superior',0);
		switchVisible('Key',1);
		switchVisible('History',0);
		switchVisible('FAQ',0);
		switchVisible('whole_footer_Office',0);
		switchVisible('common_footer',0);
		switchVisible('whole_footer_Office_Superior',0);
		switchVisible('common_footer_Superior',0);
		switchVisible('whole_footer_Office_Key',1);
		switchVisible('common_footer_Key',1);
		switchVisible('Key_bot',1);
		switchVisible('whole_footer_Office_History',0);
		switchVisible('common_footer_History',0);
		switchVisible('common_footer_FAQ',0);
		switchVisible('whole_footer_Office_FAQ',0);
		switchVisible('leftsidea',0);
		switchVisible('but1a',0);
		switchVisible('but2a',0);
		switchVisible('but3a',0);
		switchVisible('but4a',0);
		switchVisible('but5a',0);
		switchVisible('leftsideb',0);
		switchVisible('but1b',0);
		switchVisible('but2b',0);
		switchVisible('but3b',0);
		switchVisible('but4b',0);
		switchVisible('but5b',0);
		switchVisible('leftsidec',1);
		switchVisible('but1c',1);
		switchVisible('but2c',1);
		switchVisible('but3c',1);
		switchVisible('but4c',1);
		switchVisible('but5c',1);
		switchVisible('leftsided',0);
		switchVisible('but1d',0);
		switchVisible('but2d',0);
		switchVisible('but3d',0);
		switchVisible('but4d',0);
		switchVisible('but5d',0);
		switchVisible('leftsidee',0);
		switchVisible('but1e',0);
		switchVisible('but2e',0);
		switchVisible('but3e',0);
		switchVisible('but4e',0);
		switchVisible('but5e',0);

	}
	if(def==3)
	{
		switchVisible('Custom',0);
		switchVisible('Superior',0);
		switchVisible('Key',0);
		switchVisible('History',1);
		switchVisible('FAQ',0);
		switchVisible('whole_footer_Office',0);
		switchVisible('common_footer',0);
		switchVisible('whole_footer_Office_Superior',0);
		switchVisible('common_footer_Superior',0);
		switchVisible('whole_footer_Office_Key',0);
		switchVisible('Key_bot',0);
		switchVisible('common_footer_Key',0);
		switchVisible('whole_footer_Office_History',1);
		switchVisible('common_footer_History',1);
		switchVisible('common_footer_FAQ',0);
		switchVisible('whole_footer_Office_FAQ',0);
		switchVisible('leftsidea',0);
		switchVisible('but1a',0);
		switchVisible('but2a',0);
		switchVisible('but3a',0);
		switchVisible('but4a',0);
		switchVisible('but5a',0);
		switchVisible('leftsideb',0);
		switchVisible('but1b',0);
		switchVisible('but2b',0);
		switchVisible('but3b',0);
		switchVisible('but4b',0);
		switchVisible('but5b',0);
		switchVisible('leftsidec',0);
		switchVisible('but1c',0);
		switchVisible('but2c',0);
		switchVisible('but3c',0);
		switchVisible('but4c',0);
		switchVisible('but5c',0);
		switchVisible('leftsided',1);
		switchVisible('but1d',1);
		switchVisible('but2d',1);
		switchVisible('but3d',1);
		switchVisible('but4d',1);
		switchVisible('but5d',1);
		switchVisible('leftsidee',0);
		switchVisible('but1e',0);
		switchVisible('but2e',0);
		switchVisible('but3e',0);
		switchVisible('but4e',0);
		switchVisible('but5e',0);

	}
	if(def==4)
	{
		switchVisible('Custom',0);
		switchVisible('Superior',0);
		switchVisible('Key',0);
		switchVisible('History',0);
		switchVisible('FAQ',1);
		switchVisible('whole_footer_Office',0);
		switchVisible('common_footer',0);
		switchVisible('whole_footer_Office_Superior',0);
		switchVisible('common_footer_Superior',0);
		switchVisible('whole_footer_Office_Key',0);
		switchVisible('common_footer_Key',0);
		switchVisible('Key_bot',0);
		switchVisible('whole_footer_Office_History',0);
		switchVisible('common_footer_History',0);
		switchVisible('common_footer_FAQ',1);
		switchVisible('whole_footer_Office_FAQ',1);
		switchVisible('leftsidea',0);
		switchVisible('but1a',0);
		switchVisible('but2a',0);
		switchVisible('but3a',0);
		switchVisible('but4a',0);
		switchVisible('but5a',0);
		switchVisible('leftsideb',0);
		switchVisible('but1b',0);
		switchVisible('but2b',0);
		switchVisible('but3b',0);
		switchVisible('but4b',0);
		switchVisible('but5b',0);
		switchVisible('leftsidec',0);
		switchVisible('but1c',0);
		switchVisible('but2c',0);
		switchVisible('but3c',0);
		switchVisible('but4c',0);
		switchVisible('but5c',0);
		switchVisible('leftsided',0);
		switchVisible('but1d',0);
		switchVisible('but2d',0);
		switchVisible('but3d',0);
		switchVisible('but4d',0);
		switchVisible('but5d',0);
		switchVisible('leftsidee',1);
		switchVisible('but1e',1);
		switchVisible('but2e',1);
		switchVisible('but3e',1);
		switchVisible('but4e',1);
		switchVisible('but5e',1);
	}
}
//
	function main_pic(id,w,h)
	{
		var popurl="pages/main_pic";
		popurl+=id;
		popurl+=".htm";
		var options="width=";
		options+=1.1*w;
		options+=",height=";
		options+=1.2*h;
		options+=",scrollbars,";
		//alert(popurl+"   "+options);
		winpops=window.open(popurl,"",options);
	}
//
function change_message(message_text,xpos,ypos)
{
 var theElement = document.getElementById("message1");
 theElement.innerHTML = message_text;
 theElement.style.top = xpos + "px";
 theElement.style.left = ypos + "px";
}
//
function myDate() 
{
    var now   = new Date();
    var weekday = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
    var day   = weekday[now.getDay()];
    var month  = now.getMonth() + 1;
    var date  = now.getDate();
    var year  = now.getFullYear();
    year = year.toString();
    var today  = day + ' ' + month + '/' + date + '/' + year.substring(2,4);
    return today;
}
//
function switchVisible(id,viz) 
{
	var ie4up = (document.all)? true : false;
 	var ns4   = (document.layers)? true : false;
	var ns6up = (document.getElementById)? true : false;
   if (ns4 && getLayer(id))
   	{
       	getLayer(id).visibility = (viz) ? 'show' : 'hide';
    }
    if ((ie4up || ns6up) && getLayer(id))
   	{
       		 if(viz==0)
       		 {
       		 	document.getElementById(id).style.visibility="hidden";
 //      		 	getLayer(id).style.visibility = "hidden";
       		 }
       	else if(viz==1)
       		{
       		document.getElementById(id).style.visibility="visible";
//       	getLayer(id).style.visibility = "visible";
       		}
     }
//	  	alert("id= " + id + "   viz= " + viz + "  Browsers = " + ie4up + " " + ns4 + " "  + ns6up + "  getLayer(id)= " + getLayer(id));
}
//
function mousehelp(id,msg)
{
			if(msg==1)switchVisible('help_message1',id);
	else if(msg==2)switchVisible('help_message2',id);
	else if(msg==3)switchVisible('help_message3',id);
	else if(msg==4)switchVisible('help_message4',id);
	else if(msg==5)switchVisible('help_message5',id);
	else if(msg==6)switchVisible('help_message6',id);
	else if(msg==7)switchVisible('help_message7',id);
//
	else if(msg==10)switchVisible('header_message10',id);
	else if(msg==11)switchVisible('header_message11',id);
	else if(msg==12)switchVisible('header_message12',id);
	else if(msg==13)switchVisible('header_message13',id);
	else if(msg==14)switchVisible('header_message14',id);
	else if(msg==15)switchVisible('header_message15',id);
	else if(msg==16)switchVisible('header_message16',id);
	else if(msg==17)switchVisible('header_message17',id);
}
//
function getLayer(id) 
{	
//	var x = eval('document.getElementById("'+id+'")')
//	alert("getlayer= " + id + "  " + x);
	return (document.getElementById(id));
}
//
function showme(more)
{
	if(more==0)
	{
		switchVisible('moreinfo',0);
		switchVisible('moreinfo1',0);
		switchVisible('moreinfo2',0);
		switchVisible('theComments',1);
		switchVisible('buttons1',1);
		switchVisible('buttons2',0);
		switchVisible('common_footer',1);
		switchVisible('common_footer2',0);
		switchVisible('bottom_moreinfo',0);
		switchVisible('theBuildLocation',0);
		switchVisible('leftside_moreinfo1',1);
		switchVisible('leftside_moreinfo2',0);
	}
	else
	{
		switchVisible('moreinfo',1);
		switchVisible('moreinfo1',1);
		switchVisible('moreinfo2',1);
		switchVisible('theComments',0);
		switchVisible('buttons1',0);
		switchVisible('buttons2',1);
		switchVisible('common_footer',0);
		switchVisible('common_footer2',1);
		switchVisible('bottom_moreinfo',1);
		switchVisible('theBuildLocation',1);
		switchVisible('leftside_moreinfo1',0);
		switchVisible('leftside_moreinfo2',1);
	}
}