<!--
function getCopyrightDate(iStartYear, iRangeSize, separatorString)
{
	var date = new Date();	
	
	// if no start year is passed in, then use the current year
	if (iStartYear == null || iStartYear == 0 || iStartYear == "")
	{
		iStartYear = date.getFullYear();
	}
	
	// default end year to current year
	var iEndYear = date.getFullYear();
	if (iRangeSize != null && iRangeSize != "")
	{
		iEndYear = iStartYear + iRangeSize;
	}		
	
	if (iStartYear == iEndYear)
	{
		return iStartYear.toString();
	}
	else
	{
		var separator = "-";
		if (separatorString != null && separatorString != "")
			separator = separatorString;
		return iStartYear + separator + iEndYear;
	}
}

function formatTimeRange(iStart, iEnd, separatorString)
{
	
	if (iStart != null && iStart != "")
	{
		if (iEnd != null && iEnd != "")
		{
			return iStart + seperator + iEnd;
		}
		else
		{
			return IStart;
		}
	}
	else
	{
		return "";
	}
}

function include( filename ) {
    // !No description available for include. @php.js developers: Please update the function summary text file.
    // 
    // version: 905.3122
    // discuss at: http://phpjs.org/functions/include
    // +   original by: mdsjack (http://www.mdsjack.bo.it)
    // +   improved by: Legaev Andrey
    // +   improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   improved by: Michael White (http://getsprink.com)
    // +      input by: Brett Zamir (http://brett-zamir.me)
    // +   bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // %        note 1: Force Javascript execution to pause until the file is loaded. Usually causes failure if the file never loads. ( Use sparingly! )
    // %        note 2: The included file does not come available until a second script block, so typically use this in the header.
    // %        note 3: Uses global: php_js to keep track of included files
    // *     example 1: include('http://www.phpjs.org/js/phpjs/_supporters/pj_test_supportfile_2.js');
    // *     returns 1: 1
    var d = this.window.document;
    var js = d.createElementNS ? d.createElementNS('http://www.w3.org/1999/xhtml', 'script') : d.createElement('script');
    js.setAttribute('type', 'text/javascript');
    js.setAttribute('src', filename);
    js.setAttribute('defer', 'defer');
    d.getElementsByTagNameNS ? d.getElementsByTagNameNS('http://www.w3.org/1999/xhtml', 'head')[0].appendChild(js) : d.getElementsByTagName('head')[0].appendChild(js);

    // save include state for reference by include_once
    var cur_file = {};
    cur_file[this.window.location.href] = 1;

    // BEGIN REDUNDANT
    this.php_js = this.php_js || {};
    // END REDUNDANT
    if (!this.php_js.includes) {
        this.php_js.includes = cur_file;
    }
    if (!this.php_js.includes[filename]) {
        this.php_js.includes[filename] = 1;
    } else {
        this.php_js.includes[filename]++;
    }

    return this.php_js.includes[filename];
}
