var menu;
function set_menu_app(m){
	menu = m;
}
var color1,color2,color3,color4,colo5,color6,color7,color8,color9,color10;
jQuery(document).ready(function(){
	
	//jQuery('#scroll-div').rollbar({});
	//jQuery('#scroll-div').niceScroll({cursorcolor:"#00f"});
	jQuery(".update-nag").remove();
	jQuery("#footer-upgrade").remove();
	jQuery(".icon-name").hide();
	jQuery(".icon-value").hide();
	jQuery("i").addClass("fa-3x");
	jQuery("i").css({"cursor": "pointer","padding-top":"15px"});
	
	jQuery("i").click(function(){
			
			icon_code = jQuery(this).next().next().html();
			icon_class = jQuery(this).next().html();
			icons = icon_class+"__"+icon_code;
			
				if(menu==1){
					if(jQuery("#txt_menu_right").val() != '')
					{
						var lastClass = jQuery('#icon_right').attr('class').split(' ').pop();
						jQuery("#icon_right").removeClass(lastClass);
						var lastClass = jQuery('#right_icon_theme1').attr('class').split(' ').pop();
						jQuery("#right_icon_theme1").removeClass(lastClass);
					}
					jQuery("#txt_menu_right").val(icons);
					jQuery("#icon_right").addClass(icon_class);
					jQuery("#right_icon_theme1").addClass(icon_class);
					jQuery(".close").click();
				}
				else if(menu==2){
					if(jQuery("#txt_menu_left").val() != '')
					{
						var lastClass = jQuery('#icon_left').attr('class').split(' ').pop();
						jQuery("#icon_left").removeClass(lastClass);
						var lastClass = jQuery('#left_icon_theme1').attr('class').split(' ').pop();
						jQuery("#left_icon_theme1").removeClass(lastClass);
					}
					jQuery("#txt_menu_left").val(icons);
					jQuery("#icon_left").addClass(icon_class);
					jQuery("#left_icon_theme1").addClass(icon_class);
					jQuery(".close").click();
				}
				else if(menu==3){
					if(jQuery("#txt_menu_search").val() != '')
					{
						var lastClass = jQuery('#icon_search').attr('class').split(' ').pop();
						jQuery("#icon_search").removeClass(lastClass);
						var lastClass = jQuery('.search_icon').attr('class').split(' ').pop();
						jQuery(".search_icon").removeClass(lastClass);
					}
					jQuery("#txt_menu_search").val(icons);
					jQuery("#icon_search").addClass(icon_class);
					jQuery(".search_icon").addClass(icon_class);
					jQuery(".close").click();
				}
			
			
	});
	
	//----------------set frame options---------------------------
		jQuery.ajax({
			url: ajaxurl,
			data: {
				action: "set_frame_options",
			},
			success:function(data) {
				data = data.substring(0,data.length -1);
				var res = data.split("__");
				color1 = res[0];color2 = res[1];color3 = res[2];color4 = res[9];color5 = res[10];
				color6 = res[8];color7 = res[12];color8 = res[13];color9 = res[11];color10 = res[17]; 
				jQuery("#theme_1").css({"background-color":res[0]});
				jQuery("#actionbar_theme1").css({"background-color":res[1],"color":res[2]});
				jQuery("#title_theme1").html(res[3]);
				jQuery("#title_right_menu_theme1").html(res[4]);
				jQuery("#title_left_menu_theme1").html(res[5]);
				jQuery("#right_icon_theme1").addClass(res[6]);
				jQuery("#left_icon_theme1").addClass(res[7]);
				//--------search----------
				if(res[15]==1){
					jQuery("#search1").removeClass('hide');
					jQuery("#search2").addClass('hide');
					jQuery("#search3").addClass('hide');
					jQuery("#search4").addClass('hide');
					jQuery('.search_icon').addClass(res[16]);
					jQuery('#search1').css({"color":res[17]});
				}else if(res[15]==2){
					jQuery("#search2").removeClass('hide');
					jQuery("#search1").addClass('hide');
					jQuery("#search3").addClass('hide');
					jQuery("#search4").addClass('hide');
					jQuery('.search_icon').addClass(res[16]);
					jQuery('#search2').css({"color":res[17]});
				}else if(res[15]==3){
					jQuery("#search3").removeClass('hide');
					jQuery("#search2").addClass('hide');
					jQuery("#search1").addClass('hide');
					jQuery("#search4").addClass('hide');
					jQuery('.search_icon').addClass(res[16]);
					jQuery('#search3').css({"color":res[17]});
				}else if(res[15]==4){
					jQuery("#search4").removeClass('hide');
					jQuery("#search2").addClass('hide');
					jQuery("#search3").addClass('hide');
					jQuery("#search1").addClass('hide');
					jQuery('.search_icon').addClass(res[16]);
					jQuery('#search4').css({"color":res[17]});
				}else if(res[15]==5){
					jQuery("#search1").addClass('hide');
					jQuery("#search2").addClass('hide');
					jQuery("#search3").addClass('hide');
					jQuery("#search4").addClass('hide');
				}
				//--------search----------
				
				if(res[14]==1){
					jQuery("#theme1").removeClass('hide');
										jQuery("#theme2").addClass('hide');
															jQuery("#theme3").addClass('hide');
																				jQuery("#theme4").addClass('hide');
																								jQuery("#theme5").addClass('hide');
																								jQuery("#theme6").addClass('hide');
																								jQuery("#theme7").addClass('hide');
																								jQuery("#theme8").addClass('hide');
					jQuery(".list_theme1").css({"background-color":res[8]});
					jQuery(".title_list_theme1").css({"background-color":res[9],"color":res[10]});
					jQuery(".text_list_theme1").css({"color":res[11]});
					jQuery(".list_footer_theme1").css({"background-color":res[12],"color":res[13]});
					//text-decoration: line-through;
					jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
				}else if(res[14]==2){
					jQuery("#theme2").removeClass('hide');
										jQuery("#theme1").addClass('hide');
															jQuery("#theme3").addClass('hide');
																				jQuery("#theme4").addClass('hide');
																				jQuery("#theme5").addClass('hide');
																								jQuery("#theme6").addClass('hide');
																								jQuery("#theme7").addClass('hide');
																								jQuery("#theme8").addClass('hide');
					jQuery(".list_theme2").css({"background-color":res[8]});
					jQuery(".text_list_theme2").css({"color":res[11]});
					jQuery(".list_footer_theme2").css({"color":res[13]});
					//text-decoration: line-through;
					jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
					jQuery("#descCLR_LISTHTX").css({"text-decoration":"line-through"});
					jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});
				}else if(res[14]==3){
					jQuery("#theme3").removeClass('hide');
										jQuery("#theme1").addClass('hide');
															jQuery("#theme2").addClass('hide');
																			jQuery("#theme4").addClass('hide');
																			jQuery("#theme5").addClass('hide');
																								jQuery("#theme6").addClass('hide');
																								jQuery("#theme7").addClass('hide');
																								jQuery("#theme8").addClass('hide');
					jQuery(".list_theme3").css({"background-color":res[8]});
					jQuery(".text_list_theme3").css({"color":res[11]});
					jQuery(".list_footer_theme3").css({"color":res[13]});
					//text-decoration: line-through;
					jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
					jQuery("#descCLR_LISTHTX").css({"text-decoration":"line-through"});
					jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});
				}else if(res[14]==4){
					jQuery("#theme4").removeClass('hide');		
									jQuery("#theme1").addClass('hide');
														jQuery("#theme2").addClass('hide');
																			jQuery("#theme3").addClass('hide');
																			jQuery("#theme5").addClass('hide');
																								jQuery("#theme6").addClass('hide');
																								jQuery("#theme7").addClass('hide');
																								jQuery("#theme8").addClass('hide');
					jQuery(".title_list_theme4").css({"color":res[10]});
					jQuery(".text_list_theme4").css({"color":res[11]});
					//text-decoration: line-through;
					jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
					jQuery("#descCLR_LISTSBG").css({"text-decoration":"line-through"});
					jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});
					jQuery("#descCLR_LISTFTX").css({"text-decoration":"line-through"});
				}else if(res[14]==5){
					jQuery("#theme5").removeClass('hide');		
									jQuery("#theme1").addClass('hide');
														jQuery("#theme2").addClass('hide');
																			jQuery("#theme3").addClass('hide');
																			jQuery("#theme4").addClass('hide');
																								jQuery("#theme6").addClass('hide');
																								jQuery("#theme7").addClass('hide');
																								jQuery("#theme8").addClass('hide');
					jQuery(".list_theme5").css({"background-color":res[8]});
					jQuery(".title_list_theme5").css({"color":res[10]});
					jQuery(".text_list_theme5").css({"color":res[11]});
					jQuery(".list_footer_theme5").css({"color":res[13]});
					//text-decoration: line-through;
					jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
					jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});
				}else if(res[14]==6){
					jQuery("#theme6").removeClass('hide');		
									jQuery("#theme1").addClass('hide');
														jQuery("#theme2").addClass('hide');
																			jQuery("#theme3").addClass('hide');
																			jQuery("#theme4").addClass('hide');
																								jQuery("#theme5").addClass('hide');
																								jQuery("#theme7").addClass('hide');
																								jQuery("#theme8").addClass('hide');
					jQuery(".list_theme6").css({"background-color":res[8]});
					jQuery(".title_list_theme6").css({"color":res[10]});
					jQuery(".text_list_theme6").css({"color":res[11]});
					jQuery(".list_footer_theme6").css({"color":res[13]});
					//text-decoration: line-through;
					jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
					jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
					jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});	
				}else if(res[14]==7){
					jQuery("#theme7").removeClass('hide');		
									jQuery("#theme1").addClass('hide');
														jQuery("#theme2").addClass('hide');
																			jQuery("#theme3").addClass('hide');
																			jQuery("#theme4").addClass('hide');
																								jQuery("#theme5").addClass('hide');
																								jQuery("#theme6").addClass('hide');
																								jQuery("#theme8").addClass('hide');
						jQuery(".list_footer_theme7").css({"background-color":res[12],"color":res[13]});
						//text-decoration: line-through;
						jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
						jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
						jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
						jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
						jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});	
						jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
						jQuery("#descCLR_LISTSBG").css({"text-decoration":"line-through"});
						jQuery("#descCLR_LISTSTX").css({"text-decoration":"line-through"});
						jQuery("#descCLR_LISTHTX").css({"text-decoration":"line-through"});
				}else if(res[14]==8){
					jQuery("#theme8").removeClass('hide');		
									jQuery("#theme1").addClass('hide');
														jQuery("#theme2").addClass('hide');
																			jQuery("#theme3").addClass('hide');
																			jQuery("#theme4").addClass('hide');
																								jQuery("#theme5").addClass('hide');
																								jQuery("#theme6").addClass('hide');
																								jQuery("#theme7").addClass('hide');
						jQuery(".list_footer_theme7").css({"background-color":res[12],"color":res[13]});
						//text-decoration: line-through;
						jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
						jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
						jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
						jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
						jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});	
						jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
						jQuery("#descCLR_LISTSBG").css({"text-decoration":"line-through"});
						jQuery("#descCLR_LISTSTX").css({"text-decoration":"line-through"});
						jQuery("#descCLR_LISTHTX").css({"text-decoration":"line-through"});
				}
				jQuery(".loader_wp2appir").fadeOut("slow");
			}
		});
	//----------------end set frame options---------------------------
	
	//jQuery("#set_pages").on('click',function(){
		
	
	//});
	//-----for default first load------------- 
	id = jQuery('#page_id').val();
	jQuery.ajax({
			url: ajaxurl,
			data: {
				action: "set_pages",
				"id" : 2
			},
			success:function(data) {
				
				data = data.substring(1,data.length -1);
				jQuery(".hami_img_mob_set").html(data);
				jQuery("#set_pages").val(2);
				jQuery("#active_primery_id").addClass('active');
				/*fileurl = jQuery('#upload_image').val();
				imageUrl = fileurl;
				jQuery('#set_splash').css('background-image', 'url(' + imageUrl + ')');
				jQuery('#set_splash').css('background-size', '100% 100%');
				jQuery('#set_splash').css('background-repeat', 'no-repeat');
				jQuery('#set_splash').removeClass('hide');*/
			}
	}); 
	//-----for default first load-------------
	/*jQuery("#selected_image").click(function(){
		alert(157)
	});*/
});
function play_splash()
{
			
				/*fileurl = jQuery('#image_location').val();
				imageUrl = fileurl;
				jQuery('#set_splash').css('background-image', 'url(' + imageUrl + ')');
				jQuery('#set_splash').css('background-size', '100% 100%');
				jQuery('#set_splash').css('background-repeat', 'no-repeat');
				jQuery('#set_splash').removeClass('hide');
				jQuerysplash = jQuery('#time_splash').val() * 1000;
				jQuery('#set_splash').delay(jQuerysplash).fadeOut(function(){
						jQuery('#set_splash').addClass('hide');
						jQuery('#set_splash').css('display','block');
				});*/
	
}
function insert_setting_splash(tp){
	//alert(tp);
	spurl = jQuery('#upload_image').val();
	sptime = jQuery('#time_splash').val();
	var alert = "";
	//if(tp == 1){ alert = "</br><div class='col-md-12' style='color:red;' > در نسخه رایگان تغییرات بر روی اپلیکیشن اعمال نمی شود. </div>"; }
	if(sptime < 1){
		jQuery("#splash_alert_danger").html("لطفا زمان اسپلش را تصحیح فرمایید" );
		jQuery("#splash_alert_danger").fadeIn("slow", function() {
				jQuery('#splash_alert_danger').removeClass('hide');
				jQuery('#splash_alert_danger').fadeOut(5000);
		});
		return false;
	}
		jQuery.ajax({
				url: ajaxurl,
				data: {
					action: "insert_setting_plash",
					"spurl" : spurl , 
					"sptime" : sptime
				},
				success:function(data) {
					data = data.substring(0,data.length -1);
					if(data==11){
						jQuery("#splash_alert").html("تنظیمات شما اعمال شد.");
						jQuery("#splash_alert").fadeIn("slow", function() {
								jQuery('#splash_alert').removeClass('hide');
								jQuery('#splash_alert').fadeOut(5000);
						});
						jQuery("#btn_alert_wp2appir").click();
					}else if(data==1){
						jQuery("#splash_alert").html("تنظیمات شما اعمال شد.");
						jQuery("#splash_alert").fadeIn("slow", function() {
								jQuery('#splash_alert').removeClass('hide');
								jQuery('#splash_alert').fadeOut(5000);
						});
						jQuery("#btn_alert_wp2appir").click();
					}else if(data==111){
						jQuery("#splash_alert").html("تنظیمات شما اعمال شد.");
						jQuery("#splash_alert").fadeIn("slow", function() {
								jQuery('#splash_alert').removeClass('hide');
								jQuery('#splash_alert').fadeOut(5000);
						});
						jQuery("#btn_alert_wp2appir").click();
					}else{
						jQuery("#splash_alert_danger").html("عدم ارسال تنظیمات");
						jQuery("#splash_alert_danger").fadeIn("slow", function() {
								jQuery('#splash_alert_danger').removeClass('hide');
								jQuery('#splash_alert_danger').fadeOut(5000);
						});
					}
					
				}
		}); 
}
//-----------------------------------------------------
function save_setting_app(tp){
		var alert = "";
		//---------------
//		if (tp == 3) { alert = "</br> <strong style='color:red;'>در نسخه نقره ای نمی توانید منو یک ودو را انتخاب کنید.</strong>"; }
	    /*jQuery("#alert_save").html("تنظیمات شما اعمال شد.");
		jQuery("#alert_save").fadeIn("slow", function() {
				jQuery('#alert_save').removeClass('hide');
				jQuery('#alert_save').fadeOut(5000);
				return;
		});*/
		//---------------------
		show_list = jQuery('#select_show_items').val();
		title_app = jQuery('#title_app').val();
		picker1 = '#'+jQuery('#picker1').html().trim();
		picker2 = '#'+jQuery('#picker2').html().trim();picker3 = '#'+jQuery('#picker3').html().trim();
		picker4 = '#'+jQuery('#picker4').html().trim();picker5 = '#'+jQuery('#picker5').html().trim();
		picker6 = '#'+jQuery('#picker6').html().trim();picker7 = '#'+jQuery('#picker7').html().trim();
		picker8 = '#'+jQuery('#picker8').html().trim();picker9 = '#'+jQuery('#picker9').html().trim();picker10 = '#'+jQuery('#picker10').html().trim();
		select_menu_right = jQuery('#select_right_menu_app').val();
		select_menu_left = jQuery('#select_left_menu_app').val();
		title_right_menu = jQuery('#title_right_menu_app').val();
		title_left_menu = jQuery('#title_left_menu_app').val();
		txt_menu_left = jQuery('#txt_menu_left').val();
		txt_menu_right = jQuery('#txt_menu_right').val();
		select_menu_search = jQuery('#select_search_menu_app').val();
		txt_menu_search = jQuery('#txt_menu_search').val();
		select_menu_float = jQuery('#select_float_menu_app').val();
		title_float_menu = jQuery('#title_float_menu_app').val();
		
		jQuery.ajax({
				url: ajaxurl,
				data: {
					action: "insert_setting_primery",
					"NUM_LVT" : show_list ,"TXT_ACTT" : title_app ,
					"CLR_MBG" :picker1 ,"CLR_ACTBG" :picker2 ,"CLR_ACTTX" :picker3 ,
					"CLR_LISTHBG" : picker4,"CLR_LISTHTX" :picker5 ,"CLR_LISTSBG" : picker6,"CLR_LISTFBG" : picker7,"CLR_LISTFTX" :picker8 ,"CLR_LISTSTX" : picker9,
					"CLR_SRCHIC" : picker10,"NUM_MNRTYPE":select_menu_right ,"NUM_MNLTYPE": select_menu_left,
					"TXT_MNRTI": title_right_menu,"TXT_MNLTI":title_left_menu,
					"TXT_MNRIC": txt_menu_right , "TXT_MNLIC": txt_menu_left,
					"NUM_SRCHP" : select_menu_search , "NUM_SRCHIC" : txt_menu_search,
					"NUM_MNFTYPE" : select_menu_float , "TXT_MNFTI" : title_float_menu 
				},
				success:function(data) {
					data = data.substring(0,data.length -1);
						
					//	if (tp == 1) { alert = "</br> <strong style='color:red;'>در نسخه رایگان تغییرات بر روی اپلیکیشن اعمال نمی شود.</strong>"; }
					    jQuery("#alert_save").html("تنظیمات شما اعمال شد.");
						jQuery("#alert_save").fadeIn("slow", function() {
								jQuery('#alert_save').removeClass('hide');
								jQuery('#alert_save').fadeOut(5000);
						});
					//------------set setting----------------------------------------
						jQuery.ajax({
							url: ajaxurl,
							data: {
								action: "set_frame_options",
							},
							success:function(data) {
								jQuery("#btn_alert_wp2appir").click();
								data = data.substring(0,data.length -1);
								var res = data.split("__");
								    jQuery("#theme_1").css({"background-color":res[0]});
									jQuery("#actionbar_theme1").css({"background-color":res[1],"color":res[2]});
									jQuery("#title_theme1").html(res[3]);
									jQuery("#title_right_menu_theme1").html(res[4]);
									jQuery("#title_left_menu_theme1").html(res[5]);
									jQuery("#right_icon_theme1").addClass(res[6]);
									jQuery("#left_icon_theme1").addClass(res[7]);
									
								//--------search----------
								if(res[15]==1){
									jQuery("#search1").removeClass('hide');
									jQuery("#search2").addClass('hide');
									jQuery("#search3").addClass('hide');
									jQuery("#search4").addClass('hide');
									jQuery('.search_icon').addClass(res[16]);
									jQuery('#search1').css({"color":res[17]});
								}else if(res[15]==2){
									jQuery("#search2").removeClass('hide');
									jQuery("#search1").addClass('hide');
									jQuery("#search3").addClass('hide');
									jQuery("#search4").addClass('hide');
									jQuery('.search_icon').addClass(res[16]);
									jQuery('#search2').css({"color":res[17]});
								}else if(res[15]==3){
									jQuery("#search3").removeClass('hide');
									jQuery("#search2").addClass('hide');
									jQuery("#search1").addClass('hide');
									jQuery("#search4").addClass('hide');
									jQuery('.search_icon').addClass(res[16]);
									jQuery('#search3').css({"color":res[17]});
								}else if(res[15]==4){
									jQuery("#search4").removeClass('hide');
									jQuery("#search2").addClass('hide');
									jQuery("#search3").addClass('hide');
									jQuery("#search1").addClass('hide');
									jQuery('.search_icon').addClass(res[16]);
									jQuery('#search4').css({"color":res[17]});
								}else if(res[15]==5){
									jQuery("#search1").addClass('hide');
									jQuery("#search2").addClass('hide');
									jQuery("#search3").addClass('hide');
									jQuery("#search4").addClass('hide');
								}
								//--------search----------
								
								if(res[14]==1){
									jQuery("#theme1").removeClass('hide');
														jQuery("#theme2").addClass('hide');
																			jQuery("#theme3").addClass('hide');
																						jQuery("#theme4").addClass('hide');
																						jQuery("#theme5").addClass('hide');
																						jQuery("#theme6").addClass('hide');
																						jQuery("#theme7").addClass('hide');
																						jQuery("#theme8").addClass('hide');
									jQuery(".list_theme1").css({"background-color":res[8]});
									jQuery(".title_list_theme1").css({"background-color":res[9],"color":res[10]});
									jQuery(".text_list_theme1").css({"color":res[11]});
									jQuery(".list_footer_theme1").css({"background-color":res[12],"color":res[13]});
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery(".cover_color").remove();
								}else if(res[14]==2){
									jQuery("#theme2").removeClass('hide');
														jQuery("#theme1").addClass('hide');
																			jQuery("#theme3").addClass('hide');
																						jQuery("#theme4").addClass('hide');
																						jQuery("#theme5").addClass('hide');
																						jQuery("#theme6").addClass('hide');
																						jQuery("#theme7").addClass('hide');
																						jQuery("#theme8").addClass('hide');
									jQuery(".list_theme2").css({"background-color":res[8]});
									jQuery(".text_list_theme2").css({"color":res[11]});
									jQuery(".list_footer_theme2").css({"color":res[13]});
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});
									//disable color
									jQuery(".cover_color").remove();
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTFBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
								}else if(res[14]==3){
									jQuery("#theme3").removeClass('hide');
														jQuery("#theme1").addClass('hide');
																			jQuery("#theme2").addClass('hide');
																						jQuery("#theme4").addClass('hide');
																						jQuery("#theme5").addClass('hide');
																						jQuery("#theme6").addClass('hide');
																						jQuery("#theme7").addClass('hide');
																						jQuery("#theme8").addClass('hide');
									jQuery(".list_theme3").css({"background-color":res[8]});
									jQuery(".text_list_theme3").css({"color":res[11]});
									jQuery(".list_footer_theme3").css({"color":res[13]});
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});
									//disable color
									jQuery(".cover_color").remove();
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTFBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
								}else if(res[14]==4){
									jQuery("#theme4").removeClass('hide');		
													jQuery("#theme1").addClass('hide');
																		jQuery("#theme2").addClass('hide');
																							jQuery("#theme3").addClass('hide');
																							jQuery("#theme5").addClass('hide');
																							jQuery("#theme6").addClass('hide');
																							jQuery("#theme7").addClass('hide');
																							jQuery("#theme8").addClass('hide');
									jQuery(".title_list_theme4").css({"color":res[10]});
									jQuery(".text_list_theme4").css({"color":res[11]});
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"line-through"});
									//disable color
									jQuery(".cover_color").remove();
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTSBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTFBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTFTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
								}else if(res[14]==5){
									jQuery("#theme5").removeClass('hide');		
													jQuery("#theme1").addClass('hide');
																		jQuery("#theme2").addClass('hide');
																							jQuery("#theme3").addClass('hide');
																							jQuery("#theme4").addClass('hide');
																							jQuery("#theme6").addClass('hide');
																							jQuery("#theme7").addClass('hide');
																							jQuery("#theme8").addClass('hide');
									jQuery(".list_theme5").css({"background-color":res[8]});
									jQuery(".title_list_theme5").css({"color":res[10]});
									jQuery(".text_list_theme5").css({"color":res[11]});
									jQuery(".list_footer_theme5").css({"color":res[13]});
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});
									//disable color
									jQuery(".cover_color").remove();
									jQuery("#descCLR_LISTFBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
								}else if(res[14]==6){
									jQuery("#theme6").removeClass('hide');		
													jQuery("#theme1").addClass('hide');
																		jQuery("#theme2").addClass('hide');
																							jQuery("#theme3").addClass('hide');
																							jQuery("#theme4").addClass('hide');
																							jQuery("#theme5").addClass('hide');
																							jQuery("#theme7").addClass('hide');
																							jQuery("#theme8").addClass('hide');
									jQuery(".list_theme6").css({"background-color":res[8]});
									jQuery(".title_list_theme6").css({"color":res[10]});
									jQuery(".text_list_theme6").css({"color":res[11]});
									jQuery(".list_footer_theme6").css({"color":res[13]});		
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});	
									//disable color
									jQuery(".cover_color").remove();									
									jQuery("#descCLR_LISTFBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									
								}else if(res[14]==7){
									jQuery("#theme7").removeClass('hide');		
													jQuery("#theme1").addClass('hide');
																		jQuery("#theme2").addClass('hide');
																							jQuery("#theme3").addClass('hide');
																							jQuery("#theme4").addClass('hide');
																							jQuery("#theme5").addClass('hide');
																							jQuery("#theme6").addClass('hide');
																							jQuery("#theme8").addClass('hide');
									jQuery(".list_footer_theme7").css({"background-color":res[12],"color":res[13]});
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});	
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTSTX").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"line-through"});
									//disable color
									jQuery(".cover_color").remove();									
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTSBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTSTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
								}else if(res[14]==8){
									jQuery("#theme8").removeClass('hide');		
													jQuery("#theme1").addClass('hide');
																		jQuery("#theme2").addClass('hide');
																							jQuery("#theme3").addClass('hide');
																							jQuery("#theme4").addClass('hide');
																												jQuery("#theme5").addClass('hide');
																												jQuery("#theme6").addClass('hide');
																												jQuery("#theme7").addClass('hide');
										jQuery(".list_footer_theme7").css({"background-color":res[12],"color":res[13]});
										//text-decoration: line-through;
										jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
										jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
										jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
										jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
										jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});	
										jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
										jQuery("#descCLR_LISTSBG").css({"text-decoration":"line-through"});
										jQuery("#descCLR_LISTSTX").css({"text-decoration":"line-through"});
										jQuery("#descCLR_LISTHTX").css({"text-decoration":"line-through"});
										//disable color
									jQuery(".cover_color").remove();									
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTSBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTSTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
								}
							
							}
						});
					//---------------------------------------------------------------
				}
		});
		
		
}
//--------------------------------------------------------------
function selected_list(e){
	list = jQuery("#select_show_items").val();
					//------------set setting----------------------------------------
						jQuery.ajax({
							url: ajaxurl,
							data: {
								action: "set_frame_options",
							},
							success:function(data) {
								data = data.substring(0,data.length -1);
								var res = data.split("__");
								//------------------------------------------------------------------------------
									hamicolort0_1 = "#" + jQuery("#picker1").html();
									hamicolort0_1 = hamicolort0_1.replace(/\s/g, '');
									hamicolort0_2 = "#" + jQuery("#picker2").html();
									hamicolort0_2 = hamicolort0_2.replace(/\s/g, '');
									hamicolort0_3 = "#" + jQuery("#picker3").html();
									hamicolort0_3 = hamicolort0_3.replace(/\s/g, '');
								//------------------------------------------------------------------------------
								    jQuery("#theme_1").css({"background-color":hamicolort0_1});
									jQuery("#actionbar_theme1").css({"background-color":hamicolort0_2,"color":hamicolort0_3});
									jQuery("#title_theme1").html(res[3]);
									jQuery("#title_right_menu_theme1").html(res[4]);
									jQuery("#title_left_menu_theme1").html(res[5]);
									jQuery("#right_icon_theme1").addClass(res[6]);
									jQuery("#left_icon_theme1").addClass(res[7]);
									
									//--------search----------
									if(res[15]==1){
										jQuery("#search1").removeClass('hide');
										jQuery("#search2").addClass('hide');
										jQuery("#search3").addClass('hide');
										jQuery("#search4").addClass('hide');
										jQuery('.search_icon').addClass(res[16]);
										jQuery('#search1').css({"color":res[17]});
									}else if(res[15]==2){
										jQuery("#search2").removeClass('hide');
										jQuery("#search1").addClass('hide');
										jQuery("#search3").addClass('hide');
										jQuery("#search4").addClass('hide');
										jQuery('.search_icon').addClass(res[16]);
										jQuery('#search2').css({"color":res[17]});
									}else if(res[15]==3){
										jQuery("#search3").removeClass('hide');
										jQuery("#search2").addClass('hide');
										jQuery("#search1").addClass('hide');
										jQuery("#search4").addClass('hide');
										jQuery('.search_icon').addClass(res[16]);
										jQuery('#search3').css({"color":res[17]});
									}else if(res[15]==4){
										jQuery("#search4").removeClass('hide');
										jQuery("#search2").addClass('hide');
										jQuery("#search3").addClass('hide');
										jQuery("#search1").addClass('hide');
										jQuery('.search_icon').addClass(res[16]);
										jQuery('#search4').css({"color":res[17]});
									}else if(res[15]==5){
										jQuery("#search1").addClass('hide');
										jQuery("#search2").addClass('hide');
										jQuery("#search3").addClass('hide');
										jQuery("#search4").addClass('hide');
									}
									//--------search----------
								if(list==1){
									jQuery("#theme1").removeClass('hide');
														jQuery("#theme2").addClass('hide');
																			jQuery("#theme3").addClass('hide');
																			jQuery("#theme4").addClass('hide');
																			jQuery("#theme5").addClass('hide');
																			jQuery("#theme6").addClass('hide');
																			jQuery("#theme7").addClass('hide');
																			jQuery("#theme8").addClass('hide');
									//------------------------------------------------------------------------------
									hamicolort1_1 = "#" + jQuery("#picker6").html();
									hamicolort1_1 = hamicolort1_1.replace(/\s/g, '');
									hamicolort1_2 = "#" + jQuery("#picker4").html();
									hamicolort1_2 = hamicolort1_2.replace(/\s/g, '');
									hamicolort1_3 = "#" + jQuery("#picker5").html();
									hamicolort1_3 = hamicolort1_3.replace(/\s/g, '');
									hamicolort1_4 = "#" + jQuery("#picker9").html();
									hamicolort1_4 = hamicolort1_4.replace(/\s/g, '');
									hamicolort1_5 = "#" + jQuery("#picker7").html();
									hamicolort1_5 = hamicolort1_5.replace(/\s/g, '');
									hamicolort1_6 = "#" + jQuery("#picker8").html();
									hamicolort1_6 = hamicolort1_6.replace(/\s/g, '');
									//------------------------------------------------------------------------------
									jQuery(".list_theme1").css({"background-color":hamicolort1_1});
									jQuery(".title_list_theme1").css({"background-color":hamicolort1_2,"color":hamicolort1_3});
									jQuery(".text_list_theme1").css({"color":hamicolort1_4});
									jQuery(".list_footer_theme1").css({"background-color":hamicolort1_5,hamicolort1_6});
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSTX").css({"text-decoration":"none"});
									//disable color
									jQuery(".cover_color").remove();
									
								}else if(list==2){
									jQuery("#theme2").removeClass('hide');
														jQuery("#theme1").addClass('hide');
																			jQuery("#theme3").addClass('hide');
																			jQuery("#theme4").addClass('hide');
																			jQuery("#theme5").addClass('hide');
																			jQuery("#theme6").addClass('hide');
																			jQuery("#theme7").addClass('hide');
																			jQuery("#theme8").addClass('hide');
									//------------------------------------------------------------------------------
									hamicolort2_1 = "#" + jQuery("#picker6").html();
									hamicolort2_1 = hamicolort2_1.replace(/\s/g, '');
									hamicolort2_2 = "#" + jQuery("#picker9").html();
									hamicolort2_2 = hamicolort2_2.replace(/\s/g, '');
									hamicolort2_3 = "#" + jQuery("#picker8").html();
									hamicolort2_3 = hamicolort2_3.replace(/\s/g, '');
									//------------------------------------------------------------------------------
									jQuery(".list_theme2").css({"background-color":hamicolort2_1});
									jQuery(".text_list_theme2").css({"color":hamicolort2_2});
									jQuery(".list_footer_theme2").css({"color":hamicolort2_3});
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});
									//disable color
									jQuery(".cover_color").remove();
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTFBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									
								}else if(list==3){
									jQuery("#theme3").removeClass('hide');
														jQuery("#theme1").addClass('hide');
																	jQuery("#theme2").addClass('hide');
																				jQuery("#theme4").addClass('hide');
																				jQuery("#theme5").addClass('hide');
																				jQuery("#theme6").addClass('hide');
																				jQuery("#theme7").addClass('hide');
																				jQuery("#theme8").addClass('hide');
									//------------------------------------------------------------------------------
									hamicolort3_1 = "#" + jQuery("#picker6").html();
									hamicolort3_1 = hamicolort3_1.replace(/\s/g, '');
									hamicolort3_2 = "#" + jQuery("#picker9").html();
									hamicolort3_2 = hamicolort3_2.replace(/\s/g, '');
									hamicolort3_3 = "#" + jQuery("#picker8").html();
									hamicolort3_3 = hamicolort3_3.replace(/\s/g, '');
									//------------------------------------------------------------------------------
									jQuery(".list_theme3").css({"background-color":hamicolort3_1});
									jQuery(".text_list_theme3").css({"color":hamicolort3_2});
									jQuery(".list_footer_theme3").css({"color":hamicolort3_3});
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});
									//disable color
									jQuery(".cover_color").remove();
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTFBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									
								}else if(list==4){
									jQuery("#theme4").removeClass('hide');		
													jQuery("#theme1").addClass('hide');
																		jQuery("#theme2").addClass('hide');
																							jQuery("#theme3").addClass('hide');
																							jQuery("#theme5").addClass('hide');
																							jQuery("#theme6").addClass('hide');
																							jQuery("#theme7").addClass('hide');
																							jQuery("#theme8").addClass('hide');
									//------------------------------------------------------------------------------
									hamicolort4_1 = "#" + jQuery("#picker5").html();
									hamicolort4_1 = hamicolort4_1.replace(/\s/g, '');
									hamicolort4_2 = "#" + jQuery("#picker9").html();
									hamicolort4_2 = hamicolort4_2.replace(/\s/g, '');
									//------------------------------------------------------------------------------
									jQuery(".title_list_theme4").css({"color":hamicolort4_1});
									jQuery(".text_list_theme4").css({"color":hamicolort4_2});
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"line-through"});
									//disable color
									jQuery(".cover_color").remove();
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTSBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTFBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTFTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									
								}else if(list==5){
									jQuery("#theme5").removeClass('hide');		
													jQuery("#theme1").addClass('hide');
																		jQuery("#theme2").addClass('hide');
																							jQuery("#theme3").addClass('hide');
																							jQuery("#theme4").addClass('hide');
																							jQuery("#theme6").addClass('hide');
																							jQuery("#theme7").addClass('hide');
																							jQuery("#theme8").addClass('hide');
									//------------------------------------------------------------------------------
									hamicolort5_1 = "#" + jQuery("#picker6").html();
									hamicolort5_1 = hamicolort5_1.replace(/\s/g, '');
									hamicolort5_2 = "#" + jQuery("#picker5").html();
									hamicolort5_2 = hamicolort5_2.replace(/\s/g, '');
									hamicolort5_3 = "#" + jQuery("#picker9").html();
									hamicolort5_3 = hamicolort5_3.replace(/\s/g, '');
									hamicolort5_4 = "#" + jQuery("#picker8").html();
									hamicolort5_4 = hamicolort5_4.replace(/\s/g, '');
									//------------------------------------------------------------------------------
									jQuery(".list_theme5").css({"background-color":hamicolort5_1});
									jQuery(".title_list_theme5").css({"color":hamicolort5_2});
									jQuery(".text_list_theme5").css({"color":hamicolort5_3});
									jQuery(".list_footer_theme5").css({"color":hamicolort5_4});
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});
									//disable color
									jQuery(".cover_color").remove();
									jQuery("#descCLR_LISTFBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									
								}else if(list==6){
									jQuery("#theme6").removeClass('hide');		
													jQuery("#theme1").addClass('hide');
																		jQuery("#theme2").addClass('hide');
																							jQuery("#theme3").addClass('hide');
																							jQuery("#theme4").addClass('hide');
																												jQuery("#theme5").addClass('hide');
																												jQuery("#theme7").addClass('hide');
																												jQuery("#theme8").addClass('hide');
									//------------------------------------------------------------------------------
									hamicolort6_1 = "#" + jQuery("#picker6").html();
									hamicolort6_1 = hamicolort6_1.replace(/\s/g, '');
									hamicolort6_2 = "#" + jQuery("#picker5").html();
									hamicolort6_2 = hamicolort6_2.replace(/\s/g, '');
									hamicolort6_3 = "#" + jQuery("#picker9").html();
									hamicolort6_3 = hamicolort6_3.replace(/\s/g, '');
									hamicolort6_4 = "#" + jQuery("#picker8").html();
									hamicolort6_4 = hamicolort6_4.replace(/\s/g, '');
									//------------------------------------------------------------------------------
									jQuery(".list_theme6").css({"background-color":hamicolort6_1});
									jQuery(".title_list_theme6").css({"color":hamicolort6_2});
									jQuery(".text_list_theme6").css({"color":hamicolort6_3});
									jQuery(".list_footer_theme6").css({"color":hamicolort6_4});		
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});
									//disable color
									jQuery(".cover_color").remove();									
									jQuery("#descCLR_LISTFBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									
								}else if(list==7){
									jQuery("#theme7").removeClass('hide');		
													jQuery("#theme1").addClass('hide');
																		jQuery("#theme2").addClass('hide');
																							jQuery("#theme3").addClass('hide');
																							jQuery("#theme4").addClass('hide');
																												jQuery("#theme5").addClass('hide');
																												jQuery("#theme6").addClass('hide');
																												jQuery("#theme8").addClass('hide');
									//------------------------------------------------------------------------------
									hamicolort7_1 = "#" + jQuery("#picker7").html();
									hamicolort7_1 = hamicolort7_1.replace(/\s/g, '');
									hamicolort7_2 = "#" + jQuery("#picker8").html();
									hamicolort7_2 = hamicolort7_2.replace(/\s/g, '');
									//------------------------------------------------------------------------------
									jQuery(".list_footer_theme7").css({"background-color":hamicolort7_1,"color":hamicolort7_2});
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});	
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTSTX").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"line-through"});
									//disable color
									jQuery(".cover_color").remove();									
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTSBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTSTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
								}else if(list==8){
									jQuery("#theme8").removeClass('hide');		
													jQuery("#theme1").addClass('hide');
																		jQuery("#theme2").addClass('hide');
																							jQuery("#theme3").addClass('hide');
																							jQuery("#theme4").addClass('hide');
																												jQuery("#theme5").addClass('hide');
																												jQuery("#theme6").addClass('hide');
																												jQuery("#theme7").addClass('hide');
									//------------------------------------------------------------------------------
									hamicolort8_1 = "#" + jQuery("#picker7").html();
									hamicolort8_1 = hamicolort8_1.replace(/\s/g, '');
									hamicolort8_2 = "#" + jQuery("#picker8").html();
									hamicolort8_2 = hamicolort8_2.replace(/\s/g, '');
									//------------------------------------------------------------------------------
										jQuery(".list_footer_theme7").css({"background-color":hamicolort8_1,"color":hamicolort8_2});
										//text-decoration: line-through;
										jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
										jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
										jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
										jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
										jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});	
										jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
										jQuery("#descCLR_LISTSBG").css({"text-decoration":"line-through"});
										jQuery("#descCLR_LISTSTX").css({"text-decoration":"line-through"});
										jQuery("#descCLR_LISTHTX").css({"text-decoration":"line-through"});
										//disable color
									jQuery(".cover_color").remove();									
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTSBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTSTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
								}
							}
						});
					//---------------------------------------------------------------
	
}
//---------------------------------------------------------------
function myFunction_title_app(){
	title_app = jQuery("#title_app").val();
	jQuery("#title_theme1").html(title_app);
}
//----------------------------------------------------------
function change_title_menu_right(){
	title_right_menu = jQuery("#title_right_menu_app").val();
	jQuery("#title_right_menu_theme1").html(title_right_menu);
}
//----------------------------------------------------------
function change_title_menu_left(){
	title_left_menu = jQuery("#title_left_menu_app").val();
	jQuery("#title_left_menu_theme1").html(title_left_menu);
}
//--------------------------------------------------------------
function select_search_position(e){
	position = jQuery("#select_search_menu_app").val();
	
			jQuery.ajax({
			url: ajaxurl,
			data: {
				action: "set_frame_options",
			},
			success:function(data) {
				data = data.substring(0,data.length -1);
				var res = data.split("__");
	//--------search----------
				if(position==1){
					
					jQuery("#search1").removeClass('hide');
					jQuery("#search2").addClass('hide');
					jQuery("#search3").addClass('hide');
					jQuery("#search4").addClass('hide');
					jQuery('.search_icon').addClass(res[16]);
					jQuery('#search1').css({"color":res[17]});
				}else if(position==2){
					
					jQuery("#search2").removeClass('hide');
					jQuery("#search1").addClass('hide');
					jQuery("#search3").addClass('hide');
					jQuery("#search4").addClass('hide');
					jQuery('.search_icon').addClass(res[16]);
					jQuery('#search2').css({"color":res[17]});
				}else if(position==3){
					
					jQuery("#search3").removeClass('hide');
					jQuery("#search2").addClass('hide');
					jQuery("#search1").addClass('hide');
					jQuery("#search4").addClass('hide');
					jQuery('.search_icon').addClass(res[16]);
					jQuery('#search3').css({"color":res[17]});
				}else if(position==4){
					
					jQuery("#search4").removeClass('hide');
					jQuery("#search2").addClass('hide');
					jQuery("#search3").addClass('hide');
					jQuery("#search1").addClass('hide');
					jQuery('.search_icon').addClass(res[16]);
					jQuery('#search4').css({"color":res[17]});
				}else if(position==5){
					
					jQuery("#search1").addClass('hide');
					jQuery("#search2").addClass('hide');
					jQuery("#search3").addClass('hide');
					jQuery("#search4").addClass('hide');
				}
				//--------search----------
			  }
			});
	
}
//----------------------------------------------------------------
function set_page_menu(id){
			//jQuery(this).val();
			if(id == 2) { jQuery("#set_splash").addClass('hide'); jQuery("#active_primery_id").addClass('active'); 
						  jQuery("#active_splash_id").removeClass('active'); }
			if(id == 1) { jQuery("#set_splash").removeClass('hide'); jQuery("#active_splash_id").addClass('active');
						  jQuery("#active_primery_id").removeClass('active');
						   }
					jQuery.ajax({
							url: ajaxurl,
							data: {
								action: "set_pages",
								"id" : id
							},
							success:function(data) {
								data = data.substring(0,data.length -1);
								jQuery(".hami_img_mob_set").html(data);
								if(jQuery("#select_show_items").val()== 1 ){
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery(".cover_color").remove();
								}else if(jQuery("#select_show_items").val()== 2 ){
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});
									//disable color
									jQuery(".cover_color").remove();
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTFBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
								}else if(jQuery("#select_show_items").val()== 3 ){
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});
									//disable color
									jQuery(".cover_color").remove();
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTFBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
								}else if(jQuery("#select_show_items").val()== 4 ){
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"line-through"});
									//disable color
									jQuery(".cover_color").remove();
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTSBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTFBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTFTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
								}else if(jQuery("#select_show_items").val()== 5 ){
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});
									//disable color
									jQuery(".cover_color").remove();
									jQuery("#descCLR_LISTFBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
								}else if(jQuery("#select_show_items").val()== 6 ){
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"line-through"});	
									//disable color
									jQuery(".cover_color").remove();									
									jQuery("#descCLR_LISTFBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
								}else if(jQuery("#select_show_items").val() == 7){
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});	
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTSTX").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"line-through"});
									//disable color
									jQuery(".cover_color").remove();									
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTSBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTSTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
								}else if(jQuery("#select_show_items").val() == 8){
									//text-decoration: line-through;
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFBG").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTFTX").css({"text-decoration":"none"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"none"});	
									jQuery("#descCLR_LISTHBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTSBG").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTSTX").css({"text-decoration":"line-through"});
									jQuery("#descCLR_LISTHTX").css({"text-decoration":"line-through"});
									//disable color
									jQuery(".cover_color").remove();									
									jQuery("#descCLR_LISTHBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTSBG").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTSTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
									jQuery("#descCLR_LISTHTX").prev().append("<div class='cover_color' style='width:100%;height:30px;background-color:#e5e5e5;opacity:0.7;position:absolute;'></div>");
								}
								/*     this is set spalsh    */
								if(id == 1){
									fileurl = jQuery('#upload_image').val();
									
									imageUrl = fileurl;
									jQuery('#set_splash').css('background-image', 'url(' + imageUrl + ')');
									jQuery('#set_splash').css('background-size', '100% 100%');
									jQuery('#set_splash').css('background-repeat', 'no-repeat');
									jQuery('#set_splash').removeClass('hide');
								}
								/*   this is set splash     */
							}
					}); 
		}//end function
function select_theme_app(){
	
	theme = jQuery("#select_theme_app").val();
	if(theme == 1) {
		jQuery('#picker1').html("d4d4d4");
		jQuery('#picker1').css({"background-color":"#d4d4d4","color":"#d4d4d4"});
		jQuery('#picker2').html("0061b0");
		jQuery('#picker2').css({"background-color":"#0061b0","color":"#0061b0"});
		jQuery('#picker3').html("ffffff");
		jQuery('#picker3').css({"background-color":"#ffffff","color":"#ffffff"});
		jQuery('#picker4').html("820002");
		jQuery('#picker4').css({"background-color":"#820002","color":"#820002"});
		jQuery('#picker5').html("f7f7f7");
		jQuery('#picker5').css({"background-color":"#f7f7f7","color":"#f7f7f7"});
		jQuery('#picker6').html("ffffff");
		jQuery('#picker6').css({"background-color":"#ffffff","color":"#ffffff"});
		jQuery('#picker7').html("f0f0f0");
		jQuery('#picker7').css({"background-color":"#f0f0f0","color":"#f0f0f0"});
		jQuery('#picker8').html("404040");
		jQuery('#picker8').css({"background-color":"#404040","color":"#404040"});
		jQuery('#picker9').html("000000");
		jQuery('#picker9').css({"background-color":"#000000","color":"#000000"});
		jQuery('#picker10').html("ffffff");
		jQuery('#picker10').css({"background-color":"#ffffff","color":"#ffffff"});
		//-------------------------------------------------------------------------
		jQuery("#theme_1").css({"background-color":"#d4d4d4"});
		jQuery("#actionbar_theme1").css({"background-color":"#0061b0","color":"#ffffff"});
		///---------------------------------------------------------------------------------
		jQuery(".list_theme1").css({"background-color":"#ffffff"});
		jQuery(".title_list_theme1").css({"background-color":"#820002","color":"#f7f7f7"});
		jQuery(".text_list_theme1").css({"color":"#000000"});
		jQuery(".list_footer_theme1").css({"background-color":"#f0f0f0","color":"#404040"});
		////----------------------------------------------------------------------------------
		jQuery(".list_theme2").css({"background-color":"#ffffff"});
		jQuery(".text_list_theme2").css({"color":"#000000"});
		jQuery(".list_footer_theme2").css({"color":"#404040"});
		/////---------------------------------------------------------------------------------
		jQuery(".list_theme3").css({"background-color":"#ffffff"});
		jQuery(".text_list_theme3").css({"color":"#000000"});
		jQuery(".list_footer_theme3").css({"color":"#404040"});
		//////---------------------------------------------------------------------------------
		jQuery(".title_list_theme4").css({"color":"#f7f7f7"});
		jQuery(".text_list_theme4").css({"color":"#000000"});
		///////---------------------------------------------------------------------------------
		jQuery(".list_theme5").css({"background-color":"#ffffff"});
		jQuery(".title_list_theme5").css({"color":"#f7f7f7"});
		jQuery(".text_list_theme5").css({"color":"#000000"});
		jQuery(".list_footer_theme5").css({"color":"#404040"});
		////////---------------------------------------------------------------------------------
		jQuery(".list_theme6").css({"background-color":"#ffffff"});
		jQuery(".title_list_theme6").css({"color":"#f7f7f7"});
		jQuery(".text_list_theme6").css({"color":"#000000"});
		jQuery(".list_footer_theme6").css({"color":"#404040"});	
		/////////---------------------------------------------------------------------------------
		jQuery(".list_footer_theme7").css({"background-color" : "#f0f0f0" , "color" : "#404040" });
		//////////---------------------------------------------------------------------------------
	}else if (theme == 2 ) {
		jQuery('#picker1').html("d4d4d4");
		jQuery('#picker1').css({"background-color":"#d4d4d4","color":"#d4d4d4"});
		jQuery('#picker2').html("960000");
		jQuery('#picker2').css({"background-color":"#960000","color":"#960000"});
		jQuery('#picker3').html("f2f2f2");
		jQuery('#picker3').css({"background-color":"#f2f2f2","color":"#f2f2f2"});
		jQuery('#picker4').html("ffffff");
		jQuery('#picker4').css({"background-color":"#ffffff","color":"#ffffff"});
		jQuery('#picker5').html("000000");
		jQuery('#picker5').css({"background-color":"#000000","color":"#000000"});
		jQuery('#picker6').html("ffffff");
		jQuery('#picker6').css({"background-color":"#ffffff","color":"#ffffff"});
		jQuery('#picker7').html("524952");
		jQuery('#picker7').css({"background-color":"#524952","color":"#524952"});
		jQuery('#picker8').html("ffffff");
		jQuery('#picker8').css({"background-color":"#ffffff","color":"#ffffff"});
		jQuery('#picker9').html("3b3b3b");
		jQuery('#picker9').css({"background-color":"#3b3b3b","color":"#3b3b3b"});
		jQuery('#picker10').html("ffffff");
		jQuery('#picker10').css({"background-color":"#ffffff","color":"#ffffff"});
		//-------------------------------------------------------------------------
		jQuery("#theme_1").css({"background-color":"#d4d4d4"});
		jQuery("#actionbar_theme1").css({"background-color":"#960000","color":"#f2f2f2"});
		///---------------------------------------------------------------------------------
		jQuery(".list_theme1").css({"background-color":"#ffffff"});
		jQuery(".title_list_theme1").css({"background-color":"#ffffff","color":"#000000"});
		jQuery(".text_list_theme1").css({"color":"#3b3b3b"});
		jQuery(".list_footer_theme1").css({"background-color":"#524952","color":"#ffffff"});
		////----------------------------------------------------------------------------------
		jQuery(".list_theme2").css({"background-color":"#ffffff"});
		jQuery(".text_list_theme2").css({"color":"#3b3b3b"});
		jQuery(".list_footer_theme2").css({"color":"#ffffff"});
		/////---------------------------------------------------------------------------------
		jQuery(".list_theme3").css({"background-color":"#ffffff"});
		jQuery(".text_list_theme3").css({"color":"#3b3b3b"});
		jQuery(".list_footer_theme3").css({"color":"#ffffff"});
		//////---------------------------------------------------------------------------------
		jQuery(".title_list_theme4").css({"color":"#000000"});
		jQuery(".text_list_theme4").css({"color":"#3b3b3b"});
		///////---------------------------------------------------------------------------------
		jQuery(".list_theme5").css({"background-color":"#ffffff"});
		jQuery(".title_list_theme5").css({"color":"#000000"});
		jQuery(".text_list_theme5").css({"color":"#3b3b3b"});
		jQuery(".list_footer_theme5").css({"color":"#ffffff"});
		////////---------------------------------------------------------------------------------
		jQuery(".list_theme6").css({"background-color":"#ffffff"});
		jQuery(".title_list_theme6").css({"color":"#000000"});
		jQuery(".text_list_theme6").css({"color":"#3b3b3b"});
		jQuery(".list_footer_theme6").css({"color":"#ffffff"});	
		/////////---------------------------------------------------------------------------------
		jQuery(".list_footer_theme7").css({"background-color" : "#524952" , "color" : "#ffffff" });
		//////////---------------------------------------------------------------------------------
	}else if (theme == 3) {
		jQuery('#picker1').html("c5d1cc");
		jQuery('#picker1').css({"background-color":"#c5d1cc","color":"#c5d1cc"});
		jQuery('#picker2').html("ebebeb");
		jQuery('#picker2').css({"background-color":"#ebebeb","color":"#ebebeb"});
		jQuery('#picker3').html("030003");
		jQuery('#picker3').css({"background-color":"#030003","color":"#030003"});
		jQuery('#picker4').html("ebebeb");
		jQuery('#picker4').css({"background-color":"#ebebeb","color":"#ebebeb"});
		jQuery('#picker5').html("000000");
		jQuery('#picker5').css({"background-color":"#000000","color":"#000000"});
		jQuery('#picker6').html("2e2e2e");
		jQuery('#picker6').css({"background-color":"#2e2e2e","color":"#2e2e2e"});
		jQuery('#picker7').html("ffffff");
		jQuery('#picker7').css({"background-color":"#ffffff","color":"#ffffff"});
		jQuery('#picker8').html("696969");
		jQuery('#picker8').css({"background-color":"#696969","color":"#696969"});
		jQuery('#picker9').html("ffffff");
		jQuery('#picker9').css({"background-color":"#ffffff","color":"#ffffff"});
		jQuery('#picker10').html("ffffff");
		jQuery('#picker10').css({"background-color":"#ffffff","color":"#ffffff"});
		//-------------------------------------------------------------------------
		jQuery("#theme_1").css({"background-color":"#c5d1cc"});
		jQuery("#actionbar_theme1").css({"background-color":"#ebebeb","color":"#030003"});
		///---------------------------------------------------------------------------------
		jQuery(".list_theme1").css({"background-color":"#2e2e2e"});
		jQuery(".title_list_theme1").css({"background-color":"#ebebeb","color":"#000000"});
		jQuery(".text_list_theme1").css({"color":"#ffffff"});
		jQuery(".list_footer_theme1").css({"background-color":"#ffffff","color":"#696969"});
		////----------------------------------------------------------------------------------
		jQuery(".list_theme2").css({"background-color":"#2e2e2e"});
		jQuery(".text_list_theme2").css({"color":"#ffffff"});
		jQuery(".list_footer_theme2").css({"color":"#696969"});
		/////---------------------------------------------------------------------------------
		jQuery(".list_theme3").css({"background-color":"#2e2e2e"});
		jQuery(".text_list_theme3").css({"color":"#ffffff"});
		jQuery(".list_footer_theme3").css({"color":"#696969"});
		//////---------------------------------------------------------------------------------
		jQuery(".title_list_theme4").css({"color":"#000000"});
		jQuery(".text_list_theme4").css({"color":"#ffffff"});
		///////---------------------------------------------------------------------------------
		jQuery(".list_theme5").css({"background-color":"#2e2e2e"});
		jQuery(".title_list_theme5").css({"color":"#000000"});
		jQuery(".text_list_theme5").css({"color":"#ffffff"});
		jQuery(".list_footer_theme5").css({"color":"#696969"});
		////////---------------------------------------------------------------------------------
		jQuery(".list_theme6").css({"background-color":"#2e2e2e"});
		jQuery(".title_list_theme6").css({"color":"#000000"});
		jQuery(".text_list_theme6").css({"color":"#ffffff"});
		jQuery(".list_footer_theme6").css({"color":"#696969"});	
		/////////---------------------------------------------------------------------------------
		jQuery(".list_footer_theme7").css({"background-color" : "#ffffff" , "color" : "#696969" });
		//////////---------------------------------------------------------------------------------
	}else if (theme == 4) {
		jQuery('#picker1').html("006475");
		jQuery('#picker1').css({"background-color":"#006475","color":"#006475"});
		jQuery('#picker2').html("d8e8da");
		jQuery('#picker2').css({"background-color":"#d8e8da","color":"#d8e8da"});
		jQuery('#picker3').html("030003");
		jQuery('#picker3').css({"background-color":"#030003","color":"#030003"});
		jQuery('#picker4').html("ffffff");
		jQuery('#picker4').css({"background-color":"#ffffff","color":"#ffffff"});
		jQuery('#picker5').html("737373");
		jQuery('#picker5').css({"background-color":"#737373","color":"#737373"});
		jQuery('#picker6').html("ffffff");
		jQuery('#picker6').css({"background-color":"#ffffff","color":"#ffffff"});
		jQuery('#picker7').html("d9d9d9");
		jQuery('#picker7').css({"background-color":"#d9d9d9","color":"#d9d9d9"});
		jQuery('#picker8').html("696969");
		jQuery('#picker8').css({"background-color":"#696969","color":"#696969"});
		jQuery('#picker9').html("000000");
		jQuery('#picker9').css({"background-color":"#000000","color":"#000000"});
		jQuery('#picker10').html("ffffff");
		jQuery('#picker10').css({"background-color":"#ffffff","color":"#ffffff"});
		//-------------------------------------------------------------------------
		jQuery("#theme_1").css({"background-color":"#006475"});
		jQuery("#actionbar_theme1").css({"background-color":"#d8e8da","color":"#030003"});
		///---------------------------------------------------------------------------------
		jQuery(".list_theme1").css({"background-color":"#ffffff"});
		jQuery(".title_list_theme1").css({"background-color":"#ffffff","color":"#737373"});
		jQuery(".text_list_theme1").css({"color":"#000000"});
		jQuery(".list_footer_theme1").css({"background-color":"#d9d9d9","color":"#696969"});
		////----------------------------------------------------------------------------------
		jQuery(".list_theme2").css({"background-color":"#ffffff"});
		jQuery(".text_list_theme2").css({"color":"#000000"});
		jQuery(".list_footer_theme2").css({"color":"#696969"});
		/////---------------------------------------------------------------------------------
		jQuery(".list_theme3").css({"background-color":"#ffffff"});
		jQuery(".text_list_theme3").css({"color":"#000000"});
		jQuery(".list_footer_theme3").css({"color":"#696969"});
		//////---------------------------------------------------------------------------------
		jQuery(".title_list_theme4").css({"color":"#737373"});
		jQuery(".text_list_theme4").css({"color":"#000000"});
		///////---------------------------------------------------------------------------------
		jQuery(".list_theme5").css({"background-color":"#ffffff"});
		jQuery(".title_list_theme5").css({"color":"#737373"});
		jQuery(".text_list_theme5").css({"color":"#000000"});
		jQuery(".list_footer_theme5").css({"color":"#696969"});
		////////---------------------------------------------------------------------------------
		jQuery(".list_theme6").css({"background-color":"#ffffff"});
		jQuery(".title_list_theme6").css({"color":"#737373"});
		jQuery(".text_list_theme6").css({"color":"#000000"});
		jQuery(".list_footer_theme6").css({"color":"#696969"});	
		/////////---------------------------------------------------------------------------------
		jQuery(".list_footer_theme7").css({"background-color" : "#d9d9d9" , "color" : "#696969" });
		//////////---------------------------------------------------------------------------------
	}else if(theme == 0){
		jQuery('#picker1').html(color1.replace("#", "").trim());
		jQuery('#picker1').css({"background-color":color1,"color":color1});
		jQuery('#picker2').html(color2.replace("#", "").trim());
		jQuery('#picker2').css({"background-color":color2,"color":color2});
		jQuery('#picker3').html(color3.replace("#", "").trim());
		jQuery('#picker3').css({"background-color":color3,"color":color3});
		jQuery('#picker4').html(color4.replace("#", "").trim());
		jQuery('#picker4').css({"background-color":color4,"color":color4});
		jQuery('#picker5').html(color5.replace("#", "").trim());
		jQuery('#picker5').css({"background-color":color5,"color":color5});
		jQuery('#picker6').html(color6.replace("#", "").trim());
		jQuery('#picker6').css({"background-color":color6,"color":color6});
		jQuery('#picker7').html(color7.replace("#", "").trim());
		jQuery('#picker7').css({"background-color":color7,"color":color7});
		jQuery('#picker8').html(color8.replace("#", "").trim());
		jQuery('#picker8').css({"background-color":color8,"color":color8});
		jQuery('#picker9').html(color9.replace("#", "").trim());
		jQuery('#picker9').css({"background-color":color9,"color":color9});
		jQuery('#picker10').html(color10.replace("#", "").trim());
		jQuery('#picker10').css({"background-color":color10,"color":color10});
		//-------------------------------------------------------------------------
		jQuery("#theme_1").css({"background-color":color1});
		jQuery("#actionbar_theme1").css({"background-color":color2,"color":color3});
		///---------------------------------------------------------------------------------
		jQuery(".list_theme1").css({"background-color":color6});
		jQuery(".title_list_theme1").css({"background-color":color4,"color":color5});
		jQuery(".text_list_theme1").css({"color":color9});
		jQuery(".list_footer_theme1").css({"background-color":color7,"color":color8});
		////----------------------------------------------------------------------------------
		jQuery(".list_theme2").css({"background-color":color6});
		jQuery(".text_list_theme2").css({"color":color9});
		jQuery(".list_footer_theme2").css({"color":color8});
		/////---------------------------------------------------------------------------------
		jQuery(".list_theme3").css({"background-color":color6});
		jQuery(".text_list_theme3").css({"color":color9});
		jQuery(".list_footer_theme3").css({"color":color8});
		//////---------------------------------------------------------------------------------
		jQuery(".title_list_theme4").css({"color":color5});
		jQuery(".text_list_theme4").css({"color":color9});
		///////---------------------------------------------------------------------------------
		jQuery(".list_theme5").css({"background-color":color6});
		jQuery(".title_list_theme5").css({"color":color5});
		jQuery(".text_list_theme5").css({"color":color9});
		jQuery(".list_footer_theme5").css({"color":color8});
		////////---------------------------------------------------------------------------------
		jQuery(".list_theme6").css({"background-color":color6});
		jQuery(".title_list_theme6").css({"color":color5});
		jQuery(".text_list_theme6").css({"color":color9});
		jQuery(".list_footer_theme6").css({"color":color8});	
		/////////---------------------------------------------------------------------------------
		jQuery(".list_footer_theme7").css({"background-color" : color7 , "color" : color8 });
		//////////---------------------------------------------------------------------------------
	}
}