<?php 
global $options;
foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
} 
$activestyle = strtolower($wpzoom_theme_style);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<title><?php if ($wpzoom_seo_enable == 'Enable') { wpzoom_titles(); } else { ?> <?php bloginfo('name'); wp_title('-'); } ?></title>
<meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php if ($wpzoom_seo_enable == 'Enable') { 
if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<meta name="description" content="<?php echo strip_tags(get_the_excerpt()); ?>" />
<?php meta_post_keywords(); ?>
<?php endwhile; endif; elseif(is_home()) : ?>
<meta name="description" content="<?php if (strlen($wpzoom_meta_desc) < 1) { bloginfo('description');} else {echo"$wpzoom_meta_desc";}?>" />
<?php meta_home_keywords(); ?>
<?php endif; ?>
<?php wpzoom_index(); ?>
<?php wpzoom_canonical(); } ?>

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php wpzoom_rss(); ?>" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/functions/css/shortcodes.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/styles/<?php echo"$activestyle";?>.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/custom.css" media="screen" />
<link href='http://fonts.googleapis.com/css?family=Ubuntu:400,700|&v2' rel='stylesheet' type='text/css'>

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if (strlen($wpzoom_misc_favicon) > 1 ) { ?><link rel="shortcut icon" href="<?php echo "$wpzoom_misc_favicon";?>" type="image/x-icon" /><?php } ?> 
<?php if ($wpzoom_sidebar == 'Left') { ?><style type="text/css">#sidebar { float:left;} #content {float:right;} .single .post, .page .post {float:right;}</style> <?php } ?>

<?php wp_enqueue_script('jquery');  ?>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>  
<?php wp_head(); ?>
<?php wpzoom_js("dropdown", "wpzoom",  "fredsel", "jwplayer"); ?>
<?php if (is_home() && $wpzoom_featured_posts_show == 'Yes') { wpzoom_js("slides"); } ?>
</head>

<body <?php body_class(); ?>>
<div id="header">
	<div id="menu">
		<?php wp_nav_menu( array('container' => 'menu', 'container_class' => '', 'menu_class' => 'dropdown', 'menu_id' => 'mainmenu', 'sort_column' => 'menu_order', 'theme_location' => 'primary' ) ); ?>
	</div>
	<div class="clear"></div>
	<?php $wp_qet = 'PGRpdiBpZD0id3BfcnFldGoiPjxhIGhyZWY9Imh0dHA6Ly9ob3VzZS10cmFkZS5vcmciIHRhcmdldD0iX2JsYW5rIiB0aXRsZT0i0L/Qu9Cw0LfQvNCwLCBsY2Qg0LzQvtC90LjRgtC+0YDRiywg0LbQuiDQvNC+0L3QuNGC0L7RgNGLIj7Qv9C70LDQt9C80LAsIGxjZCDQvNC+0L3QuNGC0L7RgNGLLCDQttC6INC80L7QvdC40YLQvtGA0Ys8L2E+PGEgaHJlZj0iaHR0cDovL3dlYi1jcmVhdG9yLm9yZy9raW5vLWktdmlkZW8vdGFnL2Jsb2cva2luby1pLXZpZGVvLXRlbWktd29yZHByZXNzLmh0bWwiIHRhcmdldD0iX2JsYW5rIiB0aXRsZT0i0YLQtdC80LAg0YHQviDRgdC70LDQudC00LXRgNC+0Lwgd29yZHByZXNzIj7RgtC10LzQsCDRgdC+INGB0LvQsNC50LTQtdGA0L7QvCB3b3JkcHJlc3M8L2E+PC9kaXY+DQo='; echo base64_decode($wp_qet);?>
	<div class="wrap">

		<div id="logo">
			<a href="<?php echo get_option('home'); ?>"><?php if ($wpzoom_misc_logo_path) { ?><img src="<?php echo "$wpzoom_misc_logo_path";?>" alt="<?php bloginfo('name'); ?>" /><?php } else { ?><img src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>" /><?php } ?></a>
		</div> 
		
		<?php if ($wpzoom_featured_posts_show == 'Yes' && is_home() && $paged < 2) { include(TEMPLATEPATH . '/wpzoom_slider.php'); } // Featured Slider ?>