//<![CDATA[
// NOTE: this script is HTML5 compliant 
// Biketraveller header functions that must load before any body section

// This function returns the current size of the browser window
function getBrowserSize(which) {
    var myWidth = 0, myHeight = 0;
    if (typeof(window.innerWidth) == 'number' ) {
        // a real browser
        myWidth = window.innerWidth;
        myHeight = window.innerHeight;
    } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
        // IE 6 or later or some other browser probably ignoring W3C standards
        myWidth = document.documentElement.clientWidth;
        myHeight = document.documentElement.clientHeight;
    } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        // the dark ages - IE 4 or similar
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
    }
    if (which == 'height') {   
        return myHeight;
    } else {
	return myWidth;
    }
}

// Copyright biketraveller.org 2010
//]]>

