// /java/myjava.js         This works 2006/02/13


// BookMark - Uses Variables for Exact-Page-URL & Page-Title
// configure the two variables below to match yoursite's own info
// var bookmarkurl=" "
// var bookmarktitle=" "

<!-- This line Required

function bookmark()
{
var bookmarkurl=document.location.href
var bookmarktitle=document.title
if (document.all)
   window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

// Bookmrkf - HardCoded to single URL & Page
function bookmrkf()
{
var bookmarkfurl="http://www.emcarthur.com"
var bookmarkftitle="E.McArthur & Associates"
if (document.all)
   window.external.AddFavorite(bookmarkfurl,bookmarkftitle)
}


// No Right click - Savepicture, View Source

// No rightclick script
// Message in alert box
var message="Access Denied.\n\nI'am not dressed yet!.\n\n"; 
// Don't edit below!
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;



// prevent site from being loaded in frames...
if (top.location != self.location) {
  top.location = self.location
}




// Bookmark at Del.icou.us

function bookdelicious()
{
     window.location="http://del.icio.us/post?url=" + encodeURIComponent(document.location.href)                   
                                                    + "&title="
                                                    + encodeURIComponent(document.title)
}


// Bookmark at Myweb2.Yahoo,com            NOTE: This does not work right, it does not pass the URL correctly 2006/03/14

function bookmyyahoo()
{
     window.location="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=" + encodeURIComponent(document.title)
                                                                               + "u="
                                                                               + encodeURIComponent(document.location.href)
}

// -->







// -- This script and many more are available free online at -->
// -- The JavaScript Source!! http://javascript.internet.com -->
// -- This script displays a graphic in a new window         -->

<!-- Begin
function CaricaFoto(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
  largh=foto1.width+20;
  altez=foto1.height+20;
  stringa="width="+largh+",height="+altez;
  finestra=window.open(img,"",stringa);
}
//  End -->




