/*
+----------------------------------------------------------------+
|	WordPress Plugin: Shout Stream            								     |
|	http://deuced.net/shout-stream/        						             |
|	File Information:																	             |
|	- Shout Stream Javascript  POPUP window										     |
|	- wp-content/plugins/shout-stream/ss_popup.js                  |
+----------------------------------------------------------------+
*/
function ss_popup(divname,winName,features,curvalue) 
{ 
  w=window.open('',winName,features);
	w.document.write('<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Popup</TITLE></HEAD>');
	w.document.write('<BODY bgcolor="#000000" text="#ffffff" TOPMARGIN="0" link="#ced8ef" vlink="#ced8ef" alink="#ced8ef">');
  var stream_array = new Array();
  stream_array = curvalue.split(' ')
  var ss_popupip = stream_array[1]
  var ss_popupport = stream_array[2]
  var ss_popupheight = stream_array[3] 
  var ss_popupwidth = stream_array[4]
  w.document.write('<table style="border: 0px solid #CC0000; background-color: transparent; width: ' + ss_popupwidth + 'px; height: ' + ss_popupheight + 'px; border-collapse: collapse; padding: 4px; border-spacing: 0px;">');
  w.document.write('<tr><td align="center"><font face="verdana" size="0"><b>Shout Stream WP Plugin</b></font></td></tr>');
  w.document.write('<tr><td align="center">');  
 	w.document.write('<object id="MediaPlayer" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." width="' + ss_popupwidth + '" height="' + ss_popupheight + '" type="application/x-oleobject">');
	w.document.write('<param ref value="http://' + ss_popupip + ':' + ss_popupport + '/" name="FileName" valuetype="ref" />');
	w.document.write('<param value="1" name="AudioStream" />');
	w.document.write('<param value="0" name="AutoSize" />');
	w.document.write('<param value="0" name="AutoStart" />');
	w.document.write('<param value="0" name="AnimationAtStart" />');
	w.document.write('<param value="-1" name="AllowScan" />');
	w.document.write('<param value="-1" name="AllowChangeDisplaySize" />');
	w.document.write('<param value="0" name="AutoRewind"/>');
	w.document.write('<param value="0" name="Balance" />');
	w.document.write('<param value name="BaseURL" />');
	w.document.write('<param value="5" name="BufferingTime" />');
	w.document.write('<param value name="CaptioningID" />');
	w.document.write('<param value="-1" name="ClickToPlay" />');
	w.document.write('<param value="0" name="CursorType" />');
	w.document.write('<param value="-1" name="CurrentPosition" />');
	w.document.write('<param value="0" name="CurrentMarker" />');
	w.document.write('<param value name="DefaultFrame" />');
	w.document.write('<param value="0" name="DisplayBackColor" />');
	w.document.write('<param value="16777215" name="DisplayForeColor" />');
	w.document.write('<param value="1" name="DisplayMode" />');
	w.document.write('<param value="1" name="DisplaySize" />');
	w.document.write('<param value="-1" name="Enabled" />');
	w.document.write('<param value="-1" name="EnableContextMenu" />');
	w.document.write('<param value="-1" name="EnablePositionControls" />');
	w.document.write('<param value="-1" name="EnableFullScreenControls" />');
	w.document.write('<param value="-1" name="EnableTracker" />');
	w.document.write('<param value="-1" name="InvokeURLs" />');
	w.document.write('<param value="-1" name="Language" />');
	w.document.write('<param value="0" name="Mute" />');
	w.document.write('<param value="0" name="PlayCount" />');
	w.document.write('<param value="0" name="PreviewMode" />');
	w.document.write('<param value="1" name="Rate" />');
	w.document.write('<param value name="SAMILang" />');
	w.document.write('<param value name="SAMIStyle" />');
	w.document.write('<param value name="SAMIFileName" />');
	w.document.write('<param value="-1" name="SelectionStart" />');
	w.document.write('<param value="-1" name="SelectionEnd" />');
	w.document.write('<param value="-1" name="SendOpenStateChangeEvents" />');
	w.document.write('<param value="-1" name="SendWarningEvents" />');
	w.document.write('<param value="-1" name="SendErrorEvents" />');
	w.document.write('<param value="0" name="SendKeyboardEvents" />');
	w.document.write('<param value="0" name="SendMouseClickEvents" />');
	w.document.write('<param value="0" name="SendMouseMoveEvents" />');
	w.document.write('<param value="-1" name="SendPlayStateChangeEvents" />');
	w.document.write('<param value="0" name="ShowCaptioning" />');
	w.document.write('<param value="-1" name="ShowControls" />');
	w.document.write('<param value="-1" name="ShowAudioControls" />');
	w.document.write('<param value="0" name="ShowDisplay" />');
	w.document.write('<param value="0" name="ShowGotoBar" />');
	w.document.write('<param value="0" name="ShowPositionControls" />');
	w.document.write('<param value="-1" name="ShowStatusBar" />');
	w.document.write('<param value="-1" name="ShowTracker" />');
	w.document.write('<param value="0" name="TransparentAtStart" />');
	w.document.write('<param value="0" name="VideoBorderWidth" />');
	w.document.write('<param value="616614" name="VideoBorderColor" />');
	w.document.write('<param value="-1" name="VideoBorder3D" />');
	w.document.write('<param value="-1" name="Volume" />');
	w.document.write('<param value="-1" name="WindowlessVideo" />');
	w.document.write('<embed src="http://' + ss_popupip + ':' + ss_popupport + '/" pluginspage="http://port25.technet.com/pages/windows-media-player-firefox-plugin-download.aspx" showstatusbar="1" name="MediaPlayer" autostart="0" volume="100" type="application/x-ms-wmp" height="' + ss_popupheight + '" width="' + ss_popupwidth + '">');
	w.document.write('</embed>');
	w.document.write('</object>');	
  w.document.write('</td></tr>');  
  w.document.write('<tr><td align="center"><a href="javascript:self.close()"><font face="verdana" size="0"><b>Close Media Player POPUP</b></font></a></td></tr>');
  w.document.write('</table>');    
	w.document.write('</BODY></HTML>');
  w.document.close();  
}