var show;
function viewtip(time, avail, price, sprice, jprice, cprice)
{

	if (sprice < price)
	{
		sprice = sprice;
	}
	else
	{
		sprice = price;
	}
	str="<table width=180 border=0 cellpadding=1 cellspacing=0>";
    str+="<tr>";
    str+="<td class='info3' width=180 style='color:red;padding-top:10px'><strong>Online Specials</strong></td>";
	str+="</tr>";
	str+="<tr>";
    str+="<td class='info3' width=180>Tee Time&nbsp;:&nbsp;"+time+"</td>";
    str+="</tr>";
    str+="<tr>";
	str+="<td class='info3' width=180>Available Slots&nbsp;:&nbsp;"+avail+"</td>";
    str+="</tr>";
    str+="<tr>";
    str+="<td class='info3' width=180><strong>18 Hole Adult : $"+price+"</strong></td>";
    str+="</tr>";
    str+="<tr>";
    str+="<td class='info3' width=180>Senior : $"+sprice+"</td>";
    str+="</tr>";
    str+="<tr>";
    str+="<td class='info3' width=180>Junior : $"+jprice+"</td>";
    str+="</tr>";
	str+="<tr>";
    str+="<td class='info3' width=180>Electric Cart : $"+cprice+"</td>";
    str+="</tr>";
	str+="<tr>";
//	str+="<td class='info3' width=180 style='padding-top:5px;padding-bottom:10px'>Special offer <span style='color:red;'><strong>ONLY APPLIES</strong></span> to the internet bookings. Green fees <span style='color:red;'><strong>MUST BE PAID</strong></span> through the internet otherwise, normal green fee will be applied.</td>";
	str+="<td class='info3' width=180 style='padding-top:5px;padding-bottom:10px'> </td>";
    str+="</tr>";
    str+="</table>";

	document.getElementById('quick').style.left =tempX -110;
	document.getElementById('quick').style.top =tempY +10;

	document.getElementById('quick').innerHTML=str;
	document.getElementById('quick').style.visibility='visible';
	show=1;
}

function viewtip1(title, time, avail, aprice, sprice, jprice, cprice, late)
{

	str="<table width=150 border=0 cellpadding=1 cellspacing=0>";
    if (title !='')
    {
		str+="<tr>";
		str+="<td class='info4' width=150 style='color:red;padding-top:10px'><strong>"+title+"</strong></td>";
		str+="</tr>";
		str+="<tr>";
		str+="<td class='info4' width=150>Tee Time&nbsp;:&nbsp;"+time+"</td>";
		str+="</tr>";
	}
	else
	{
		str+="<tr>";
		str+="<td class='info4' width=150 style='padding-top:10px'>Tee Time&nbsp;:&nbsp;"+time+"</td>";
		str+="</tr>";
	}
	str+="<tr>";
	str+="<td class='info4' width=150>Available Slots&nbsp;:&nbsp;"+avail+"</td>";
    str+="</tr>";
	str+="<tr>";
    str+="<td class='info4' width=150>Adult : $"+aprice+"</td>";
    str+="</tr>";
    str+="<tr>";
    str+="<td class='info4' width=150>Senior : $"+sprice+"</td>";
    str+="</tr>";
    str+="<tr>";
    str+="<td class='info4' width=150>Junior : $"+jprice+"</td>";
    str+="</tr>";
	str+="<tr>";
    str+="<td class='info4' width=150>Electric Cart : $"+cprice+"</td>";
    str+="</tr>";
    str+="<tr>";
	str+="<td class='info4' width=150 style='padding-top:5px;padding-bottom:10px'><strong>Late start fee applies from "+late+"PM today</strong></td>";
    str+="</tr>";
    str+="</table>";

	document.getElementById('quick').style.left =tempX -110;
	document.getElementById('quick').style.top =tempY +10;

	document.getElementById('quick').innerHTML=str;
	document.getElementById('quick').style.visibility='visible';
	show=1;
}

function hiddentip()
{
	show=0;
	document.getElementById('quick').style.visibility='hidden';
}

function mpoint(e)
{
	if(show==1) {
		document.getElementById('quick').style.left =tempX -110;
		document.getElementById('quick').style.top =tempY +10;
	}
}
