function $(){var elements=new Array();for(var i=0;i<arguments.length;i++){var element=arguments[i];if(typeof element=='string'){if(document.getElementById){element=document.getElementById(element);}else if(document.all){element=document.all(element);}}if(arguments.length==1)return element;elements.push(element);}return elements;}

var browserType=new checkBrowserType();
var osType=new checkOsType();

function checkBrowserType(){
this.IE=(navigator.userAgent.indexOf("MSIE")!=-1);this.Gecko=(navigator.userAgent.indexOf("Gecko")!=-1);this.Firefox=(navigator.userAgent.indexOf("Firefox")!=-1);this.IE6=(navigator.userAgent.indexOf("MSIE 6.")!=-1);this.IE5=(navigator.userAgent.indexOf("MSIE 5.")!=-1);this.IE50=(navigator.userAgent.indexOf("MSIE 5.0")!=-1);this.IE4=(navigator.userAgent.indexOf("MSIE 4.")!=-1);this.Opera=(navigator.userAgent.indexOf("Opera")!=-1);this.Safari=(navigator.userAgent.indexOf("Safari")!=-1);this.NC71=(navigator.userAgent.indexOf("Netscape/7.1")!=-1);this.NC70=(navigator.userAgent.indexOf("Netscape/7.0")!=-1);this.NC6=(navigator.userAgent.indexOf("Netscape/6.")!=-1);this.NC7=(navigator.userAgent.indexOf("Netscape/7.")!=-1);this.NC4=(navigator.appName.indexOf("Netscape")!=-1)&&(navigator.userAgent.indexOf("Mozilla/4.")!=-1)}

function checkOsType(){
this.Win=(navigator.appVersion.indexOf("Win")!=-1);this.Mac=(navigator.appVersion.indexOf("Mac")!=-1);this.Unix=(navigator.appVersion.indexOf("X11")!=-1)};
