function loadChildSizes(node_position){
  var child_sizes = sizes[node_position];
  var _html = "";
  $get("additional").innerHTML = _html;
  $get("additional").style.display = "none";
  
  if(child_sizes.length > 0){

	  for(var x=0; x<child_sizes.length; x++){
		  size = child_sizes[x];
		  var _label = "Add Number";
		  if(size.index == 1){
			  _label = "Add Perforation";
		  } else if(size.index == 2){
			  _label = "Add Number & Perforation";
		  }
		   
		  _html += '<li><label><input type="radio" name="rdAdditional" onclick="loadChildInfo(\''+size.index+'\',\''+ node_position + '\');"> ' + _label + '</label></li>';
          	  
	  }

	  _html = '<hr size="1" />' +
						'<ul class="modevent">' + _html + '</ul>' +
							'<hr size="1" />';
							
	  $get("additional").innerHTML = _html;
	  $get("additional").style.display = "block";
  }  
      
}

function loadChildInfo(array_index, node_position){
	var child_sizes = sizes[node_position];
	if(child_sizes.length > 0){
	  for(var x=0; x<child_sizes.length; x++){
		  size = child_sizes[x];		  		 
		  if(size.index == array_index){	// number			  
				clickURL = size.templateURL;				
				_front = size.front_preview_file;
				_back = size.back_preview_file;
				_front_width = size.front_width;
				_front_height = size.front_height;
				_back_width = size.back_width;
				_back_height = size.back_height;				
				displayImages();
				break;
		  } 		  
	  }
  }
}

