//Pop up information box II (Mike McGrath (mike_mcgrath@lineone.net,  http://website.lineone.net/~mike_mcgrath))

Xoffset= -250;    // modify these values to ...
Yoffset= -77;    // change the popup position.

var old,skn,iex=(document.all),yyy=-1000;

var ns4=document.layers
var ns6=document.getElementById&&!document.all
var ie4=document.all

if (ns4)
skn=document.dek
else if (ns6)
skn=document.getElementById("dek").style
else if (ie4)
skn=document.all.dek.style
if(ns4)document.captureEvents(Event.MOUSEMOVE);
else{
skn.visibility="visible"
skn.display="none"
}
document.onmousemove=get_mouse;

function popup(msg,bak){
var content="<TABLE BORDER=1 BORDERCOLOR=#ffffff CELLPADDING=0 CELLSPACING=4 "+
"BGCOLOR="+bak+"><TD CLASS=popup_text ALIGN=left nowrap bordercolor=#D26516>"+msg+"</TD></TABLE>";
yyy=Yoffset;
 if(ns4){skn.document.write(content);skn.document.close();skn.visibility="visible"}
 if(ns6){document.getElementById("dek").innerHTML=content;skn.display=''}
 if(ie4){document.all("dek").innerHTML=content;skn.display=''}
}

function get_mouse(e){
var x=(ns4||ns6)?e.pageX:event.x+document.body.scrollLeft;
skn.left=x+Xoffset;
var y=(ns4||ns6)?e.pageY:event.y+document.body.scrollTop;
skn.top=y+yyy;
}

function kill(){
yyy=-1000;
if(ns4){skn.visibility="hidden";}
else if (ns6||ie4)
skn.display="none"
}

function hp(textkey) {
	switch(textkey) {
	case "M":
		text='This is an emeal.com.au participating restaurant.<br>Click to see, an on-line menu, list of services,<br>photos, and other information.';
		title='<DIV class="popup_title"><b>Restaurant</b> has a compete web site</div>'
		break;
	case "S":
		text='This is an emeal.com.au participating restaurant.<br>Click to see the list of services, and opening hours<br>for this restaurant.';
		title='<DIV class="popup_title"><b>Restaurant</b> has a limited web site</div>'
		break;
	case "L":
		text='This is not a emeal.com.au participating restaurant.<br>Only the name, address, and phone are known.<br>Restaurant membership is FREE - ask them to join!';
		title='<DIV class="popup_title"><b>Listing</b> only</div>'
		break;
	case "d1":
		text='Price meter icon: Indicates the average<br>cost of a main course at this restaurant.';
		title='<DIV class="popup_title"><b>Main\'s</b> course average: < $10</div>'
		break;
	case "d2":
		text='Price meter icon: Indicates the average<br>cost of a main course at this restaurant.';
		title='<DIV class="popup_title"><b>Main\'s</b> course average: $10 - $19</div>'
		break;
	case "d3":
		text='Price meter icon: Indicates the average<br>cost of a main course at this restaurant.';
		title='<DIV class="popup_title"><b>Main\'s</b> course average: $20 - $30</div>'
		break;
	case "d4":
		text='Price meter icon: Indicates the average<br>cost of a main course at this restaurant.';
		title='<DIV class="popup_title"><b>Main\'s</b> course average: > $30</div>'
		break;
	case "DY":
		text='This restaurant does deliveries';
		title='<DIV class="popup_title"><b>Does</b> Home Delivery</div>'
		break;
	case "DX":
		text='This restaurant does deliveries';
		title='<DIV class="popup_title"><b>No</b> Deliveries</div>'
		break;
	case "OY":
		text='This restaurant opens late.';
		title='<DIV class="popup_title"><b>Open</b> Late (after 10:30PM)</div>'
		break;
	case "OX":
		text='This restaurant does not open late<br>(closes before 10:30PM).';
		title='<DIV class="popup_title"><b>Not</b> open late</div>'
		break;
	case "TY":
		text='This restaurant offers<br>a takeaway service.';
		title='<DIV class="popup_title"><b>Does</b> Takeaway</div>'
		break;
	case "TX":
		text='This restaurant does not<br>offer takeaway.';
		title='<DIV class="popup_title"><b>No</b> Takeaway</div>'
		break;
	case "LY":
		text='This restaurant is licenced<br>to serve alcohol.';
		title='<DIV class="popup_title"><b>Licenced</b> Restaurant</div>'
		break;
	case "LX":
		text='This restaurant is NOT licenced<br>to serve alcohol.';
		title='<DIV class="popup_title"><b>Not</b> licenced for alcohol</div>'
		break;
	case "SY":
		text='This restaurant has outdoor seating<br>and may be suitable for smokers.';
		title='<DIV class="popup_title"><b>Has</b> Outdoor Seating</div>'
		break;
	case "SX":
		text='This restaurant does<br>NOT have outdoor seating.';
		title='<DIV class="popup_title"><b>No</b> outdoor seating</div>'
		break;
	case "VY":
		text='This restaurant serves<br>meals for vegetarians.';
		title='<DIV class="popup_title"><b>Serves</b> Vegetarian</div>'
		break;
	case "VX":
		text='This restaurant does NOT<br>cater to vegetarians.';
		title='<DIV class="popup_title"><b>No</b> Vegetarian</div>'
		break;
	default:
		text='This is not a emeal.com.au participating restaurant.<br>Only the name, address, and phone are known.<br>Restaurant membership is FREE - ask them to join!';
		title='<DIV class="popup_title"><b>Listing</b> Only...</div>'
		break;
	}
	text=title+text;
	popup(text,'#ffffff');
}

