/*
#------------------------------------------------------------------------
# Package - JoomlaMan JMSlideShow
# Version 1.0
# -----------------------------------------------------------------------
# Author - JoomlaMan http://www.joomlaman.com
# Copyright © 2012 - 2013 JoomlaMan.com. All Rights Reserved.
# @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
# Websites: http://www.JoomlaMan.com
#------------------------------------------------------------------------
*/
jQuery(document).ready(function(){
    //Slider source
    jQuery('#jform_params_asset-lbl').parents('.control-group').hide();
    jmnewspro_SourceChange(jQuery('#jform_params_slider_source').val());
    jmnewspro_show_image(jQuery('[id^=jform_params_jmnewspro_show_image]:checked').val());
	JMNewsPro_AutoChange(jQuery('#jform_params_jmnewspro_auto').val());
    jmnewspro_titlelink(jQuery('[id^=jform_params_jmnewspro_show_title]:checked').val());
    jmnewspro_showReadmore(jQuery('[id^=jform_params_jmnewspro_show_readmore]:checked').val());
	jmnewspro_showPopupImage(jQuery('[id^=jform_params_jmnewspro_show_popup]:checked').val());
    jmnewspro_showDesc(jQuery('[id^=jform_params_jmnewspro_show_desc]:checked').val());
    jmnewspro_showPager(jQuery('[id^=jform_params_jmnewspro_show_pager]:checked').val());
    jQuery('#jform_params_slider_source').change(function(){
        jmnewspro_SourceChange(jQuery(this).val());
    })
    jQuery('[id^=jform_params_jmnewspro_show_image]').click(function(){
        jmnewspro_show_image(jQuery('[id^=jform_params_jmnewspro_show_image]:checked').val());
    })
    jQuery('[id^=jform_params_jmnewspro_show_title]').click(function(){
        jmnewspro_titlelink(jQuery('[id^=jform_params_jmnewspro_show_title]:checked').val());
    })
	jQuery('[id^=jform_params_jmnewspro_show_readmore]').click(function(){
        jmnewspro_showReadmore(jQuery('[id^=jform_params_jmnewspro_show_readmore]:checked').val());
    })
	jQuery('[id^=jform_params_jmnewspro_show_popup]').click(function(){
        jmnewspro_showPopupImage(jQuery('[id^=jform_params_jmnewspro_show_popup]:checked').val());
    })
	jQuery('[id^=jform_params_jmnewspro_show_desc]').click(function(){
        jmnewspro_showDesc(jQuery('[id^=jform_params_jmnewspro_show_desc]:checked').val());
    })
	jQuery('[id^=jform_params_jmnewspro_show_pager]').click(function(){
        jmnewspro_showPager(jQuery('[id^=jform_params_jmnewspro_show_pager]:checked').val());
    })
	jQuery('#jform_params_jmnewspro_auto').change(function(){
		jmnewspro_AutoChange(jQuery(this).val());
    })
})
function jmnewspro_SourceChange(source){
    switch(source){
        case '1':
            ShowOption();
            jQuery('#jform_params_jmnewspro_ordering').parents('li').css({display:'block'});
            jQuery('#jform_params_jmnewspro_orderby').parents('.control-group').css({display:'block'});
            jQuery('#jform_params_jmnewspro_hikashop_orderby').parents('.control-group').css({display:'none'});
            jQuery('#jform_params_jmnewspro_categories').parents('.control-group').css({
                display:'block'
            });
            jQuery('#jform_params_jmnewspro_article_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_k2_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_k2_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_hikashop_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_hikashop_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_image_source').parents('.control-group').css({
                display:'none'
            });
           jQuery('#jform_params_jmnewspro_count').parents('.control-group').css({
                display:'block'
            });
            jQuery('#jform_params_jmnewspro_article_image_source').parents('.control-group').css({
                display:'block'
            });
			jQuery('#jform_params_jmnewspro_foder_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_price').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_url').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link_target').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_desc').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_category').parents('.control-group').css({
                display:'block'
            });	
            break;
        case '2':
            ShowOption();
            jQuery('#jform_params_jmnewspro_ordering').parents('li').css({display:'block'});
            jQuery('#jform_params_jmnewspro_orderby').parents('.control-group').css({display:'block'});
            jQuery('#jform_params_jmnewspro_hikashop_orderby').parents('.control-group').css({display:'none'});
            jQuery('#jform_params_jmnewspro_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_article_ids').parents('.control-group').css({
                display:'block'
            });
            jQuery('#jform_params_jmnewspro_k2_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_k2_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_hikashop_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_hikashop_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_image_source').parents('.control-group').css({
                display:'none'
            });
           jQuery('#jform_params_jmnewspro_count').parents('.control-group').css({
                display:'block'
            });
            jQuery('#jform_params_jmnewspro_article_image_source').parents('.control-group').css({
                display:'block'
            });
			jQuery('#jform_params_jmnewspro_foder_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_price').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_url').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link_target').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_desc').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_category').parents('.control-group').css({
                display:'block'
            });	
			break;
        case '3':
            ShowOption();
            jQuery('#jform_params_jmnewspro_ordering').parents('li').css({display:'block'});
            jQuery('#jform_params_jmnewspro_orderby').parents('.control-group').css({display:'block'});
            jQuery('#jform_params_jmnewspro_hikashop_orderby').parents('.control-group').css({display:'none'});
            jQuery('#jform_params_jmnewspro_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_article_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_k2_categories').parents('.control-group').css({
                display:'block'
            });
            jQuery('#jform_params_jmnewspro_k2_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_hikashop_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_hikashop_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_image_source').parents('.control-group').css({
                display:'block'
            });
           jQuery('#jform_params_jmnewspro_count').parents('.control-group').css({
                display:'block'
            });
            jQuery('#jform_params_jmnewspro_article_image_source').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_foder_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_price').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_url').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link_target').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_desc').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_category').parents('.control-group').css({
                display:'block'
            });	
			break;
        case '4':
            ShowOption();
            jQuery('#jform_params_jmnewspro_ordering').parents('li').css({display:'block'});
            jQuery('#jform_params_jmnewspro_orderby').parents('.control-group').css({display:'block'});
            jQuery('#jform_params_jmnewspro_hikashop_orderby').parents('.control-group').css({display:'none'});
            jQuery('#jform_params_jmnewspro_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_article_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_k2_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_k2_ids').parents('.control-group').css({
                display:'block'
            });
            jQuery('#jform_params_jmnewspro_hikashop_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_hikashop_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_image_source').parents('.control-group').css({
                display:'block'
            });
           jQuery('#jform_params_jmnewspro_count').parents('.control-group').css({
                display:'block'
            });
            jQuery('#jform_params_jmnewspro_article_image_source').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_foder_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_price').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_url').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link_target').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_desc').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_category').parents('.control-group').css({
                display:'block'
            });	
			break;
		case '5':
            ShowOption();
            jQuery('#jform_params_jmnewspro_ordering').parents('li').css({display:'block'});
            jQuery('#jform_params_jmnewspro_orderby').parents('.control-group').css({display:'none'});
            jQuery('#jform_params_jmnewspro_hikashop_orderby').parents('.control-group').css({display:'block'});
            jQuery('#jform_params_jmnewspro_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_article_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_k2_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_k2_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_hikashop_categories').parents('.control-group').css({
                display:'block'
            });
            jQuery('#jform_params_jmnewspro_hikashop_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_image_source').parents('.control-group').css({
                display:'block'
            });
           jQuery('#jform_params_jmnewspro_count').parents('.control-group').css({
                display:'block'
            });
            jQuery('#jform_params_jmnewspro_article_image_source').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_foder_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_price').parents('.control-group').css({
                display:'block'
            });
			jQuery('#jform_params_jmnewspro_file_image_url').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link_target').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_desc').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_category').parents('.control-group').css({
                display:'block'
            });	
			break;
		case '6':
            ShowOption();
            jQuery('#jform_params_jmnewspro_ordering').parents('li').css({display:'block'});
            jQuery('#jform_params_jmnewspro_orderby').parents('.control-group').css({display:'none'});
            jQuery('#jform_params_jmnewspro_hikashop_orderby').parents('.control-group').css({display:'block'});
            jQuery('#jform_params_jmnewspro_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_article_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_k2_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_k2_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_hikashop_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_hikashop_ids').parents('.control-group').css({
                display:'block'
            });
            jQuery('#jform_params_jmnewspro_image_source').parents('.control-group').css({
                display:'block'
            });
           jQuery('#jform_params_jmnewspro_count').parents('.control-group').css({
                display:'block'
            });
            jQuery('#jform_params_jmnewspro_article_image_source').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_foder_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_price').parents('.control-group').css({
                display:'block'
            });
			jQuery('#jform_params_jmnewspro_file_image_url').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link_target').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_desc').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_category').parents('.control-group').css({
                display:'block'
            });	
			break;
		case '7':
            ShowOption();
            jQuery('#jform_params_jmnewspro_ordering').parents('li').css({display:'block'});
            jQuery('#jform_params_jmnewspro_orderby').parents('.control-group').css({display:'block'});
            jQuery('#jform_params_jmnewspro_hikashop_orderby').parents('.control-group').css({display:'none'});
            jQuery('#jform_params_jmnewspro_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_article_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_k2_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_k2_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_hikashop_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_hikashop_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_image_source').parents('.control-group').css({
                display:'block'
            });
           jQuery('#jform_params_jmnewspro_count').parents('.control-group').css({
                display:'block'
            });
            jQuery('#jform_params_jmnewspro_article_image_source').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_foder_image').parents('.control-group').css({
                display:'none'
            });					
			jQuery('#jform_params_jmnewspro_show_price').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_url').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link_target').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_desc').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_category').parents('.control-group').css({
                display:'block'
            });	
			break;
		case '8':
            ShowOption();
            jQuery('#jform_params_jmnewspro_ordering').parents('li').css({display:'block'});
            jQuery('#jform_params_jmnewspro_orderby').parents('.control-group').css({display:'block'});
            jQuery('#jform_params_jmnewspro_hikashop_orderby').parents('.control-group').css({display:'none'});
            jQuery('#jform_params_jmnewspro_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_article_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_k2_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_k2_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_hikashop_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_hikashop_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_image_source').parents('.control-group').css({
                display:'block'
            });
           jQuery('#jform_params_jmnewspro_count').parents('.control-group').css({
                display:'block'
            });
            jQuery('#jform_params_jmnewspro_article_image_source').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_foder_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_price').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_url').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link_target').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_desc').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_category').parents('.control-group').css({
                display:'block'
            });	
			break;
		case '9':
            jQuery('#jform_params_jmnewspro_ordering').parents('li').css({display:'block'});
            jQuery('#jform_params_jmnewspro_orderby').parents('.control-group').css({display:'block'});
            jQuery('#jform_params_jmnewspro_hikashop_orderby').parents('.control-group').css({display:'none'});
			jQuery('#jform_params_jmnewspro_categories').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_article_ids').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_k2_categories').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_k2_ids').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_hikashop_categories').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_hikashop_ids').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_image_source').parents('.control-group').css({
                display:'none'
            });					
			jQuery('#jform_params_jmnewspro_count').parents('.control-group').css({
                display:'none'
            });
			
			jQuery('#jform_params_jmnewspro_caption_position').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_caption_left').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_caption_top').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_caption_right').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_caption_bottom').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_caption_width').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_title').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_title_link').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_desc').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_desc_length').parents('.control-group').css({
                display:'none'
            });
			
			jQuery('#jform_params_jmnewspro_show_readmore').parents('.control-group').css({
                display:'none'
            });
			
			jQuery('#jform_params_jmnewspro_article_image_source').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_foder_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_price').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_url').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link_target').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_desc').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_category').parents('.control-group').css({
                display:'block'
            });	
			break;
		case '10':
            ShowOption();
            jQuery('#jform_params_jmnewspro_ordering').parents('.control-group').css({display:'none'});
            jQuery('#jform_params_jmnewspro_orderby').parents('.control-group').css({display:'none'});
            jQuery('#jform_params_jmnewspro_hikashop_orderby').parents('.control-group').css({display:'none'});
            jQuery('#jform_params_jmnewspro_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_article_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_k2_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_k2_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_hikashop_categories').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_hikashop_ids').parents('.control-group').css({
                display:'none'
            });
            jQuery('#jform_params_jmnewspro_image_source').parents('.control-group').css({
                display:'none'
            });
           jQuery('#jform_params_jmnewspro_count').parents('.control-group').css({
                display:'block'
            });
            jQuery('#jform_params_jmnewspro_article_image_source').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_foder_image').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_show_price').parents('.control-group').css({
                display:'none'
            });
			jQuery('#jform_params_jmnewspro_file_image_url').parents('.control-group').css({
                display:'block'
            });
			jQuery('#jform_params_jmnewspro_file_image_title').parents('.control-group').css({
                display:'block'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link').parents('.control-group').css({
                display:'block'
            });
			jQuery('#jform_params_jmnewspro_file_image_title_link_target').parents('.control-group').css({
                display:'block'
            });
			jQuery('#jform_params_jmnewspro_file_image_desc').parents('.control-group').css({
                display:'block'
            });
			jQuery('#jform_params_jmnewspro_file_image').parents('.control-group').css({
                display:'block'
            });
			jQuery('#jform_params_jmnewspro_show_category').parents('.control-group').css({
                display:'none'
            });	
            break;
    }
}
function ShowOption(){
	jQuery('#jform_params_jmnewspro_caption_position').parents('.control-group').css({
		display:'block'
	});
	jQuery('#jform_params_jmnewspro_caption_left').parents('.control-group').css({
		display:'block'
	});
	jQuery('#jform_params_jmnewspro_caption_top').parents('.control-group').css({
		display:'block'
	});
	jQuery('#jform_params_jmnewspro_caption_right').parents('.control-group').css({
		display:'block'
	});
	jQuery('#jform_params_jmnewspro_caption_bottom').parents('.control-group').css({
		display:'block'
	});
	jQuery('#jform_params_jmnewspro_caption_width').parents('.control-group').css({
		display:'block'
	});
	jQuery('#jform_params_jmnewspro_show_title').parents('.control-group').css({
		display:'block'
	});
	jQuery('#jform_params_jmnewspro_title_link').parents('.control-group').css({
		display:'block'
	});
	jQuery('#jform_params_jmnewspro_show_desc').parents('.control-group').css({
		display:'block'
	});
	jQuery('#jform_params_jmnewspro_desc_length').parents('.control-group').css({
		display:'block'
	});
	
	jQuery('#jform_params_jmnewspro_show_readmore').parents('.control-group').css({
		display:'block'
	});
	
	jQuery('#jform_params_jmnewspro_ordering').parents('.control-group').css({
		display:'block'
	});
	jQuery('#jform_params_jmnewspro_orderby').parents('.control-group').css({
		display:'block'
	});
}
function JMNewsPro_AutoChange(source){
    switch(source){
        case 'true':
            jQuery('#jform_params_jmnewspro_timeout').parents('.control-group').css({
                display:'block'
            });
            break;
        case 'false':
            jQuery('#jform_params_jmnewspro_timeout').parents('.control-group').css({
                display:'none'
            });
            break;
    }
}
function jmnewspro_show_image(option){
    if(option==1){
        jQuery('#jform_params_jmnewspro_image_style').parents('.control-group').css({display:'block'});
        jQuery('#jform_params_jmnewspro_image_link').parents('.control-group').css({display:'block'});
    }else{
        jQuery('#jform_params_jmnewspro_image_style').parents('.control-group').css({display:'none'});
        jQuery('#jform_params_jmnewspro_image_link').parents('.control-group').css({display:'none'});
    }
}
function jmnewspro_titlelink(option){
    if(option == 1){
        jQuery('#jform_params_jmnewspro_title_length').parents('.control-group').css('display','block');
        jQuery('#jform_params_jmnewspro_title_link').parents('.control-group').css('display','block');
    }else{
        jQuery('#jform_params_jmnewspro_title_length').parents('.control-group').css('display','none');
        jQuery('#jform_params_jmnewspro_title_link').parents('.control-group').css('display','none');
    }
}
function jmnewspro_showReadmore(option){
    if(option == 1){
        jQuery('#jform_params_jmnewspro_readmore_text').parents('.control-group').css('display','block');
    }else{
        jQuery('#jform_params_jmnewspro_readmore_text').parents('.control-group').css('display','none');
    }
}
function jmnewspro_showPopupImage(option){
    if(option == 1){
        jQuery('#jform_params_jmnewspro_popup_text').parents('.control-group').css('display','block');
        jQuery('#jform_params_jmnewspro_colorbox_transition').parents('.control-group').css('display','block');
        jQuery('#jform_params_jmnewspro_colorbox_style').parents('.control-group').css('display','block');
        jQuery('#jform_params_jmnewspro_colorbox_width').parents('.control-group').css('display','block');
        jQuery('#jform_params_jmnewspro_colorbox_height').parents('.control-group').css('display','block');
    }else{
        jQuery('#jform_params_jmnewspro_popup_text').parents('.control-group').css('display','none');
        jQuery('#jform_params_jmnewspro_colorbox_transition').parents('.control-group').css('display','none');
        jQuery('#jform_params_jmnewspro_colorbox_style').parents('.control-group').css('display','none');
        jQuery('#jform_params_jmnewspro_colorbox_width').parents('.control-group').css('display','none');
        jQuery('#jform_params_jmnewspro_colorbox_height').parents('.control-group').css('display','none');
    }
}
function jmnewspro_showDesc(option){
    if(option == 1){
        jQuery('#jform_params_jmnewspro_desc_length').parents('.control-group').css('display','block');
    }else{
        jQuery('#jform_params_jmnewspro_desc_length').parents('.control-group').css('display','none');
    }
}
function jmnewspro_showPager(option){
    if(option == 1){
        jQuery('#jform_params_jmnewspro_pager_position').parents('.control-group').css('display','block');
    }else{
        jQuery('#jform_params_jmnewspro_pager_position').parents('.control-group').css('display','none');
    }
}