//>> Layers library
window.isie=(navigator.userAgent.indexOf("MSIE")!=-1);
function layerShow(strLayer) {
	if (window.isie) {document.all(strLayer).style.visibility="inherit";}
	else {document.layers[strLayer].visibility="inherit";}
}
function layerHide(strLayer) {
	if (window.isie) {return document.all(strLayer).style.visibility="hidden";}
	else {return document.layers[strLayer].visibility="hidden";}
}
//<< Layers library
//>> Scrolling library
var intScrolling=0;
var divScrollObj;
function scrollStartUp(strParent,strDiv) {
	intScrolling=1;
	scrollDoStart(strParent,strDiv);
}
function scrollStartDown(strParent,strDiv) {
	intScrolling=-1;
	scrollDoStart(strParent,strDiv);
}
function scrollDoStart(strParent,strDiv) {
	if (window.isie) {
		divScrollObj=document.all.item('div'+strDiv);
		setTimeout("scrollDoIE()", 80,"JavaScript");
	}
	else {
		divScrollObj=document.layers[strParent].layers['lay'+strDiv];
		setTimeout("scrollDoNS()", 80,"JavaScript");
	}
}
function scrollStop() {
	intScrolling=0;
}
function scrollDoIE() {
	divScrollObj.scrollTop=parseFloat(divScrollObj.scrollTop)+10*intScrolling;
	if (intScrolling!=0) setTimeout("scrollDoIE()", 80,"JavaScript");
}
function scrollDoNS() {
	if ((intScrolling==-1)&&(divScrollObj.clip.top<=divScrollObj.top)) intScrolling=0;
	divScrollObj.clip.top+=10*intScrolling;
	divScrollObj.clip.height+=10*intScrolling;
	divScrollObj.top-=10*intScrolling;
	if (intScrolling!=0) setTimeout("scrollDoNS()", 80,"JavaScript");
}
//<< Scrolling library
//>> Menu functions
function setFavorites() {
	if (window.isie) {window.external.AddFavorite(location.href, document.title);}
	else {alert("You are not using Internet Explorer. Don't forget to add www.alborada-terriers.com to your favorites.");}
}
function sendToAFriend() {
	window.open("sendtoafriend.htm", "_blank", "left=300,top=200,width=258,height=260,fullscreen=0,hotkeys=1,titlebar=0,menubar=0,toolbar=0,status=no,scrollbars=no,resizable=no");
}
function feedback() {
	window.open("feedback.htm", "_blank", "left=300,top=200,width=258,height=260,fullscreen=0,hotkeys=1,titlebar=0,menubar=0,toolbar=0,status=no,scrollbars=no,resizable=no");
}
//<< Menu functions
//>> CSS code
if (window.isie) {document.writeln('<link REL="STYLESHEET" TYPE="text/css" HREF="/view/alborada.css">');}
else {document.writeln('<link REL="STYLESHEET" TYPE="text/css" HREF="/view/alboradans.css">');}
//<< CSS code
