<!-- Rollover Image Script - Place within <head> tag -->

<!-- Hide from older browsers-->
function SwitchImg()
{ //start
  var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
    for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
    	store = SwitchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
    if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
        (store.indexOf('document.all[')==0 && document.all==null))
         store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
         obj = eval(store);
    if (obj != null) {
   	   switcher[keep++] = obj;
      switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
      obj.src = SwitchImg.arguments[rem+2];
  } }
  document.Data = switcher;
} //end

function RestoreImg()
{ //start
  if (document.Data != null)
    for (var rem=0; rem<(document.Data.length-1); rem+=2)
      document.Data[rem].src=document.Data[rem+1];
} //end

// end hiding contents -->



function OpenDownloadWindow(url,wid,hei)
{
        var newwid = wid + 22;
        var newhei = hei + 12;
        var msgWindow = window.open('','picture',"height="+newhei+",width="+newwid+",scrollbars=yes,toolbar=no,resizable=no");

msgWindow.location = url;
//msgWindow.location = url;

}


button1up = new Image; button1up.src = "images/randy_off.gif";
button1down = new Image; button1down.src = "images/randy_over.gif";
button2up = new Image; button2up.src = "images/wil_off.gif";
button2down = new Image; button2down.src = "images/wil_over.gif";
button3up = new Image; button3up.src = "images/dan_off.gif";
button3down = new Image; button3down.src = "images/dan_over.gif";

function MouseOverRoutine(ButtonName)
{
   if (ButtonName=="button1") {document.button1.src = button1down.src;}
   if (ButtonName=="button2") {document.button2.src = button2down.src;}
   if (ButtonName=="button3") {document.button3.src = button3down.src;}
}


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 MouseOutRoutine(ButtonName)
{
   if (ButtonName=="button1") {document.button1.src = button1up.src;}
   if (ButtonName=="button2") {document.button2.src = button2up.src;}
   if (ButtonName=="button3") {document.button3.src = button3up.src;}
}

function drawHeader()
{
    var html = "<tr><td valign=\"top\" align=\"left\" bgcolor=\"black\" width=\"100%\"><img src=\"images/ajalonlogo.jpg\"></td>" +
		       "<td valign=\"middle\" bgcolor=\"black\" width=\"155\" height=\"160\" nowrap><font color=\"#ffffff\"><p class=\"smblock\">CPR 4 is now available!</p></font>" +
		       "<a href=\"http:\/\/www.ajalon.net\/threshingfloor\/store.htm\" target=\"new\"><img src=\"images\/cpr4.jpg\" width=\"125\" height=\"125\" border=\"0\" title=\"Purchase CPR - Volume 4\" /></a></td></tr>";

   document.write(html); 
}



