<?php
$d = 0; // search depth;
while (!file_exists(str_repeat('../', $d) . 'wp-config.php')) if (++$d > 99) exit;
$wp_config = str_repeat('../', $d) . 'wp-config.php';
require_once($wp_config);

header("Content-type: text/css");
 
global $options;
 
foreach ($options as $value) {
        if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_option( $value['id'] ); } }


$ie6contenthack = $flex_blog_width - 50;
$ie6pagewidth = $flex_blog_width - 10;
?>
#bg {background-image:none;}
body {background-image:none;}
#bgwrapper {background-image:none;}
#nav {background-image:none;}
#content {width: <?php echo $ie6pagewidth; ?>px;}
#header {z-index:-1;}
#sidebar-top ul li { background-image:none; padding-left:0px;}
#sidebar-left ul li, #sidebar-right ul li {background-image:none; padding-left:0px;}
#sidebar-top div.toptitle {background: url(images/sidebar-h2-bg.png) no-repeat top left; background-color: #<?php echo $flex_sidebar_titlebackground; ?>;behavior: url(<?php bloginfo('template_url'); ?>/iepngfix.htc);}
#sidebar-top h2 {background-image:none; padding-left:23px;}
#content {width: <?php echo $ie6widthhack; ?>px; padding-right:5px;}
#sidebar {margin-right: 0px;}

#nav li a, #secondary-nav li a { /* Filter for IE6 to prevent li stacking */
	float: left;
    display: inline;
	text-decoration: none;
	background-image:none;

}
#nav li a span, #secondary-nav li a span { /* Filter for IE6 to prevent li stacking */
	float: left;
	margin-left: 4px;
	text-decoration: none;
	background-image:none;
}
.sf-menu a.sf-with-ul span {
	padding-right:12px;
	}
.boxtop, .shortfade, .shortreflect, .boxtopdark {background-image:none;}
.boxtop {width:100%;}