/* JavaScript file for including miscellaneous grid.css files dependent on the window size */

function initMultiLayout() {

	var innerWidth = Position.getWindowSize().width;

    /* 1024 x 768 */
	if (innerWidth <= 996) 
	{
	    stylesheet = '~/css/core/grid.css';
	}
	/* 1280 x 1024 (768) */
    else if (innerWidth <= 1252) 
	{
	    stylesheet = '~/css/core/grid_1280.css';
	}
	/* 14000 x 1280 */
	else
	{
	    stylesheet = '~/css/core/grid_1400.css';
	}
	
	document.writeln('<style type="text/css"><!-- @import url(' + stylesheet + '); --> </style>');
}

