var loaded = false;
var agt=navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion);
var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
var is_nav4 = (is_nav && (is_major == 4));       

function pyImgLoad() {
	if (document.images && (is_nav4)) {
		// Load off images
		img1off = new Image();img1off.src = "images/buttons/py_stepsaccreditation_off.jpg";
		img2off = new Image();img2off.src = "images/buttons/py_whatAccreditation_off.jpg";
		img3off = new Image();img3off.src = "images/buttons/py_outcomesresources_off.jpg";
		img4off = new Image();img4off.src = "images/buttons/py_consultativeapp_off.jpg";
		img5off = new Image();img5off.src = "images/buttons/py_accreditationOpp_off.jpg";
		img6off = new Image();img6off.src = "images/buttons/py_providersList_off.jpg";
		img7off = new Image();img7off.src = "images/buttons/py_ratingsys_off.jpg";
		img8off = new Image();img8off.src = "images/buttons/py_outcomesInit_off.jpg";
		img9off = new Image();img9off.src = "images/buttons/py_Surveytoolbox_off.jpg";
		img10off = new Image();img10off.src = "images/buttons/py_smartforce_off.jpg";
		img11off = new Image();img11off.src = "images/buttons/py_registration_off.jpg";
		img12off = new Image();img12off.src = "images/buttons/py_bookstore_off.jpg";
		img13off = new Image();img13off.src = "images/buttons/py_newsletter_off.jpg";
		img14off = new Image();img14off.src = "images/buttons/py_ADS_off.jpg";
		img15off = new Image();img15off.src = "images/buttons/py_AL_off.jpg";
		img16off = new Image();img16off.src = "images/buttons/py_BH_off.jpg";
		img17off = new Image();img17off.src = "images/buttons/py_ECS_off.jpg";
		img18off = new Image();img18off.src = "images/buttons/py_MED_off.jpg";
		img19off = new Image();img19off.src = "images/buttons/btn_CS_off.jpg";
		img20off = new Image();img20off.src = "images/buttons/btn_PV_off.jpg";
		img21off = new Image();img21off.src = "images/buttons/btn_SVR_off.jpg";
		// Load On images
		img1on = new Image();img1on.src = "images/buttons/py_stepsaccreditation_on.jpg";
		img2on = new Image();img2on.src = "images/buttons/py_whataccreditation_on.jpg";
		img3on = new Image();img3on.src = "images/buttons/py_outcomesresources_on.jpg";
		img4on = new Image();img4on.src = "images/buttons/py_consultativeapp_on.jpg";
		img5on = new Image();img5on.src = "images/buttons/py_accreditationOpp_on.jpg";
		img6on = new Image();img6on.src = "images/buttons/py_providerslist_on.jpg";
		img7on = new Image();img7on.src = "images/buttons/py_ratingsys_on.jpg";
		img8on = new Image();img8on.src = "images/buttons/py_outcomesInit_on.jpg";
		img9on = new Image();img9on.src = "images/buttons/py_Surveytoolbox_on.jpg";
		img10on = new Image();img10on.src = "images/buttons/py_smartforce_on.jpg";
		img11on = new Image();img11on.src = "images/buttons/py_registration_on.jpg";
		img12on = new Image();img12on.src = "images/buttons/py_bookstore_on.jpg";
		img13on = new Image();img13on.src = "images/buttons/py_newsletter_on.jpg";
		img14on = new Image();img14on.src = "images/buttons/py_ADS_on.jpg";
		img15on = new Image();img15on.src = "images/buttons/py_AL_on.jpg";
		img16on = new Image();img16on.src = "images/buttons/py_BH_on.jpg";
		img17on = new Image();img17on.src = "images/buttons/py_ECS_on.jpg";
		img18on = new Image();img18on.src = "images/buttons/py_MED_on.jpg";
		img19on = new Image();img19on.src = "images/buttons/btn_CS_on.jpg";
		img20on = new Image();img20on.src = "images/buttons/btn_PV_on.jpg";
		img21on = new Image();img21on.src = "images/buttons/btn_SVR_on.jpg";
		return (loaded = true);
	}
}