Index: podpress.css
===================================================================
--- podpress.css	(Revision 195094)
+++ podpress.css	(Arbeitskopie)
@@ -79,6 +79,10 @@
 	clear:left;
 }
 
+.podPress_videoplayer_wrapper:hover {
+	cursor:pointer;
+}
+
 /* Navi
 ************************************************/
 
Index: podpress.js
===================================================================
--- podpress.js	(Revision 195094)
+++ podpress.js	(Arbeitskopie)
@@ -33,19 +33,48 @@
 		refPlayerDiv.innerHTML = podPressGenerateVideoPreview (strPlayerDiv, strMediaFile, numWidth, numHeight, strPreviewImg);
 	}
 
+	function podPressGenerateM4APreview(strPlayerDiv, strMediaFile, numWidth, numHeight, bPreviewOnly) {
+		if (typeof numWidth == 'undefined') { numWidth = 320; }
+		if (typeof numHeight == 'undefined') { numHeight = 25; } // height of the browser plugin (height of the real player bar)
+		var numHeight_middle = 3; // height of the middle row of the player preview
+		if (typeof bPreviewOnly == 'undefined') { bPreviewOnly = false; }
+
+		if(!bPreviewOnly) {
+			var strOnclick= ' onclick="javascript:podPressShowHidePlayer('+strPlayerDiv+', \''+strMediaFile+'\', '+numWidth+', '+numHeight+', \'force\'); return false;"';
+		} else {
+			var strOnclick= ''; // for a preview of this preview player at the player settings page on the admin pages (for the future)
+		}			
+
+		var strResult = '';
+		strResult += '<div class="podPress_videoplayer_wrapper" style="width: '+(numWidth+14)+'px; padding:0px; margin:0px; display:block; background-color:#ff0000;"'+strOnclick+'>';
+		strResult += '	<div class="podPress_videoplayer_toprow" style="width:100%; padding:0px; margin:0px;">';
+		strResult += '		<img src="'+podPressBackendURL+'images/vpreview_top_left.png" style="width:7px; height:27px; float:left; padding:0px; margin:0px;" alt="."/>';
+		strResult += '		<span style="height:27px; border:0px; display:block; float:left; padding:0px; margin:0px; width: '+numWidth+'px; text-align:center; background:url(\''+podPressBackendURL+'images/vpreview_top_background.png\'); background-repeat: repeat-x;"><img src="'+podPressBackendURL+'images/vpreview_top_middle.png" style="width:119px; height:27px padding:0px; margin:0px; border:0px;" alt="." /></span>';
+		strResult += '		<img src="'+podPressBackendURL+'images/vpreview_top_right.png" style="width:7px; height:27px; float:left; padding:0px; margin:0px;" alt="." />';
+		strResult += '	</div>';
+	
+		strResult += '	<div class="podPress_videoplayer_middlerow" style="width:100%; padding:0px; margin:0px;">';
+		strResult += '		<span style="width:7px; height:'+numHeight_middle+'px; padding:0px; margin:0px; display:block; float:left; background:url(\''+podPressBackendURL+'images/vpreview_left_background.png\'); background-repeat:repeat-y;"></span>';
+		strResult += '		<span style="width:'+numWidth+'px; height:'+numHeight_middle+'px; padding:0px; margin:0px; border:0px; float:left; background-color:rgb(225,225,225); display:block;" id="podPress_previewImageIMG_'+strPlayerDiv+'"'+strOnclick+'></span>';
+		strResult += '		<span style="width:7px; height:'+numHeight_middle+'px; padding:0px; margin:0px; display:block; float:left; background:url(\''+podPressBackendURL+'images/vpreview_right_background.png\'); background-repeat:repeat-y;"></span>';
+		strResult += '	</div>';
+		
+		strResult += '	<div class="podPress_videoplayer_bottomrow" style="width:100%; padding:0px; margin:0px;">';
+		strResult += '		<img src="'+podPressBackendURL+'images/vpreview_bottom_left.png" style="width:7px; height:23px; float:left; padding:0px; margin:0px;" alt="." />';
+		strResult += '		<span style="display:block; float:left; padding:0px; margin:0px; text-align: left; background:url(\''+podPressBackendURL+'images/vpreview_bottom_background.png\'); background-repeat: repeat-x;"><img src="'+podPressBackendURL+'images/vpreview_bottom_middle_left.png" style="width:56px; height:23px" alt="." /></span>';
+		strResult += '		<span style="height:23px; display:block; float:left; padding:0px; margin:0px; width:'+String(Math.abs(numWidth-112))+'px; background:url(\''+podPressBackendURL+'images/vpreview_bottom_background.png\'); background-repeat: repeat-x;"></span>';
+		strResult += '		<span style="display:block; float:left; padding:0px; margin:0px; text-align:right; background:url(\''+podPressBackendURL+'images/vpreview_bottom_background.png\'); background-repeat: repeat-x;"><img src="'+podPressBackendURL+'images/vpreview_bottom_middle_right.png" style="width:56px; height:23px" alt="." /></span>';
+		strResult += '		<img src="'+podPressBackendURL+'images/vpreview_bottom_right.png" style="width:7px; height:23px; float:left; padding:0px; margin:0px;" alt="." />';
+		strResult += '	</div>';
+		strResult += '</div>';
+		return String(strResult);
+	}
+	
 	function podPressGenerateVideoPreview (strPlayerDiv, strMediaFile, numWidth, numHeight, strPreviewImg, bPreviewOnly, forEditor) {
-		if (typeof numWidth == 'undefined') {
-			numWidth = 320;
-		}
-		if (typeof numHeight == 'undefined') {
-			numHeight = 240;
-		}
-		if (typeof strPreviewImg == 'undefined') {
-			strPreviewImg = podPressDefaultPreviewImage;
-		}
-		if (typeof bPreviewOnly == 'undefined') {
-			bPreviewOnly = false;
-		}
+		if (typeof numWidth == 'undefined') { numWidth = 320; }
+		if (typeof numHeight == 'undefined') { numHeight = 240; }
+		if (typeof strPreviewImg == 'undefined') { strPreviewImg = podPressDefaultPreviewImage; }
+		if (typeof bPreviewOnly == 'undefined') { bPreviewOnly = false; }
 
 		if(numHeight < 80) {
 			strPreviewImg = podPressBackendURL+'images/vpreview_center_text.png';
@@ -67,7 +96,7 @@
 			strResult += '		<img src="'+podPressBackendURL+'images/vpreview_top_right.png" style="width:7px; height:27px; float:left; padding:0px; margin:0px;" alt="." />';
 			strResult += '	</div>';
 			
-			strResult += '	<div class="podPress_videoplayer_middlerow" style="width:100%; padding:0px; margin:0px; background-color:#ffff00;">';
+			strResult += '	<div class="podPress_videoplayer_middlerow" style="width:100%; padding:0px; margin:0px;">';
 			strResult += '		<span style="width:7px; height:'+numHeight+'px; padding:0px; margin:0px; display:block; float:left; background:url(\''+podPressBackendURL+'images/vpreview_left_background.png\'); background-repeat:repeat-y;"></span>';
 			strResult += '		<img class="#podPress_previewImage" src="'+strPreviewImg+'" style="width:'+numWidth+'px; height:'+numHeight+'px; padding:0px; margin:0px; border:0px; float:left;" alt="previewImg"  id="podPress_previewImageIMG_'+strPlayerDiv+'"';
 			if(!bPreviewOnly) {
@@ -77,7 +106,7 @@
 			strResult += '		<span style="width:7px; height:'+numHeight+'px; padding:0px; margin:0px; display:block; float:left; background:url(\''+podPressBackendURL+'images/vpreview_right_background.png\'); background-repeat:repeat-y;"></span>';
 			strResult += '	</div>';
 			
-			strResult += '	<div class="podPress_videoplayer_bottomrow" style="width:100%; padding:0px; margin:0px; background-color:#ff00ff;">';
+			strResult += '	<div class="podPress_videoplayer_bottomrow" style="width:100%; padding:0px; margin:0px;">';
 			strResult += '		<img src="'+podPressBackendURL+'images/vpreview_bottom_left.png" style="width:7px; height:23px; float:left; padding:0px; margin:0px;" alt="." />';
 			strResult += '		<span style="display:block; float:left; padding:0px; margin:0px; text-align: left; background:url(\''+podPressBackendURL+'images/vpreview_bottom_background.png\'); background-repeat: repeat-x;"><img src="'+podPressBackendURL+'images/vpreview_bottom_middle_left.png" style="width:56px; height:23px" alt="." /></span>';
 			strResult += '		<span style="height:23px; display:block; float:left; padding:0px; margin:0px; width:'+String(Math.abs(numWidth-112))+'px; background:url(\''+podPressBackendURL+'images/vpreview_bottom_background.png\'); background-repeat: repeat-x;"></span>';
@@ -143,13 +172,19 @@
 			var strExt = '';
 		}
 		strExt = strExt.toLowerCase();
-
-		if(strExt != 'mp3' && strExt != 'flv' && strExt != 'yyoutube' && strAutoStart == 'false') {
+		
+		if(strExt != 'mp3' && strExt != 'flv' && strExt != 'youtube' && strAutoStart == 'false') {
 			if(strExt == 'youtube') {
 				strMediaFile = strMediaFile+'.youtube';
 			}
-			return podPressGenerateVideoPreview (strPlayerDiv, strMediaFile, numWidth, numHeight, strPreviewImg);
+			if (strExt == 'm4a') {
+				return podPressGenerateM4APreview(strPlayerDiv, strMediaFile, numWidth, 25);
+			} else {
+				return podPressGenerateVideoPreview(strPlayerDiv, strMediaFile, numWidth, numHeight, strPreviewImg);
+			}
 		}
+		
+		var strResult = '';
 		switch (strExt) {
 			case 'm4v':
 			case 'm4a':

