<!--
// show testimony layer
function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
    if(document.layers)	   //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all)	// IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
    }
}

// popup window
function goPopupScroll(url,wdth,hght) {
window.open(url,'popupScroll','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=' + wdth + ',height=' + hght +',framemargin=0 leftmargin=0 topmargin=0 marginwidth=0 marginheight=0');
}

// success story submission validation BEFORE upload of image
function chkSuccessSubmission(frmIn)	{
	
	var errmsg = 'Please fill in the following fields\n';
	var flgPublished;
	flgPublished = false;
	with(frmIn)	
	{
		
		if(strPetName.value=='') errmsg += 'Your pet\'s name\n';
		if(strStory.value=='') errmsg += 'Your success story\n';
		for (var x = 0; x < 3; x++){
			
			if(publish[x].checked) flgPublished = true;
		}
		if (flgPublished==false) errmsg += 'Your permission to publish\n';
	}
	
	if(errmsg != 'Please fill in the following fields\n')	
	{
		alert(errmsg);
	}
	else 
	{
		// Submit form...
		frmIn.submit();
	}
}

function showText(elemid,value) {
	document.getElementById(elemid).innerHTML=value;
}

var t;

function openPopNav(navId) {
    stoptimeout(t);
    if (document.layers)	   //NN4+
        document.layers[navId].visibility = "show";
    else if (document.getElementById)	  //gecko(NN6) + IE 5+
        document.getElementById(navId).style.visibility = "visible";
    else if (document.all)	// IE 4
        document.all[navId].style.visibility = "visible";
}

function closePopNav(navId) {
    stoptimeout(t);
    if (document.layers)	   //NN4+
        document.layers[navId].visibility = "hide";
    else if (document.getElementById)	  //gecko(NN6) + IE 5+
        document.getElementById(navId).style.visibility = "hidden";
    else if (document.all)	// IE 4
        document.all[navId].style.visibility = "hidden";
}

function popNavItemMOver(menuItemId, popNavId) {
    document.body.style.cursor = 'pointer';
    IE6BgHover(menuItemId);
    openPopNav(popNavId);
}

function popNavItemMOut(menuItemId, popNavId) {
    IE6BgHoverOff(menuItemId);
    timeout(popNavId);
    document.body.style.cursor = 'auto';
}

function IE6BgHover(d_name) {
    if (navigator.appName.indexOf('Microsoft') != -1) 
    {
        var thestyle = eval('document.all.' + d_name + '.style');
        if (thestyle.backgroundColor = "#008584")
            thestyle.backgroundColor = "#6fbdbd";
    }
    else 
    {
        var obj = document.getElementById(d_name);
        if (obj.style.backgroundColor = "#008584")
            obj.style.backgroundColor = "#6fbdbd";
    }
}

function IE6BgHoverOff(d_name) {
    if (navigator.appName.indexOf('Microsoft') != -1) {
        var thestyle = eval('document.all.' + d_name + '.style');
        if (thestyle.backgroundColor = "#33bebd") {
            thestyle.backgroundColor = "#33a3a1";
        }
    }
    else {
        var obj = document.getElementById(d_name);
        if (obj.style.backgroundColor = "#33bebd") {
            obj.style.backgroundColor = "#33a3a1";
        }
    }

}

function timeout(szDivID) {
    t = setTimeout("HideOpenMenus('" + szDivID + "')", 400);
}
function stoptimeout() {
    clearTimeout(t);
}

function HideOpenMenus(szDivID) {
    var obj = document.getElementById(szDivID);
    obj.style.visibility = 'hidden';
}


function showhidetext(divtoShow,swftoshow,imgtoshow)
{
    //hide all the divs
    if (document.getElementById)	  //gecko(NN6) + IE 5+
    {
        document.getElementById("copy1").style.display = "none";
        document.getElementById("copy2").style.display = "none";
        document.getElementById("copy3").style.display = "none";
        document.getElementById("copy4").style.display = "none";
        document.getElementById("copy5").style.display = "none";
        document.getElementById("copy6").style.display = "none";
        
        document.getElementById("swf1").style.display = "none";
        document.getElementById("swf2").style.display = "none";
        document.getElementById("swf3").style.display = "none";
        document.getElementById("swf4").style.display = "none";
        
        document.getElementById("b1").src= "/nl/cat/actilea/images/b1.gif"; 
        document.getElementById("b2").src= "/nl/cat/actilea/images/b2.gif"; 
        document.getElementById("b3").src= "/nl/cat/actilea/images/b3.gif"; 
        document.getElementById("b4").src= "/nl/cat/actilea/images/b4.gif"; 
     }   
     
   //show the relevant divs
   document.getElementById(divtoShow).style.display = "inline"       
   document.getElementById(swftoshow).style.display = "inline" 
   document.getElementById(imgtoshow).src = "/nl/cat/actilea/images/"+imgtoshow +"_on.gif";     

    try{   
    getMovie("Object1").StopPlay();
    getMovie("Object2").StopPlay();
    getMovie("Object3").StopPlay();
    getMovie("Object1").Rewind();
    getMovie("Object2").Rewind();
    getMovie("Object3").Rewind();
   
   if(swftoshow=="swf2")
        getMovie("Object1").Play();
   if(swftoshow=="swf3")
        getMovie("Object2").Play();
   if(swftoshow=="swf4")
        getMovie("Object3").Play();
        }catch(Error){}
}

function getMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  } else {
    return document[movieName]
  }
}

// -->