window.onload=function(){
if(navigator.appName.toLowerCase().indexOf("explorer")==-1) {
	document.getElementById('container').style.width = "770px";
	if(document.getElementById('sub_menu'))
		document.getElementById('sub_menu').style.width = "auto";
	if(document.getElementById('gallery_div'))
		document.getElementById('gallery_div').style.height = "115px";
}
if(!NiftyCheck())
    return;
if((cl('bhjb.net/default.asp') || cf('net/')) || cf('adopting/') || cl('adopting/default.asp') || cl('adopting/cat_budget.asp') || cl('training.asp') || cl('neutering.asp') || cl('cat_of_the_month.asp') || cl('fun_section.asp') || cl('links.asp'))
	Rounded("div#textBox h3","#DBEEFD","#2291FF","small");
RoundedTop("div#container","#FFF","#9CD2FA");
RoundedBottom("div#container","#FFF","#9CD2FA");
RoundedTop("ul#nav li","transparent","#DBEEFD");
if(cl('adopting') || cl('breeds') || (cf('information/') || cl('information/')))
	Rounded("li#sub_nav li","transparent","#9CD2FA","small");

if((cl('breeds/') && !cl('breeds/default.asp') && !cf('breeds/'))) {
	Rounded("div#subtitleBox","#DBEEFD","#2291FF","small");
	Rounded("div#minipics span","#DBEEFD","#FFF");
}
if(cf('breeds/') || cl('breeds/default.asp'))
	Rounded("div#subtitleBox","#DBEEFD","#2291FF","small");

if(cf('information/') || cl('information/default.asp') || cl('bhjb.net/default.asp') || cf('net/'))
	Rounded("div#minipics span","#DBEEFD","#FFF");
	
if(cl('fun_section.asp') || (cl('bhjb.net/default.asp') || cf('net/')) || cl('cat_of_the_month.asp'))
	Rounded("div#gallery li","#DBEEFD","#FFF");
	
if(cl('accessories.asp'))
	Rounded("div#gallery2 div","#DBEEFD","#FFF");

if(cl('contact.asp')) {
	Rounded("form","#DBEEFD","#9CD2FA");
	Rounded("label","#9CD2FA","#FFF","small");
}

}

function cl(p) {
var clocation = location.href.toLowerCase();
if(clocation.indexOf(p)==-1)
	return false;
else
	return true;
}

function cf(p) {
var clocation = location.href.toLowerCase();
clocation = clocation.substr(clocation.indexOf(p),clocation.length);
if(clocation!=p)
	return false;
else
	return true;
}
