/*
File:			custom.css
Description:	Custom styles for Thesis


BASIC USAGE:

If you have enabled the custom stylesheet in the Thesis options panel, the <body> tag 
will be appended with the "custom" class, like so: <body class="custom">. You can use 
the "custom" class to override *any* CSS declarations contained in the style.css file.
For example, if you wish to change the default link color to green, you would add the 
following declarations to this file:

	.custom a, .custom a:visited { color: #090; }	<--- This makes links green
	.custom a:hover { color: #00f; }	<--- This makes links blue when you mouse over them

WHY THIS WORKS:

By using the "custom" class, you are creating more specific CSS declarations for HTML
elements. CSS styling is applied through rules of specificity, and because declarations
prepended with .custom are more specific, they get applied when the page is rendered!

More information about styling your Thesis installation using this file can be found
in the User's Guide:
	http://diythemes.com/thesis/rtfm/customizing-thesis-with-customcss/
*/




/*---:[ Background Image Full Width Resizable ]:---*/
.custom #img-4real {
width: 100%;
position: fixed;
top: 0;
left: 0;
z-index: -10;
}



}

.custom #container {
    margin-top: 2em;
    margin-bottom: 2em;
}
/*
.custom #page {
    background: #fff;
}
*/
.custom .comments_closed p {display: none ;}
/*
Hide Thesis Header for the Custom one through OpenHooks.
*/


/*CODE TO HIDE DEFAULT HEADER AND SHOW CUSTOM HEADER */
.custom #header #logo { display: none; }
.custom #header #tagline { display: none; }
/* Optional to remove space around header image so image sits on divider line */
.custom #header { padding: 0; }

/*
Add Read More from this cat at bottom of archives pages
*/



function rel_posts_cat() { 
if (is_single()) { 
global $post; 
$cat_ID=array(); 
$categories = get_the_category(); //get all categories for this post 
  foreach($categories as $category) { 
    array_push($cat_ID,$category->cat_ID); 
  } 
  $args = array( 
  'orderby' => 'date', 
  'order' => 'DESC', 
    'post_type' => 'post', 
    'numberposts' => 8, 
    'post__not_in' => array($post->ID), 
    'category__in' => $cat_ID 
  ); // post__not_in will exclude the post we are displaying 
    $cat_posts = get_posts($args); 
    $out=''; 
      foreach($cat_posts as $cat_post) { 
          $out .= '<li>'; 
          $out .=  '<a href="'.get_permalink($cat_post->ID).'" title="'.wptexturize($cat_post->post_title).'">'.wptexturize($cat_post->post_title).'</a></li>'; 
      } 
    $out = '<ul class="cat_post">Read More Posts From This Category' . $out . '</ul>'; 
    echo $out; 
 } 
} 
add_action('thesis_hook_after_post', 'rel_posts_cat');  




/*
End Function, Begin Custom Size Background
*/


.custom #img-4real {
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: -10;
}
/*
body.custom {
    background: #000000 url('images/backgroundimage.jpg') 50% 1 no-repeat;
*/


/*
Full width header

.custom #header_area {background:#213C63;}
	.custom #header_area .page {background:transparent;}
*/
/*
Nav Customization

.custom #nav_area {background:#F0ECDB; border-bottom:1px solid #DBD4B7; padding-top:10px;}
	.custom ul#tabs {border-bottom:0; border-color:#DBD4B7;}
		.custom ul#tabs li {border-color:#DBD4B7; background-color:#E6DEC0;}
		.custom ul#tabs li.current_page_item, .custom ul#tabs li.current-cat {background:#fff;}

		.custom #header {border-bottom:0;}
*/
/* Remove From Cat Archives txt
*/
 #archive_info p {display:none;}

/* Opaque Content AreA dOESN'T WORK

.custom #content_area .page {
    .page {
    filter:alpha(opacity=50);
    -khtml-opacity: 0.5;
    -moz-opacity:0.5;
     opacity: 0.5;
     }
}
*/
.custom #header { background-color: #AAAAAA ; }
/*Customer Nav size

.custom #nav_area .page { width: 90%; }

.custom ul#tabs li.rss a:hover { background-color: #CCC; color: #AAA; }
*/

.custom #content_box {background:none;}


.custom #custom_link {
a:hover color:#700000;
}

//justify teasers
.custom .teaser { text-align: justify; }
