/*---------- left aligned button ----------*/
.btn { font-weight:bold; display: block; position: relative; background: #aaa; padding: 5px; margin: 0px; float: left; color: #fff; text-decoration: none; cursor: pointer; }
.btn * { font-style: normal; background-image: url('btn2.png'); background-repeat: no-repeat; display: block; position: relative; }
.btn i { background-position: top left; position: absolute; margin-bottom: -5px;  top: 0; left: 0; width: 5px; height: 5px; }
.btn span { background-position: bottom left; left: -5px; padding: 0 0 5px 10px; margin-bottom: -5px; }
.btn span i { background-position: bottom right; margin-bottom: 0; position: absolute; left: 100%; width: 10px; height: 100%; top: 0; }
.btn span span { background-position: top right; position: absolute; right: -10px; margin-left: 10px; top: -5px; height: 0; }

* html .btn span,
* html .btn i { float: left; width: auto; background-image: none; cursor: pointer; }

.btn.red { background: #FF0000; }
.btn.orange { background: #FF6600; }
.btn.lightgreen { background: #33FF00; }
.btn.green { background: #006600; }
.btn.darkgreen { background: #003300; }
.btn.lightblue { background: #33CCFF; }
.btn.blue { background: #0000FF; }
.btn.purple { background: #660099; }
.btn:hover { background-color: #a00; color: #fff; }
.btn:active { background-color: #444; color: #fff; }
.btn[class] {  background-image: url('btn.png'); background-position: bottom; }

* html .btn { border: 3px double #aaa; }
* html .btn.pink { border-color: #e1a; }
* html .btn.red { border-color: #FF0000; }
* html .btn.orange { border-color: #FF6600; }
* html .btn.lightgreen { border-color: #33FF00; }
* html .btn.green { border-color: #006600; }
* html .btn.darkgreen { border-color: #003300; }
* html .btn.lightblue { border-color: #33CCFF; }
* html .btn.blue { border-color: #0000FF; }
* html .btn.purple { border-color: #660099; }
* html .btn:hover { border-color: #a00; }

/*---------- centered button ----------*/
.btnC { color:#FFFFFF; font-weight:bold; display: block; position: relative; background: #aaa; padding: 5px; width: 120px; margin: 0px auto; color: #fff; text-decoration: none; cursor: pointer; text-align: center; }
.btnC * { font-style: normal; background-image: url('btn2.png'); background-repeat: no-repeat; display: block; position: relative; }
.btnC i { background-position: top left; position: absolute; margin-bottom: -5px;  top: 0; left: 0; width: 5px; height: 5px; }
.btnC span { background-position: bottom left; left: -5px; padding: 0 0 5px 10px; margin-bottom: -5px; }
.btnC span i { background-position: bottom right; margin-bottom: 0; position: absolute; left: 100%; width: 10px; height: 100%; top: 0; }
.btnC span span { background-position: top right; position: absolute; right: -10px; margin-left: 10px; top: -5px; height: 0; }

* html .btnC span,
* html .btnC i { width: 120px; text-align: center; padding: 0px; display: block; margin: 0px auto; background-image: none; cursor: pointer; }

.btnC.red { background: #FF0000; }
.btnC.orange { background: #FF6600; }
.btnC.lightgreen { background: #33FF00; }
.btnC.green { background: #006600; }
.btnC.darkgreen { background: #003300; }
.btnC.lightblue { background: #33CCFF; }
.btnC.blue { background: #0000FF; }
.btnC.purple { background: #660099; }
.btnC:hover { background-color: #a00; color: #fff; }
.btnC:active { background-color: #444; color: #fff; }
.btnC[class] {  background-image: url('btn.png'); background-position: bottom; }

* html .btnC { border: 3px double #aaa; }
* html .btnC.pink { border-color: #e1a; }
* html .btnC.red { border-color: #FF0000; }
* html .btnC.orange { border-color: #FF6600; }
* html .btnC.lightgreen { border-color: #33FF00; }
* html .btnC.green { border-color: #006600; }
* html .btnC.darkgreen { border-color: #003300; }
* html .btnC.lightblue { border-color: #33CCFF; }
* html .btnC.blue { border-color: #0000FF; }
* html .btnC.purple { border-color: #660099; }
* html .btnC:hover { border-color: #a00; }

/*---------- centered button ----------*/
.btnC2 { color:#FFFFFF; font-weight:bold; display: block; position: relative; background: #aaa; padding: 5px; margin: 0px auto; min-width: 100px; max-width: 490px; color: #fff; text-decoration: none; cursor: pointer; text-align: center; }
.btnC2 * { font-style: normal; background-image: url('btn2.png'); background-repeat: no-repeat; display: block; position: relative; text-align: center; }
.btnC2 i { background-position: top left; position: absolute; margin-bottom: -5px;  top: 0; left: 0; width: 5px; height: 5px; }
.btnC2 span { background-position: bottom left; left: -5px; padding: 0 0 5px 10px; margin-bottom: -5px; }
.btnC2 span i { background-position: bottom right; margin-bottom: 0; position: absolute; left: 100%; width: 10px; height: 100%; top: 0; }
.btnC2 span span { background-position: top right; position: absolute; right: -10px; margin-left: 10px; top: -5px; height: 0; }

* html .btnC2 span,
* html .btnC2 i { width: auto; text-align: center; padding: 0px; margin: 0px auto; background-image: none; cursor: pointer; }

.btnC2.red { background: #FF0000; }
.btnC2.orange { background: #FF6600; }
.btnC2.lightgreen { background: #33FF00; }
.btnC2.green { background: #006600; }
.btnC2.darkgreen { background: #003300; }
.btnC2.lightblue { background: #33CCFF; }
.btnC2.blue { background: #0000FF; }
.btnC2.purple { background: #660099; }
.btnC2:hover { background-color: #a00; color: #fff; }
.btnC2:active { background-color: #444; color: #fff; }
.btnC2[class] {  background-image: url('btn.png'); background-position: bottom; }

* html .btnC2 { border: 3px double #aaa; }
* html .btnC2.pink { border-color: #e1a; }
* html .btnC2.red { border-color: #FF0000; }
* html .btnC2.orange { border-color: #FF6600; }
* html .btnC2.lightgreen { border-color: #33FF00; }
* html .btnC2.green { border-color: #006600; }
* html .btnC2.darkgreen { border-color: #003300; }
* html .btnC2.lightblue { border-color: #33CCFF; }
* html .btnC2.blue { border-color: #0000FF; }
* html .btnC2.purple { border-color: #660099; }
* html .btnC2:hover { border-color: #a00; }

/*---------- right aligned button ----------*/
.btnR { color:#FFFFFF; font-weight:bold; display: block; position: relative; background: #aaa; padding: 5px; float: right; color: #fff; text-decoration: none; cursor: pointer; }
.btnR * { font-style: normal; background-image: url('btn2.png'); background-repeat: no-repeat; display: block; position: relative; }
.btnR i { background-position: top left; position: absolute; margin-bottom: -5px;  top: 0; left: 0; width: 5px; height: 5px; }
.btnR span { background-position: bottom left; left: -5px; padding: 0 0 5px 10px; margin-bottom: -5px; }
.btnR span i { background-position: bottom right; margin-bottom: 0; position: absolute; left: 100%; width: 10px; height: 100%; top: 0; }
.btnR span span { background-position: top right; position: absolute; right: -10px; margin-left: 10px; top: -5px; height: 0; }

* html .btnR span,
* html .btnR i { float: right; width: auto; background-image: none; cursor: pointer; }

.btnR.red { background: #FF0000; }
.btnR.orange { background: #FF6600; }
.btnR.lightgreen { background: #33FF00; }
.btnR.green { background: #006600; }
.btnR.darkgreen { background: #003300; }
.btnR.lightblue { background: #33CCFF; }
.btnR.blue { background: #0000FF; }
.btnR.purple { background: #660099; }
.btnR:hover { background-color: #a00; color: #fff; }
.btnR:active { background-color: #444; color: #fff; }
.btnR[class] {  background-image: url('btn.png'); background-position: bottom; }

* html .btnR { border: 3px double #aaa; }
* html .btnR.pink { border-color: #e1a; }
* html .btnR.red { border-color: #FF0000; }
* html .btnR.orange { border-color: #FF6600; }
* html .btnR.lightgreen { border-color: #33FF00; }
* html .btnR.green { border-color: #006600; }
* html .btnR.darkgreen { border-color: #003300; }
* html .btnR.lightblue { border-color: #33CCFF; }
* html .btnR.blue { border-color: #0000FF; }
* html .btnR.purple { border-color: #660099; }
* html .btnR:hover { border-color: #a00; }