
/*---------------------- Hide Block Element Function  --------------------------
	
		
		The Hide Block Element Function is responsible for making a block element hidden so that
		it no longer shows within the display. */
		
		
			function hide_block_element(element_id)
			{

				element_reference = document.getElementById(element_id);
				element_reference.style.visibility = 'hidden';
				element_reference.style.display = 'none';
			}
			
			
	/*---------------------- Show Block Element Function  --------------------------
	
		
		The Show Element Function is responsible for making a block element visible so that
		it can be viewed within the display. */
		
			
			function show_block_element(element_id)
			{
				element_reference = document.getElementById(element_id);
				element_reference.style.visibility = 'visible';
				element_reference.style.display = 'block';
			}

/*---------------------- Create Pop Up Function  --------------------------
	
		
		The Create Pop Up Function is responsible for creating a chromeless pop up window of a fixed size
		based upon the parameters sent into the function. */		
			
			
			function create_pop_up(new_location,pop_up_width,pop_up_height)
			{
				var pop_up_features = "status,resizable=no,menubar,scrollbars=no,height=" + pop_up_height  + ",width="  + pop_up_width;
				newWindow = window.open(new_location,"",pop_up_features);
				newWindow.focus();
			}
			
			
	/*---------------------- Create Resize Pop Up Function  --------------------------
	
		
		The Create Resize Pop Up Function is responsible for creating a chromeless pop up window sized according
		to the parameters sent into the function and with the 'new location' as the URL. Unlike the 'create pop
		up' function, the window created is resizeable and not of a fixed size.*/
		
			
			function create_resize_pop_up(new_location,pop_up_width,pop_up_height)
			{
				var pop_up_features = "status,resizable=yes,menubar,scrollbars=no,height="  + pop_up_height  +  ",width=" +  pop_up_width;
				newWindow = window.open(new_location,"",pop_up_features);
				newWindow.focus();
			}

			function create_scroll_resize_pop_up(new_location,pop_up_width,pop_up_height)
			{
				var pop_up_features = "status,resizable=yes,menubar,scrollbars=yes,height="  + pop_up_height  +  ",width=" +  pop_up_width;
				newWindow = window.open(new_location,"",pop_up_features);
				newWindow.focus();
			}
			
			function create_auto_resize_pop_up(new_location,pop_up_width,pop_up_height)
			{
				var pop_up_features = "status,resizable=yes,menubar,scrollbars=auto,height="  + pop_up_height  +  ",width=" +  pop_up_width;
				newWindow = window.open(new_location,"",pop_up_features);
				newWindow.focus();
			}
			
			
			current_pulldown_id = '';

			function show_hide_pulldown(pulldown_id)
			{
				if(current_pulldown_id != '')
				{
					if(current_pulldown_id != pulldown_id)
					{
						hide_block_element(current_pulldown_id);
					}
					else
					{
						current_reference = document.getElementById(current_pulldown_id);
						
						if(current_reference.style.visibility == 'visible')
						{
							hide_block_element(current_pulldown_id);
						}
						else
						{
							show_block_element(current_pulldown_id);
						}
					}
				}
			
				if(current_pulldown_id != pulldown_id)
				{
					show_block_element(pulldown_id);
					current_pulldown_id = pulldown_id;
				}
				
				
			}