$js_h5f = get_template_directory_uri() . '/library/js/h5f.min.js';
$js_backstretch = get_template_directory_uri() . '/library/js/jquery.backstretch.min.js';
$js_cycle = get_template_directory_uri() . '/library/js/jquery.cycle.all.js';
$js_masonry = get_template_directory_uri() . '/library/js/jquery.masonry.min.js';
$js_tiptip = get_template_directory_uri() . '/library/js/jquery.tipTip.minified.js';
wp_register_script('h5f', $js_h5f);
wp_register_script('backstretch', $js_backstretch, array('jquery'));
wp_register_script('cycle', $js_cycle, array('jquery'));
wp_register_script('masonry', $js_masonry, array('jquery'));
wp_register_script('tiptip', $js_tiptip, array('jquery'));
wp_register_script('flex-slider', get_stylesheet_directory_uri() . '/library/js/jquery.flexslider-min.js', array('jquery'));
/**
 * Main theme js scripts
 */
if (!is_admin()) {
    cwp::jquery();
    wp_enqueue_script('modernizer', get_template_directory_uri() . '/library/js/modernizr.custom.48627.js', array('jquery'));
    wp_enqueue_script('theme-scripts', get_template_directory_uri() . '/library/js/scripts.js');
    wp_enqueue_script('media-queries', get_template_directory_uri() . '/library/js/css3-mediaqueries.js');
    wp_enqueue_script('fitvids', get_template_directory_uri() . '/library/js/jquery.fitvids.js', array('jquery'));
    //wp_enqueue_script('less', 'http://lesscss.googlecode.com/files/less-1.0.21.min.js', array('jquery'));
    wp_enqueue_script('hf5', $js_h5f);
}
core_functions::favicon();
add_theme_support('post-thumbnails');
add_theme_support('automatic-feed-links');
//add_editor_style();
//cwp::theme_images(); //adds  image sizes slideshow-[720,960,1200,1560], icon-[40,60,100]
add_image_size('icon-60', 60, 60, true);
add_image_size('icon-100', 100, 100, true);
add_image_size('icon-40', 40, 40, true);