/*
This is an array that is used to set background images/colors for different sections of the site.
A default background styles have been set in the CSS. There is no need to set default values for the site here.

- The listing order doesn't matter. The list will be sorted by URL in descending order. (sub-directories before parent directories)
- The 'url' must use a beginning and trailing slash.
- The 'imgSrc' and 'color' values are optional, but it is recommended that both be used.
- There should be no '#' character in the color value.
*/
section[0] = {url:'/Education/School of Medicine/', imgSrc:'/img/bg_page-gradient-blue.jpg', color:'c5dbe6'};
section[1] = {url:'/Research/', imgSrc:'/img/bg_page-gradient-blue.jpg', color:'c5dbe6'};



function whenPrinterFriendly() {
                for (var i=0;i<document.images.length;i++) {
                    document.images[i].width = document.images[i].width * 0.85;
                    document.images[i].height = document.images[i].height * 0.85;
                }
                var objs = document.getElementsByTagName('object');
                for (var j=0;j<objs.length;j++) {
                    objs[j].width = objs[j].width * 0.85;
                    var embeds = objs[j].getElementsByTagName('embed');
                    for (var k=0;k<embeds.length;k++) {
                        embeds[k].width = embeds[k].width * 0.85;
                        embeds[k].height = embeds[k].height * 0.85;
                    }
                }
                
                window.print();
                window.close();
            }