

// JavaScript Document
$(document).ready(function()
{

		var height = $("body").outerHeight(true);
	
		var ie = false;
		
		var viewportwidth;
		var viewportheight;
		
		// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
		if (typeof window.innerWidth != 'undefined')
		{
			viewportwidth = window.innerWidth;
			viewportheight = window.innerHeight;
		}
		
		// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
		else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0)
		{
			viewportwidth = document.documentElement.clientWidth;
			viewportheight = document.documentElement.clientHeight;
			ie = true;
		}
		
		// older versions of IE
		else
		{
			viewportwidth = document.getElementsByTagName('body')[0].clientWidth;
			viewportheight = document.getElementsByTagName('body')[0].clientHeight;
			ie = true;
		}
		
		
			if ( ie == true )
			{
								$("head").append('<style type="text/css"></style><!--[if lte IE 6]><style type="text/css">#footer_container {position: absolute; right: auto; bottom: auto; left: 0px; top: expression( ( 0 - footer_container.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + "px" );} </style><![endif]--><!--[if IE 7]><style type="text/css">#footer_container {position: fixed; left: 0px; bottom: 0px;}</style><![endif]--><!--[if gt IE 7]><style type="text/css">#footer_container {position: fixed; left: 0px; bottom: 0px;}</style><![endif]-->');
			}
			else
			{
				$("#footer_container").css({'position': 'fixed', 'bottom': '0px', 'z-index': '99'});
			}
		
		

});