function writeTodaysHighlights(id){
	if(JSONObjHighlights.listToday.length!=0){
		rowHeight = '130px';
		if (JSONObjHighlights.listToday.length>1) {
			rowHeight = '123px';
		}
		gid(id).style.display = 'block';
		document.writeln('<div style="position: relative; width: 640px; height: 5px; background: url(./images/highlights/RK_highlights_blueTopBackground_640x5.jpg) top no-repeat"><!-- --></div>');
		for (x=0;x<JSONObjHighlights.listToday.length;x++) {
			document.writeln('\
					<div align="left" style="position: relative; width: 640px; min-height: '+rowHeight+'; *height: '+rowHeight+'; background: url(./images/highlights/RK_highlights_blueBackground_640x5.jpg) top repeat-y">\
						<div style="position: relative; display: inline-block; *float: left; width: 148px; height: 123px; vertical-align: top; padding: 0 0 0 13px">');
			if (JSONObjHighlights.listToday[x].href != '') {
				document.writeln('\
							<a href="'+JSONObjHighlights.listToday[x].href+'">\
								<img src="'+JSONObjHighlights.listToday[x].image+'" width="145" height="110" alt="" border="0" style="margin-top: 3px" />\
								<div style="position: absolute; width: 148px; height: 123px; top: 0; left: 11px; background: url(images/highlights/RK_highlights_blueFrame_148x123.png) top no-repeat; *background-image: none; *filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'images/highlights/RK_highlights_blueFrame_148x123.png\', sizingMethod=\'none\')">\
									<a href="'+JSONObjHighlights.listToday[x].href+'"><div style="width: 148px; height: 123px; cursor: pointer"><!-- --></div></a>\
								</div>\
							</a>');
			}
			else{
				document.writeln('\
							<img src="'+JSONObjHighlights.listToday[x].image+'" width="145" height="110" alt="" border="0" style="margin-top: 3px" />\
							<div style="position: absolute; width: 148px; height: 123px; top: 0; left: 11px; background: url(images/highlights/RK_highlights_blueFrame_148x123.png) top no-repeat; *background-image: none; *filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'images/highlights/RK_highlights_blueFrame_148x123.png\', sizingMethod=\'none\')"><!-- --></div>');
			}
			document.writeln('\
						</div>\
						<div align="left" style="position: relative; display: inline-block; width: 460px; min-height: '+rowHeight+'; *height: '+rowHeight+'; font: 10pt calibri; line-height: 12pt; vertical-align: top; *padding-left: 7px">');
							writeHighlightHeading({ text: JSONObjHighlights.listToday[x].title, color: '105ac7', width: '460', height: '21', wmode: 'transparent', scale: 'noorder'});
			document.writeln('\
							<ul class="highlights_list_blue">');
				if (JSONObjHighlights.listToday[x].text1!=null){
					document.writeln('<li>'+JSONObjHighlights.listToday[x].text1+'</li>');
				}
				if (JSONObjHighlights.listToday[x].text2!=null){
					document.writeln('<li>'+JSONObjHighlights.listToday[x].text2+'</li>');
				}
				if (JSONObjHighlights.listToday[x].text!=null){
					document.writeln('<li>'+JSONObjHighlights.listToday[x].text3+'</li>');
				}
				if (JSONObjHighlights.listToday[x].text4!=null){
					document.writeln('<li>'+JSONObjHighlights.listToday[x].text4+'</li>');
				}
			document.writeln('\
							</ul>\
						</div>\
					</div>');
			if((x+1)==JSONObjHighlights.listToday.length){
				break;
			}
			else{
				document.writeln('<div style="position: relative; width: 640px; height: 10px; background: url(images/highlights/RK_highlights_blueSeparator_640x10.jpg) top no-repeat"><!-- --></div>');
			}
			
		}
		document.writeln('<div style="position: relative; width: 640px; height: 12px; background: url(images/highlights/RK_highlights_blueBottomBackground_640x12.jpg) top no-repeat"><!-- --></div>');
		return true;
	}
	return false;
}

function writeThisWeeksHighlights(id){
	if(JSONObjHighlights.listThisWeek.length!=0){
		rowHeight = '130px';
		if (JSONObjHighlights.listToday.length>1) {
			rowHeight = '123px';
		}
		gid(id).style.display = 'block';
		document.writeln('<div style="position: relative; width: 640px; height: 5px; background: url(./images/highlights/RK_highlights_blueTopBackground_640x5.jpg) top no-repeat"><!-- --></div>');
		for (x=0;x<JSONObjHighlights.listThisWeek.length;x++) {
			document.writeln('\
					<div align="left" style="position: relative; width: 640px; min-height: '+rowHeight+'; *height: '+rowHeight+'; background: url(./images/highlights/RK_highlights_blueBackground_640x5.jpg) top repeat-y">\
						<div style="position: relative; display: inline-block; *float: left; width: 148px; height: 123px; vertical-align: top; padding: 0 0 0 13px">');
			if (JSONObjHighlights.listThisWeek[x].href != '') {
				document.writeln('\
							<a href="'+JSONObjHighlights.listThisWeek[x].href+'">\
								<img src="'+JSONObjHighlights.listThisWeek[x].image+'" width="145" height="110" alt="" border="0" style="margin-top: 3px" />\
								<div style="position: absolute; width: 148px; height: 123px; top: 0; left: 11px; background: url(images/highlights/RK_highlights_blueFrame_148x123.png) top no-repeat; *background-image: none; *filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'images/highlights/RK_highlights_blueFrame_148x123.png\', sizingMethod=\'none\')">\
									<a href="'+JSONObjHighlights.listThisWeek[x].href+'"><div style="width: 148px; height: 123px; cursor: pointer"><!-- --></div></a>\
								</div>\
							</a>');
			}
			else{
				document.writeln('\
							<img src="'+JSONObjHighlights.listThisWeek[x].image+'" width="145" height="110" alt="" border="0" style="margin-top: 3px" />\
							<div style="position: absolute; width: 148px; height: 123px; top: 0; left: 11px; background: url(images/highlights/RK_highlights_blueFrame_148x123.png) top no-repeat; *background-image: none; *filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'images/highlights/RK_highlights_blueFrame_148x123.png\', sizingMethod=\'none\')"><!-- --></div>');
			}
			document.writeln('\
						</div>\
						<div align="left" style="position: relative; display: inline-block; width: 460px; min-height: '+rowHeight+'; *height: '+rowHeight+'; font: 10pt calibri; line-height: 12pt; vertical-align: top; *padding-left: 7px">');
							writeHighlightHeading({ text: JSONObjHighlights.listThisWeek[x].title, color: '105ac7', width: '460', height: '21', wmode: 'transparent', scale: 'noorder'});
			document.writeln('\
							<ul class="highlights_list_blue">');
				if (JSONObjHighlights.listThisWeek[x].text1!=null){
					document.writeln('<li>'+JSONObjHighlights.listThisWeek[x].text1+'</li>');
				}
				if (JSONObjHighlights.listThisWeek[x].text2!=null){
					document.writeln('<li>'+JSONObjHighlights.listThisWeek[x].text2+'</li>');
				}
				if (JSONObjHighlights.listThisWeek[x].text3!=null){
					document.writeln('<li>'+JSONObjHighlights.listThisWeek[x].text3+'</li>');
				}
				if (JSONObjHighlights.listThisWeek[x].text4!=null){
					document.writeln('<li>'+JSONObjHighlights.listThisWeek[x].text4+'</li>');
				}
			document.writeln('\
							</ul>\
						</div>\
					</div>');
			if((x+1)==JSONObjHighlights.listThisWeek.length){
				break;
			}
			else{
				document.writeln('<div style="position: relative; width: 640px; height: 10px; background: url(images/highlights/RK_highlights_blueSeparator_640x10.jpg) top no-repeat"><!-- --></div>');
			}
			
		}
		document.writeln('<div style="position: relative; width: 640px; height: 12px; background: url(images/highlights/RK_highlights_blueBottomBackground_640x12.jpg) top no-repeat"><!-- --></div>');
		return true;
	}
	return false;
}

function writeComingSoonHighlights(id){
	if(JSONObjHighlights.listComingSoon.length!=0){
		rowHeight = '130px';
		if (JSONObjHighlights.listToday.length>1) {
			rowHeight = '123px';
		}
		gid(id).style.display = 'block';
		document.writeln('<div style="position: relative; width: 640px; height: 5px; background: url(./images/highlights/RK_highlights_orangeTopBackground_640x5.jpg) top no-repeat"><!-- --></div>');
		for (x=0;x<JSONObjHighlights.listComingSoon.length;x++) {
			document.writeln('\
					<div align="left" style="position: relative; width: 640px; min-height: '+rowHeight+'; *height: '+rowHeight+'; background: url(./images/highlights/RK_highlights_orangeBackground_640x5.jpg) top repeat-y">\
						<div style="position: relative; display: inline-block; *float: left; width: 148px; height: 123px; vertical-align: top; padding: 0 0 0 13px">');
			if (JSONObjHighlights.listComingSoon[x].href != '') {
				document.writeln('\
							<a href="'+JSONObjHighlights.listComingSoon[x].href+'">\
								<img src="'+JSONObjHighlights.listComingSoon[x].image+'" width="145" height="110" alt="" border="0" style="margin-top: 3px" />\
								<div style="position: absolute; width: 148px; height: 123px; top: 0; left: 11px; background: url(images/highlights/RK_highlights_orangeFrame_148x123.png) top no-repeat; *background-image: none; *filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'images/highlights/RK_highlights_orangeFrame_148x123.png\', sizingMethod=\'none\')">\
									<a href="'+JSONObjHighlights.listComingSoon[x].href+'"><div style="width: 148px; height: 123px; cursor: pointer"><!-- --></div></a>\
								</div>\
							</a>');
			}
			else{
				document.writeln('\
							<img src="'+JSONObjHighlights.listComingSoon[x].image+'" width="145" height="110" alt="" border="0" style="margin-top: 3px" />\
							<div style="position: absolute; width: 148px; height: 123px; top: 0; left: 11px; background: url(images/highlights/RK_highlights_orangeFrame_148x123.png) top no-repeat; *background-image: none; *filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'images/highlights/RK_highlights_orangeFrame_148x123.png\', sizingMethod=\'none\')"><!-- --></div>');
			}
			document.writeln('\
						</div>\
						<div align="left" style="position: relative; display: inline-block; width: 460px; min-height: '+rowHeight+'; *height: '+rowHeight+'; font: 10pt calibri; line-height: 12pt; vertical-align: top; *padding-left: 7px">');
							writeHighlightHeading({ text: JSONObjHighlights.listComingSoon[x].title, color: '105ac7', width: '460', height: '21', wmode: 'transparent', scale: 'noorder'});
			document.writeln('\
							<ul class="highlights_list_orange">');
				if (JSONObjHighlights.listComingSoon[x].text1!=null){
					document.writeln('<li>'+JSONObjHighlights.listComingSoon[x].text1+'</li>');
				}
				if (JSONObjHighlights.listComingSoon[x].text2!=null){
					document.writeln('<li>'+JSONObjHighlights.listComingSoon[x].text2+'</li>');
				}
				if (JSONObjHighlights.listComingSoon[x].text3!=null){
					document.writeln('<li>'+JSONObjHighlights.listComingSoon[x].text3+'</li>');
				}
				if (JSONObjHighlights.listComingSoon[x].text4!=null){
					document.writeln('<li>'+JSONObjHighlights.listComingSoon[x].text4+'</li>');
				}
			document.writeln('\
							</ul>\
						</div>\
					</div>');
			if((x+1)==JSONObjHighlights.listComingSoon.length){
				break;
			}
			else{
				document.writeln('<div style="position: relative; width: 640px; height: 10px; background: url(images/highlights/RK_highlights_orangeSeparator_640x10.jpg) top no-repeat"><!-- --></div>');
			}
			
		}
		document.writeln('<div style="position: relative; width: 640px; height: 12px; background: url(images/highlights/RK_highlights_orangeBottomBackground_640x12.jpg) top no-repeat"><!-- --></div>');
		return true;
	}
	return false;
}