function preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.p) d.p=new Array();
  var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

function swapImgRestore() { //v3.0
 var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function 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=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function swapImage() { //v3.0
 var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
  if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function topstate()
{
    var div;
    
    div =
    
	   "<h1 align=\"center\">" +
        "Divine <a href=\"maltesebreeders.html\">Maltese Breeders</a> " +
        "of Quality <a href=\"maltesepuppies.html\">Maltese Puppies</a> " +
        "and Champion <a href=\"maltesechampions.html\">Maltese Show Dogs</a>" +
	   "</h1>";

document.write(div);
}
function drawStars()
{
    var div;
    
    div =
	   "<tr>" +
        "<td align=\"center\" valign=\"middle\" class=\"star\">" +
           "*******************************************************" +
        "</td>" +
      "</tr>";

document.write(div);
}
function updated(date)
{
    var div;
    
    div =
	   "<tr>" +
        "<td align=\"center\" valign=\"middle\" class=\"star\">" +
           "*******************************************************" +
        "</td>" +
      "</tr>" +

      "<tr>" +
       "<td align=\"center\" class=\"proud\">" +
           "Angie and Larry Stanberry<br />" +
           "<a href=\"mailto:Divinemalt@aol.com\">" +
            "Divinemalt@aol.com</a><br />" +
            "(985) 386-7877 <br />" +
           "Updated " + date +
        "</td>" +
      "</tr>" +

	   "<tr>" +
        "<td align=\"center\" valign=\"middle\" class=\"star\">" +
           "*******************************************************" +
        "</td>" +
      "</tr>";

document.write(div);
}
function contact()
{
    var div;
    
    div =
	   "<tr>" +
        "<td align=\"center\" valign=\"middle\" class=\"star\">" +
           "*******************************************************" +
        "</td>" +
      "</tr>" +

      "<tr>" +
       "<td align=\"center\" class=\"proud\">" +
           "Angie and Larry Stanberry<br />" +
           "<a href=\"mailto:Divinemalt@aol.com\">" +
            "Divinemalt@aol.com</a><br />" +
            "(985) 386-7877 Home<br />" +
            "(985) 640-7035 Cell" +
        "</td>" +
      "</tr>";

document.write(div);
}
function copyright()
{
    var div;
    
    div =
	   "<p align=\"center\" class=\"copyright\">" +
	   "©Copyright Divine Maltese <br />" +
	   "Do not duplicate or distribute in any form." +
	   "</p>" +

	   "<p align=\"center\">" +
	   "<a href=\"http://www.majestydesigns.com/\" target=\"_blank\">" +
	   "<img src=\"images/logopuppypage.jpg\" border=\"0\" /></a>" +
	   "</p>" +
	   
	   "<p align=\"center\">" +
	   "<img src=\"images/spacer.gif\" height=\"15\" width=\"5\">" +
	   "</p>" ;

document.write(div);
}
function bottomNav(page)
{
	var home		= "<a href=\"index.html\" class=\"navbar\">Home</a>";
	var about	    = "<a href=\"maltesebreeders.html\" class=\"navbar\">About Divine Maltese Breeders</a>";
	var puppies	    = "<a href=\"maltesepuppiesavailable.html\" class=\"navbar\">Maltese Puppies</a>";
	var cost	    = "<a href=\"maltesepuppycost.html\" class=\"navbar\">Maltese Puppy Cost</a>";
	var awards		= "<a href=\"malteseawards.html\" class=\"navbar\">Divine Awards</a>";
	var champions	= "<a href=\"maltesechampions.html\" class=\"navbar\">Maltese Champions</a>";
	var pedigrees	= "<a href=\"maltesepedigrees.html\" class=\"navbar\">Maltese Pedigrees</a>";
	var standard	= "<a href=\"MalteseStandard.html\" class=\"navbar\">Maltese Standard</a>";
	var information	= "<a href=\"maltesepuppyinformation.html\" class=\"navbar\">Maltese Puppy Information</a>";
	var care		= "<a href=\"maltesepuppycare.html\" class=\"navbar\">Maltese Puppy Care</a>";
	var album		= "<a href=\"maltesepuppyalbum.html\" class=\"navbar\">Maltese Puppy Album</a>";
	var sitemap		= "<a href=\"maltesesitemap.html\" class=\"navbar\">Maltese Sitemap</a>";
	
	switch(page)
	{
		case "Home":
			home = page;
			break;
		case "About Divine Maltese Breeders":
			about = page;
			break;
		case "Maltese Puppies":
			puppies = page;
			break;
		case "Maltese Puppy Cost":
			cost = page;
			break;
		case "Divine Awards":
			awards = page;
			break;
		case "Maltese Champions":
			champions = page;
			break;
		case "Divine Pedigrees":
			pedigrees = page;
			break;
		case "Maltese Standard":
			standard = page;
			break;
		case "Maltese Puppy Information":
			information = page;
			break;
		case "Maltese Puppy Care":
			care = page;
			break;
		case "Divine Family Album":
			album = page;
			break;
		case "Maltese Sitemap":
			sitemap = page;
			break;
	}

	var tables =

  "<tr>" +
   "<td>" +
    "<table width=\"100%\">" +
      "<tr>" +
        "<td align=\"center\" valign=\"middle\" class=\"star\">" +
           "*******************************************************" +
        "</td>" +      
      "</tr>" +

     "<tr>" +
      "<td align=\"center\" class=\"activepage\" width=\"100%\">" +
       " " + home + " " +
        "<span class=\"pipe\">|</span>" +
       " " + about + " " +
        "<span class=\"pipe\">|</span>" +
       " " + puppies +
        "<span class=\"pipe\">|</span>" +
       " " + cost +
      "</td>" +
     "</tr>" +
     
     "<tr>" +
      "<td align=\"center\" class=\"activepage\" width=\"100%\">" +
       " " + awards + " " +
        "<span class=\"pipe\">|</span>" +
       " " + champions + " " +
        "<span class=\"pipe\">|</span>" +
       " " + pedigrees + " " +
        "<span class=\"pipe\">|</span>" +
       " " + standard +
      "</td>" +
     "</tr>" +
     
     "<tr>" +
      "<td align=\"center\" class=\"activepage\" width=\"100%\">" +
       " " + information + " " +
        "<span class=\"pipe\">|</span>" +
       " " + care + " " +
        "<span class=\"pipe\">|</span>" +
       " " + album + " " +
        "<span class=\"pipe\">|</span>" +
       " " + sitemap +
       
      "</td>" +
     "</tr>" +
     
      "<tr>" +
        "<td><img src=\"images/spacer.gif\" height=\"4\"></td>" +      
      "</tr>" +
      
      "<tr>" +
        "<td align=\"center\" valign=\"middle\" class=\"star\">" +
           "*******************************************************" +
        "</td>" +      
      "</tr>" +
      
    "</table>" +
   "</td>" +
  "</tr>";

document.write(tables);
}
function puppyCareNav(page)
{
	var tips		= "<a href=\"maltesepuppycare.html\" class=\"pctoc\">Puppy Care & Tips - Home</a>";
	var maltese		= "<a href=\"maltese.html\" class=\"pctoc\">The Maltese</a>";
	var coat	    = "<a href=\"maltesecoat.html\" class=\"pctoc\">The Maltese Coat</a>";
	var standard	= "<a href=\"maltesepuppystandard.html\" class=\"pctoc\">Maltese Standard</a>";
	var groom	    = "<a href=\"maltesegrooming.html\" class=\"pctoc\">Grooming Your Maltese Puppy</a>";
	var stage		= "<a href=\"maltesepuppystages.html\" class=\"pctoc\">Maltese Developmental Stages</a>";
	var stain	    = "<a href=\"maltesestaining.html\" class=\"pctoc\">Eye, Tear, and Urine Staining</a>";
	var proof	    = "<a href=\"maltesepuppyproofing.html\" class=\"pctoc\">Puppy Proofing Your Home</a>";
	var housebreak	= "<a href=\"maltesehousebreaking.html\" class=\"pctoc\">Housebreaking Your Maltese</a>";
	var care	    = "<a href=\"maltesecaringfor.html\" class=\"pctoc\">Caring for Your Maltese Puppy</a>";
	var chew		= "<a href=\"maltesechewing.html\" class=\"pctoc\">Breaking the Chewing Habit</a>";
	var special		= "<a href=\"maltesespecialinstructions.html\" class=\"pctoc\">Special Instructions for Your Puppy</a>";
	var kennel		= "<a href=\"maltesewhykennel.html\" class=\"pctoc\">Why Kennel Your Maltese</a>";
	var feed		= "<a href=\"maltesepuppyfeeding.html\" class=\"pctoc\">Feeding Your Maltese Puppy</a>";
	var crate1	    = "<a href=\"maltesecratetrain1.html\" class=\"pctoc\">Crate Training, by Doreen Malone</a>";
	var food	    = "<a href=\"maltesepuppybadfoods.html\" class=\"pctoc\">Foods Your Maltese Should NOT Eat!</a>";
	var crate2	    = "<a href=\"maltesecratetrain2.html\" class=\"pctoc\">Crate Training, by Midwest Homes for Pets</a>";
	var aid		    = "<a href=\"maltesepuppyfirstaid.html\" class=\"pctoc\">First Aid for Your Maltese Puppy</a>";
	var crate3	    = "<a href=\"maltesecratetrain3.html\" class=\"pctoc\">The Dog Crate and Your New Puppy</a>";
	
	switch(page)
	{
		case "Puppy Care & Tips - Home":
			tips = page;
			break;
		case "The Maltese Coat":
			coat = page;
			break;
		case "The Maltese":
			maltese = page;
			break;
		case "Grooming Your Maltese Puppy":
			groom = page;
			break;
		case "Maltese Standard":
			standard = page;
			break;
		case "Eye, Tear, and Urine Staining":
			stain = page;
			break;
		case "Maltese Developmental Stages":
			stage = page;
			break;
		case "Housebreaking Your Maltese":
			housebreak = page;
			break;
		case "Puppy Proofing Your Home":
			proof = page;
			break;
		case "Breaking the Chewing Habit":
			chew = page;
			break;
		case "Caring for Your Maltese Puppy":
			care = page;
			break;
		case "Why Kennel Your Maltese":
			kennel = page;
			break;
		case "Special Instructions for Your Puppy":
			special = page;
			break;
		case "Crate Training, by Doreen Malone":
			crate1 = page;
			break;
		case "Feeding Your Maltese Puppy":
			feed = page;
			break;
		case "Crate Training, by Midwest Homes for Pets":
			crate2 = page;
			break;
		case "Foods Your Maltese Should NOT Eat!":
			food = page;
			break;
		case "The Dog Crate and Your New Puppy":
			crate3 = page;
			break;
		case "First Aid for Your Maltese Puppy":
			aid = page;
			break;
	}

	var tables =

  "<tr>" +
    "<td align=\"center\">" +
      "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">" +
      
        "<tr>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + tips + " " + "</td>" +
          "<td><img src=\"images/spacer.gif\" width=\"100\" height=\"2\" /></td>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + coat + " " + "</td>" +
        "</tr>" +
        
        "<tr>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + maltese + " " + "</td>" +
          "<td><img src=\"images/spacer.gif\" width=\"100\" height=\"2\" /></td>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + groom + " " + "</td>" +
        "</tr>" +
        
        "<tr>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + standard + " " + "</td>" +
          "<td><img src=\"images/spacer.gif\" width=\"100\" height=\"2\" /></td>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + stain + " " + "</td>" +
        "</tr>" +
        
        "<tr>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + stage + " " + "</td>" +
          "<td><img src=\"images/spacer.gif\" width=\"100\" height=\"2\" /></td>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + housebreak + " " + "</td>" +
        "</tr>" +
        
        "<tr>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + proof + " " + "</td>" +
          "<td><img src=\"images/spacer.gif\" width=\"100\" height=\"2\" /></td>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + chew + " " + "</td>" +
        "</tr>" +
        
        "<tr>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + care + " " + "</td>" +
          "<td><img src=\"images/spacer.gif\" width=\"100\" height=\"2\" /></td>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + kennel + " " + "</td>" +
        "</tr>" +
        
        "<tr>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + special + " " + "</td>" +
          "<td><img src=\"images/spacer.gif\" width=\"100\" height=\"2\" /></td>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + crate1 + " " + "</td>" +
        "</tr>" +
        
        "<tr>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + feed + " " + "</td>" +
          "<td><img src=\"images/spacer.gif\" width=\"100\" height=\"2\" /></td>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + crate2 + " " + "</td>" +
        "</tr>" +
        
        "<tr>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + food + " " + "</td>" +
          "<td><img src=\"images/spacer.gif\" width=\"100\" height=\"2\" /></td>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + crate3 + " " + "</td>" +
        "</tr>" +
        
        "<tr>" +
          "<td align=\"center\"><img src=\"images/galaxybullet.jpg\" /></td>" +
          "<td class=\"pctoc\">" + " " + aid + " " + "</td>" +
          "<td><img src=\"images/spacer.gif\" width=\"100\" height=\"2\" /></td>" +
          "<td><img src=\"images/spacer.gif\" width=\"1\" height=\"2\" /></td>" +
          "<td><img src=\"images/spacer.gif\" width=\"100\" height=\"2\" /></td>" +
        "</tr>" +
        
      "</table>" +
    "</td>" +
  "</tr>";

document.write(tables);
}

