/*______________
|       ______  |   U I Z E     J A V A S C R I P T     A P I
|     /      /  |   -----------------------------------------
|    /    O /   |    MODULE : Uize.Widget.Bar.Slider-x-skin Extension (version 1.1.0)
|   /    / /    |    AUTHOR : Chris van Rensburg (http://www.tomkidding.com)
|  /    / /  /| |    ONLINE : http://www.tomkidding.com/uize/uize-js-api
| /____/ /__/_| | COPYRIGHT : (c)2005-2006 Chris van Rensburg
|           |__ |   LICENSE : Distributed under the terms of the GNU General Public License
|_______________|             http://www.gnu.org/licenses/gpl.txt
*/
(function(){var _a='undefined',_b=Uize.Widget.Bar.Slider;_b.presets.Skin={html:function(){function _c(_d,_e){if(_e==null||typeof _e==_a)_e=0;return _e?('background:'+_d+';'+(_e<100?_f.getOpacityStr(_e/100):'')):'display:none;';}var _g=this,_f=Uize.Element,_h=_g.get('orientation'),_i=_h=='vertical'?1:0,_j=typeof _g.borderThickness!=_a?_g.borderThickness:5,_k=typeof _g.knobSize!=_a?_g.knobSize:15,_l=_g.getNode(),
_m=_f.getDimensions(_l),_n=['width','height'],_o=_l?[_m[_n[1-_i]],_m[_n[_i]]]:[35,280],_p=[_o[0]-_j*2,_o[1]-_j*2],_q=[_p[0],_k],_r='',_s='Uize_Widget_Bar_Slider/';if(_j>0&&_g.borderTintLevel!=100){var _t='<td><img src="[#pathToResources]'+_s+'border-h.gif" width="'+_p[1-_i]+'" height="'+_j+'" border="0" hspace="0" vspace="0"/></td>',_u='<td><img src="[#pathToResources]'+_s+'border-v.gif" width="'+_j+'" height="'+_p[_i]+'" border="0" hspace="0" vspace="0"/></td>';_r='<table border="0" cellspacing="0" cellpadding="0" style="position:absolute; left:0px; top:0px;">'+'<tr>'+'<td><img src="[#pathToResources]'+_s+'border-tl.gif" width="'+_j+'" height="'+_j+'" border="0" hspace="0" vspace="0"/></td>'+_t+'<td><img src="[#pathToResources]'+_s+'border-tr.gif" width="'+_j+'" height="'+_j+'" border="0" hspace="0" vspace="0"/></td>'+'</tr>'+'<tr>'+_u+'<td></td>'+_u+'</tr>'+'<tr>'+'<td><img src="[#pathToResources]'+_s+'border-bl.gif" width="'+_j+'" height="'+_j+'" border="0" hspace="0" vspace="0"/></td>'+_t+
'<td><img src="[#pathToResources]'+_s+'border-br.gif" width="'+_j+'" height="'+_j+'" border="0" hspace="0" vspace="0"/></td>'+'</tr>'+'</table>';}var _v='width:'+_o[1-_i]+'px; height:'+_o[_i]+'px;',_w='width:'+_p[1-_i]+'px; height:'+_p[_i]+'px;',_x='left:'+_j+'px; top:'+_j+'px;',_y='position:absolute; left:0px; top:0px; width:'+_q[1-_i]+'px; height:'+_q[_i]+'px;',_z='<div style="position:relative; left:0px; top:0px; '+_v+'">'+_r+'<div style="position:absolute; left:0px; top:0px; '+_v+' '+_c(_g.borderTintColor,_g.borderTintLevel)+'"></div>'+((_g.emptyTintLevel!=100||_g.fullTintLevel!=100)?('<img src="[#pathToResources]'+_s+'track-bg-'+_h+'.gif" style="position:absolute; '+_x+' '+_w+'" border="0" hspace="0" vspace="0"/>'):'')+'<div id="[#idPrefix]-empty" style="position:absolute; '+_x+' '+_w+' '+_c(_g.emptyTintColor,_g.emptyTintLevel)+'"></div>'+'<div id="[#idPrefix]-full" style="position:absolute; '+_x+' '+_w+' '+_c(_g.fullTintColor,_g.fullTintLevel)+'"></div>'+
'<div id="[#idPrefix]-track" style="position:absolute; background:url([#blankGif]); '+_x+' '+_w+'">'+'<div id="[#idPrefix]-knob" style="'+_y+'">'+(_g.knobTintLevel!=100?('<img src="[#pathToResources]'+_s+'knob-'+_h+'.gif" style="'+_y+'" border="0" hspace="0" vspace="0"/>'):'')+'<img src="[#blankGif]" style="'+_y+' '+_c(_g.knobTintColor,_g.knobTintLevel)+'"/>'+'</div>'+'</div>'+'</div>';return _z;}};_b.set(_b.presets.Skin);})();
