
if (document.images)
 {
athF1_F1 = new Image(92,92); athF1_F1.src = "athF1.gif";
athF1_F2 = new Image(92,92); athF1_F2.src = "athF1_F2.gif";

chdroll_F1 = new Image(92,92); chdroll_F1.src = "chdroll.gif";
chdroll_F2 = new Image(92,92); chdroll_F2.src = "chdroll_F2.gif";

BProll_F1 = new Image(92,92); BProll_F1.src = "BProll.gif";
BProll_F2 = new Image(92,92); BProll_F2.src = "BProll_F2.gif";

lipidroll_F1 = new Image(92,92); lipidroll_F1.src = "lipidroll.gif";
lipidroll_F2 = new Image(92,92); lipidroll_F2.src = "lipidroll_F2.gif";

eyeroll_F1 = new Image(92,92); eyeroll_F1.src = "eyeroll.gif";
eyeroll_F2 = new Image(92,92); eyeroll_F2.src = "eyeroll_F2.gif";

DMroll_F1 = new Image(92,92); DMroll_F1.src = "DMroll.gif";
DMroll_F2 = new Image(92,92); DMroll_F2.src = "DMroll_F2.gif";

OAroll_F1 = new Image(92,92); OAroll_F1.src = "OAroll.gif";
OAroll_F2 = new Image(92,92); OAroll_F2.src = "OAroll_F2.gif";
 }

/* Function that swaps images. */

function di20(id, newSrc) {
    var theImage = FWFindImage(document, id, 0);
    if (theImage) {
        theImage.src = newSrc;
    }
}

/* Functions that track and set toggle group button states. */

function FWFindImage(doc, name, j) {
    var theImage = false;
    if (doc.images) {
        theImage = doc.images[name];
    }
    if (theImage) {
        return theImage;
    }
    if (doc.layers) {
        for (j = 0; j < doc.layers.length; j++) {
            theImage = FWFindImage(doc.layers[j].document, name, 0);
            if (theImage) {
                return (theImage);
            }
        }
    }
    return (false);
}



  function window_onclick() 
	{
	window.location.href = "SearchEn.htm" ;
	}

  function newWindow(fullchd2gif) 
	 {
	 fullchd2Window = window.open( fullchd2gif, 'fullchd2Win', 'width=420,height=360' )
               fullchd2Window.focus()
               }


       adImages = new Array("images/banner1.gif","images/banner2.gif","images/banner3.gif","images/banner4.gif")
        adURL = new Array("ptfriendly.com/STinfo.html","ptfriendly.com/STinfo.html","ptfriendly.com/STinfo.html","ptfriendly.com/STinfo.html")
            thisAd = 0
           imgCt = adImages.length                                                                                            

     function rotate() 
	 {
      	if (document.images) 
		 {
      		thisAd++
     		 if (thisAd == imgCt) 
			 {
        			 thisAd = 0
        			 }
       		 document.adBanner.src=adImages[thisAd]
        		 setTimeout("rotate()", 3 * 1000)
              	}
              }

       function jumpPage(newLoc)
                  {
                     newPage = newLoc.options[newLoc.selectedIndex].value

                       if  (newPage != " ")
                             {
                                 window.location.href = newPage
                                   }
                        }	


       function newLocation()  
	{
             document.location.href = "http://www." + adURL[thisAd]
             }