function mainref(objid){
if(document.all){obj="document.all."+objid;}
else if(document.layers){obj="document."+objid;}
else if(document.getElementById){obj="document.getElementById('"+objid+"')";}
return obj;
}
function setref(lrid){
if(document.all){
	objref="document.all."+lrid+".style"}
else if(document.layers){
	objref="document."+lrid}
else if(document.getElementById){
	objref="document.getElementById('"+lrid+"').style"}
return objref;
}
function rtrim(str) {
   return str.substring(0,str.length-3);
}
function clock(o1,o2){
co1=eval(setref(o1));
co2=eval(setref(o2));
co1.visibility="visible";
co2.visibility="hidden";
}
function setampm(cs){
csel=eval(mainref("clocksel"));
csel.value=cs;
}
function resdetail(){
csel=eval(mainref("clocksel"));
resd=eval(mainref("rd"));
rdate=eval(mainref("rdate"));
hr=eval(mainref("hr"));
party=eval(mainref("party"));
ampmv=eval(mainref("ampmv"));
if (rdate.value && hr.value && party.value){
   ifam=parseInt(rtrim(hr.value));
   if (csel.value=="lunch" && ifam<12 && ifam>3){
   ampmv.value="AM"}
   else{
   ampmv.value="PM"}
   rdate.className="show";
   hr.className="show";
   party.className="show";
   ampmv.className="show";
   resd.className="showrd";
}
}
function picobj(imgname,speed,w,h){
	this.imgname=imgname;
	this.speed=speed;
	this.w=w;
	this.h=h;}
var pobj=new Array()
pobj[0]=new picobj("sldimgs",6000,800,300);
pobj[1]=new picobj("sldimgs",150,800,300);
pobj[2]=new picobj("sldimgs",150,800,300);
pobj[3]=new picobj("sldimgs",6000,800,300);
pobj[4]=new picobj("sldimgs",150,800,300);
pobj[5]=new picobj("sldimgs",150,800,300);
pobj[6]=new picobj("sldimgs",6000,800,300);
pobj[7]=new picobj("sldimgs",150,800,300);
pobj[8]=new picobj("sldimgs",150,800,300);
pobj[9]=new picobj("sldimgs",6000,800,300);
pobj[10]=new picobj("sldimgs",150,800,300);
pobj[11]=new picobj("sldimgs",150,800,300);

pics=new Array();
pics[0]='sldimg1.jpg';
pics[1]='sldimg2.jpg';
pics[2]='sldimg3.jpg';
pics[3]='sldimg4.jpg';
pics[4]='sldimg5.jpg';
pics[5]='sldimg6.jpg';
pics[6]='sldimg7.jpg';
pics[7]='sldimg8.jpg';
pics[8]='sldimg9.jpg';
pics[9]='sldimg10.jpg';
pics[10]='sldimg11.jpg';
pics[11]='sldimg12.jpg';
var l=pics.length;
var load=new Array();
for (i=0;i<l;i++){
	load[i]=new Image();
	load[i].src=pics[i];
}
var t1,t2,j=-1,r=0;

function intro(){
	ltxt=eval(mainref("loadingfld"));
	ltxt.value=ltxt.value+".";
	if (r==0){
	t2=setTimeout('intro()',500);}
	else{
	ltxt.value="loading";
	ltxt=eval(setref("loading"));
	ltxt.visibility="hidden";
	t2=clearTimeout(t2);}
}
function sldshow(){
	r=1;
	j++;
	imgn=pobj[j].imgname;
	speed=pobj[j].speed;
	w=pobj[j].w;
	h=pobj[j].h;
	eval("document."+imgn+".src='"+pics[j]+"'");
	eval("document."+imgn+".width='"+w+"'");
	eval("document."+imgn+".height='"+h+"'");
	if (j<pobj.length-1){
	t1=setTimeout('sldshow()',speed);}
	else{
	j=-1;
	t1=setTimeout('sldshow()',150);}
}
function decorshow(){
	r=1;
	decorimg=eval(setref("decorimgs"));
	decorimg.background="url('decor1.jpg')"; 
	decortmbs=eval(setref("decorts"));
	decortmbs.visibility="visible";
}
function lrgphoto(p){
	decorimg=eval(setref("decorimgs"));
	decorimg.background="url('" + p + "')"; 
}
function openwin(url,w,h,x){
	var w=window.open(url, "smallwin",
	"width="+w+",height="+h+",status=no,resizable=no,scrollbars="+x)
}
function DisplayMo(c1,c2){
	ch=eval(setref(c2));
	ch.visibility="hidden";
	cv=eval(setref(c1));
	cv.visibility="visible";
}