<!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"  dir="ltr" lang="es-ES">

    <head profile="http://gmpg.org/xfn/11">
    
        <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
        
        <meta name="title" content="<?php bp_page_title() ?>" />
        <meta name="description" content="Kronikoen Sarea, la red vasca de pacientes para las personas que conviven con una enfermedad crónica y quienes les acompañan. Gaixotasun kroniko bat duten pertsonen eta haiekin batera dauden lagunen sarea." />
        <meta name="keywords" content="Kronikoen Sarea, Kronet, enfermedad crónica, dolor crónico, asociaciones de pacientes, gaixotasun kronikoa, busco ayuda, conocer gente, País Vasco, gratis, salud, red social, Euskadi, con ánimo, gogotsu, paciente, cuidador, familiar, hijo enfermo, discapacidad, dudas, medicamentos, cuidados, estoy enferma, auto cuidado, cronicidad, crónico, crónica, sistema público salud, Osakidetza, fibromialgia, sida, tiroides, diabetes, vih, hipotiroidismo, epilepsia, esclerosis múltiple, artritis reumatoide"/>
        <meta name="author" content="Kronikoen Sarea" />
        
        <title><?php bp_page_title() ?></title>
        
        <?php do_action( 'bp_head' ) ?>
        
        <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
        
        <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
        
        <!--[if IE 8]>
            <link rel="stylesheet" type="text/css" media="screen, projection" href="<?php echo str_replace("style.css", "ie8.css", get_bloginfo( "stylesheet_url", 'display' )); ?>" />
        <![endif]-->
        
        <!--[if IE 7]>
            <link rel="stylesheet" type="text/css" media="screen, projection" href="<?php echo str_replace("style.css", "ie7.css", get_bloginfo( "stylesheet_url", 'display' )); ?>" />
        <![endif]-->
        
        <?php if ( function_exists( 'bp_sitewide_activity_feed_link' ) ) : ?>
            <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php _e('Site Wide Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" />
        <?php endif; ?>
        
        <?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_member() ) : ?>
            <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_displayed_user_fullname() ?> | <?php _e( 'Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_member_activity_feed_link() ?>" />
        <?php endif; ?>
        
        <?php if ( function_exists( 'bp_group_activity_feed_link' ) && bp_is_group() ) : ?>
            <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_current_group_name() ?> | <?php _e( 'Group Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_group_activity_feed_link() ?>" />
        <?php endif; ?>
        
        <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" />
        <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" />
        
        <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
        
        <link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic' rel='stylesheet' type='text/css'>
        
        <?php
        /**
         * Aqui pasamos de todos los plugins en principio,
         * Y cargamos solo lo necesario
         * wp_head();
         */
        
        /**
         * JQUERY
         */
        wp_deregister_script( 'jquery' );
        wp_register_script( 'jquery', get_site_url() .'/wp-includes/js/jquery/jquery.js' );
        wp_print_scripts( 'jquery' );
        
        /**
         * ckeditor
         */
        wp_deregister_script( 'ckeditor' );
        wp_register_script( 'ckeditor', get_stylesheet_directory_uri(). '/_inc/ckeditor/ckeditor.js' );
        wp_print_scripts( 'ckeditor' );

        global $bp;

        // Para registration
        if (in_array($bp->current_component, array("register", "oauth"))) {
            // CSS STYLES
            wp_deregister_style('registration-css');
            wp_enqueue_style('registration-css', get_stylesheet_directory_uri() .'/registration/css/style.css');
            wp_print_styles('registration-css');

            // MYTABS
            wp_deregister_script( 'mytabs' );
            wp_register_script( 'mytabs', get_stylesheet_directory_uri() .'/_inc/mytabs/mytabs.js', '' );
            wp_print_scripts( 'mytabs' );
            wp_deregister_style( 'mytabs-css' );
            wp_register_style( 'mytabs-css', get_stylesheet_directory_uri() .'/_inc/mytabs/mytabs.css', '' );
            wp_print_styles( 'mytabs-css' );

            // DINAMIC UPLOAD
            wp_deregister_script( 'din-upload' );
            wp_register_script( 'din-upload', get_stylesheet_directory_uri() .'/_inc/din-upload/din-upload.js', '' );
            wp_print_scripts( 'din-upload' );
            wp_deregister_style('din-upload-css');
            wp_enqueue_style('din-upload-css', get_stylesheet_directory_uri() .'/_inc/din-upload/din-upload.css');
            wp_print_styles('din-upload-css');
        }
        ?>
        <!--[if IE 8]>
        <style>
        #steps li.steps-li  {
            font-size: 11px;
        }
        
        .steps-li  {
            font-size: 11px;
        }
        </style>
        <![endif]-->
        
    </head>
    
    <body style="background: none; min-width: 400px; width: 100%; margin: 0px; padding: 0px;">