
var tplVideoEntry = function() {
	
    return [
	  'div', { className: 'rdc_video_obj rdcx_ui_jukebox_item url_' + this.videoHexedURL  },[
            'div', { className: 'rdc_video_object_mainbox' }, [
	            'div', { className: 'rdc_video_obj_preview rdcx_ui_jukebox_item_preview video_item_preview' }, [
				      'img', { className: 'image_border', src: 'http://d3tulsn8dn9o5l.cloudfront.net/1px_trans.gif', original: this.videoPreview, alt: this.videoTitle, width: '80px', height: '60px' }
	    		],
	            'div', { className: 'rdcx_ui_jukebox_item_title xvideo_title linked' }, [ 
    		          'a', { title: this.videoTitle }, this.videoTitle 
				],
	            'div', { className: 'rdc_video_obj_title video_title' }, [ 
    		          'span', { className: 'videoTitle'},[
    		          		 'a', { title: this.videoTitle }, this.videoTitle 
						]
    	        	 	 , 'a', { href: '/watch?v=' + this.videoCode }, [
    	        	  		'img', { src: '/_img/main/external-orange-blk.png' , style: 'padding-left: 5px'}
						]
            	],
	            'div', { className: 'rdcx_ui_jukebox_item_description foreground' }, [ 
    		          'span', {  }, this.videoDescriptionHead
					  		, 'span', { className: 'rdcx_hide' }, this.videoDescriptionTail
					  		, 'span', { className: 'rdcx_more' }, ' (... more )'
					  		, 'span', { className: 'rdcx_hide rdcx_less' }, ' (... less )'
            	]
			],	  
            'div', { name: 'rdc_video_object_sidebox' }, [
	            'div', { className: 'rdc_video_obj_sender rdcx_ui_jukebox_item_addedby' }, [
    	        	  'span', { className: 'foreground2' }, 'Added by: '
					],
	            'div', { className: 'rdc_video_obj_sender rdcx_ui_jukebox_item_sender' }, [
    	        	  'a', { href: 'javascript:void(0)', className: 'name' }, this.videoAuthor
    	        	  , 'a', { href: '/user/' + this.videoAuthor }, [
    	        	  		'img', { src: 'http://d3tulsn8dn9o5l.cloudfront.net/external.png' , style: 'padding-left: 5px'}
					]
	    		],
	            'div', { className: 'rdcx_ui_jukebox_item_views foreground2' }, this.videoViews + '&nbsp;views',
	            'div', { className: 'rdcx_ui_jukebox_item_comments foreground2' }, this.videoRating + '&nbsp;rating',
			],	  
            'div', {className: 'rdc_video_object_data video_data', style: 'display:none' }, this.json
			,	  
            'div', { style: 'clear: left' }	  
	  
	  	]
	  ]
	  
	   
};


var tplVideoEntryNoLazyOrig = function() {
	
    return [
	  'div', { className: 'rdc_video_obj rdcx_ui_jukebox_item url_' + this.videoHexedURL  },[
            'div', { className: 'rdc_video_object_mainbox' }, [
	            'div', { className: 'rdc_video_obj_preview rdcx_ui_jukebox_item_preview video_item_preview' }, [
				      'img', { className: 'image_border', src: this.videoPreview, alt: this.videoTitle, width: '80px', height: '60px' }
	    		],
	            'div', { className: 'rdcx_ui_jukebox_item_title xvideo_title linked' }, [ 
    		          'a', { title: this.videoTitle }, this.videoTitle 
				],
	            'div', { className: 'rdc_video_obj_title video_title' }, [ 
    		          'span', { className: 'videoTitle'},[
    		          		 'a', { title: this.videoTitle }, this.videoTitle 
						]
    	        	 	 , 'a', { href: '/watch?v=' + this.videoCode }, [
    	        	  		'img', { src: '/_img/main/external-orange-blk.png' , style: 'padding-left: 5px'}
						]
            	],
	            'div', { className: 'rdcx_ui_jukebox_item_description foreground' }, [ 
    		          'span', {  }, this.videoDescriptionHead
					  		, 'span', { className: 'rdcx_hide' }, this.videoDescriptionTail
					  		, 'span', { className: 'rdcx_more' }, ' (... more )'
					  		, 'span', { className: 'rdcx_hide rdcx_less' }, ' (... less )'
            	]
			],	  
            'div', { name: 'rdc_video_object_sidebox' }, [
	            'div', { className: 'rdc_video_obj_sender rdcx_ui_jukebox_item_addedby' }, [
    	        	  'span', { className: 'foreground2' }, 'Added by: '
					],
	            'div', { className: 'rdc_video_obj_sender rdcx_ui_jukebox_item_sender' }, [
    	        	  'a', { href: 'javascript:void(0)', className: 'name' }, this.videoAuthor
    	        	  , 'a', { href: '/user/' + this.videoAuthor }, [
    	        	  		'img', { src: 'http://d3tulsn8dn9o5l.cloudfront.net/external.png' , style: 'padding-left: 5px'}
					]
	    		],
	            'div', { className: 'rdcx_ui_jukebox_item_views foreground2' }, this.videoViews + '&nbsp;views',
	            'div', { className: 'rdcx_ui_jukebox_item_comments foreground2' }, this.videoRating + '&nbsp;rating',
			],	  
            'div', {className: 'rdc_video_object_data video_data', style: 'display:none' }, this.json
			,	  
            'div', { style: 'clear: left' }	  
	  
	  	]
	  ]
	  
	   
};


var tplVideoEntryNoLazy = function() {
	
    return [
	  'div', { className: 'rdc_video_obj rdcx_ui_jukebox_item url_' + this.videoHexedURL  },[
            'div', { className: 'rdc_video_object_mainbox' }, [
	            'div', { className: 'rdc_video_obj_preview rdcx_ui_jukebox_item_preview video_item_preview' }, [
	    		],
	            'div', { className: 'rdcx_ui_jukebox_item_title xvideo_title linked' }, [ 
				],
	            'div', { className: 'rdc_video_obj_title video_title' }, [ 
    		          'span', { className: 'videoTitle'},[
    		          		 'a', { title: this.videoTitle, style: 'color: rgb(255, 255, 255);font-weight: bold;' }, this.artist 
						]
            	],
	            'div', { className: 'rdcx_ui_jukebox_item_description foreground' }, [ 
    		          'span', { className: 'videoTitle'},[
    		          		 'a', { title: this.videoTitle, style: 'color: rgb(255, 255, 255);font-weight: bold;' }, this.title 
						]
            	]
			],	  
            'div', { name: 'rdc_video_object_sidebox' }, [
	            'div', { className: 'rdc_video_obj_sender rdcx_ui_jukebox_item_addedby' }, [
    	        	  'span', { className: 'foreground2' }, ''
					],
	            'div', { className: 'rdc_video_obj_sender rdcx_ui_jukebox_item_sender' }, [
    	        	  'a', { href: 'javascript:void(0)', className: 'name' }, ''
	    		],
	            'div', { className: 'rdcx_ui_jukebox_item_views foreground2' }, '',
	            'div', { className: 'rdcx_ui_jukebox_item_comments foreground2' }, '',
			],	  
            'div', {className: 'rdc_video_object_data video_data', style: 'display:none' }, this.json
			,	  
            'div', { style: 'clear: left' }	  
	  
	  	]
	  ]
	  
	   
};


var tplVideoEntryNoLazyNew = function() {
	
    return [
	  'div', { className: 'rdc_video_obj rdcx_ui_jukebox_item url_' + this.videoHexedURL  },[
            'div', { className: 'rdc_video_object_mainbox' }, [
	            'div', { className: 'rdc_video_obj_preview rdcx_ui_jukebox_item_preview video_item_preview' }, 
	            'div', { className: 'rdcx_ui_jukebox_item_title xvideo_title linked' }, [ 
    		          this.artist 
				],
	            'div', { className: 'rdc_video_obj_title video_title' }, [ 
    		          'span', { className: 'videoTitle'},[
    		          		  this.artist 
						]
            	],
	            'div', { className: 'rdcx_ui_jukebox_item_description foreground' }, [ 
    		          'span', {  }, this.title
            	]
			],	  
            'div', { name: 'rdc_video_object_sidebox' }, [
	            'div', { className: 'rdc_video_obj_sender rdcx_ui_jukebox_item_addedby' },
	            'div', { className: 'rdc_video_obj_sender rdcx_ui_jukebox_item_sender' },
	            'div', { className: 'rdcx_ui_jukebox_item_views foreground2' }, 
	            'div', { className: 'rdcx_ui_jukebox_item_comments foreground2' } 
			],	  
            'div', {className: 'rdc_video_object_data video_data', style: 'display:none' }, 
            'div', { style: 'clear: left' }	  
	  
	  	]
	  ]
	  
	   
};


var tplVideoEntryNoMore = function() {
	
    return [
	  'div', { className: 'rdc_video_obj rdcx_ui_jukebox_item url_' + this.videoHexedURL  },[
            'div', { className: 'rdc_video_object_mainbox' }, [
	            'div', { className: 'rdc_video_obj_preview rdcx_ui_jukebox_item_preview video_item_preview' }, [
				      'img', { className: 'image_border', src: 'http://d3tulsn8dn9o5l.cloudfront.net/1px_trans.gif', original: this.videoPreview, alt: this.videoTitle, width: '80px', height: '60px' }
	    		],
	            'div', { className: 'rdcx_ui_jukebox_item_title xvideo_title linked' }, [ 
    		          'a', { title: this.videoTitle }, this.videoTitle 
            	],
	            'div', { className: 'rdc_video_obj_title video_title' }, [ 
    		          'span', { className: 'videoTitle'},[
    		          		 'a', { title: this.videoTitle }, this.videoTitle 
						]
    	        	 	 , 'a', { href: '/watch?v=' + this.videoCode }, [
    	        	  		'img', { src: '/_img/main/external-orange-blk.png' , style: 'padding-left: 5px'}
						]
            	],
	            'div', { className: 'rdcx_ui_jukebox_item_description foreground' }, [ 
    		          'span', {  }, this.videoDescriptionHead
            	]
			],	  
            'div', { name: 'rdc_video_object_sidebox' }, [
	            'div', { className: 'rdc_video_obj_sender rdcx_ui_jukebox_item_addedby' }, [
    	        	  'span', { className: 'foreground2' }, 'Added by: '
					],
	            'div', { className: 'rdc_video_obj_sender rdcx_ui_jukebox_item_sender' }, [
    	        	  'a', { href: 'javascript:void(0)', className: 'name' }, this.videoAuthor
    	        	  , 'a', { href: '/user/' + this.videoAuthor }, [
    	        	  		'img', { src: 'http://d3tulsn8dn9o5l.cloudfront.net/external.png' , style: 'padding-left: 5px'}
					]
	    		],
	            'div', { className: 'rdcx_ui_jukebox_item_views foreground2' }, this.videoViews + '&nbsp;views',
	            'div', { className: 'rdcx_ui_jukebox_item_comments foreground2' }, this.videoRating + '&nbsp;rating',
			],	  
            'div', {className: 'rdc_video_object_data video_data', style: 'display:none' }, this.json
			,	  
            'div', { style: 'clear: left' }	  
	  	]
	  ]
	  
	   
};



// 'span', { className: 'foreground2' }, ':', 'a', { href: 'javascript:void(0)', className: 'name' }, this.contactName, 'a', { href: '/user/' + this.contactName }, [

var tplFriendEntry = function() {
    return [
	    'div', { className: 'rdc_contact_obj rdc_ui_friend_item url_' + this.videoHexedURL }, [
	      'div', { className: 'rdc_contact_obj_sender rdcx_ui_jukebox_item_sender' }, [
                'span', { className: 'foreground2' }, ':',
                'a', { href: 'javascript:void(0)', className: 'name' }, this.contactName, 
                'a', { href: '/user/' + this.contactName }, [
                    'img', { src: 'http://d3tulsn8dn9o5l.cloudfront.net/external.png' , style: 'padding-left: 5px'}
                ]
	      ]
	    ]
    ]
	   

};


var tplNavTabs = function(){

  return [
          'div', { className: 'rdc_nav_tab rdcx_tab id_' + this.tabUploads }, [
	     'div', { className: 'rdcx_tab_content' }, 'recent videos',
             'div', { className: 'rdcx_tab_right' }
	  ],
          'div', { className: 'rdc_nav_tab rdcx_tab id_' + this.tabFavorites }, [
             'div', { className: 'rdcx_tab_content' }, 'favorites',
             'div', { className: 'rdcx_tab_right' }
          ],
          'div', { className: 'rdc_nav_tab rdcx_tab id_' + this.tabFriends }, [
             'div', { className: 'rdcx_tab_content' }, 'friends',
             'div', { className: 'rdcx_tab_right' },
          ]
   ];
	 
};


var tplNavTabRelated = function(){

  return [
          'div', { className: 'rdc_nav_tab rdcx_tab id_' + this.tabRelated }, [
	     'div', { className: 'rdcx_tab_content' }, 'related videos',
             'div', { className: 'rdcx_tab_right' }
	  ]
   ];
	 
};

var tplNavTabUploads = function(){

  return [
          'div', { className: 'rdc_nav_tab rdcx_tab id_' + this.tabUploads }, [
	     'div', { className: 'rdcx_tab_content' }, 'recent videos',
             'div', { className: 'rdcx_tab_right' }
	  ]
   ];
	 
};

var tplNavTabFavorites = function(){

  return [
          'div', { className: 'rdc_nav_tab rdcx_tab id_' + this.tabFavorites }, [
             'div', { className: 'rdcx_tab_content' }, 'favorites',
             'div', { className: 'rdcx_tab_right' }
          ]
   ];
	 
};


var tplNavTabFriends = function(){

  return [
          'div', { className: 'rdc_nav_tab rdcx_tab id_' + this.tabFriends }, [
             'div', { className: 'rdcx_tab_content' }, 'friends',
             'div', { className: 'rdcx_tab_right' },
          ]
   ];
	 
};

var tplVideoLists = function(){

  return [
          'div', { className: 'rdc_browser_page uploads_page rdcx_ui_jukebox_list_selected', id: 'list_' + this.tabUploads }, [
	     'div', { className: 'rdc_list_title rdcx_sub_box' }, '<h2>' + this.userName + '\'s Recent Videos',
             'div', { className: 'list' }
          ],
          'div', { className: 'rdc_browser_page favorites_page rdcx_ui_jukebox_list', id: 'list_' +  this.tabFavorites }, [
             'div', { className: 'rdc_list_title rdcx_sub_box' }, '<h2>' + this.userName + '\'s Favorite Videos',
             'div', { className: 'list' }
          ],
          'div', { className: 'rdc_browser_page contacts_page rdcx_ui_jukebox_list', id:  'list_' + this.tabFriends }, [
             'div', { className: 'rdc_list_title rdcx_sub_box' }, '<h2>' + this.userName + '\'s Friends',
             'div', { className: 'list' }
          ],
          'div', { className: 'rdc_browser_page contact_us rdcx_ui_jukebox_list', id:  'list_' + this.tabContactus }, [
             'div', { className: 'rdc_list_title rdcx_sub_box' }, '<h2>Contact Us' ,
             'div', { className: 'list' }
          ]
   ];
          
};


   				


var tplRdcBPHeaderRelated = function(){

  return [
	     'div', { className: 'rdc_list_title rdcx_sub_box' }, '<h2>' + 'Related Videos'
   ];
          
};


var tplRdcBPHeaderUploads = function(){

  return [
	     'div', { className: 'rdc_list_title rdcx_sub_box' }, '<h2>' + this.userName + '\'s Recent Videos'
   ];
          
};


var tplRdcBPHeaderFavorites = function(){

  return [
             'div', { className: 'rdc_list_title rdcx_sub_box' }, '<h2>' + this.userName + '\'s Favorite Videos'
   ];
          
};


var tplRdcBPHeaderContacts = function(){

  return [
             'div', { className: 'rdc_list_title rdcx_sub_box' }, '<h2>' + this.userName + '\'s Friends'
   ];
          
};


var tplRdcBPHeaderContactus = function(){

  return [
             'div', { className: 'rdc_list_title rdcx_sub_box' }, '<h2>Contact Us' 
   ];
          
};

