	/******************************************************************************/
	//
	function setRightBorderSizePositionPr()
	{
		/*************************************/
		//set variables
		var cnrpr_width_desired = .18;
		var cncrpr_width_desired = .27;
		var bkgnd_img_width = 75;
		//end set variables
		/*************************************/

		//get the needed containers
		var cnmpr_object = document.getElementById('cnmpr');
		var cncr_object = document.getElementById('cncr');
		var cncl_object = document.getElementById('cncl');
		var cncrpr_object = document.getElementById('cncrpr');
		var cnclpr_object = document.getElementById('cnclpr');
		//get the width of the cnmpr object, this is the total width in px
		var cnmpr_object_width = cnmpr_object.clientWidth;
		//calculate right for cncrpr
		var cncrpr_right_fraction = ((cnmpr_object_width * cnrpr_width_desired) - bkgnd_img_width) / cnmpr_object_width;
		var cncrpr_right = Math.round((cncrpr_right_fraction * 100));
		cncrpr_right_per = cncrpr_right + '%';
		//calculate right for cnclpr
		cnclpr_right = (cncrpr_width_desired * 100) + (cnrpr_width_desired * 100) - cncrpr_right;
		cnclpr_right_per = cnclpr_right + '%';
		//set cnclpr_right
		cnclpr_object.style.right = cnclpr_right_per;
		//set cncrpr_right
		cncrpr_object.style.right = cncrpr_right_per;
	}
	//
	/******************************************************************************/

	/******************************************************************************/
	//
	function setPrSizes()
	{
		//get the needed containers
		var cc_object = document.getElementById('cc');
		var bpr1_object = document.getElementById('bpr1');
		var spr1tl1_object = document.getElementById('spr1tl1');
		var spr1tl2_object = document.getElementById('spr1tl2');
		var spr1tl3_object = document.getElementById('spr1tl3');
		var spr1tl4_object = document.getElementById('spr1tl4');
		var ipr1tl1_object = document.getElementById('ipr1tl1');
		var ipr1tl2_object = document.getElementById('ipr1tl2');
		var ipr1tl3_object = document.getElementById('ipr1tl3');
		var ipr1tl4_object = document.getElementById('ipr1tl4');
		var p_pr_dl_title_object = document.getElementById('pprdlt');
		//get the height of the cc object, this is the total height in px
		var cc_object_height = cc_object.clientHeight;
		var cc_height_px = cc_object_height + 'px';
		//set the height of the cc object
		bpr1_object.style.height = cc_height_px;
		//calculate height of spr1tl objects
		var spr1tl_height = cc_object_height / 4;
		var spr1tl_height_px = spr1tl_height + 'px';
		//set the height of the spr1tl objects
		spr1tl1_object.style.height = spr1tl_height_px;
		spr1tl2_object.style.height = spr1tl_height_px;
		spr1tl3_object.style.height = spr1tl_height_px;
		spr1tl4_object.style.height = spr1tl_height_px;
		//set the height of the ipr1tl objects
		ipr1tl1_object.style.height = spr1tl_height_px;
		ipr1tl2_object.style.height = spr1tl_height_px;
		ipr1tl3_object.style.height = spr1tl_height_px;
		ipr1tl4_object.style.height = spr1tl_height_px;
		//get the width of the cc object, this is the total width in px
		var cc_object_width = cc_object.clientWidth;
		var cc_width_px = cc_object_width + 'px';
		//set the width of the p_pr_dl_title object
		p_pr_dl_title_object.style.width = cc_width_px;
	}
	//
	/******************************************************************************/

	/******************************************************************************/
	//
	function loadDamageLevelContent(level)
	{
		/***************************************/
		//set variables
		var cdlc_object = document.getElementById('cdlc');
		//end set variables
		/***************************************/

		//set url
		switch (level)
		{
			case 1:
				var url = 'pr/pr_damage_content_minor.html';
				break;
			case 2:
				var url = 'pr/pr_damage_content_moderate.html';
				break;
			case 3:
				var url = 'pr/pr_damage_content_major.html';
				break;
			case 4:
				var url = 'pr/pr_damage_content_severe.html';
				break;
			default:
				return;
		}

		if (window.XMLHttpRequest)
		{
			// code for IE7+, Firefox, Chrome, Opera, Safari
			xmlhttp = new XMLHttpRequest();
		}
		else
		{
			// code for IE6, IE5
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		xmlhttp.onreadystatechange = 	function ()
		{
			if (xmlhttp.readyState == 4)
			{
				// 4 = "loaded"
				if (xmlhttp.status == 200)
				{
					// 200 = "OK"
					cdlc_object.innerHTML=xmlhttp.responseText;
					setDlcSizes();
				}
				else
				{
					alert("Problem retrieving data:" + xmlhttp.statusText);
				}
			}
		}

		xmlhttp.open("GET", url, true);
		xmlhttp.send(null);
	}
	//
	/******************************************************************************/

	/******************************************************************************/
	//
	function setDlcSizes()
	{
		//get the needed containers
		var cc_object = document.getElementById('cc');
		var p_pr_dl_title_object = document.getElementById('pprdlt');
		var p_pr_dl_price_object = document.getElementById('pprdlp');
		var ul_pr_dl_list_object = document.getElementById('ulprdll');
		var bpr1_object = document.getElementById('bpr1');
		//get the width of the cc object, this is the total width in px
		var cc_object_width = cc_object.clientWidth;
		var cc_width_px = cc_object_width + 'px';
		//get the width of the bpr1 object, this is the total width in px
		var bpr1_object_width = bpr1_object.clientWidth;
		var bpr1_width_px = bpr1_object_width + 'px';
		//set the width of the p_pr_dl_title object
		p_pr_dl_title_object.style.width = cc_width_px;
		//set the width of the p_pr_dl_price object
		p_pr_dl_price_object.style.width = bpr1_width_px;
		//calculate left margin for ul_pr_dl_list object
		var ul_pr_dl_list_left_margin = cc_object_width / 2;
		var ul_pr_dl_list_left_margin_px = ul_pr_dl_list_left_margin + 'px';
		//set the left margin of the ul_pr_dl_list object
		ul_pr_dl_list_object.style.marginLeft = ul_pr_dl_list_left_margin_px;
	}
	//
	/******************************************************************************/


	
	
	
	
	addLoadEvent(setRightBorderSizePosition);
	addLoadEvent(setRightColumnTopBlockHeights);
	addLoadEvent(setRightBorderSizePositionPr);
	addLoadEvent(setPrSizes);

