//sharepath="../share/";
var rnum = Math.floor(Math.random() * 5-1+1)+1;
var eck=0;var ie=0;if(document.all){ie=1;}
document.write("<div id=\"shareimg\" style=\"position:absolute;z-index:1005;top:"+shareY+"px;left:"+siX+"px;width:120px;height:20px;\"><img src=\""+sharepath+"bookmark_"+rnum+".gif\" style=\"border-color: rgb(12, 12, 12);\" title=\"Share or Bookmark\" vspace=2 align=\"middle\" border=0 onmouseover=\"siover()\" onmouseout=\"siout()\"></div>");
var btext="Bookmark";if(ie==1){btext="Add to Favorites";}
document.write("<div id=\"sharebox\" onmouseover=\"sbover()\" onmouseout=\"sbout()\" style=\"position:absolute;z-index:1006;top:"+shareY+"px;left:0px;width:250px;visibility:hidden;\"><table width=250 cellpadding=0 cellspacing=0 style=\"border:1px ridge #000066;\"><tr><td width=250><table width=250 border=0 cellpadding=0 cellspacing=0><tr><td width=125 height=18 bgcolor=\"#A3B5E6\" class=\"black9\" id=\"bors\">Bookmark or Share</td><td width=125 height=18 bgcolor=\"#A3B5E6\" align=\"right\" valign=\"middle\"><img src=\""+sharepath+"close.gif\" onclick=\"sbdiv.style.visibility='hidden';eck=0;\" style=\"cursor:pointer;\"></td></tr><tr><td width=101 height=20 bgcolor=\"#ffffee\" valign=\"middle\" class=\"black8\" style=\"background-image:url("+sharepath+"bookmark.gif);background-position:center left;background-repeat:no-repeat;padding-left:24px;\" onmouseover=\"this.style.backgroundColor='#E0E0F3';this.style.color='#0000cc';this.style.cursor='pointer';\" onmouseout=\"this.style.backgroundColor='#FFFFEE';this.style.color='#000000';\" onclick=\"javascript:bookmark(1);\">"+btext+"</td><td width=101 height=20 bgcolor=\"#ffffee\" valign=\"middle\" class=\"black8\" style=\"background-image:url("+sharepath+"email.gif);background-position:center left;background-repeat:no-repeat;padding-left:24px;\" onmouseover=\"this.style.backgroundColor='#E0E0F3';this.style.color='#0000cc';this.style.cursor='pointer';\" onmouseout=\"this.style.backgroundColor='#FFFFEE';this.style.color='#000000';\" onclick=\"javascript:bookmark(2);\">Email to a friend</td></tr><tr><td width=101 height=20 bgcolor=\"#FFFFEE\" valign=\"middle\" class=\"black8\" style=\"background-image:url("+sharepath+"twitter.gif);background-position:center left;background-repeat:no-repeat;padding-left:24px;\" onmouseover=\"this.style.backgroundColor='#E0E0F3';this.style.color='#0000cc';this.style.cursor='pointer';\" onmouseout=\"this.style.backgroundColor='#FFFFEE';this.style.color='#000000';\" onclick=\"javascript:bookmark(11);\">Twitter</td><td width=101 height=20 bgcolor=\"#FFFFEE\" valign=\"middle\" class=\"black8\" style=\"background-image:url("+sharepath+"facebook.gif);background-position:center left;background-repeat:no-repeat;padding-left:24px;\" onmouseover=\"this.style.backgroundColor='#E0E0F3';this.style.color='#0000cc';this.style.cursor='pointer';\" onmouseout=\"this.style.backgroundColor='#FFFFEE';this.style.color='#000000';\" onclick=\"javascript:bookmark(4);\">Facebook</td></tr><tr><td width=101 height=20 bgcolor=\"#FFFFEE\" valign=\"middle\" class=\"black8\" style=\"background-image:url("+sharepath+"stumbleupon.gif);background-position:center left;background-repeat:no-repeat;padding-left:24px;\" onmouseover=\"this.style.backgroundColor='#E0E0F3';this.style.color='#0000cc';this.style.cursor='pointer';\" onmouseout=\"this.style.backgroundColor='#FFFFEE';this.style.color='#000000';\" onclick=\"javascript:bookmark(5);\">Stumbleupon</td><td width=101 height=20 bgcolor=\"#FFFFEE\" valign=\"middle\" class=\"black8\" style=\"background-image:url("+sharepath+"digg.gif);background-position:center left;background-repeat:no-repeat;padding-left:24px;\" onmouseover=\"this.style.backgroundColor='#E0E0F3';this.style.color='#0000cc';this.style.cursor='pointer';\" onmouseout=\"this.style.backgroundColor='#FFFFEE';this.style.color='#000000';\" onclick=\"javascript:bookmark(6);\">Digg it</td></tr><tr><td width=101 height=20 bgcolor=\"#FFFFEE\" valign=\"middle\" class=\"black8\" style=\"background-image:url("+sharepath+"delicious.gif);background-position:center left;background-repeat:no-repeat;padding-left:24px;\" onmouseover=\"this.style.backgroundColor='#E0E0F3';this.style.color='#0000cc';this.style.cursor='pointer';\" onmouseout=\"this.style.backgroundColor='#FFFFEE';this.style.color='#000000';\" onclick=\"javascript:bookmark(3);\">Delicious</td><td width=101 height=20 bgcolor=\"#FFFFEE\" valign=\"middle\" class=\"black8\" style=\"background-image:url("+sharepath+"reddit.gif);background-position:center left;background-repeat:no-repeat;padding-left:24px;\" onmouseover=\"this.style.backgroundColor='#E0E0F3';this.style.color='#0000cc';this.style.cursor='pointer';\" onmouseout=\"this.style.backgroundColor='#FFFFEE';this.style.color='#000000';\" onclick=\"javascript:bookmark(7);\">Reddit</td></tr><tr><td width=101 height=20 bgcolor=\"#FFFFEE\" valign=\"middle\" class=\"black8\" style=\"background-image:url("+sharepath+"yahoobuzz.gif);background-position:center left;background-repeat:no-repeat;padding-left:24px;\" onmouseover=\"this.style.backgroundColor='#E0E0F3';this.style.color='#0000cc';this.style.cursor='pointer';\" onmouseout=\"this.style.backgroundColor='#FFFFEE';this.style.color='#000000';\" onclick=\"javascript:bookmark(9);\">Yahoo Buzz</td><td width=101 height=20 bgcolor=\"#FFFFEE\" valign=\"middle\" class=\"black8\" style=\"background-image:url("+sharepath+"rss.gif);background-position:center left;background-repeat:no-repeat;padding-left:24px;\" onmouseover=\"this.style.backgroundColor='#E0E0F3';this.style.color='#0000cc';this.style.cursor='pointer';\" onmouseout=\"this.style.backgroundColor='#FFFFEE';this.style.color='#000000';\" onclick=\"javascript:bookmark(10);\">Subscribe RSS</td></tr><tr><td width=250 height=18 bgcolor=\"#A3B5E6\" class=\"small8c\" colspan=2><table border=0 cellpadding=0 cellspacing=0><tr><td width=230 height=18 id=\"eckt\" bgcolor=\"#A3B5E6\" class=\"small8c\">Join our mailing list. Enter your email address.</td><td width=20 height=18 bgcolor=\"#A3B5E6\" class=\"small8c\"><img src=\""+sharepath+"info.gif\" style=\"cursor:pointer;\" title=\"\" onmouseover=\"shemailinfo(1)\" onmouseout=\"shemailinfo(0)\"></td></tr></table></td></tr><tr><td width=250 height=20 bgcolor=\"#A3B5E6\" class=\"small8c\" colspan=2 valign=\"middle\"><table border=0 cellpadding=0 cellspacing=0><tr><td><input type=\"Text\" id=\"email\" name=\"email\" class=\"inp8\" style=\"border:1px solid #000000;color:#999999;width:200px;height:16px;\" value=\"your.email@here.com\" onfocus=\"eck=1;this.style.color='#000000';if(this.value=='your.email@here.com'){this.value='';}\" onblur=\"javascript:eck=0;\"></td><td><input type=\"Button\" class=\"small8c\" style=\"color:#000000;width:40px;height:22px;cursor:pointer;\" value=\"Join\" onclick=\"shaddemail();\"></td></tr></table></td></tr></table></td></tr></table></div>");
document.write("<div id=\"shareinf\" style=\"position:absolute;z-index:1009;top:"+shareY+"px;left:0px;width:238px;height:90px;border:1px ridge #cccccc;padding:5px;font-family:arial,geneva;font-size:8pt;color:#000000;line-height:1.2em;background-color:#ffffff;visibility:hidden;\">If you would like to be kept informed occasionally by email please join our mailing list. "+weburl+" will not pass your information on to any third parties. An email will be sent to you to confirm your address and you can unsubscribe any time via a link in the emails.</div>");
document.write("<div style=\"position:absolute;top:"+shareY+"px;left:"+siX+"px;width:0px;height:0px;visibility:hidden;\"><iframe name=\"addemframe\" style=\"width:0px;height:0px;visibility:hidden;\"></iframe></div>");
var shinflayer=document.getElementById("shareinf");
var sbon=0;var sion=0;var ymax=0;
var sbdiv=document.getElementById('sharebox');
var ecktd=document.getElementById('eckt');
function siout(){
 sion=0;sbon=0;
window.setTimeout("if(sion==0 && eck==0){sbdiv.style.visibility='hidden';}",300);
}
function siover(){
 if(siX+parseInt(shareAdjustment)+254>parseInt(getClientBounds(1))){siX=(getClientBounds(1)-284-shareAdjustment);}
 sbdiv.style.left=siX+"px";
 siY=shareY+20;
 ymax=(getClientBounds(2)+getClientBounds(4));
 if(siY+180>ymax){siY=ymax-180;}
 sbdiv.style.top=siY+"px";
 sbdiv.style.visibility='visible';sbon=1;sion=1;
// document.getElementById("bors").innerHTML="Bookmark or Share "+siY+"-"+shareY+"-"+ymax;
}
function sbout(){
 sion=0;
 window.setTimeout("if(sion==0 && eck==0){sbdiv.style.visibility='hidden';}",300);
}
function sbover(){
 sion=1;
}
function bookmark(x){
title = document.title;
url = window.location.href;
 if(x==0){theurl="http://www.ispywebsites.com";}
 if(x==1){if(ie==1){window.external.AddFavorite(url,title);}if(ff==0 && ie==0){alert("Press <Command>+D or Ctrl+D to bookmark this page");}if(ff>0){window.sidebar.addPanel(title,url,'');}}
 if(x==2){theurl="email.php?page="+page+"&imgid="+imgid+"&ssid=0";}  
 if(x==3){theurl='http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent(url)+'&amp;title='+encodeURIComponent(title);}
 if(x==4){theurl="http://www.facebook.com/sharer.php?u="+encodeURIComponent(url)+"&t="+escape(title);}
 if(x==5){theurl="http://www.stumbleupon.com/submit?url="+encodeURIComponent(url)+"&title="+encodeURIComponent(title);} 
 if(x==6){theurl="http://digg.com/submit?url="+encodeURIComponent(url)+"&title="+encodeURIComponent(title)+"&bodytext="+pagedescription;}
 if(x==7){theurl="http://reddit.com/submit?url="+encodeURIComponent(url)+"&title="+encodeURIComponent(title);}
 if(x==8){theurl="http://www.google.com/bookmarks/mark?op=add&bkmk="+encodeURIComponent(url)+"&title="+encodeURIComponent(title);}
 if(x==9){theurl="http://buzz.yahoo.com/submit?submitUrl="+encodeURIComponent(url)+"&submitHeadline="+encodeURIComponent(title)+"&submitSummary="+pagedescription;}
 if(x==10){theurl="rss.xml";}
 if(x==11){theurl="http://www.twitter.com/home?status="+url;}
 //if(x==10){theurl="http://"+weburl+"/rss.xml";}
 if(x>1){window.open(theurl,'shareemail','toolbar=no,menubar=no,scrollbars=yes,width=700,height=400');}
}
function shaddemail(){
 em=document.getElementById('email');emv=em.value;var share_ec=0;
 if (emv.length==0 || emv=="your.email@here.com"){alert("The email field is empty.\n\nPlease enter your email address");em.focus();eck=1;share_ec=1;}
 if (emv.indexOf("@",0)==-1 || emv.indexOf(".",emv.indexOf("@",0))==-1 || emv.length<5){alert("\nNot a vaild e-mail address!\n\nPlease re-enter your e-mail address.");em.focus();eck=1;share_ec=1;}
 if(share_ec==0){window.addemframe.location=sharepre+"addemail.php?em="+emv;ecktd.style.color='#cc1c1c';ecktd.innerHTML='Saving...';}
}
function shemailinfo(x){
 if(x==1){
  shinflayer.style.left=siX+1+"px";
  shinflayer.style.top=siY+18+"px";
  shinflayer.style.visibility="visible";
 }
 else{shinflayer.style.visibility="hidden";}
}
//<td width=101 height=20 bgcolor=\"#FFFFEE\" valign=\"middle\" class=\"black8\" style=\"background-image:url("+sharepath+"google.gif);background-position:center left;background-repeat:no-repeat;padding-left:24px;\" onmouseover=\"this.style.backgroundColor='#E0E0F3';this.style.color='#0000cc';this.style.cursor='pointer';\" onmouseout=\"this.style.backgroundColor='#FFFFEE';this.style.color='#000000';\" onclick=\"javascript:bookmark(8);\">Google</td>
