
var ease = new Array('','easeOutBack','easeOutBounce');

$(function(){
$("*[class]").each(function(){
var c = $(this).attr("class");

if(c.match(/lh(\d.*?)px/)){ $(this).css({ lineHeight:RegExp.$1+'px' }); }
if(c.match(/lh(\d.*?)pr/)){ $(this).css({ lineHeight:RegExp.$1+'%' }); }

if(c.match(/ti(\d.*?)px/)){ $(this).css({ textIndent:RegExp.$1+'px' }); }

if(c.match(/fs(\d.*?)pt/)){ $(this).css({ fontSize:RegExp.$1+'pt' }); }
if(c.match(/fs(\d.*?)pr/)){ $(this).css({ fontSize:RegExp.$1+'%' }); }

if(c.match(/m(\d.*?)px/)){ $(this).css({ margin:RegExp.$1+'px' }); }
if(c.match(/mt(.*?)px/)){ $(this).css({ marginTop:RegExp.$1+'px' }); }
if(c.match(/mb(.*?)px/)){ $(this).css({ marginBottom:RegExp.$1+'px' }); }
if(c.match(/ml(.*?)px/)){ $(this).css({ marginLeft:RegExp.$1+'px' }); }
if(c.match(/mr(.*?)px/)){ $(this).css({ marginRight:RegExp.$1+'px' }); }
if(c.match(/mtb(\d.*?)px/)){ $(this).css({ marginTop:RegExp.$1+'px', marginBottom:RegExp.$1+'px' }); }
if(c.match(/mlr(\d.*?)px/)){ $(this).css({ marginLeft:RegExp.$1+'px', marginRight:RegExp.$1+'px' }); }

if(c.match(/p(\d.*?)px/)){ $(this).css({ padding:RegExp.$1+'px' }); }
if(c.match(/pt(\d.*?)px/)){ $(this).css({ paddingTop:RegExp.$1+'px' }); }
if(c.match(/pb(\d.*?)px/)){ $(this).css({ paddingBottom:RegExp.$1+'px' }); }
if(c.match(/pl(\d.*?)px/)){ $(this).css({ paddingLeft:RegExp.$1+'px' }); }
if(c.match(/pr(\d.*?)px/)){ $(this).css({ paddingRight:RegExp.$1+'px' }); }
if(c.match(/ptb(\d.*?)px/)){ $(this).css({ paddingTop:RegExp.$1+'px', paddingBottom:RegExp.$1+'px' }); }
if(c.match(/plr(\d.*?)px/)){ $(this).css({ paddingLeft:RegExp.$1+'px', paddingRight:RegExp.$1+'px' }); }

if(c.match(/bs(\d.*?)px/)){ $(this).css({ border:RegExp.$1+'px', borderStyle:'solid' }); }
if(c.match(/bst(\d.*?)px/)){ $(this).css({ borderTop:RegExp.$1+'px', borderTopStyle:'solid' }); }
if(c.match(/bsb(\d.*?)px/)){ $(this).css({ borderBottom:RegExp.$1+'px', borderBottomStyle:'solid' }); }
if(c.match(/bsl(\d.*?)px/)){ $(this).css({ borderLeft:RegExp.$1+'px', borderLeftStyle:'solid' }); }
if(c.match(/bsr(\d.*?)px/)){ $(this).css({ borderRight:RegExp.$1+'px', borderRightStyle:'solid' }); }

if(c.match(/bdt(\d.*?)px/)){ $(this).css({ borderTop:RegExp.$1+'px', borderTopStyle:'dotted' }); }
if(c.match(/bdb(\d.*?)px/)){ $(this).css({ borderBottom:RegExp.$1+'px', borderBottomStyle:'dotted' }); }
if(c.match(/bdl(\d.*?)px/)){ $(this).css({ borderLeft:RegExp.$1+'px', borderLeftStyle:'dotted' }); }
if(c.match(/bdr(\d.*?)px/)){ $(this).css({ borderRight:RegExp.$1+'px', borderRightStyle:'dotted' }); }
if(c.match(/bd(\d.*?)px/)){ $(this).css({ border:RegExp.$1+'px', borderStyle:'dotted' }); }

if(c.match(/fc_(.*?)\b|cl_(.*?)$/)){ $(this).css({ color:RegExp.$1 }); }
if(c.match(/bc_(.*?)\b|bc_(.*?)$/)){ $(this).css({ backgroundColor:RegExp.$1 }); }

if(c.match(/bg\[(.*?),(.*?),(.*?),(.*?)\]/)){
var r = RegExp.$2;
if(r == 'n' || !r){ r = 'no-repeat'; }
else if(r == 'x'){ r = 'repeat-x'; }
else if(r == 'y'){ r = 'repeat-y'; }
$(this).css({
backgroundImage:'url(image/'+RegExp.$1+')',
backgroundPosition:RegExp.$4+'px '+RegExp.$3+'px',
backgroundRepeat:r
});
}

if(c.match(/ov(\d.*?)pr/)){ $(this).css({ display:"block" }); $(this).opOver(1,RegExp.$1/100,200,500); }

if(c.match(/rf(\d.*?)pr/)){ $(this).reflect({ height:RegExp.$1/100, opacity:.5 }); }


if(c.match(/rdt(\d.*?)px/)){ $(this).corner('Round '+RegExp.$1+'px top'); }
if(c.match(/rdl(\d.*?)px/)){ $(this).corner('Round '+RegExp.$1+'px left'); }
if(c.match(/rdr(\d.*?)px/)){ $(this).corner('Round '+RegExp.$1+'px right'); }
if(c.match(/rdb(\d.*?)px/)){ $(this).corner('Round '+RegExp.$1+'px bottom'); }
if(c.match(/rd(\d.*?)px/)){ $(this).corner('Round '+RegExp.$1+'px'); }

if(c.match(/w(\d.*?)px/)){ $(this).css({ width:RegExp.$1+'px' }); }
if(c.match(/w(\d.*?)pr/)){ $(this).css({ width:RegExp.$1+'%' }); }

if(c.match(/h(\d.*?)px/)){ $(this).css({ height:RegExp.$1+'px' }); }
if(c.match(/h(\d.*?)pr/)){ $(this).css({ height:RegExp.$1+'%' }); }

if(c.match(/t(.*?)px|t(\-.*?)px/)){ $(this).css({ top:RegExp.$1+'px' }); }
if(c.match(/l(\d.*?)px/)){ $(this).css({ left:RegExp.$1+'px' }); }
if(c.match(/pb(\d.*?)px/)){ $(this).css({ bottom:RegExp.$1+'px' }); }






/*
if(c.match(/mv\[(.*?),(.*?),(.*?),(.*?),(.*?),(.*?),(.*?),(.*?)\]/)){
var t = RegExp.$1;
var l = RegExp.$2;
var w = RegExp.$3;
var h = RegExp.$4;
var o = RegExp.$5;

var d = RegExp.$6*1000;
var m = RegExp.$7*1000;
var e = RegExp.$8;

var move = '';


if(t.match(/^\d/)){ t = t+'px'; }
else{ t = '+='+t+'px'; }

if(l.match(/^\d/)){ l = l+'px'; }
else{ l = '+='+l+'px'; }

if(w.match(/^\d/)){ w = w+'px'; }
else{ w = $(this).width(); }

if(h.match(/^\d/)){ h = h+'px'; }
else{ h = $(this).height(); }

if(!o){ o = 1; }
else if(o > 0){ $(this).css({ opacity:0 }); $(this).css("filter","alpha(opacity=0)"); }

if(!e){ e = 0; }

$(this).delay(d).animate({
top:t,
left:l,
width:w,
height:h,
opacity:o
}, m, ease[e]);

}
*/

});
});

