<?php require(TEMPLATEPATH.'/styles.php'); ?>
<?php
	global $stylesList, $theme_style;
	rok_switcher();
?>

<!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" xml:lang="en-gb" lang="en-gb" >
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />

		<title>
			<?php 
		
			// Returns the title based on what is being viewed
			
			// Single posts
			if (is_single()) { 
				single_post_title(); echo ' | '; bloginfo('name');
			
			// The home page or, if using a static front page, the blog posts page.		
			} elseif (is_home() || is_front_page()) {
				bloginfo('name');
				if( get_bloginfo('description'))
					echo ' | ' ; bloginfo('description');
					
			// WordPress Pages
			} elseif (is_page()) {	
				single_post_title(''); echo ' | '; bloginfo('name');
				
			// Search results
			} elseif (is_search()) {
				printf(_r('Search results for %s'), '"'.get_search_query().'"'); echo ' | '; bloginfo('name');
				
			// 404 (Not Found)
			} elseif (is_404()) {
				_re('Not Found'); echo ' | '; bloginfo('name');
				
			// Otherwise:
			} else {
				wp_title(''); echo ' | '; bloginfo('name');
			}
			
			?>
		</title>
		
		<link rel="profile" href="http://gmpg.org/xfn/11" />
		
		<?php
		
		$wp_ver = get_bloginfo('version');
			
		if ($wp_ver < 3.0) {
			
		?>
		
		<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
		<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
		<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
		<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
		
		<?php } ?>

		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/mootools.js"></script>
		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/caption.js"></script>
		
		<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />

		<link href="<?php bloginfo('template_directory'); ?>/css/template.css" rel="stylesheet" type="text/css" />
		<link href="<?php bloginfo('template_directory'); ?>/css/<?php echo $theme_style; ?>.css" rel="stylesheet" type="text/css" />
		<!--[if IE 6]> <link href="<?php bloginfo('template_directory'); ?>/css/template_ie6.css" rel="stylesheet" type="text/css" /> <![endif]-->
		<!--[if IE 7]> <link href="<?php bloginfo('template_directory'); ?>/css/template_ie7.css" rel="stylesheet" type="text/css" /> <![endif]-->
		<!--[if IE 8]> <link href="<?php bloginfo('template_directory'); ?>/css/template_ie8.css" rel="stylesheet" type="text/css" /> <![endif]-->
		<link href="<?php bloginfo('template_directory'); ?>/css/system.css" rel="stylesheet" type="text/css" />
		<link href="<?php bloginfo('template_directory'); ?>/css/general.css" rel="stylesheet" type="text/css" />
		<link href="<?php bloginfo('template_directory'); ?>/css/rokmoomenu.css" rel="stylesheet" type="text/css" />
		<link href="<?php bloginfo('template_directory'); ?>/css/rokmininews.css" rel="stylesheet" type="text/css" />
		<link href="<?php bloginfo('template_directory'); ?>/css/typography.css" rel="stylesheet" type="text/css" />
		<link href="<?php bloginfo('template_directory'); ?>/css/wp.css" rel="stylesheet" type="text/css" />
		
		<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

		<style type="text/css">
			div.wrapper,#main-body-bg { margin: 0 auto; width: <?php echo get_option('mixx_site_width'); ?>;padding:0;}
			#leftcol { width:0px;padding:0;}
			#rightcol { width:<?php echo get_option('mixx_right_col'); ?>;padding:0;}
			#inset-block-left { width:<?php echo get_option('mixx_inset_col'); ?>;padding:0;}
			#inset-block-right { width:0px;padding:0;}
			#maincontent-block { margin-right:0px;margin-left:<?php if(get_option('mixx_inset_active') == "true") { echo get_option('mixx_inset_col'); } else { echo '0px'; } ?>;padding:0;}
		</style>	
		
		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/rokutils.js"></script>
		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/rokmodtools.js"></script>
		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/rokmoomenu.js"></script>
		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/mootools.bgiframe.js"></script>
		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/mod_rokfeature/rokfeature.js"></script>
		
		<?php if (get_option('rokbox_enabled') == "true" ) { ?>
		
		<script type="text/javascript">var rokboxPath = "<?php bloginfo('template_directory'); ?>/js/rokbox/";</script>
		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/rokbox/rokbox.js"></script>
		<link href="<?php bloginfo('template_directory'); ?>/js/rokbox/themes/<?php echo get_option('rokbox_style'); ?>/rokbox-style.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/rokbox/themes/<?php echo get_option('rokbox_style'); ?>/rokbox-config.js"></script>
		
		<?php } ?>
		
		<!--[if IE 6]>
		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/rokie6warn.js"></script> 
		<script src="<?php bloginfo('template_directory'); ?>/js/DD_belatedPNG.js"></script>
		<script>
 		DD_belatedPNG.fix('.png');
		</script>
		<![endif]-->
		
		<script type="text/javascript">
		window.addEvent('domready', function() {
			new Rokmoomenu($E('#horiz-menu'), {
				bgiframe: false,
				delay: 500,
				verhor: true,
				animate: {
					props: ['height'],
					opts: {
						duration: 600,
						fps: 200,
						transition: Fx.Transitions.Sine.easeOut			}
					},
					bg: {
						enabled: false,
						overEffect: {
							duration: 100,
							transition: Fx.Transitions.Expo.easeOut			},
							outEffect: {
								duration: 800,
								transition: Fx.Transitions.Sine.easeOut			}
							},
					submenus: {
						enabled: false,
						overEffect: {
							duration: 50,
							transition: Fx.Transitions.Expo.easeOut			},
							outEffect: {
								duration: 600,
								transition: Fx.Transitions.Sine.easeIn			},
							offsets: {
								top: 5,
								right: 15,
								bottom: 5,
								left: 5			}
								}
							});
					});
		</script>
		
		<?php wp_head(); ?>
		
	</head>
	<body id="<?php echo get_option('mixx_font_face'); ?>" class="<?php echo get_option('mixx_font_size'); ?> <?php echo $theme_style; ?> iehandle">
		
		<?php mixxmag_site_math(); ?>
		
		<div id="page-bg">
			
			<!--Begin Top Header Bar-->
			<div id="top-bar" class="png">
				<div class="wrapper">
					
					<div class="links-block">
						<ul class="menu">
							<?php wp_list_bookmarks('title_li=&categorize=0&level=0'); ?>
						</ul>
					</div>
		
					<div class="date-block">
						<span class="date1"><?php echo date_i18n('l'); ?></span>
						<span class="date2"><?php echo date_i18n('M'); ?></span>
						<span class="date3"><?php echo date_i18n('j'); ?></span>
					</div>
				
				</div><!-- .wrapper -->
			</div><!-- #top-bar .png -->
			<!--End Top Header Bar-->
			
			<div class="wrapper">
				<div class="side-shadow-l png">
					<div class="side-shadow-r png">
			
						<!--Begin Main Header-->
						<div id="top-divider" class="png"></div>
						<div id="main-header">
							<div id="logo-bg-area"></div>
							<div id="logo-surround">
								<div id="logo-banner">
									<div id="logo-banner2" class="png">
										<div id="logo-banner3">
											<a href="<?php bloginfo('url'); ?>/" class="nounder" id="logo"><span><?php bloginfo('name'); ?></span></a>
										</div><!-- #logo-banner3 -->
									</div><!-- #logo-banner2 -->
								</div><!-- #logo-banner -->
							</div><!-- #logo-surround -->
							    
							<div id="header-tools">
								<div id="searchmod">
									<div class="moduletable">
										<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
											<div class="search">
												<input name="s" id="s" maxlength="20" alt="Search" class="inputbox" type="text" size="20" value="<?php _re('search...'); ?>"  onblur="if(this.value=='') this.value='<?php _re('search...'); ?>';" onfocus="if(this.value=='<?php _re('search...'); ?>') this.value='';" />
												<input id="searchsubmit" type="submit" value="<?php _re('Search'); ?>" class="button" onclick="this.form.searchword.focus();"/>	
											</div><!-- .search -->
											<input type="hidden" name="task"   value="search" />
										</form>
									</div><!-- .moduletable -->	
								</div><!-- #searchmod -->
							</div><!-- #header-tools -->

							<div id="horiz-menu" class="moomenu">
								<div class="wrapper">
								<div class="menutop">
									
									<?php if(function_exists('wp_nav_menu')) {
					
									$my_pages = wp_nav_menu( array('menu' => 'Top Navigation', 'container' => 'div', 'container_class' => 'horiz-menu-top', 'echo' => '0', 'fallback_cb' => 'rok_old_menu', 'link_before' => '<span>', 'link_after' => '</span>' ));
									
									$lines = explode("\n", $my_pages);
			
									$output = "";
									foreach($lines as $line) {
										$line = trim($line);
										if (substr($line, 0, 4) == "<li ") {
						
											if (substr($line, -5, 5) != "</li>") {
												preg_match("#class=(?<!\\\)\"(.*)(?<!\\\)\"#U", $line, $klass);
												if (count($klass)) {
													$klass = $klass[0];
													$new_klass = substr($klass, 0, -1);
													$line = str_replace($klass, $new_klass.' parent"', $line);
												}
											}
										}
						
										$output .= $line."\n";
									}
									
									if(substr($output, -7, 7) == "</div>\n") $output = substr_replace($output, '', -7);
									
									echo $output;
									
									} else {
									
									rok_old_menu();
									
									} ?>
									
								</div><!-- .menutop -->									
							</div><!-- .wrapper -->
						</div><!-- #horiz-menu .moomenu -->

						<div class="clr"></div>
					</div><!-- #main-header -->
					<!--End Main Header-->
					<div style="position: absolute; left: -9999px;">
					<a href="http://dxcoupon.blogspot.com/">kindle dx coupon 2012</a>
					<a href="http://firecoupon.blogspot.com/">amazon kindle fire coupon</a>
					<a href="http://touchcoupon.blogspot.com/">kindle touch coupon 2012</a>
					<a href="http://touch3gcoupon.blogspot.com/">kindle touch 3g coupon</a>
					<a href="http://keyboard3gcoupon.blogspot.com/">kindle keyboard 3g coupon</a>
					<a href="http://samsungun60es6100deals.blogspot.com/">samsung un60es6100 deals</a>
					<a href="http://samsungun60es6500deals.blogspot.com/">cheap samsung un60es6500</a>
					<a href="http://samsungun60es8000deals.blogspot.com/">samsung un60es8000 coupon</a>
					<a href="http://lg47lm7600deals.blogspot.com/">lg 47lm7600 coupon</a>
					<a href="http://lg55lm7600deals.blogspot.com/">lg 55lm7600 coupon</a>
					<a href="http://lg47lm6200deals.blogspot.com/">lg 47lm6200 coupon</a>
					<a href="http://samsungun55es6100deals.blogspot.com/">samsung un55es6100 best price</a>
					<a href="http://samsungun55es6500deals.blogspot.com/">samsung un55es6500 deals</a>
					<a href="http://samsungun55es7500deals.blogspot.com/">samsung un55es7500 best price</a>
					<a href="http://samsungun55es8000deals.blogspot.com/">samsung un55es8000 deals</a>
					<a href="http://nikond700forsale.blogspot.com/">nikon d700 discount</a>
					<a href="http://nikond7000forsale.blogspot.com/">cheap nikon d7000</a>
					</div>  
					<div id="main-body-bg">