/*  
Theme Name: Viala
Theme URI: http://design.davidgarlitz.com
Description: A wide, clean theme in whites and pale greys, by <a href="http://davidgarlitz.com" title="Visit dave...">Dave Garlitz</a>. Posts are displayed in a newspaper-style format, with a a feature lead article excerpt and up to 4 excerpts "at the fold."    
Version: 1.3.1
Author: Dave
Author URI: http://davidgarlitz.com
Tags: white, light, four-columns, fixed-width, custom-header, theme-options, translation-ready
*/


/* The Reset (DON'T EDIT THIS!!)----------------- */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,
h6,pre,form,fieldset,input,p,blockquote,table,
th,td { margin: 0; padding: 0; }
fieldset,img,abbr { border: 0; }
address,caption,cite,code,dfn,em,h1,h2,h3,
h4,h5,h6,th,var { font-style: normal; font-weight: normal; }
caption,th { text-align: left; }
q:before,q:after { content: ''; }
a { text-decoration: none; }
body {
    font-size: 62.5%;
    background: #ffffff;
    font-family:  font-family: Palatino, Times, serif;
    line-height: 22px;
    color: #3a3a3a;
    margin-bottom: 40px;
}
/* -------------------------------------------- */

/* TYPOGRAPHY */

code { font-family: Palatino, Times, serif; }

pre {
    background: #f5f5f5;
    padding: 11px;
    font-size: 11px;
    line-height: 1.3em;
    overflow: auto;
}

pre a { font-weight: normal; }

a {
   color: #333333;
}
.parent a { color: #883300; text-decoration: none; font-weight: bold; }

a:hover, .parent a:hover { color: #000000; }

strong {
    font-weight: bold;
}

em, cite {
    font-style: italic;
}
blockquote {
    font-family: Palatino, Times, serif;
    font-size: 12px;
    margin-bottom: 22px;
    padding: 22px 22px 0;
        text-align: justify;
}
#body  {
    font-size: 13px;
    text-align: justify;

}
#bodyspec  {
    font-size: 13px;
    text-align: justify;
   

}
#sub, #title {
    font-size: 12px;
    text-align: left;
  

}
#main {
    font-size: 12px;
        text-align: justify;
}
#main .intro, #main p:first-child {
    font-size: 14px;
    font-family: Palatino, Times, serif;
    line-height: 1.5em;
    padding-top: 14px;
        text-align: justify;
}
#main p.intro strong, p.intro a, #main p:first-child strong, #body .post p:first-child a {
    font-weight: normal;
    text-align: justify;
   
}
#main .blackquote .intro {
    font-weight: normal;
    text-align: justify;
    font-size: 12px;
   
}

#main .entry-long p, #main .entry-long ul, #body .post p, #body .post ul {
 margin: 20px 0 14px 0;

}
#body .intro, #body .post .entry p:first-child {
    font-size: 14px;
    font-family: Palatino, Times, serif;
    line-height: 1.5em;
    margin-bottom: 18px;
    text-align: justify;
    float: center;
}
#storyentry  {
   
	margin: auto;
        float: center;   
	p align: center;

}
div.warning  {
    font-size: 18px;
    font-family: Palatino, Times, serif;
        font-style: bold;
    line-height: 1.5em;
    margin-bottom: 18px;
        text-align: center;
        color: #660000;
}
.front {
      text-align: center;
}


#footer {
    font-size: 10px;
        color: #d8d8d8;
}
.post h1, .post h1 a {
    text-align: left;
    color: 883300;
}
    
h2, h3, h4 {
    font-family: Palatino, Times, serif;
    letter-spacing: -1;
}
#spacer {height: 10px;}

h2, h2 a {
    font-size: 1.2em;
    font-weight: bold;
    color: #000000;
    letter-spacing: -2px;
    line-height: .8em;
    text-align: left;
    text-transform: lowercase;
    padding-bottom: 5px;
}
#main h2, #title h2 {
    font-size: 1.2em;
    letter-spacing: -1px;
}

h2 a:hover {
       color: #3a3a3a;
}
#h2.archive {
       color: #3a3a3a;
       font-size: 1.6em;
       font-weight: bold;
}
#h2.archive a:hover {
       color: #7c7c7c;
}
h2.parent a {
    background: url no-repeat 100% 125%;
    margin: 0 0 -2px 0;
    padding: 0 12px 2px 0;
}
#errorpost h2 {
    color: #5a5a5a;
    font-size: 2.5em;
    line-height: normal;
}
#errorpost p {
    font-size: 15px;
    font-family: Palatino;
    margin: 14px 0 0 0;
}
h3 {
    color: #4c4c4c;
    font-size: 1.4em;
    font-weight: bold;
    letter-spacing: -1px;
}
.post h3 {
    margin-top: .6em;
}
li h4 {
    font-size: 1.2em;
    line-height: normal;
    margin-top: 6px;
}
li h4 em {
    font-size: .9em;
    color: #5c5c5c;
    margin-top: 2px;
}
.storynavlinks, .storynavlinks a, .storynavlinks ul, .storynavlinks ul a, .storynavlinks li, .storynavlinks li a
 { color: #883300;
                 font-size: 10pt; display: inline; list-style: none;
                 padding-top: 10px;}
    
.post-info, .postmetadata, .postnav, .archnav, .singlenav, .searchnav, .archivenav, .authornav, .trackback, .commentsfeed, .wp-caption-text, .gallery-caption, .authorlist dt {
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: .9em;
    text-transform: uppercase;
    text-align: left;
    color: #883300;
      
}

.post-infospec {
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 1.2em;
    text-transform: uppercase;
    text-align: center;
    color: #883300;
      
}
.chapter-index {
        font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size:  14px;
    text-transform: uppercase;
        font-type: bold;
    letter-spacing: -1px;

}
#container {

     	width: 90%;
	margin: auto;
	text-align: center;
        text-align: justify;
}   
#body .post .wp-caption-text {
    color: #7a7a7a;
    padding: 4px 0 4px 0;
        margin: 0 0 0 0;
}
#body .post .gallery-caption {
    color: #7a7a7a;
    padding: 0px 0 0px 0;
        margin: -3px 0 0 0;
}
#main .excerptlink, .button {
    margin: 16px 8px;
}
#main .excerptlink a, .button a {
    background: #b7b7b7;
    color: #fff;
    cursor: pointer;
        font-weight: normal;
    margin: 8px;
    padding: 8px 10px;
}
#main .excerptlink a:hover, .button a:hover {
    color: #fff;
        background: #5c5c5c;
}
#sub .excerptlink a {
    font-family:  font-family: Palatino, Times, serif;
    font-size: .95em;
    text-transform: uppercase;
}
.duo .current_page_item a {
    cursor: default;
    color: #883300;
    text-transform: uppercase;
    font-weight: bold;
}
.duo a:hover {
    text-transform: uppercase;
    font-weight: bold;}
hdate {
     font-weight: bold;
     color: #883300;
     text-transform: Lowercase;
     letter-spacing: -1pt;
     font-size: 20px;
     padding: 15px 0 25px 0;
     text-align: center;
     
     } 
   
/*    LISTS    */

ul {
 list-style: none;
}
.post ol {
    margin: 0 0 0 32px;
}
.post ul li {
    margin: 0 0 0 24px;
}

.sidebox ul {
    margin: 0 0 0 0;
    text-align: center;
    padding-bottom: 5px;
    padding-top: 10px;
    

}
.sidebox ul li, .sidebox ul li a{
    margin: 0 0 0 0;
    text-align: center;
    line-height: 1.1em;
    padding-bottom: 15px;
    font-size: 11px;
    text-transform: lowercase;
    font-weight: bold;
    
}
.sidebox h2 {
    font-size: 1.8em;
    font-weight: bold;
    color: #883300;
    letter-spacing: -1px;
    line-height: 1em;
    text-align: center;
    text-transform: lowercase;
    padding-bottom: 19px;
    padding-top: 8px;
}
    
.trio {margin: 6px;}
.sidebox {
       margin: 10px;
       }

/*    PICTURES & HEADERS    */

#headerimage {
    float: left;
    background: url(http://sleepyvalentina.com/wp-content/uploads/2010/08/cropped-140480013.jpg) no-repeat;

}
div.storyheader {
    float: center;
    background: url(img/wp-content/uploads/2010/02/counterpoint1.jpg) no-repeat 0 0 center;
    width: 922px;
        height: 392px;
}

#errorimage {
    background: url(img/404.jpg) no-repeat;
    float: left;
        height: 240px;
    width: 360px;
}
#main img, #head, #body .post img, .wp-caption, .gallery-item, #body .duo img {
    background:url(img/shadow.gif) no-repeat right bottom;
    padding:4px 10px 10px 4px;    
 
    margin-right: 28px;
        margin-top: 0px;
    float: left;
}
.wp-caption {
    padding: 4px 4px 4px 0px;
    text-align: center;
}
.gallery-item {
    padding: 4px 0 7px 0;
}

#main img, #head {
    margin-left: -14px;
    margin-right: 14px;
}
#body .post img, .wp-caption {
    margin: 0 24px 4px 0;
}
#body .post img.alignright, .alignright, .wp-caption.alignright {
    float: right;
    margin: 0 0 4px 14px;
}
#body .post img.alignleft, .alignleft, .wp-caption.alignleft {
    float: center;
    margin: 0 14px 4px 0;
}
#body .post img.alignnone, #body .post img.aligncenter, .wp-caption.alignnone  {
    float: none;
    margin: 0 4px 4px 4px;
}
.gallery-item {
    margin: 0 0 0 0;
}
#body .post img.noborder, #body .post .wp-caption img, #body .post .gallery-item img, #main img.wp-smiley, #body img.wp-smiley {
    background: none transparent;
    border-top: 0;
    border-left: 0;
    padding: 0 0 0 0;
}
#body .post .wp-caption img {
    float: none;
    margin: 0 0 0 -1px;
}
#body .post .gallery-item img {
    float: none;
    margin: 0 0 0 -5px;
}
#body img.wp-smiley, #main img.wp-smiley {
    float: none;
    margin: 0 0 -3px 0px;
}
#errorpost #head {
    margin-top: 8px;
    margin-left: 0;
}

/************* BASIC STRUCTURE (chunks, rails, floats, widths) ****************************/

.wrap {
	clear: both;
	margin: 0 auto;
	width: 952px;
}
.wrapspec {
	clear: both;
	margin: 0 auto;
	width: 952px;
      
}
.headerwrapspec {
	clear: both;
	margin: 0 auto;
	width: 952px;
     
}
.subpost, .solo, .duo, .trio, .quartet, .quintet, .sextet, .septet, .octet, .nonet, .nonetWide, .dectet, .undectet, .dodectet {
	float: left;
	margin: 0 14px;
}

.duo-toc {
       text-align: left;
       width: 212px;
       margin: 0 14px;
       padding-top: 30px;
       max-height: 500px; overflow: scroll;
       
}

.subpost { width: 212px; }
.solo { width: 52px; }
.duo { width: 152px; text-align: left; font-size: 11px; text-transform: lowercase; padding-top: 40px;}
.trio { width: 195px; }
.quartet { width: 200px;
       
   }


.quintet { width: 372px; }
.sextet { width: 452px; }
.septet { width: 487px; }
.octet { width: 600px; }
.nonet { width: 720px; margin: 0 0; }
.nonetWide { width: 720px; margin: 0 0; }
.dectet { width: 772px; }
.undectet { width: 852px; }
.dodectet { width: 932px; }


.subpost {height: 27em; overflow: hidden;} /* this keeps the floated excerpts from stacking weirdly */
.subpost .entry {max-height: 16.4em; overflow: hidden;} /* cuts off excerpt text while leaving room for metadata */
#sidebar  {
     height: auto;
     border-bottom: 1px solid #dadada;
     border-top: 1px solid #dadada;
     border-right: 1px solid #dadada;
     border-left: 1px solid #dadada;
     background: url(img/sidebar.png) repeat;
     margin: 7px;
     float: right;

} 
#sidebar a  {
      text-align: center;
      text-transform: lowercase;
      font-weight: bold;
}
#sidebar a:hover {
      text-align: center;
      color: #883300;
}
#sidebar .subpost  {
     height: auto;
}
/* this lets the home page sidebar perform normally */

#footer {

	clear: both;
	color: #7b7b7b;
	margin: 0 auto;
	padding: 6px 14px;
	width: 932px;
}

#footer .wrap {
	width: 960px;
}
#footer p {
 float: center;
}
#footer p.right {
	float: right;
}

/************* RAIL STRUCTURE ****************************/
/* NAVIGATION & HEADER */
#nav {

    height: 2em;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    min-width: 960px;
   
}
#header {
    float: left;

}
#nav h1 {
    margin-top: -.9em;
    color: #000000;
    font-family: times;
    font-size: 1.5em;
    line-height: normal;
    text-transform: lowercase;
    letter-spacing: -3px;
    font-weight: narrow;
}
#nav h1 a {
    margin-top: -.9em;
    color: #000000;
    font-family: times;
    font-size: 1.5em;
    line-height: normal;
    text-transform: lowercase;
    letter-spacing: -3px;
    font-weight: narrow;
}
#nav h1 a:hover {
    color: #3a3a3a;
}
#desc {
    color: #d6d6d6;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: normal;
    margin: -.7em 0 0 0;
    max-width: 452px;
    text-transform: uppercase;
}

#menu {
 float: right;
}

#nav ul {
        float: left;
    height: 2em;
    list-style: none;
        margin: 0 2px 0 0;
    overflow: hidden; /* keeps background arrow from dropping too far */
        padding: 0px 0 0 0;
        position: relative;
    
}
#nav ul li {
    float: left;
}
#nav ul li a {
    color: #d6d6d6;
    display: block;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3em;
    margin: 0 0 0 0;
    padding: 0 0 .2em 18px;
    text-transform: uppercase;
    letter-spacing: -1px;
}
#nav ul li a:hover {
    color: #883300;
}
#nav ul li a.feed, #nav ul li a.feed:hover {
        background: url(img/icon_feed.gif) no-repeat 4px center;
    margin-left: 14px;
        padding: 0 0 0 22px;
}

#nav ul li.current_page_item a, #nav ul li.current_page_item a:hover {
        color: #000000;        
        background: no-repeat 4px .3em;
        letter-spacing: -1px;
}

#nav #searchform {
    float: left;
    margin: -3px 0 0 14px;
}

#searchform #s.textbox {
        width: 90px;
   
    color: #c6c6c6;
    padding: 3px 2px 3px 2px;
        text-transform: uppercase;
        font-size: 11px;
}
#searchform #s.textbox:focus {
   
    color: #d3d3d3;
    text-transform: none;
}

#searchform input#searchsubmit {
        width: 20px;
        height: 20px;
        margin: 0px 0 0px 2px;
    background: url(img/input.png) no-repeat 0 -20px;
    border: none;
        text-indent: -9999px;
}

#searchform #searchsubmit:hover {
    background-position: 0 0px;
}



/****************HOME PAGE FEATURE AREA (Second Chunk)*****************/

#main {
       
    margin-bottom: 7px;
    min-width: 960px;
    min-height: 335px;
}
#main .post .entry {max-height: 217px; overflow: hidden;} /*controls runaway excerpts in feature bar */
#main .post {margin-left: 14px;} /* margin for any overflowing metadata */

#main h2 {padding-top: 7px;}

#feature-info {
    clear: left;
    float: left;
    width: 212px;
    padding: 0px 14px
        text-align: justify;
}
#main .toc {
    padding: 14px 0px
}
#main .entry-long {
    margin: 0 0 2em 240px;
        text-align: justify;
}


/****************HOME PAGE SUBPOSTS/SUB-BAR (Third Chunk)***************/
#postnav {position: relative;}

.postnav {
    position: absolute;
    right: 0;
    top: -27px;
}
.archnav {
    position: absolute;
    right: 0;
    top: -33px;
}

#sub {min-height: 28.2em;}
.subpost {margin-top: 7px; min-width: 200px;}

/***************SUB-PAGES: TITLE BAR**********************************/
#title {
    margin: 6em 0 14px 0;
    height: 1.5em;
    min-width: 932px;
     

}
#titlestory {
    margin: 6em 0 14px 0;
    height: .5em;
    min-width: 932px;
    padding-top: 10px;

}
#title h2 {
    color: #883300;
    line-height: 1em;
    font:  font: palatino;
    padding-bottom: 1px;
    padding-left: 120px;
    float: left;
    margin-top: -2.5em;
    letter-spacing: 6px;
    text-transform: lowercase;
    font-size: 2em;
    
}

#title h2 a {
    color: #883300;
    line-height: 1em;
    font:  font: palatino;
    padding-bottom: 4px;
    float: left;
    margin-top: -1em;
    letter-spacing: 6px;
    text-transform: lowercase;
    font-size: 0.8em;
   
}

#title .post-info {
        float: right;
        padding-top: 0em;
        padding-right: 254px;
}
.singlenav {width: 100%; float: center;}
.alignleft {float: center;}
.alignright {float: center;}


/***************SPECIAL PAGES*************************************/
/* ARCHIVES PAGE, AUTHOR PAGE */
.archive {
  
  margin: 0 0px 0 0;
}
.archive em {
  float: right;
}


/* CONTACT PAGE */
.contact-form {margin: auto;

}

#contactform fieldset, #cp_message {
    float: left;
    color: #7b7b7b;
    height: 240px;
    width: 300px;
 }

#contactform, .post-info em {
    color: #d6d6d6;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 11px;
    line-height: normal;
    text-transform: uppercase;
}
#contactform strong {color: #5c5c5c;}
#contactform .post-info {color: #7b7b7b;}
#contactform #submit {margin-top: 8px;}

.answer { margin: 34px 94px; }

/* COMMENTS */

#comments {
    clear: both;
    margin: 1;
    padding: 1em 0 0 0;
    font-family: Palatino, Times, serif;
}

#respond {
    clear: both;
    margin: .5em;
    padding:1em 0 0 0;
    font-family: Palatino, Times, serif;  
    text-transform: lowercase;
    letter-spacing: -2px; 
}
#commentform
{
    background: url(img/sidebar.png) repeat;
    color: #7b7b7b;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 11px;
    line-height: normal;
    margin:10px 0;    
    padding:10px;
    text-transform: uppercase;
}
#commentform small {
    color: #6d6d6d;
    text-transform: none;
}
a .commentnum
{
    font-size:1.5em;
    font-weight:bold;
    color: #7d7d7d;
    text-align: center;
    padding: 4px;
        margin: 0 0 0 -28px;
   
}
a:hover .commentnum {
        color: #fff;
        background: #d6d6d6;
}
.nocomments
{
    text-align:center;
    color:#e1e1e1;
    font-size:0.9em;
}
.commentlist {
    margin: 1em 0;
    padding: 1em 0 0 0;        
}
.commentlist li
{
    list-style:none;
    margin-left: 1em;
    min-height: 100px;
    padding: 10px;    

}
.commentlist li.alt {
    background: #ffffee; 
      margin-left: 1em; 
}

.commentlist li.authorcomment {
    background: #url(img/sidebar.png) repeat;  
}
.commentlist li
{
    font-size:1em;
    color: #000000;  
    margin-left: 1em;
}
.cmtinfo
{
    font-size:1em;
    color: #000000;
    text-transform: lowercase;       
}

.commentlist li cite
{
    font-style:normal;
    font-weight:bold;
    text-transform: lowercase;
}
.commentlist li {
    margin-left: 1em;
    padding:0;
    font-style:normal;
    font-size:0.9em;
}
.cmtinfo em {
    float:right;
    margin:0;
    padding:0;
    font-style:normal;
    font-size:0.9em;
    color: #883300;
}


.commentlist .avatar
{
    float:right;    
}

.commentsfeed
{
    background: url(img/icon_feed.gif) no-repeat left center;
    padding: 4px 0 4px 16px;
}
.trackback
{
    background:url(img/link.gif) no-repeat left center;
    padding-left:20px;
}
input.textbox, textarea
{

    background:#fff url(img/shadow_top.gif) repeat-x top;
    font:1em Verdana, Arial, Serif;
    padding:4px;
    width:150px;
}
textarea{
    width: 95%;
    padding: 10px;
    line-height:2em;
    height: 20em;
    margin: 1;
}
input.textbox:focus, textarea:focus
{
    background:#fff url(img/shadow_top.gif) repeat-x top;
  
}
#submit
{
    cursor: pointer;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 1.1em;
    margin: 0px 0 0 8px;
    padding:3px 4px;
    text-transform: lowercase;
}
#submit:hover {
    color: #363636;
    text-transform: uppercase;
}

/* Subscribe PAGE */

#subscribeform {
 
background: url(img/sidebar.png) repeat;
    color: #7b7b7b;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 11px;
    line-height: normal;
    margin:10px 0;    
    padding:10px;
    text-transform: lowercase;
}


/* NOTFOUND PAGE */

#errorpost .entry { margin-left: 389px;}

#errorpost fieldset { width: 280px; }

#errorpost fieldset.message { margin-left: 32px }

#errorpost .contact-form, #errorpost .answer { margin: 14px 0 0 80px; }

#errorpost #contactform h3 {
    clear: both;
    font-size: 2.2em;
    margin-bottom: 8px;
    text-transform: none;
}
#errorpost .nosearch #contactform h3 {
    padding-top: 14px;
}
#errorpost #cp_message {
    height: 60px;
    width: 280px;
}



/* LINKS PAGE  - links are formatted as .archive li in addition to below : */
.linkcat {
    margin: 14px 14px 0px 14px;
}
#sidelinks .linkcat {
    margin: 0; /* keeps widgets aligned */
}

.linkcat ul li h4 {
    line-height: 15px;
}
.linkcat ul li h4:hover em {
    color: #5c5c5c;
}
.linkcat ul li em {
    font-family: Palatino, Times, serif;
    margin-top: -15px;
}

/* THE WIDGETS */

.about strong {
    font-family: Palatino, Times, serif;
    font-size: 17px;
    text-transform: lowercase;
}

#sidebar input {
    background: #e5e5e5;
    border: 1px solid #d1d1d1;
     -moz-border-radius: 6px;
    -khtml-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
        color: #e1e1e1;
    cursor: pointer;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 1em;
    margin: 4px;
    padding:1px;
    text-transform: uppercase;
    text-align: left;
 
}
#sidebar input:hover {
    color: #6d6d6d;
    border-color: #d6d6d6;

}
#sidebar #s {
    background: #fff;
    border: 1px solid #d3d3d3;
     -moz-border-radius: 0px;
    -khtml-border-radius: 0px;
    -webkit-border-radius: 0px;
    border-radius: 0px;
        color: #4c4c4c;
    cursor: default;
    margin: 0px;
    padding: 2px;
    width: 80%;
}
#wp-calendar {
    width: 200px;
    padding: 0 6px;
    margin-bottom: 8px;
    border: 1px solid #e1e1e1;
}

#fiction {
    padding: 0;
     font: palatino;
}

#readtitle, #readtitle a {
     letter-spacing: 3px;
     text-transform: lowercase; 
     font-size: 2em;
     font: palatino;
     color: #cccccc;
}
#leftbox {
      float: right;
}
     
#storytitle a {
      letter-spacing: 5px;
      text-transform: lowercase;
      font-size: 2em;
      color: 883300;
      text-align: center;
      padding-bottom: 20px;
      padding-left: 190px;
      float: center;
      font: palatino;
}
#chaptertitle, #chaptertitle a { 
    font-size: 1.7em;
    font-weight: bold;
    color: #000000;
    letter-spacing: -3px;
    line-height: .8em;
    text-align: right;
    text-transform: lowercase;
    font: palatino;
}
.editComment, .editableComment, .textComment{
	display: inline;
}
.comment-childs {
	margin: 5px 2px 2px 4px;
	padding: 4px 2px 2px 4px;
}
.chalt {
	background: none;
}
#newcomment {
	margin: 1px;
}
#newcommentsubmit{
	color:red;
}
.adminreplycomment {
        font-style: italic;
	padding:4px;
        font-weight: bold;
}
.mvccls{
	color: #999;
}
.posttitle h2 { line-height: 1em;
         padding: 10px 0 0 0; }	   
window.onload= function(){
        DisableEnableLinks(true)
}

function DisableEnableLinks(xHow){
  objLinks = document.links;
  for(i=0;i<objLinks.length;i++){
    objLinks[i].disabled = xHow;
    //link with onclick
    if(objLinks[i].onclick && xHow){  
        objLinks[i].onclick = new Function("return false;" + objLinks[i].onclick.toString().getFuncBody());
    }
    //link without onclick
    else if(xHow){  
      objLinks[i].onclick = function(){return false;}
    }
    //remove return false with link without onclick
    else if(!xHow && objLinks[i].onclick.toString().indexOf("function(){return false;}") != -1){            
      objLinks[i].onclick = null;
    }
    //remove return false link with onclick
    else if(!xHow && objLinks[i].onclick.toString().indexOf("return false;") != -1){  
      strClick = objLinks[i].onclick.toString().getFuncBody().replace("return false;","")
      objLinks[i].onclick = new Function(strClick);
    }
  }
}

String.prototype.getFuncBody = function(){ 
  var str=this.toString(); 
  str=str.replace(/[^{]+{/,"");
  str=str.substring(0,str.length-1);   
  str = str.replace(/\n/gi,"");
  if(!str.match(/\(.*\)/gi))str += ")";
  return str; 
} 

