1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />
  <title>
  <?php if ( is_tag() ) {
      echo 'Tag Archive for &quot;'.$tag.'&quot; | '; bloginfo( 'name' );
    } elseif ( is_archive() ) {
      wp_title(); echo ' Archive | '; bloginfo( 'name' );
    } elseif ( is_search() ) {
      echo 'Search for &quot;'.wp_specialchars($s).'&quot; | '; bloginfo( 'name' );
    } elseif ( is_home() ) {
      bloginfo( 'name' ); echo ' | '; bloginfo( 'description' );
    }  elseif ( is_404() ) {
      echo 'Error 404 Not Found | '; bloginfo( 'name' );
    } else {
      echo wp_title( ' | ', false, right ); bloginfo( 'name' );
    } ?>
  </title>
  <!--
    Semi dynamic meta keywords and meta description. Google likes meta info that changes for each page.
    While these meta keywords are not ideal and the meta description could be better, they are better than nothing.
  -->
  <meta name="keywords" content="<?php wp_title(); echo ' , '; bloginfo( 'name' ); echo ' , '; bloginfo( 'description' ); ?>" />
  <meta name="description" content="<?php wp_title(); echo ' | '; bloginfo( 'description' ); ?>" />
  <meta charset="<?php bloginfo( 'charset' ); ?>" />
  <link rel="profile" href="http://gmpg.org/xfn/11" />
  <link rel="index" title="<?php bloginfo( 'name' ); ?>" href="<?php echo get_option('home'); ?>/" />
  <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  <link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ); ?>" href="<?php bloginfo( 'rss2_url' ); ?>" />
  <link rel="alternate" type="application/atom+xml" title="<?php bloginfo( 'name' ); ?>" href="<?php bloginfo( 'atom_url' ); ?>" />
  <!-- Loads jQuery if it hasn't been loaded already -->
  <?php wp_enqueue_script("jquery"); ?>
  <?php wp_enqueue_script("clock"); ?>
  <?php wp_enqueue_script("superfish"); ?>
  <?php wp_enqueue_script("faded"); ?>
  <!-- The HTML5 Shim is required for older browsers, mainly older versions IE -->
  <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  <![endif]-->
  <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/reset.css" />
  <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  <!--[if lt IE 8]><link rel=stylesheet href="<?php bloginfo( 'template_url' ); ?>/css/ie.css"><![endif]-->
  <?php wp_head(); ?> <!-- this is used by many Wordpress features and for plugins to work proporly -->
  <script type="text/javascript">
    // initialise plugins
    jQuery(function(){
      jQuery('nav.primary ul.menu').superfish({
        delay:       1000,                             // one second delay on mouseout 
        animation:   {opacity:'show', height:'show'},  // fade-in and slide-down animation 
        speed:       'fast',                           // faster animation speed
        autoArrows:  false,                            // disable generation of arrow mark-up 
        dropShadows: false                             // disable drop shadows 
      });

      jQuery("#sidebar .widget:first").addClass("first");
      jQuery("#sidebar .widget:nth-child(3)").addClass("second");

      //Faded slider
      jQuery("#faded").faded({
        speed: 300,
        crossfade: false,
        autoplay: 5000
      });

    });
  </script>  


</head>

<body <?php body_class(); ?> onLoad="myclock();">

<div id="main"><!-- this encompasses the entire Web site -->
  <header id="header">
    <div class="logo">
      <?php if( is_front_page() || is_home() ) { ?>

      <?php } else { ?>

      <?php } ?>

    </div>
    <form id="ClockForm" action="">
      <fieldset>
        <input type="text" id="clock" />
       </fieldset>
    </form>
    <nav class="primary">
      <?php wp_nav_menu( array('menu' => 'Header Menu' )); ?> <!-- editable within the Wordpress backend -->
    </nav><!--.primary-->
    <?php if ( ! dynamic_sidebar( 'Header' ) ) : ?>
      <!-- Wigitized Header -->
    <?php endif ?>
  </header>
  <div class="clear"></div>
  <div class="container">