// JavaScript Document
var VOD_Module = Class.create();
VOD_Module.prototype = {
	initialize:function(con, typ, t_id, pic,teaser){
		//the container it goes in
		this.container = con;
		//left, middle,player_left,player_right
		this.type = typ;
		//track_id to feature
		this.track_id = t_id;
		//location of feature photo
		this.photo_location = pic
		//choose the header text and tagline
		this.program_name = 'Videos';
		this.tagline_text = '- 1000s On Demand';
		//teaser text for featured video
		this.promo = escape(teaser);
		//get the VOD contents for that module
		this.get_VOD_module();
	},
	get_VOD_module:function(){
		var params = {track_id:this.track_id, photo:this.photo_location, teaser:this.promo};
		//fire off a new ajax request to the nddbmodule.php
		new Ajax.Request(
			'/cc-common/js/ajax_services/vodModule.php',
			{
				method:'get',
				parameters: params,
				//when the program returns, build the module
				on200:this.build_VOD_module.bind(this)
			}
		);
	},
	build_VOD_module:function(transport){
			//eval the JSON object
		eval(transport.responseText);
		//if there aren't any artists in the return, hide the module and exit
		if(Object.keys(o).length == 0){
			this.container.style.display='none';
			return;
		}else{
			//if the object has items, build it based on type
			if(this.type.match(/landing_list/)){
				//build middle module
				this.build_landing_list_module(o);
			}else if(this.type.match(/landing_left/)){
				//build middle module
				this.build_landing_left_module(o);
			}else if(this.type.match(/player_left/)){
				//build middle module
				this.build_player_left_module(o);
			}else if(this.type.match(/player_right/)){
				//build left module
				this.build_player_right_module(o);
			}else if(this.type.match(/left/)){
				//build left module
				this.build_left_module(o);
			}else if(this.type.match(/middle/)){
				//build middle module
				this.build_middle_module(o);
			}else{
				//if the type is incorrect, hide the module and exit
				this.container.style.display='none';
				return;
			}
		}
	},
	build_landing_list_module:function(obj){
		//create the header and header text
		this.bottomLeftHeader = JTools._createDOMElement('div', 'bottomMiddleHeader', [{name:'id',value:'list_header'}]);
		this.bottomLeftHeaderMainText = JTools._createDOMElement('div', 'bottomMiddleHeaderMainText', [{name:'id',value:'list_header_text'}]);
		this.bottomLeftHeaderMainText_h3 = JTools._createDOMElement('h3', false, [{name:'id',value:'list_header_text_h3'}], this.program_name);
		this.bottomLeftHeaderMainText.appendChild(this.bottomLeftHeaderMainText_h3);
		this.bottomLeftHeader.appendChild(this.bottomLeftHeaderMainText);
		this.container.appendChild(this.bottomLeftHeader);
		this.bottomMiddleModuleContent = JTools._createDOMElement('div', 'bottomMiddleModuleContent', [{name:'id',value:'list'}]);
		this.bottomMiddleList = JTools._createDOMElement('div', 'bottomMiddleList', [{name:'id',value:'list_scroller'}]);
		this.bottomMiddleList_p = JTools._createDOMElement('p', 'list', [{name:'id',value:'list_scroller_p'}]);
		this.bottomMiddleList.appendChild(this.bottomMiddleList_p);
		this.bottomMiddleModuleContent.appendChild(this.bottomMiddleList);
		this.container.appendChild(this.bottomMiddleModuleContent);
		for(var i = 0; i<Object.keys(obj).length; i++){
			this.build_list_item(obj['artist_'+i]);
		}
	},
	build_player_left_module:function(obj){
		//create the module left header
		this.module_left_header = JTools._createDOMElement('div','module_left_header',[{name:'id', value:this.container.id+'_module_left_header'}]);
		//create teh header text
		var header_text = this.program_name + this.tagline_text;		
		this.module_left_header_text = JTools._createDOMElement('div','module_left_header_text',[{name:'id', value:this.container.id+'_module_left_header_text'}], header_text);
		//append the header test to the header
		this.module_left_header.appendChild(this.module_left_header_text);
		//append the header div to the container
		this.container.appendChild(this.module_left_header);
		
		//create the module_left_featured_content
		this.module_left_featured_content = JTools._createDOMElement('div','module_left_featured_content',[{name:'id', value:this.container.id+'_module_left_featured_content'}]);
		//create the module_left_featured_img
		this.module_left_featured_img = JTools._createDOMElement('div','module_left_featured_img',[{name:'id', value:this.container.id+'_module_left_featured_img'}]);
		//create the module_left_featured_img_img
		this.module_left_featured_img_img = JTools._createDOMElement('img',false,[{name:'id', value:this.container.id+'_module_left_featured_img_img'}, {name:'src', value:'/cc-common/templates/thumbnail2.php?wid=91&hei=63&convert_img=http://content.clearchannel.com'+obj.artist_0.photo+'&wmax=91&hmax=63&quality=90'}, {name:'width', value:91},{name:'height', value:63}]);
		//append the module_left_featured_img_img to the module_left_featured_img
		this.module_left_featured_img.appendChild(this.module_left_featured_img_img);
		//observe featured click
		Event.observe(this.module_left_featured_img, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		//append the module_left_featured_img to the module_left_featured_content
		this.module_left_featured_content.appendChild(this.module_left_featured_img);
		
		//create the module_left_featured_content_content
		this.module_left_featured_content_content = JTools._createDOMElement('div','module_left_featured_content_content',[{name:'id', value:this.container.id+'_module_left_featured_content_content'}]);
		//create teh module_left_featured_content_content_name_play
		this.module_left_featured_content_content_name_play = JTools._createDOMElement('div','module_left_featured_content_content_name_play',[{name:'id', value:this.container.id+'_module_left_featured_content_content_name_play'}]);
		//create the module_left_featured_content_content_name_play_button
		this.module_left_featured_content_content_name_play_button = JTools._createDOMElement('div','module_left_featured_content_content_name_play_button',[{name:'id', value:this.container.id+'_module_left_featured_content_content_name_play_button'}]);
		//append the module_left_featured_content_content_name_play_button to the module_left_featured_content_content_name_play
		this.module_left_featured_content_content_name_play.appendChild(this.module_left_featured_content_content_name_play_button);
		//observe featured click
		Event.observe(this.module_left_featured_content_content_name_play_button, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		//create teh module_left_featured_content_content_name_play_text
		this.module_left_featured_content_content_name_play_text = JTools._createDOMElement('div','module_left_featured_content_content_name_play_text',[{name:'id', value:this.container.id+'_module_left_featured_content_content_name_play_text'}], obj.artist_0.artist_name);
		//append teh module_left_featured_content_content_name_play_text to the module_left_featured_content_content_name_play
		this.module_left_featured_content_content_name_play.appendChild(this.module_left_featured_content_content_name_play_text);
		//observe featured click
		Event.observe(this.module_left_featured_content_content_name_play_text, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		//append the module_left_featured_content_content_name_play to the module_left_featured_content_content
		this.module_left_featured_content_content.appendChild(this.module_left_featured_content_content_name_play);
		//create teh module_left_featured_content_content_desc
		this.module_left_featured_content_content_desc = JTools._createDOMElement('div','module_left_featured_content_content_desc',[{name:'id', value:this.container.id+'_module_left_featured_content_content_desc'}], obj.artist_0.promo);
		//append the module_left_featured_content_content_desc to the module_left_featured_content_content
		this.module_left_featured_content_content.appendChild(this.module_left_featured_content_content_desc);
		//observe featured click
		Event.observe(this.module_left_featured_content_content, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		//append the module_left_featured_content_content to the module_left_featured_content
		this.module_left_featured_content.appendChild(this.module_left_featured_content_content);
		//append the module_left_featured_content to the container
		this.container.appendChild(this.module_left_featured_content);
		
		//create teh module_left_content
		this.module_left_content = JTools._createDOMElement('div','module_left_content',[{name:'id', value:this.container.id+'_module_left_content'}]);
		//loop through the artsits
		for(i=1;i<Object.keys(obj).length;i++){
			this.build_player_left_item(obj['artist_'+i], i);
		}
		
		//append teh module_left_content to the container
		this.container.appendChild(this.module_left_content);
	},
	build_player_right_module:function(obj){
		//create the module left header
		this.module_right_header = JTools._createDOMElement('div','module_right_header',[{name:'id', value:this.container.id+'_module_right_header'}]);
		//create teh header text
		var header_text = this.program_name + this.tagline_text;		
		this.module_right_header_text = JTools._createDOMElement('div','module_right_header_text',[{name:'id', value:this.container.id+'_module_right_header_text'}], header_text);
		//append the header test to the header
		this.module_right_header.appendChild(this.module_right_header_text);
		//append the header div to the container
		this.container.appendChild(this.module_right_header);
		
		//create the module_right_featured_content
		this.module_right_featured_content = JTools._createDOMElement('div','module_right_featured_content',[{name:'id', value:this.container.id+'_module_right_featured_content'}]);
		//create the module_right_featured_img
		this.module_right_featured_img = JTools._createDOMElement('div','module_right_featured_img',[{name:'id', value:this.container.id+'_module_right_featured_img'}]);
		//create the module_right_featured_img_img
		this.module_right_featured_img_img = JTools._createDOMElement('img',false,[{name:'id', value:this.container.id+'_module_right_featured_img_img'}, {name:'src', value:'/cc-common/templates/thumbnail2.php?wid=91&hei=63&convert_img=http://content.clearchannel.com'+obj.artist_0.photo+'&wmax=105&hmax=72&quality=90'}, {name:'width', value:105},{name:'height', value:72}]);
		//append the module_right_featured_img_img to the module_right_featured_img
		this.module_right_featured_img.appendChild(this.module_right_featured_img_img);
		//observe featured click
		Event.observe(this.module_right_featured_img, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		//append the module_right_featured_img to the module_right_featured_content
		this.module_right_featured_content.appendChild(this.module_right_featured_img);
		
		//create the module_right_featured_content_content
		this.module_right_featured_content_content = JTools._createDOMElement('div','module_right_featured_content_content',[{name:'id', value:this.container.id+'_module_right_featured_content_content'}]);
		//create teh module_right_featured_content_content_name_play
		this.module_right_featured_content_content_name_play = JTools._createDOMElement('div','module_right_featured_content_content_name_play',[{name:'id', value:this.container.id+'_module_right_featured_content_content_name_play'}]);
		//create the module_right_featured_content_content_name_play_button
		this.module_right_featured_content_content_name_play_button = JTools._createDOMElement('div','module_right_featured_content_content_name_play_button',[{name:'id', value:this.container.id+'_module_right_featured_content_content_name_play_button'}]);
		//append the module_right_featured_content_content_name_play_button to the module_right_featured_content_content_name_play
		this.module_right_featured_content_content_name_play.appendChild(this.module_right_featured_content_content_name_play_button);
		//observe featured click
		Event.observe(this.module_right_featured_content_content_name_play_button, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		//create teh module_right_featured_content_content_name_play_text
		this.module_right_featured_content_content_name_play_text = JTools._createDOMElement('div','module_right_featured_content_content_name_play_text',[{name:'id', value:this.container.id+'_module_right_featured_content_content_name_play_text'}], obj.artist_0.artist_name);
		//append teh module_right_featured_content_content_name_play_text to the module_right_featured_content_content_name_play
		this.module_right_featured_content_content_name_play.appendChild(this.module_right_featured_content_content_name_play_text);
		//observe featured click
		Event.observe(this.module_right_featured_content_content_name_play_text, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		//append the module_right_featured_content_content_name_play to the module_right_featured_content_content
		this.module_right_featured_content_content.appendChild(this.module_right_featured_content_content_name_play);
		//create teh module_right_featured_content_content_desc
		this.module_right_featured_content_content_desc = JTools._createDOMElement('div','module_right_featured_content_content_desc',[{name:'id', value:this.container.id+'_module_right_featured_content_content_desc'}], obj.artist_0.promo);
		//append the module_right_featured_content_content_desc to the module_right_featured_content_content
		this.module_right_featured_content_content.appendChild(this.module_right_featured_content_content_desc);
		//observe featured click
		Event.observe(this.module_right_featured_content_content, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		//append the module_right_featured_content_content to the module_right_featured_content
		this.module_right_featured_content.appendChild(this.module_right_featured_content_content);
		//append the module_right_featured_content to the container
		this.container.appendChild(this.module_right_featured_content);
		
		//create teh module_right_content
		this.module_right_content = JTools._createDOMElement('div','module_right_content',[{name:'id', value:this.container.id+'_module_right_content'}]);
		//loop through the artsits
		for(i=1;i<Object.keys(obj).length;i++){
			this.build_player_right_item(obj['artist_'+i], i);
		}
		
		//append teh module_right_content to the container
		this.container.appendChild(this.module_right_content);
	},
	build_left_module:function(obj){
		//create the module header
		this.bottomLeftHeader = JTools._createDOMElement('div','bottomLeftHeader',[{name:'id', value:'bottomLeftHeader'}]);
		
		//create the bottomLeftHeaderMainText
		this.bottomLeftHeaderMainText =  JTools._createDOMElement('div','bottomLeftHeaderMainText',[{name:'id', value:'bottomLeftHeaderMainText'}]);
		//create the bottomLeftHeaderMainText_h3
		this.bottomLeftHeaderMainText_h3 =  JTools._createDOMElement('h3',false,[{name:'id', value:'bottomLeftHeaderMainText_h3'}], this.program_name);
		//append the bottomLeftHeaderMainText_h3 to the bottomLeftHeaderMainText
		this.bottomLeftHeaderMainText.appendChild(this.bottomLeftHeaderMainText_h3);
		
		//append the bottomLeftHeaderMainText to the bottomLeftHeader
		this.bottomLeftHeader.appendChild(this.bottomLeftHeaderMainText);
		
		//create teh bottomLeftHeaderSubText
		this.bottomLeftHeaderSubText = JTools._createDOMElement('div','bottomLeftHeaderSubText',[{name:'id', value:'bottomLeftHeaderSubText'}]);
		//create the bottomLeftHeaderSubText_h4
		this.bottomLeftHeaderSubText_h4 =  JTools._createDOMElement('h4',false,[{name:'id', value:'bottomLeftHeaderSubText_h4'}], this.tagline_text);
		//append the bottomLeftHeaderSubText_h4 to the bottomLeftHeaderSubText
		this.bottomLeftHeaderSubText.appendChild(this.bottomLeftHeaderSubText_h4);

		//append the bottomLeftHeaderSubText to the bottomLeftHeader
		this.bottomLeftHeader.appendChild(this.bottomLeftHeaderSubText);

		
		//append the bottomLeftHeader to the container
		this.container.appendChild(this.bottomLeftHeader);
		
		//create the bottomLeftModuleContent_top
		this.bottomLeftModuleContent_top = JTools._createDOMElement('div','bottomLeftModuleContent',[{name:'id', value:'bottomLeftModuleContent_top'}]);
		
		//create the bottomLeftImage div
		this.bottomLeftImage = JTools._createDOMElement('div','bottomLeftImage',[{name:'id', value:'bottomLeftImage'}]);
		//create teh bottomLeftImage_img
		this.bottomLeftImage_img = JTools._createDOMElement('img',false,[{name:'height', value:65},{name:'width', value:93},{name:'src',value:'/cc-common/templates/thumbnail2.php?wid=91&hei=63&convert_img=http://content.clearchannel.com'+obj.artist_0.photo+'&wmax=93&hmax=65&quality=90'},{name:'id', value:'bottomLeftImage_img'}]);
		//append the bottomLeftImage_img to the bottomLeftImage
		this.bottomLeftImage.appendChild(this.bottomLeftImage_img);
		//observe the bottomLeftImage
		Event.observe(this.bottomLeftImage, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		//append teh bottomLeftImage to the bottomLeftModuleContent_top
		this.bottomLeftModuleContent_top.appendChild(this.bottomLeftImage);
		//create teh bottomLeftPlaybutton2
		this.bottomLeftPlaybutton2 = JTools._createDOMElement('div','bottomLeftPlaybutton2',[{name:'id', value:'bottomLeftPlaybutton2'}]);
		//create teh bottomLeftImage_img
		this.bottomLeftPlaybutton2_img = JTools._createDOMElement('img',false,[{name:'src',value:'/cc-common/ondemand/dev/images/playbutton.jpg'},{name:'id', value:'bottomLeftPlaybutton2_img'}]);
		//append the bottomLeftImage_img to the bottomLeftImage
		this.bottomLeftPlaybutton2.appendChild(this.bottomLeftPlaybutton2_img);
		//observe the bottomLeftPlaybutton2
		Event.observe(this.bottomLeftPlaybutton2, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		//append teh bottomLeftPlaybutton2 to tghe bottomLeftModuleContent_top
		this.bottomLeftModuleContent_top.appendChild(this.bottomLeftPlaybutton2);
		//create teh bottomLeftHeaderText
		this.bottomLeftHeaderText = JTools._createDOMElement('div','bottomLeftHeaderText',[{name:'id', value:'bottomLeftHeaderText'}]);
		//create the bottomLeftHeaderText_h1
		this.bottomLeftHeaderText_h1 = JTools._createDOMElement('h1',false,[{name:'id', value:'bottomLeftHeaderText_h1'}], obj.artist_0.artist_name);
		//append the bottomLeftHeaderText_h1 to the bottomLeftHeaderText
		this.bottomLeftHeaderText.appendChild(this.bottomLeftHeaderText_h1);
		//observe the bottomLeftHeaderText
		Event.observe(this.bottomLeftHeaderText, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		//append the bottomLeftHeaderText to the bottomLeftModuleContent_top
		this.bottomLeftModuleContent_top.appendChild(this.bottomLeftHeaderText);
		//create teh bottomLeftText
		this.bottomLeftText = JTools._createDOMElement('div','bottomLeftText',[{name:'id', value:'bottomLeftText'}]);
		//create the bottomLeftText_h2
		this.bottomLeftText_h2 = JTools._createDOMElement('h2',false,[{name:'id', value:'bottomLeftText_h1'}], obj.artist_0.promo);
		//append the bottomLeftText_h2 to the bottomLeftText
		this.bottomLeftText.appendChild(this.bottomLeftText_h2);
		//observe the bottomLeftHeaderText
		Event.observe(this.bottomLeftText, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		//append the bottomLeftHeaderText to the bottomLeftModuleContent_top
		this.bottomLeftModuleContent_top.appendChild(this.bottomLeftText);
		//append the bottomLeftModuleContent_top to the container
		this.container.appendChild(this.bottomLeftModuleContent_top);
		for(i=1;i<Object.keys(obj).length;i++){
			this.build_left_item(obj['artist_'+i], i);
		}
		this.bottomMore = JTools._createDOMElement('div','bottomMore',[{name:'id', value:'bottomMore'+this.program}]);
		if(this.program == 'stripped'){
			this.more_link = JTools._createDOMElement('a',false,[{name:'href', value:'/cc-common/ondemand/stripped.html'}], 'More '+ this.program_name);
			this.bottomMore.appendChild(this.more_link);
		}else{
			this.more_link = JTools._createDOMElement('a',false,[{name:'href', value:'/cc-common/videos_on_demand'}], 'More '+ this.program_name);
//			this.more_link = JTools._createDOMElement('a', false, [{name:'href', value:'javascript:void(0)'},{name:'target', value:'player'}], 'More '+this.program_name);
			this.bottomMore.appendChild(this.more_link);
			//Event.observe(this.more_link, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		}
		this.container.appendChild(this.bottomMore);
	},
	build_middle_module:function(obj){
		//create the module header
		this.bottomMiddleHeader = JTools._createDOMElement('div','bottomMiddleHeader',[{name:'id', value:'bottomMiddleHeader'}]);
		//create the bottomMiddleHeaderMainText
		this.bottomMiddleHeaderMainText =  JTools._createDOMElement('div','bottomMiddleHeaderMainText',[{name:'id', value:'bottomMiddleHeaderMainText'}]);
		//create the bottomMiddleHeaderMainText_h3
		this.bottomMiddleHeaderMainText_h3 =  JTools._createDOMElement('h3',false,[{name:'id', value:'bottomMiddleHeaderMainText_h3'}], this.program_name);
		//append the bottomMiddleHeaderMainText_h3 to the bottomMiddleHeaderMainText
		this.bottomMiddleHeaderMainText.appendChild(this.bottomMiddleHeaderMainText_h3);
		//append the bottomMiddleHeaderMainText to the bottomMiddleHeader
		this.bottomMiddleHeader.appendChild(this.bottomMiddleHeaderMainText);
		//create teh bottomMiddleHeaderSubText
		this.bottomMiddleHeaderSubText = JTools._createDOMElement('div','bottomMiddleHeaderSubText',[{name:'id', value:'bottomMiddleHeaderSubText'}]);
		//create the bottomMiddleHeaderSubText_h4
		this.bottomMiddleHeaderSubText_h4 =  JTools._createDOMElement('h4',false,[{name:'id', value:'bottomMiddleHeaderSubText_h4'}], this.tagline_text);
		//append the bottomMiddleHeaderSubText_h4 to the bottomMiddleHeaderSubText
		this.bottomMiddleHeaderSubText.appendChild(this.bottomMiddleHeaderSubText_h4);
		//append the bottomMiddleHeaderSubText to the bottomMiddleHeader
		this.bottomMiddleHeader.appendChild(this.bottomMiddleHeaderSubText);
		//append the bottomMiddleHeader to the container
		this.container.appendChild(this.bottomMiddleHeader);
		//create the bottomMiddleModuleContent_top
		this.bottomMiddleModuleContent_top = JTools._createDOMElement('div','bottomMiddleModuleContent',[{name:'id', value:'bottomMiddleModuleContent_top'}]);
		//create the bottomMiddleImage div
		this.bottomMiddleImage = JTools._createDOMElement('div','bottomMiddleImage',[{name:'id', value:'bottomMiddleImage'}]);
		//create teh bottomMiddleImage_img
		this.bottomMiddleImage_img = JTools._createDOMElement('img',false,[{name:'height', value:65},{name:'width', value:93},{name:'src',value:'/cc-common/templates/thumbnail2.php?wid=91&hei=63&convert_img=http://content.clearchannel.com'+obj.artist_0.photo+'&wmax=93&hmax=65&quality=90'},{name:'id', value:'bottomMiddleImage_img'}]);
		//append the bottomMiddleImage_img to the bottomMiddleImage
		this.bottomMiddleImage.appendChild(this.bottomMiddleImage_img);
		//observe the bottomMiddleImage
		Event.observe(this.bottomMiddleImage, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		//append teh bottomMiddleImage to the bottomMiddleModuleContent_top
		this.bottomMiddleModuleContent_top.appendChild(this.bottomMiddleImage);
		//create teh bottomMiddlePlaybutton2
		this.bottomMiddlePlaybutton2 = JTools._createDOMElement('div','bottomMiddlePlaybutton2',[{name:'id', value:'bottomMiddlePlaybutton2'}]);
		//create teh bottomMiddleImage_img
		this.bottomMiddlePlaybutton2_img = JTools._createDOMElement('img',false,[{name:'src',value:'/cc-common/ondemand/dev/images/playbutton.jpg'},{name:'id', value:'bottomMiddlePlaybutton2_img'}]);
		//append the bottomMiddleImage_img to the bottomMiddleImage
		this.bottomMiddlePlaybutton2.appendChild(this.bottomMiddlePlaybutton2_img);
		//observe the bottomMiddlePlaybutton2
		Event.observe(this.bottomMiddlePlaybutton2, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		//append teh bottomMiddlePlaybutton2 to tghe bottomMiddleModuleContent_top
		this.bottomMiddleModuleContent_top.appendChild(this.bottomMiddlePlaybutton2);
		//create teh bottomMiddleHeaderText
		this.bottomMiddleHeaderText = JTools._createDOMElement('div','bottomMiddleHeaderText',[{name:'id', value:'bottomMiddleHeaderText'}]);
		//create the bottomMiddleHeaderText_h1
		this.bottomMiddleHeaderText_h1 = JTools._createDOMElement('h1',false,[{name:'id', value:'bottomMiddleHeaderText_h1'}], obj.artist_0.artist_name);
		//append the bottomMiddleHeaderText_h1 to the bottomMiddleHeaderText
		this.bottomMiddleHeaderText.appendChild(this.bottomMiddleHeaderText_h1);
		//observe the bottomMiddleHeaderText
		Event.observe(this.bottomMiddleHeaderText, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		//append the bottomMiddleHeaderText to the bottomMiddleModuleContent_top
		this.bottomMiddleModuleContent_top.appendChild(this.bottomMiddleHeaderText);
		//create teh bottomMiddleText
		this.bottomMiddleText = JTools._createDOMElement('div','bottomMiddleText',[{name:'id', value:'bottomMiddleText'}]);
		//create the bottomMiddleText_h2
		this.bottomMiddleText_h2 = JTools._createDOMElement('h2',false,[{name:'id', value:'bottomMiddleText_h1'}], obj.artist_0.promo);
		//append the bottomMiddleText_h2 to the bottomMiddleText
		this.bottomMiddleText.appendChild(this.bottomMiddleText_h2);
		//observe the bottomMiddleHeaderText
		Event.observe(this.bottomMiddleText, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		//append the bottomMiddleHeaderText to the bottomMiddleModuleContent_top
		this.bottomMiddleModuleContent_top.appendChild(this.bottomMiddleText);
		//append the bottomMiddleModuleContent_top to the container
		this.container.appendChild(this.bottomMiddleModuleContent_top);
		for(i=1;i<Object.keys(obj).length;i++){
			this.build_middle_item(obj['artist_'+i], i);
		}
		this.bottomMore = JTools._createDOMElement('div','bottomMore',[{name:'id', value:'bottomMore'+this.program}]);
		if(this.program == 'stripped'){
			this.more_link = JTools._createDOMElement('a',false,[{name:'href', value:'/cc-common/ondemand/stripped.html'}], 'More '+ this.program_name);
			this.bottomMore.appendChild(this.more_link);
		}else{
			this.more_link = JTools._createDOMElement('a',false,[{name:'href', value:'/cc-common/videos_on_demand'}], 'More '+ this.program_name);
			//this.more_link = JTools._createDOMElement('a', false, [{name:'href', value:'javascript:void(0)'},{name:'target', value:'player'}], 'More '+this.program_name);
			this.bottomMore.appendChild(this.more_link);
			//Event.observe(this.more_link, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id;PlayerPopups.openPlayer(url);});
		}
		this.container.appendChild(this.bottomMore);
	},
	build_landing_left_module:function(obj){
		this.bottomLeftHeader = JTools._createDOMElement('div','bottomLeftHeader',[{name:'id', value:'bottomLeftHeader'}]);
		this.bottomLeftHeaderMainText = JTools._createDOMElement('div','bottomLeftHeaderMainText',[{name:'id', value:'bottomLeftHeaderMainText'}]);
		this.bottomLeftHeaderMainText_h3 = JTools._createDOMElement('h3',false,[{name:'id', value:'bottomLeftHeaderMainText_h3'}], this.program_name);
		this.bottomLeftHeaderMainText.appendChild(this.bottomLeftHeaderMainText_h3);
		this.bottomLeftHeader.appendChild(this.bottomLeftHeaderMainText);
		this.bottomLeftHeaderSubText = JTools._createDOMElement('div','bottomLeftHeaderSubText',[{name:'id', value:'bottomLeftHeaderSubText'}]);
		this.bottomLeftHeaderSubText_h4 = JTools._createDOMElement('h4',false,[{name:'id', value:'bottomLeftHeaderSubText_h4'}], this.tagline_text);
		this.bottomLeftHeaderSubText.appendChild(this.bottomLeftHeaderSubText_h4);
		this.bottomLeftHeader.appendChild(this.bottomLeftHeaderSubText);
		this.container.appendChild(this.bottomLeftHeader);
		this.featured_content = JTools._createDOMElement('div', 'bottomLeftModuleContent', [{name:'id', value:'featuredbottomLeftModuleContent'}]);
		this.featured_content_image = JTools._createDOMElement('div', 'bottomLeftImage', [{name:'id', value:'featuredbottomLeftImage'}]);
		this.featured_content_image.setStyle({'margin-right':'10px',cursor:'pointer'});
		this.featured_content_image_img = JTools._createDOMElement('img', false, [{name:'src', value:'/cc-common/templates/thumbnail2.php?wid=105&hei=72&convert_img=http://content.clearchannel.com'+obj.artist_0.photo+'&wmax=105&hmax=72&quality=90'}]);
		this.featured_content_image_img.setStyle({
			border:'0px none #000000'									 
		});
		Event.observe(this.featured_content_image, 'click', function(){var url = '/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id; PlayerPopups.openPlayer(url);});
		this.featured_content_image.appendChild(this.featured_content_image_img);
		this.featured_content.appendChild(this.featured_content_image);
		this.featured_content_table = JTools._createDOMElement('table', false, [{name:'width', value:'175px'}]);
		this.featured_content_table_tbody = JTools._createDOMElement('tbody', false, []);
		this.featured_content_table_tr_1 = JTools._createDOMElement('tr', false, []);
		this.featured_content_table_tr_1_td_1 = JTools._createDOMElement('td', false, [{name:'width', value:'14px'}]);
		this.featured_content_table_tr_1_td_1_anchor = JTools._createDOMElement('a', false, [{name:'href', value:'javascript:void(PlayerPopups.openPlayer("/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id+'"));'}]);
		this.featured_content_table_tr_1_td_1_anchor_img = JTools._createDOMElement('img', false, [{name:'src', value:'images/playbuttonblack.jpg'}]);
		this.featured_content_table_tr_1_td_1_anchor_img.setStyle({border:'0px none #000000'});
		this.featured_content_table_tr_1_td_1_anchor.appendChild(this.featured_content_table_tr_1_td_1_anchor_img);
		this.featured_content_table_tr_1_td_1.appendChild(this.featured_content_table_tr_1_td_1_anchor);
		this.featured_content_table_tr_1.appendChild(this.featured_content_table_tr_1_td_1);
		this.featured_content_table_tr_1_td2 = JTools._createDOMElement('td', 'bigwhite', [{name:'width', value:'151px'}]);
		this.featured_content_table_tr_1_td2_anchor = JTools._createDOMElement('a', false, [{name:'href', value:'javascript:void(PlayerPopups.openPlayer("/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id+'"));'}], obj.artist_0.artist_name+' - '+obj.artist_0.title);
		this.featured_content_table_tr_1_td2.appendChild(this.featured_content_table_tr_1_td2_anchor);
		this.featured_content_table_tr_1.appendChild(this.featured_content_table_tr_1_td2);
		this.featured_content_table_tbody.appendChild(this.featured_content_table_tr_1);
		this.featured_content_table_tr_2 = JTools._createDOMElement('tr', false, []);
		this.featured_content_table_tr_2_td_1 = JTools._createDOMElement('td', 'blue', [{name:'width', value:'175px'},{name:'colSpan', value:'2'}]);
		this.featured_content_table_tr_2_td_1_anchor = JTools._createDOMElement('a', false, [{name:'href', value:'javascript:void(PlayerPopups.openPlayer("/cc-common/ondemand/player.html?track_id='+obj.artist_0.track_id+'"));'}], obj.artist_0.promo);
		this.featured_content_table_tr_2_td_1.appendChild(this.featured_content_table_tr_2_td_1_anchor);
		this.featured_content_table_tr_2.appendChild(this.featured_content_table_tr_2_td_1);
		this.featured_content_table_tbody.appendChild(this.featured_content_table_tr_2);
		this.featured_content_table.appendChild(this.featured_content_table_tbody);
		this.featured_content.appendChild(this.featured_content_table);
		this.container.appendChild(this.featured_content);
		for(i=1;i<Object.keys(obj).length;i++){
			this.build_left_landing_item(obj['artist_'+i], i);
		}
	},
	build_left_item:function(obj, num){
		//create the bottomLeftModuleContent
		var bottomLeftModuleContent = JTools._createDOMElement('div','bottomLeftModuleContent',[{name:'id', value:'bottomLeftModuleContent'+num}]);
		//create teh bottomLeftPlaybutton
		var bottomLeftPlaybutton = JTools._createDOMElement('div','bottomLeftPlaybutton',[{name:'id', value:'bottomLeftPlaybutton'+num}]);
		//create teh bottomLeftPlaybutton_img
		var bottomLeftPlaybutton_img = JTools._createDOMElement('img',false,[{name:'src',value:'/cc-common/ondemand/dev/images/playbutton.jpg'},{name:'id', value:'bottomLeftPlaybutton_img'+num}]);
		//append the bottomLeftImage_img to the bottomLeftImage
		bottomLeftPlaybutton.appendChild(bottomLeftPlaybutton_img);
		//observe the bottomLeftPlaybutton
		var main_url = '/cc-common/ondemand/player.html?track_id='+obj.track_id;
		Event.observe(bottomLeftPlaybutton, 'click', function(){PlayerPopups.openPlayer(main_url);});
		//append teh bottomLeftPlaybutton to tghe bottomLeftModuleContent
		bottomLeftModuleContent.appendChild(bottomLeftPlaybutton);
	
		//create the bottomLeftLinks
		var bottomLeftLinks = JTools._createDOMElement('div','bottomLeftLinks',[{name:'id', value:'bottomLeftLinks'+num}]);
		//create the bottomLeftLinks_a
		var bottomLeftLinks_a = JTools._createDOMElement('a',false,[{name:'href', value:main_url}, {name:'target', value:'player'}], obj.artist_name+' - '+obj.title);
		//append the bottomLeftLinks_a to the bottomLeftLinks
		bottomLeftLinks.appendChild(bottomLeftLinks_a);		
		//append the bottomLeftLinks to the bottomLeftModuleContent
		bottomLeftModuleContent.appendChild(bottomLeftLinks);
		//create the bottomLeftVideoButton
		var bottomLeftVideoButton = JTools._createDOMElement('div','bottomLeftVideoButton',[{name:'id', value:'bottomLeftVideoButton'+num}]);
		//create teh bottomLeftPlaybutton_img
		var icon_url = '/cc-common/ondemand/player.html?track_id='+obj.track_id;
		var bottomLeftVideoButton_img = JTools._createDOMElement('img',false,[{name:'src',value:'/cc-common/templates/00guide/icons/grey/videocamera.gif'},{name:'id', value:'bottomLeftVideoButton_img'+num}]);
		//append the bottomLeftImage_img to the bottomLeftVideoButton
		bottomLeftVideoButton.appendChild(bottomLeftVideoButton_img);
		bottomLeftVideoButton.setStyle({cursor:'pointer'});
		Event.observe(bottomLeftVideoButton, 'click', function(){PlayerPopups.openPlayer(icon_url);});
		//append bottomMiddleVideoButton to the bottomLeftModuleContent
		bottomLeftModuleContent.appendChild(bottomLeftVideoButton);
		
		if(obj.download){
			var bottomLeftiTunesButton = JTools._createDOMElement('div','bottomLeftiTunesButton',[{name:'id', value:'bottomLeftiTunesButton'+num}]);
			//create teh download img
			bottomLeftiTunesButton_img = JTools._createDOMElement('img',false,[{name:'src',value:'/cc-common/templates/00guide/icons/download_ltgraybg.gif'},{name:'id', value:'bottomLeftiTunesButton_img'+num}]);
			//append the bottomLeftiTunesButton_img to the bottomLeftiTunesButton
			bottomLeftiTunesButton.appendChild(bottomLeftiTunesButton_img);
			//observe the bottomLeftiTunesButton
			Event.observe(bottomLeftiTunesButton, 'click', function(){window.open(obj.download, '_blank');});
			bottomLeftiTunesButton.setStyle({cursor:'pointer'});
			//append the bottomLeftiTunesButton to the bottomLeftModuleContent
			bottomLeftModuleContent.appendChild(bottomLeftiTunesButton);
		}else{
			var bottomLeftiTunesButton = JTools._createDOMElement('div','bottomLeftiTunesButton',[{name:'id', value:'bottomLeftiTunesButton'+num}]);
			bottomLeftModuleContent.appendChild(bottomLeftiTunesButton);
		}
		//append the bottomLeftModuleContent_top to the container
		this.container.appendChild(bottomLeftModuleContent);
	},
	build_middle_item:function(obj, num){
		//create the bottomLeftModuleContent
		var bottomLeftModuleContent = JTools._createDOMElement('div','bottomLeftModuleContent',[{name:'id', value:'bottomLeftModuleContent'+num}]);
		//create teh bottomLeftPlaybutton
		var bottomLeftPlaybutton = JTools._createDOMElement('div','bottomLeftPlaybutton',[{name:'id', value:'bottomLeftPlaybutton'+num}]);
		//create teh bottomLeftPlaybutton_img
		var bottomLeftPlaybutton_img = JTools._createDOMElement('img',false,[{name:'src',value:'/cc-common/ondemand/dev/images/playbutton.jpg'},{name:'id', value:'bottomLeftPlaybutton_img'+num}]);
		//append the bottomLeftImage_img to the bottomLeftImage
		bottomLeftPlaybutton.appendChild(bottomLeftPlaybutton_img);
		//observe the bottomLeftPlaybutton
		var main_url = '/cc-common/ondemand/player.html?track_id='+obj.track_id;
		Event.observe(bottomLeftPlaybutton, 'click', function(){PlayerPopups.openPlayer(main_url);});
		//append teh bottomLeftPlaybutton to tghe bottomLeftModuleContent
		bottomLeftModuleContent.appendChild(bottomLeftPlaybutton);
	
		//create the bottomLeftLinks
		var bottomLeftLinks = JTools._createDOMElement('div','bottomLeftLinks',[{name:'id', value:'bottomLeftLinks'+num}]);
		//create the bottomLeftLinks_a
		var bottomLeftLinks_a = JTools._createDOMElement('a',false,[{name:'href', value:main_url}, {name:'target', value:'player'}], obj.artist_name+' - '+obj.title);
		//append the bottomLeftLinks_a to the bottomLeftLinks
		bottomLeftLinks.appendChild(bottomLeftLinks_a);		
		//append the bottomLeftLinks to the bottomLeftModuleContent
		bottomLeftModuleContent.appendChild(bottomLeftLinks);
		//create the bottomLeftVideoButton
		var bottomLeftVideoButton = JTools._createDOMElement('div','bottomLeftVideoButton',[{name:'id', value:'bottomLeftVideoButton'+num}]);
		//create teh bottomLeftPlaybutton_img
		
		var icon_url = '/cc-common/ondemand/player.html?track_id='+obj.track_id;
		var bottomLeftVideoButton_img = JTools._createDOMElement('img',false,[{name:'src',value:'/cc-common/templates/00guide/icons/grey/videocamera.gif'},{name:'id', value:'bottomLeftVideoButton_img'+num}]);
		//append the bottomLeftImage_img to the bottomLeftVideoButton
		bottomLeftVideoButton.appendChild(bottomLeftVideoButton_img);
		bottomLeftVideoButton.setStyle({cursor:'pointer'});
		Event.observe(bottomLeftVideoButton, 'click', function(){PlayerPopups.openPlayer(icon_url);});
		//append bottomMiddleVideoButton to the bottomLeftModuleContent
		bottomLeftModuleContent.appendChild(bottomLeftVideoButton);
		
		if(obj.download){
			var bottomLeftiTunesButton = JTools._createDOMElement('div','bottomLeftiTunesButton',[{name:'id', value:'bottomLeftiTunesButton'+num}]);
			//create teh download img
			bottomLeftiTunesButton_img = JTools._createDOMElement('img',false,[{name:'src',value:'/cc-common/templates/00guide/icons/download_ltgraybg.gif'},{name:'id', value:'bottomLeftiTunesButton_img'+num}]);
			//append the bottomLeftiTunesButton_img to the bottomLeftiTunesButton
			bottomLeftiTunesButton.appendChild(bottomLeftiTunesButton_img);
			//observe the bottomLeftiTunesButton
			Event.observe(bottomLeftiTunesButton, 'click', function(){window.open(obj.download, '_blank');});
			bottomLeftiTunesButton.setStyle({cursor:'pointer'});
			//append the bottomLeftiTunesButton to the bottomLeftModuleContent
			bottomLeftModuleContent.appendChild(bottomLeftiTunesButton);
		}else{
			var bottomLeftiTunesButton = JTools._createDOMElement('div','bottomLeftiTunesButton',[{name:'id', value:'bottomLeftiTunesButton'+num}]);
			bottomLeftModuleContent.appendChild(bottomLeftiTunesButton);
		}
		//append the bottomLeftModuleContent_top to the container
		this.container.appendChild(bottomLeftModuleContent);
	},
	build_player_left_item:function(obj, num){
		//create the module_left_content_row
		var module_left_content_row = JTools._createDOMElement('div','module_left_content_row',[{name:'id', value:this.container.id+'_module_left_content_row_'+num}]);
		
		//create the module_left_content_row_button
		var module_left_content_row_button = JTools._createDOMElement('div','module_left_content_row_button',[{name:'id', value:this.container.id+'_module_left_content_row_button_'+num}]);
		//append the module_left_content_row_button to the module_left_content_row
		module_left_content_row.appendChild(module_left_content_row_button);
		//observe the click for this button
		var main_url = '/cc-common/ondemand/player.html?track_id='+obj.track_id;
		Event.observe(module_left_content_row_button, 'click', function(){PlayerPopups.openPlayer(main_url);});
		//create the module_left_content_row_links
		var module_left_content_row_links = JTools._createDOMElement('div','module_left_content_row_links',[{name:'id', value:this.container.id+'_module_left_content_row_links_'+num}]);
		//create teh module_left_content_row_links_anchor
		var module_left_content_row_links_anchor = JTools._createDOMElement('a',false,[{name:'href', value:'javascript:window.open("'+main_url+'");'}], obj.artist_name+' - '+obj.title);
		//append the module_left_content_row_links_anchor to the module_left_content_row_links
		module_left_content_row_links.appendChild(module_left_content_row_links_anchor);
		//append the module_left_content_row_links to the module_left_content_row
		module_left_content_row.appendChild(module_left_content_row_links);
		
		//create the module_left_content_row_icons
		var module_left_content_row_icons = JTools._createDOMElement('div','module_left_content_row_icons',[{name:'id', value:this.container.id+'_module_left_content_row_icons_'+num}]);
		
		//create the module_left_content_row_icons_clear
		var module_left_content_row_icons_clear = JTools._createDOMElement('div','module_left_content_row_icons_clear',[{name:'id', value:this.container.id+'_module_left_content_row_icons_clear_'+num}]);
		
		//create the module_left_content_row_icons_clear_play_icon
		var module_left_content_row_icons_clear_play_icon = JTools._createDOMElement('div','module_left_content_row_icons_clear_play_icon',[{name:'id', value:this.container.id+'_module_left_content_row_icons_clear_play_icon'+num}]);
		
		var icon_url = '/cc-common/ondemand/player.html?track_id='+obj.track_id;
		var module_left_content_row_icons_clear_play_icon_img = JTools._createDOMElement('img',false,[{name:'src',value:'/cc-common/templates/00guide/icons/grey/videocamera.gif'},{name:'id', value:this.container.id+'_module_left_content_row_icons_clear_play_icon_img_'+num}]);
		//append the bottomLeftImage_img to the bottomLeftVideoButton
		module_left_content_row_icons_clear_play_icon.appendChild(module_left_content_row_icons_clear_play_icon_img);
		module_left_content_row_icons_clear_play_icon.setStyle({cursor:'pointer'});
		Event.observe(module_left_content_row_icons_clear_play_icon, 'click', function(){PlayerPopups.openPlayer(icon_url);});
		//append the module_left_content_row_icons_clear_play_icon to the module_left_content_row_icons_clear
		module_left_content_row_icons_clear.appendChild(module_left_content_row_icons_clear_play_icon);
		
		if(obj.download){
			var module_left_content_row_icons_clear_download_icon = JTools._createDOMElement('div','module_left_content_row_icons_clear_download_icon',[{name:'id', value:this.container.id+'module_left_content_row_icons_clear_download_icon_'+num}]);
			//create teh download img
			module_left_content_row_icons_clear_download_icon_img = JTools._createDOMElement('img',false,[{name:'src',value:'/cc-common/templates/00guide/icons/download_ltgraybg.gif'},{name:'id', value:this.container.id+'module_left_content_row_icons_clear_download_icon_img_'+num}]);
			//append the bottomLeftiTunesButton_img to the bottomLeftiTunesButton
			module_left_content_row_icons_clear_download_icon.appendChild(module_left_content_row_icons_clear_download_icon_img);
			//observe the bottomLeftiTunesButton
			Event.observe(module_left_content_row_icons_clear_download_icon, 'click', function(){window.open(obj.download, '_blank');});
			module_left_content_row_icons_clear_download_icon.setStyle({cursor:'pointer'});
			//append the bottomLeftiTunesButton to the bottomLeftModuleContent
			module_left_content_row_icons_clear.appendChild(module_left_content_row_icons_clear_download_icon);
		}else{
			var module_left_content_row_icons_clear_download_icon = JTools._createDOMElement('div','module_left_content_row_icons_clear_download_icon',[{name:'id', value:this.container.id+'module_left_content_row_icons_clear_download_icon_'+num}]);
			module_left_content_row_icons_clear.appendChild(module_left_content_row_icons_clear_download_icon);
		}
		
		
		//append the module_left_content_row_icons_clear to the module_left_content_row_icons
		module_left_content_row_icons.appendChild(module_left_content_row_icons_clear);
		
		//append the module_left_content_row_icons to the module_left_content_row
		module_left_content_row.appendChild(module_left_content_row_icons);
		
		//append the module_left_content_row to the module_left_content
		this.module_left_content.appendChild(module_left_content_row);
		
	},
	build_player_right_item:function(obj, num){
		//create the module_right_content_row
		var module_right_content_row = JTools._createDOMElement('div','module_right_content_row',[{name:'id', value:this.container.id+'_module_right_content_row_'+num}]);
		
		//create the module_right_content_row_button
		var module_right_content_row_button = JTools._createDOMElement('div','module_right_content_row_button',[{name:'id', value:this.container.id+'_module_right_content_row_button_'+num}]);
		//append the module_right_content_row_button to the module_right_content_row
		module_right_content_row.appendChild(module_right_content_row_button);
		//observe the click for this button
		var main_url = '/cc-common/ondemand/player.html?track_id='+obj.track_id;
		Event.observe(module_right_content_row_button, 'click', function(){PlayerPopups.openPlayer(main_url);});
		//create the module_right_content_row_links
		var module_right_content_row_links = JTools._createDOMElement('div','module_right_content_row_links',[{name:'id', value:this.container.id+'_module_right_content_row_links_'+num}]);
		//create teh module_right_content_row_links_anchor
		var module_right_content_row_links_anchor = JTools._createDOMElement('a',false,[{name:'href', value:'javascript:window.open("'+main_url+'");'}], obj.artist_name+' - '+obj.title);
		//append the module_right_content_row_links_anchor to the module_right_content_row_links
		module_right_content_row_links.appendChild(module_right_content_row_links_anchor);
		//append the module_right_content_row_links to the module_right_content_row
		module_right_content_row.appendChild(module_right_content_row_links);
		
		//create the module_right_content_row_icons
		var module_right_content_row_icons = JTools._createDOMElement('div','module_right_content_row_icons',[{name:'id', value:this.container.id+'_module_right_content_row_icons_'+num}]);
		
		//create the module_right_content_row_icons_clear
		var module_right_content_row_icons_clear = JTools._createDOMElement('div','module_right_content_row_icons_clear',[{name:'id', value:this.container.id+'_module_right_content_row_icons_clear_'+num}]);
		
		//create the module_right_content_row_icons_clear_play_icon
		var module_right_content_row_icons_clear_play_icon = JTools._createDOMElement('div','module_right_content_row_icons_clear_play_icon',[{name:'id', value:this.container.id+'_module_right_content_row_icons_clear_play_icon'+num}]);
		
		var icon_url = '/cc-common/ondemand/player.html?track_id='+obj.track_id;
		var module_right_content_row_icons_clear_play_icon_img = JTools._createDOMElement('img',false,[{name:'src',value:'/cc-common/templates/00guide/icons/grey/videocamera.gif'},{name:'id', value:this.container.id+'_module_right_content_row_icons_clear_play_icon_img_'+num}]);
		//append the bottomLeftImage_img to the bottomLeftVideoButton
		module_right_content_row_icons_clear_play_icon.appendChild(module_right_content_row_icons_clear_play_icon_img);
		module_right_content_row_icons_clear_play_icon.setStyle({cursor:'pointer'});
		Event.observe(module_right_content_row_icons_clear_play_icon, 'click', function(){PlayerPopups.openPlayer(icon_url);});
		//append the module_right_content_row_icons_clear_play_icon to the module_right_content_row_icons_clear
		module_right_content_row_icons_clear.appendChild(module_right_content_row_icons_clear_play_icon);
		
		if(obj.download){
			var module_right_content_row_icons_clear_download_icon = JTools._createDOMElement('div','module_right_content_row_icons_clear_download_icon',[{name:'id', value:this.container.id+'module_right_content_row_icons_clear_download_icon_'+num}]);
			//create teh download img
			module_right_content_row_icons_clear_download_icon_img = JTools._createDOMElement('img',false,[{name:'src',value:'/cc-common/templates/00guide/icons/download_ltgraybg.gif'},{name:'id', value:this.container.id+'module_right_content_row_icons_clear_download_icon_img_'+num}]);
			//append the bottomLeftiTunesButton_img to the bottomLeftiTunesButton
			module_right_content_row_icons_clear_download_icon.appendChild(module_right_content_row_icons_clear_download_icon_img);
			//observe the bottomLeftiTunesButton
			Event.observe(module_right_content_row_icons_clear_download_icon, 'click', function(){window.open(obj.download, '_blank');});
			module_right_content_row_icons_clear_download_icon.setStyle({cursor:'pointer'});
			//append the bottomLeftiTunesButton to the bottomLeftModuleContent
			module_right_content_row_icons_clear.appendChild(module_right_content_row_icons_clear_download_icon);
		}else{
			var module_right_content_row_icons_clear_download_icon = JTools._createDOMElement('div','module_right_content_row_icons_clear_download_icon',[{name:'id', value:this.container.id+'module_right_content_row_icons_clear_download_icon_'+num}]);
			module_right_content_row_icons_clear.appendChild(module_right_content_row_icons_clear_download_icon);
		}
		
		
		//append the module_right_content_row_icons_clear to the module_right_content_row_icons
		module_right_content_row_icons.appendChild(module_right_content_row_icons_clear);
		
		//append the module_right_content_row_icons to the module_right_content_row
		module_right_content_row.appendChild(module_right_content_row_icons);
		
		//append the module_right_content_row to the module_right_content
		this.module_right_content.appendChild(module_right_content_row);
		
	},
	build_left_landing_item:function(obj,num){
		var moduleContentRow = JTools._createDOMElement('div','bottomLeftModuleContent',[{name:'id', value:'module_right_content_row_'+num}]);
		var bottomLeftPlaybutton = JTools._createDOMElement('div','bottomLeftPlaybutton',[{name:'id', value:'bottomLeftPlaybutton_'+num}]);
		var bottomLeftPlaybutton_image = JTools._createDOMElement('img',false,[{name:'src', value:'images/playbuttonblack.jpg'}]);
		var main_url = '/cc-common/ondemand/player.html?track_id='+obj.track_id;
		Event.observe(bottomLeftPlaybutton, 'click', function(){PlayerPopups.openPlayer(main_url);});
		bottomLeftPlaybutton.appendChild(bottomLeftPlaybutton_image);
		moduleContentRow.appendChild(bottomLeftPlaybutton);
		var bottomLeftLinks = JTools._createDOMElement('div','bottomLeftLinks',[{name:'id', value:'bottomLeftLinks_'+num}]);
		var bottomLeftLinks_anchor = JTools._createDOMElement('a', false, [{name:'href', value:'javascript:void(PlayerPopups.openPlayer("'+main_url+'"));'}], obj.artist_name +' -  '+obj.song_title);
		bottomLeftLinks.appendChild(bottomLeftLinks_anchor);
		moduleContentRow.appendChild(bottomLeftLinks);
		var bottomLeftVideoButton = JTools._createDOMElement('div','bottomLeftVideoButton',[{name:'id', value:'bottomLeftVideoButton_'+num}]);
		var icon_url = '/cc-common/ondemand/player.html?track_id='+obj.track_id;
		var play_icon_img = JTools._createDOMElement('img',false,[{name:'src',value:'/cc-common/templates/00guide/icons/grey/videocamera.gif'},{name:'id', value:'play_icon_img_'+num}]);
		//append the bottomLeftImage_img to the bottomLeftVideoButton
		bottomLeftVideoButton.appendChild(play_icon_img);
		bottomLeftVideoButton.setStyle({cursor:'pointer'});
		Event.observe(bottomLeftVideoButton, 'click', function(){PlayerPopups.openPlayer(icon_url);});
		moduleContentRow.appendChild(bottomLeftVideoButton);
		var bottomLeftiTunesButton = JTools._createDOMElement('div','bottomLeftiTunesButton',[{name:'id', value:'bottomLeftiTunesButton_'+num}]);
		if(obj.download){
			bottomLeftiTunesButton_img = JTools._createDOMElement('img',false,[{name:'src',value:'images/download_ltgraybgblack.jpg'},{name:'id', value:'bottomLeftiTunesButton_img_'+num}]);
			//append the bottomLeftiTunesButton_img to the bottomLeftiTunesButton
			bottomLeftiTunesButton.appendChild(bottomLeftiTunesButton_img);
			//observe the bottomLeftiTunesButton
			Event.observe(bottomLeftiTunesButton, 'click', function(){window.open(obj.download, '_blank');});
			bottomLeftiTunesButton.setStyle({cursor:'pointer'});
		}
		moduleContentRow.appendChild(bottomLeftiTunesButton);
		this.container.appendChild(moduleContentRow);
	},
	build_list_item:function(obj){
		var a = JTools._createDOMElement('a', false, [{name:'href',value:'javascript:void(PlayerPopups.openPlayer("/cc-common/ondemand/player.html?track_id='+obj.track_id+'"));'}], obj.artist_name+' - '+obj.title);
		this.bottomMiddleList_p.appendChild(a);
		var br =JTools._createDOMElement('br', false, []);
		this.bottomMiddleList_p.appendChild(br);
	}

};
