function popup(copyURL,newwidth,newheight){
        for     (i=0; i < 15; i++) {
                ++newwidth;
                };

        for     (i=0; i < 15; i++ ) {
                ++newheight;
                };
        window.open(copyURL, 'thebarWin', 'toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=yes,width=' + newwidth + ',height=' + newheight);
};

function SendEmail() {
	var toaddy = 'danny@tripnet.com';
	var subject = 'BRP Feedback';
	var mailer = 'mailto:' + toaddy + '?subject=' + subject + '&body=' + 
'Name%20is\n\t' + document.jsform.visitorname.value + 
'\n\n' + 
'Email%20is\n\t' + document.jsform.email.value + 
'\n\n' + 
'Message:\n\n' + document.jsform.message.value +
'\n\n';
	parent.location = mailer;
	window.open("mailresponse.html", 'response', 'toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,width=50,height=50'");
};

current_picture = "";
last_picture = "";
function rollover_image (img_name, width, height) {
        if (navigator.appVersion.charAt(0) >=3) {
        img_prefix = "images/" + img_name;
        this.rolloff_img = new Image (width, height);
        this.rolloff_img.src = img_prefix + "-bar-y.gif";
        this.rollover_img = new Image (width, height);
        this.rollover_img.src = img_prefix +"-bar-w.gif";
        }
}

function make_rollover_image (img_name, width, height) {
        rollover [img_name] = new rollover_image (img_name, width, height);
}

function rollover (img_name) {
        if (navigator.appVersion.charAt(0) >= 3) {
        current_picture = img_name;
        if (current_picture!=last_picture) {
                 document [current_picture].src = rollover [current_picture].rollover_img.src;
                if (last_picture != "") {
                        document.images [last_picture].src = rollover [last_picture].rolloff_img.src;
                }
                last_picture = current_picture;
        }
        }

}

function rolloff () {
        if (navigator.appVersion.charAt(0) >=3) {
        if (current_picture != "") {
                document.images [current_picture].src = rollover [current_picture].rolloff_img.src;
        }
        current_picture = "";
        last_picture = "";
        }
}

make_rollover_image ("cat", 110, 20);
make_rollover_image ("lab", 110, 20);
make_rollover_image ("shop", 110, 20);
make_rollover_image ("museum", 110, 20);
make_rollover_image ("info", 110, 20);


