//Copyright (C) 2009 WUI Labs. All rights reserved

FOOTER_EXCLUDE_HOME = 0;
FOOTER_EXCLUDE_DOWNLOAD = 1;
FOOTER_EXCLUDE_ORDER = 2;
FOOTER_EXCLUDE_CONTACT = 3;



var _IE, _GE, _OP, _SA;

var ua = navigator.userAgent;
   
if( _OP = /Opera/.test(ua) )
   ;
else if( _SA = /Safari|Konqueror/.test(ua) )
   ;    
else if( _GE = /Gecko/.test(ua) )
   ;
else if( /MSIE/.test(ua) )
{
	_IE = Number( ua.match(/MSIE ([^;]+)/)[1] );
}




onload = function()
{
	
	//Puts in png graident.
   //When IE 6 support is dropped, put attachment directly in CSS and get rid
	if( ! _IE || _IE > 6 )
	{
	}
	
	
	var ks = document.getElementsByTagName("li");	
	
	if( _IE || _OP )
	{
		for(var i = 0; i < ks.length; ++i)
		{
			if( /\bpic\b/.test(ks[i].className) )
			{
			   ks[i].style.paddingLeft = "5px";
			   //alert(_IE);
			}
		}
	}
	
	if( _SA )
	{
		//Safari sometimes adds padding to table for some reason
		//This forcibly removes it
		var tmenu = document.getElementById("tmenu");
	
		if( tmenu )
		{
			tmenu.style.padding = 0;
		}
	}
}




