var l = new String(document.location);
var d = l.substr(0, l.lastIndexOf('/'));
var s = document.getElementById('size');
var e = document.getElementById('iesize');

function getWindowHeight()
{
	return (typeof window.innerHeight == 'number') ? window.innerHeight : ((document.documentElement && document.documentElement.clientHeight) ? document.documentElement.clientHeight : ((document.body && document.body.clientHeight) ? document.body.clientHeight : 0))
}

function getWindowWidth()
{
	return (typeof window.innerWidth == 'number') ? window.innerWidth : ((document.documentElement && document.documentElement.clientWidth) ? document.documentElement.clientWidth : ((document.body && document.body.clientWidth) ? document.body.clientWidth : 0))
}

function setSize()
{
	if (getWindowHeight() < 670 || getWindowWidth() < 925)
	{
		s.href = d + '/stylesheets/smallest.css';//'data:text/css,' + escape("@import url('" + d + "stylesheets/smallest.css');");
		if (e != null) e.href = d + '/stylesheets/iesmallest.css';//'data:text/css,' + escape("@import url('" + d + "stylesheets/smallest.css');");
	}
	else if (getWindowHeight() < 740 || getWindowWidth() < 1025)
	{
		s.href = d + '/stylesheets/smaller.css';//'data:text/css,' + escape("@import url('" + d + "stylesheets/smaller.css');");
		if (e != null) e.href = d + '/stylesheets/iesmaller.css';//'data:text/css,' + escape("@import url('" + d + "stylesheets/smallest.css');");
	}
	else
	{
		s.href = '';
		if (e != null) e.href = '';
	}
}

setSize();

function onMouseOver(sender)
{
	sender.className += ' hover';
}

function onMouseOut(sender)
{
	sender.className = sender.className.replace(' hover', '');
}
