var show;
function viewtip(time, avail, price, sprice, jprice, cprice, cprice_9, aprice_9, sprice_9, jprice_9)
{

	str="<table width='200' border=0 cellpadding=1 cellspacing=0>";
    str+="<tr>";
    str+="<td class='info3' width='200' style='color:red;padding-top:10px;font-size:11px;font-weight:bold;'>Online Specials</td>";
	str+="</tr>";
	str+="<tr>";
    str+="<td class='info3' width='200' style='padding-top:10px;font-size:11px;font-weight:bold;'>Tee Time&nbsp;:&nbsp;"+time+"</td>";
    str+="</tr>";
    str+="<tr>";
	str+="<td class='info3' width='200' style='font-size:11px;font-weight:bold;'>Available Slots&nbsp;:&nbsp;"+avail+"</td>";
    str+="</tr>";
    str+="<tr>";
    str+="<td class='info3' width='200' style='padding-top:5px;font-size:11px;font-weight:bold;'>Adult Special:€"+price+"</td>";
    str+="</tr>";
	str+="<tr>";
    str+="<td class='info3' width='200' style='font-size:11px;'>18 Holes:€"+price+", 9 Holes:€"+aprice_9+"</td>";
    str+="</tr>";

	if (cprice != '0.00')
	{
		str+="<tr>";
		str+="<td class='info4' width='200' style='font-size:11px;font-weight:bold;'>Electric Cart</td>";
		str+="</tr>";
		str+="<tr>";
		str+="<td class='info4' width='200' style='font-size:11px;'>18 Holes:€"+cprice+", 9 Holes:€"+cprice_9+"</td>";
		str+="</tr>";
	}
	str+="<tr>";
	str+="<td class='info3' width='200' style='font-size:11px;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+="</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, cprice_9, late, aprice_9, sprice_9, jprice_9)
{

	str="<table width='200' border=0 cellpadding=1 cellspacing=0>";
    if (title !='')
    {
		str+="<tr>";
		str+="<td class='info4' width='200' style='color:red;padding-top:10px;font-size:11px;font-weight:bold;'>"+title+"</td>";
		str+="</tr>";
		str+="<tr>";
		str+="<td class='info4' width='200' style='padding-top:10px;font-size:11px;font-weight:bold;'>Tee Time&nbsp;:&nbsp;"+time+"</td>";
		str+="</tr>";
	}
	else
	{
		str+="<tr>";
		str+="<td class='info4' width='200' style='padding-top:10px;font-size:11px;font-weight:bold;'>Tee Time&nbsp;:&nbsp;"+time+"</td>";
		str+="</tr>";
	}
	str+="<tr>";
	str+="<td class='info4' width='200' style='font-size:11px;font-weight:bold;'>Available Slots&nbsp;:&nbsp;"+avail+"</td>";
    str+="</tr>";
	str+="<tr>";
    str+="<td class='info4' width='200' style='padding-top:5px;font-size:11px;font-weight:bold;'>Adult Price</td>";
    str+="</tr>";
	str+="<tr>";
    str+="<td class='info4' width='200' style='font-size:11px;'>18 Holes:€"+aprice+", 9 Holes:€"+aprice_9+"</td>";
    str+="</tr>";
	str+="<tr>";
    str+="<td class='info4' width='200' style='font-size:11px;font-weight:bold;'>Senior Price</td>";
    str+="</tr>";
	str+="<tr>";
    str+="<td class='info4' width='200' style='font-size:11px;'>18 Holes:€"+sprice+", 9 Holes:€"+sprice_9+"</td>";
    str+="</tr>";
	str+="<tr>";
    str+="<td class='info4' width='200' style='font-size:11px;font-weight:bold;'>Junior Price</td>";
    str+="</tr>";
	str+="<tr>";
    str+="<td class='info4' width='200' style='font-size:11px;'>18 Holes:€"+jprice+", 9 Holes:€"+jprice_9+"</td>";
    str+="</tr>";
	if (cprice != '0.00')
	{
		str+="<tr>";
		str+="<td class='info4' width='200' style='font-size:11px;font-weight:bold;'>Electric Cart</td>";
		str+="</tr>";
		str+="<tr>";
		str+="<td class='info4' width='200' style='font-size:11px;'>18 Holes:€"+cprice+", 9 Holes:€"+cprice_9+"</td>";
		str+="</tr>";
	}
    str+="<tr>";
	str+="<td class='info4' width='200' style='padding-top:5px;padding-bottom:10px;font-size:11px;font-weight:bold;'>Late start fee applies from "+late+"PM today</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;
	}
}
