// Script

function blockError(){return true;}
window.onerror = blockError;


// Block Image Toolbar
document.write('<meta http-equiv="imagetoolbar" content="no">')


// Right Click Protect
var right_click_text	= "Sorry, we do not allow right clicks on our site."	

var message=right_click_text;
if (navigator.appName == 'Microsoft Internet Explorer'){
function NOclickIE(e) {
if (event.button == 2 || event.button == 3) {
alert(message);
return false;
}
return true;
}
document.onmousedown=NOclickIE;
document.onmouseup=NOclickIE;
window.onmousedown=NOclickIE;
window.onmouseup=NOclickIE;
}
else {
function NOclickNN(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}}}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=NOclickNN; }
document.oncontextmenu=new Function("alert(message);return false")
}

// Email Buttons.js
if (document.images)   {
     image1on = new Image();
     image1on.src="images/button02.png";

     image1off = new Image();
     image1off.src = "images/button01.png";
	 
	 image3on = new Image();
     image3on.src="images/button04.png";

     image3off = new Image();
     image3off.src = "images/button03.png";}
       
function turnon(imageName)   {
     if (document.images)   {
     document[imageName].src = eval(imageName + "on.src");}}

function turnoff(imageName)   {
     if (document.images)   {
     document[imageName].src = eval(imageName + "off.src");}}

// Email.js
function mail_aJS()
{
var str='';
str+='<a href="mailto:waysflorist@gmail.com?subject=Information Request - Ways Florist" onmouseover="turnon(\'image1\')" onmouseout="turnoff(\'image1\')"><img src="images\/button01.png" image" name="image1" border="0" width="104" height="44"><\/a>';
document.write(str);
}

function mail_bJS()
{
var str='';
str+='<a href="mailto:waysflorist@gmail.com?subject=Information Request - Ways Florist" onmouseover="turnon(\'image3\')" onmouseout="turnoff(\'image3\')"><img src="images\/button03.png" image" name="image3" border="0" width="155" height="48"><\/a>';
document.write(str);
}
