// CHECK BROWSER
browsok = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3)) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=3)));

// ROLLOVERS
if(browsok) {

imgs = new Array(
	"experience_grenadier",
    "apartment_corp_suites",
    "gallery",
    "floor_plans",
    "pricing",
    "application",
    "directions_contact_us"
);

for ( i = 0; i < imgs.length; i++ ) {
	document[imgs[i] + "_off"] = new Image();
	document[imgs[i] + "_off"].src = "images/ui-navigation-button-" + imgs[i] + ".gif";
    document[imgs[i] + "_on"] = new Image();
    document[imgs[i] + "_on"].src = "images/ui-navigation-button-" + imgs[i] + "-active.gif";
} // end of for loop

} // end of imgs Array

function flip_on(n) {
	if(browsok){
    imageON = document[n + "_on"].src;
    document[n].src = imageON;
    }
}

function flip_off(n){
	if(browsok){
    imageOFF = document[n + "_off"].src;
    document[n].src = imageOFF;
    }
}

function flip_arrow_on(n) {
	if(browsok){
    imageON = document[n + "_on"].src;
    document[n].src = imageON;
    document[n + "_arrow"].src = "images/nav_arrow_black.gif";
    }
}

function flip_arrow_off(n) {
	if(browsok){
    imageOFF = document[n + "_off"].src;
    document[n].src = imageOFF;
    document[n + "_arrow"].src = "images/spacer.gif";
    }
}
