/* The Cove Master js */

/*Replace flash code with this code.
<script type="text/javascript">CoveSpecials()</script> */

/* Password for the Cove */

function Verify(){
var Check = document.form1.paul.value;
if(Check == "")
alert("Please enter a valid Password")
else if(Check == 8531440)
window.location = "http://paulredpath.com/Schedules.htm"
else
alert("Sorry, your have entered an incorrect Password")
}

/*Flash Code*/

function CoveSpecials()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="150" height="300" ...>\n');
document.write('<param name="movie" value="Specials.swf"   />\n');
document.write('<param name="quality" value="high"   />\n');
document.write('</object>\n');
}
function Promo()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="300" ...>\n');
document.write('<param name="movie" value="promotions.swf"   />\n');
document.write('<param name="quality" value="high"   />\n');
document.write('</object>\n');
}

function Darts()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="300" ...>\n');
document.write('<param name="movie" value="darts.swf"   />\n');
document.write('<param name="quality" value="high"   />\n');
document.write('</object>\n');
}

/* Cove disclaimer to be used on all webpages */
function CoveDisclaimer()
{
message =  "<img src='dotted line.gif'>" + "<br><br>";
message += "|&nbsp;&nbsp;";
message += "<a href='mailto:thecove@bellnet.ca?subject=Website Question'> <font face='arial' size='-2'>Contact Us</font></a>" + "&nbsp;&nbsp;";
message += "|&nbsp;&nbsp;";
message += "<a href='Employment.htm'><font face='arial' size='-2'>Employment</font></a>" + "&nbsp;&nbsp;";
message += "|&nbsp;&nbsp;"; 
message += "<a href='About_Us.htm'><font face='arial' size='-2'>About Us</font></a>" + "&nbsp;&nbsp;";
message += "|&nbsp;&nbsp;"; 
message += "<a href='Staff.htm'><font face='arial' size='-2'>Staff</font></a>" + "&nbsp;&nbsp;";
message += "|&nbsp;&nbsp;" + "<br>"; 
message += "<font face='arial' size='-2'>" + "&copy; 2007 Paul Redpath Web Design";
message += "</font><br><br><br>"
document.write(message);
}


/*Cove pop up window for promoting monthly specials */
 
/*Here is the code to a link to be entered in the body of the page that will bring up the pop window */
 
/*
<a href="#", onclick="MonthlySpecials()"; onMouseover="this.style.backgroundColor='yellow'" onMouseout="this.style.backgroundColor=''"><font size="-1">Monthly Specials</font></a>
 */
 
/*Pop up window function 
 
}
function MonthlySpecials(){
 
DispWin=window.open('', 'NewWin', 'toolbar=no, scrollbars=no, resizable=no, width=300, height=400')
 

message = "<h3 align='center'><body bgcolor='#900000'><font face='arial'>" + "Monthly Specials" + "</h3>"
 
message += "<font color='yellow'><b>Breakfast:</b> The cove omlette </font><br>"; 
message += "<font color='yellow'><b>Lunch:</b> Soup and salad combo </font><br>";
message += "<font color='yellow'><b>Dinner:</b> Our famous ribbs </font><br>";
message += "<A HREF='http:' target='_blank'>Click here for 10% discount </A><br>";
message += "<div align='center'><input type='button' value='Close Window' onClick='self.close();'></div></font><br><br>";
 
DispWin.document.write(message);
}
*/
