// Anti-Spam Email Displayer- By JavaScriptKit.com
// Visit JavaScript Kit (http://javascriptkit.com) for this script and more.
var contacts=new Array()
contacts[0]=["Click Here", "abarghoie[at]sbcglobal[dot]net"] // alex
contacts[1]=["Click Here", "lindanwarren[at]surewest[dot]net"] // warren
contacts[2]=["Click Here", "glenn[at]wereorganized[dot]net"]  // glenn
contacts[3]=["Click Here", "bobyoursalesrep[at]gmail[dot]com"] // bob
contacts[4]=["Click Here", "mysalesrep[at]live[dot]com"]  // ray
contacts[5]=["Contact Us", "wereorganized[at]aol[dot]com"] // contact us

//Specify caption text to display within SELECT menu. Only applicable if you're using the form option:
var dropmenucaption="Pick Designer"

function displaycontact(emailarray, cssclass, displaymethod, extrainfo){
if (displaymethod=="text"){
document.write('<span class="' + cssclass + '">\n')
if (typeof emailarray[0]=="object"){ //if array passed consists of multiple elements
for (i=0; i<emailarray.length; i++){
var seperator=(i<emailarray.length-1)? extrainfo : ""
document.write('<a href="mailto:' + modifyemail(emailarray[i][1])+ '">'+ emailarray[i][0] + '</a>' + seperator)
}
}
else //else if it is a single array element
document.write('<a href="mailto:' + modifyemail(emailarray[1])+ '">'+ emailarray[0] + '</a>')
document.write('</span>')
}
else if (displaymethod=="form"){
document.write('<form>\n')
document.write('<select size="' + extrainfo + '" onChange="jumptooption(this)" class="' + cssclass + '">\n')
document.write('<option value="caption">' + dropmenucaption + '</option>\n')
for (i=0; i<emailarray.length; i++)
document.write('<option value="mailto:' + modifyemail(emailarray[i][1]) +'">' + emailarray[i][0] + ' </option>\n')
document.write('</select></form>\n')
}
}

function modifyemail(emailitem){
var modified=emailitem.replace(/\[at]/gi, "@")
modified=modified.replace(/\[dot]/gi, ".")
return modified
}

function jumptooption(themenu){
if (themenu.options[themenu.selectedIndex].value !="caption")
location=themenu.options[themenu.selectedIndex].value
}

// open window
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// form clear field
function clearText(thefield) {
  if (thefield.defaultValue==thefield.value) { thefield.value = "" }
} 
function replaceText(thefield) {
  if (thefield.value=="") { thefield.value = thefield.defaultValue }
}

// show hide layers
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

// swap class p7
function P7_swapClass(){ //v1.4 by PVII
 var i,x,tB,j=0,tA=new Array(),arg=P7_swapClass.arguments;
 if(document.getElementsByTagName){for(i=4;i<arg.length;i++){tB=document.getElementsByTagName(arg[i]);
  for(x=0;x<tB.length;x++){tA[j]=tB[x];j++;}}for(i=0;i<tA.length;i++){
  if(tA[i].className){if(tA[i].id==arg[1]){if(arg[0]==1){
  tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}else{tA[i].className=arg[2];}
  }else if(arg[0]==1 && arg[1]=='none'){if(tA[i].className==arg[2] || tA[i].className==arg[3]){
  tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}
  }else if(tA[i].className==arg[2]){tA[i].className=arg[3];}}}}
}

// Select jump menu
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

// print function
function printPage() { print(document); }

// bookmark script
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 

else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

// linked slideshow
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function flvFLSS4(){//v1.1
var v1=arguments,v2=v1[0],v3=MM_findObj(v2);if (v3&&v3.LSS6!=null){clearTimeout(v3.LSS6);}}

function flvFLSS3(){//v1.1
var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4=v1[1],v5='',v6;if (!v3.LSS3.complete){v6="flvFLSS3('"+v2+"',"+v4+")";setTimeout(v6,50);return;}if (v3.LSS2[v4][1]!=""){v5+='<a href="'+v3.LSS2[v4][1]+'"';if (v3.LSS1!=""){v5+=' target="'+v3.LSS1+'"';}v5+='>';}v5+='<img src="'+v3.LSS3.src+'" border="0" alt="">';if (v3.LSS2[v4][1]!=""){v5+='</a>';}if (v3.LSS2[v4][2]!=""){v5+='<br>'+unescape(v3.LSS2[v4][2]);}if (document.layers){v3.document.open();v3.document.write(v5);v3.document.close();}else {v3.innerHTML=v5;}}

function flvFLSS2(){//v1.1
var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4=v1[1],v5=v1[2],v6,v7,v8;if (v3&&v3.LSS2){flvFLSS4(v2);if (v4==1){v6=v3.LSS7+1;if (v6>v3.LSS2.length-1){v6=0;if (v3.LSS8==0){return;}}v8=v3.LSS2[v6][0];}else {v6=v3.LSS7-1;if (v6<0){v6=v3.LSS2.length-1;if (v3.LSS8==0){return;}}v8=v3.LSS2[v6][0];}v3.LSS7=v6;if (!document.layers&&!v3.LSS5){v3.LSS3=new Image();}v3.LSS3.src=v8;flvFLSS3(v2,v6);if (v5==1){v7="flvFLSS2('"+v2+"',"+v4+","+v5+")";v3.LSS6=setTimeout(v7,v3.LSS4);}}}

function flvFLSS1(){//v1.1
// Copyright 2003-2004, Marja Ribbers-de Vroed, FlevOOware (www.flevooware.nl/dreamweaver/)
var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4,v5;if (v3){v3.LSS4=v1[1];v5=v1[2];v3.LSS8=v1[3];v3.LSS1=v1[4];v3.LSS2=new Array();for (var v6=5;v6<v1.length;v6+=3){v3.LSS2[v3.LSS2.length]=new Array(v1[v6],v1[v6+1],unescape(v1[v6+2]));}v3.LSS7=0;v3.LSS5=(navigator.userAgent.toLowerCase().indexOf("netscape6")!=-1);v3.LSS3=new Image();v3.LSS3.src=v1[5];flvFLSS3(v2,0);if (v5){v4="flvFLSS2('"+v2+"',1,"+v5+")";v3.LSS6=setTimeout(v4,v3.LSS4);}}}

// preload and swap image
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
