/**
 * supports.js 1.0 (25-Aug-2009) (c) by Christian Effenberger. All Rights Reserved.
 * supports.js is freely distributable under the terms of an GPL-style license.

 * syntax: 
 	(css-feature == DOM syntax)
 	(css-value	 == CSS syntax)

STR=supports.style( css-feature ); e.g. "borderRadius " | "boxShadow" ...
	STR|BOL == "O"|"Ms"|"Khtml"|"Webkit"|"Moz"|"" + css-feature || false

STR=supports.value( css-feature , css-value ); e.g. "cursor","zoom-in"
	STR|BOL == ("-" + "o"|"ms"|"khtml"|"webkit"|"moz" + "-" || "") + css-value || false

STR=supports.engine;
	STR == "O"|"Ms"|"Khtml"|"Webkit"|"Moz"|""

FLT=supports.version;
STR=supports.released;

 *
**/
var supports = {version : 1.0, released : '2009-08-25 17:34:00',
	engine	: (window.opera?"O":document.all&&!window.opera?"Ms":navigator.userAgent.indexOf('WebKit')>-1?"Webkit":navigator.userAgent.indexOf('KHTML')>-1&&navigator.userAgent.indexOf('WebKit')==-1?"Khtml":navigator.userAgent.indexOf('Gecko')>-1&&window.updateCommands?"Moz":""),
	style	: function(v) {if(v&&(typeof v==='string')) {var d=this._gets(v),t=v.substr(0,1).toUpperCase()+v.substring(1); return this.engine!=""&&d.any?d.css?v:d[this.engine.toLowerCase()]?this.engine+t:false:false;} return false;}, 
	value	: function(v,a) {if(v&&a&&(typeof v==='string')&&(typeof a==='string')) {var d=this._geta(v,a); a=(a.indexOf("(")>=0?a.slice(0,a.indexOf("(")):a); return this.engine!=""&&d.any?d.css?a:d[this.engine.toLowerCase()]?'-'+this.engine.toLowerCase()+'-'+a:false:false;}return false;},
	_gets	: function(v) {var i,t,d=new Object(),s=new Array("O","Ms","Khtml","Webkit","Moz"); d["o"]=d["ms"]=d["khtml"]=d["webkit"]=d["moz"]=d["css"]=false; if(v&&(typeof v==='string')) {t=v.substr(0,1).toUpperCase()+v.substring(1); for(i=0;i<s.length;i++) {try {d[s[i].toLowerCase()]=(document.body.style[s[i]+t]!==undefined);}catch(e) {}}}try {d["css"]=(document.body.style[v]!==undefined);}catch(e) {} d["any"]=(d["css"]||d["moz"]||d["khtml"]||d["webkit"]||d["ms"]||d["o"]?true:false); return d;},
	_geta	: function(v,a) {var i,b=document.body.style[v],d=new Object(),s=new Array("o","ms","khtml","webkit","moz"); try {document.body.style[v]=a;}catch(e) {} d["o"]=d["ms"]=d["khtml"]=d["webkit"]=d["moz"]=false; d["css"]=(document.body.style[v]!==undefined&&document.body.style[v]!=''); if(!d["css"]) {for(i=0;i<s.length;i++) {try {document.body.style[v]='-'+s[i]+'-'+a;}catch(e) {} d[s[i]]=(document.body.style[v]!==undefined&&document.body.style[v]!='');}}try {document.body.style[v]=b;}catch(e) {} d["any"]=(d["css"]||d["moz"]||d["khtml"]||d["webkit"]||d["ms"]||d["o"]?true:false); return d;}
}

