// JavaScript Document

/* 
  ------------------------------------
  PVII Menu CSS Express Drop-Down Menu
  by Project Seven Development
  www.projectseven.com
  ------------------------------------
*/
function P7_ExpMenu(){ //v1.1.0.2 by PVII-www.projectseven.com
 if(navigator.appVersion.indexOf("MSIE")==-1){return;}
 var i,k,g,lg,r=/\s*p7hvr/,nn='',c,cs='p7hvr',bv='p7menubar';
 for(i=0;i<10;i++){g=document.getElementById(bv+nn);if(g){
 lg=g.getElementsByTagName("LI");if(lg){for(k=0;k<lg.length;k++){
 lg[k].onmouseover=function(){c=this.className;cl=(c)?c+' '+cs:cs;
 this.className=cl;};lg[k].onmouseout=function(){c=this.className;
 this.className=(c)?c.replace(r,''):'';};}}}nn=i+1;}
}
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_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 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];}
}


/* RDW :::This function is used to fragment an email address to hide the adderss from the spiders. The functoin concatinates the mailto code from two seperate parts in the head. Then the function is called in the body. The body is where the spam spiders are looking for the mailto code,  but that's not where it is.
*/
function email(part1, part2)
{
var part1="reed";//RDW ::: first part of address
var part2="reedwhite.net";//RDW ::: second part of the address
document.write("<a href='mailto:" + part1 + "@" + part2 +"'>" + part1 + "@" + part2 +"</a>");// RDW ::: this is the concatinated sentance

}


/* Display graphic by changing the src attribute of a specific img element
designed by the id="dynamicGraphic"

Each hypper link contains an href=" " containing the name of the new image.
The src of the <img id="dynamicGraphic" /> is exchangind with the filename
from the hyperlink

PARAMETER: thisElement - hyperlink element containing file name of a graphic */

function showGraphic(thisElement)
{
   /* Extract the href path
      - it contains the file name or the new graphic */
   var source = thisElement.getAttribute("href");
   /* get the <img /> element that is to be changed using the unique id */
   var dynamicImgElement = document.getElementById("dynamicGraphic");
   
   /* Update the src attribute of the <img /> element
      with the new graphic filename */
	  dynamicImgElement.setAttribute("src", source);
}





/* 
  ------------------------------------
SwitchIt Code by Reed White -- reed@reedwhite.net
Writen on:10-09-09
Revised on 10-09-09
  ------------------------------------




   var comic = new Array();
comic[0] = "cartoon_0001";//dancer
comic[1] = "cartoon_0002";
comic[2] = "cartoon_0003";
comic[3] = "cartoon_0004";
comic[4] = "cartoon_0005";
comic[5] = "cartoon_0006";
comic[6] = "cartoon_0007";
comic[7] = "cartoon_0008";
comic[8] = "cartoon_0009";
comic[9] = "cartoon_0010";//dancer
comic[10] = "cartoon_0011";
comic[11] = "cartoon_0012";
comic[12] = "cartoon_0013";
comic[13] = "cartoon_0014";
comic[14] = "cartoon_0015";
comic[15] = "cartoon_0016";
comic[16] = "cartoon_0017";
comic[17] = "cartoon_0018";  
comic[18] = "cartoon_0019";//dancer
comic[19] = "cartoon_0020";

var nowComic = comic[comic.length];




//onClick switch nowComic[x]=nowComic[x+1]

function switchItUp(comic[])
{
	
for(x=0; x < comic.length; x+=3)
   {
	   
	   for(x=0; x < comic.length; x=3)
         {
			 
		 }//end second for loop
	  comic[] = comic[comic.length]newComic=
	   document.write('<img src="graphic/' + comic[] + '".jpg" />');  
	   
   }//end of for loop	
	
}

//onClick switch nowComic[x]=nowComic[-1]
function switchIt(comic[])
{
	
for(x=0; x < comic.length; x+=3)
   {
	   
	   for(x=0; x < comic.length; x=3)
         {
			 
		 }//end second for loop
	   newComic=comic[]
	   document.write("<img src="graphic/" + newComic[] + ".jpg" />);  
	   
   }//end of for loop	
	
}

*/ 