
//var price_plan_id_new;
function func_play_movie_1(my_value)
{

										// THIS PLAYS THE FLASH MOVIE THAT HANDLES PASSING OF THE VARS TO FLASH FROM JS
	movie.SetVariable("var_name", my_value);
	movie.TPlay("var_loop");
	
	var category_found = my_value.match(/\^/g);
	if ( category_found.length  > 1) func_main_nav_show_category_pano(my_value);
	else document.getElementById('pano_info').innerHTML = pano_info_default_value;
	//alert(category_found);
	
										// SPLIT THE NAME TO GET THE PLAN ID
	var plan_id = my_value.split("plan_id_");
	price_plan_id_new = plan_id[1];
										
										// IF THE PLAN ID IS NOT EQUAL TO THE CURRENT PLAN ID, DELETE THE CONTENTS OF THE TT
	if ( my_value.indexOf("plan_id") > -1 && price_plan_id_new != price_plan_id )
	{
		func_display_1("none", "tt_info_table");
		func_display_2("none", "other");
		func_tt_update("delete", "");
	
										// UPDATE THE CURRENT PRICE PLAN ID WITH THE NEW VALUE
		price_plan_id = price_plan_id_new;
		
		
	}

}


										// SHOW PANO INFO IN PANO INFO AREA
										// my_status IS USED TO KNOW IF SHOWING INFO ON PANO-ROLLOVER OR PANO-CLICK
//var admin_mode = false;
function func_main_nav_show_category_pano(my_value)
{

	var category_info = my_value.split("^");
	var cat_id =category_info[2];
	var pano_info;
	
	// SHOW CATEGORY TITLE
	if ( show_category == "1" ) pano_info = "<div class=\"cat_title_1\" align=\"center\">" + category_array[cat_id][0] + "</div><br>";
	
	// SHOW PRICES
			// LOOP THROUGH THE PANO PRICE TYPES AND PREP THEM FOR DISPLAY
	var ppt_len = category_array[cat_id][2].length;
	
	for ( x=0; x < ppt_len; x++ )
	{	
		var t = category_array[cat_id][2][x].split(",");
		var pt_id = Number(t[0]);
		
		if ( t[1] == "" ) var ptv = "";
		else var ptv = Number(t[1]);

		var price_type_name = price_type_array[pt_id][0];
		
		var price_type_value = 0;		
		
						// ASSIGN THE PRICE TYPE VALUE
		if ( ptv === "" ) price_type_value = ptv;
		else price_type_value = price_type_array[pt_id][1][ptv][1];	
			
			
		pano_info += "<div style=\"\" class=\"price_type_1\">" + price_type_name + " " + price_type_value + "</div>";	
				
	}
	
	// SHOW CUSTOM MESSAGE
	pano_info += "<br><div class=\"comment_1\" align=\"center\">" + category_array[cat_id][3] + "</div>";
	
	document.getElementById('pano_info').innerHTML = pano_info;

}

	
