/*////////////////////////////////////////////////////////////////////////////////*/
<!--
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 preloader(){
     // counter
		 var i = 0;
     // create object
		 imageObj = new Image();
     // set image list
		 images = new Array();
		 images[0]="images/menu/bioB.gif"
		 images[1]="images/menu/servicesB.gif"
		 images[2]="images/menu/galleryB.gif"
		 images[3]="images/menu/hintsB.gif"
		 images[4]="images/menu/testimonialsB.gif"
		 images[5]="images/menu/questionsB.gif"
     // start preloading
		 for(i=0; i<=5; i++){
		 		imageObj.src=images[i];
				//alert(images[i])
		 }
}
/*/////////////////////////////////////////////////////////////////////////////////////////////////*/

/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

var timer_id;
function scroll_iframe(frm,inc,dir) {
  if (timer_id) clearTimeout(timer_id);
  if (window.frames[frm]) {
    if (dir == "v") window.frames[frm].scrollBy(0, inc);
    else window.frames[frm].scrollBy(inc, 0);
    timer_id = setTimeout("scroll_iframe('" + frm + "'," + inc + ",'" + dir + "')", 20);
  }
}

function stopScroll() { if (timer_id) clearTimeout(timer_id); }

/*/////////////////////////////////////////////////////////////////////////////////////////////////*/
// JavaScript Document
// START FLASH CODE
function addFlash(){
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="770" HEIGHT="230">');
		document.write('<param name="movie" value="includes/header.swf">');
		document.write('<param name="quality" value="high">');
		document.write('<param name="scale" value="noscale">');
		document.write('<param name="wmode" value="transparent">');
		document.write('<param name="bgcolor" value="#FFFFFF">');
		document.write('<embed src="includes/header.swf" bgcolor="#FFFFFF" wmode="transparent" quality="high" scale="noscale" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="770" height="230">');
		document.write('</embed>');
		document.write('</object>');
}
/*/////////////////////////////////////////////////////////////////////////////////////////////////*/
var ajax = new AJAX_HANDLER();
function contactSend()
{
	if (!valueTest('Name', 'Subject', 'Text')) return;
	if (!emailFilter.test(get('Email').value))
	{
		alert('Please enter a valid email address');
		get('Email').focus();
		return;
	}
	get('contact_form').submit();
}

function showDogInfo(img, dogID, uniqueID)
{
	ajax.handler.onreadystatechange = function() {
		if (ajax.ok()) {
			get('main_image_' + uniqueID).src = img.src;
			get('main_title_' + uniqueID).innerHTML = ajax.XML.getElementsByTagName('name')[0].firstChild.data + ':';
			get('main_desc_' + uniqueID).innerHTML = ajax.XML.getElementsByTagName('desc')[0].firstChild.data;
		}
	};
	ajax.request('POST', 'do=get_dog_info&dogid=' + dogID, 'get_dog_info.php');
}

function showToolTip(src, objID)
{
	var o = get(objID);
	o.style.display = 'block';
	o.style.left = mouseX + 10 + 'px';
	o.style.top = mouseY + 10 + 'px';
	src.onmouseout = function() {
		o.style.display = 'none';
	};
}
function noRightClick()
{
	document.oncontextmenu = function() { return false; };
}