/*
+----------------------------------------------------------------+
|	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 Window</TITLE></HEAD>');
  var stream_array = new Array();
  stream_array = curvalue.split(' ');
  var ss_popupip = stream_array[1];
  var ss_popupport = stream_array[2];
  var ss_detect = stream_array[3];
  var ss_minicaster = stream_array[4];
  var ss_minicaster_url = stream_array[5];
	w.document.write('<BODY bgcolor="#000000" leftmargin="0" topmargin="15" link="#e8e8e8" vlink="#e8e8e8" alink="#e8e8e8">');
  w.document.write('<center><table style="border: 0px solid #CC0000; background-color: transparent; width: 200px; height: 80px; border-collapse: collapse; padding: 4px; border-spacing: 0px;">');
  w.document.write('<tr><td align="center" valign="middle" style="color: #e8e8e8; text-decoration: none; letter-spacing: 0px; font-weight: bold; font-size: 10px; font-family: verdana;">SHOUT STREAM PLUGIN</td></tr>');
if (ss_detect == 0 && ss_minicaster == '1')
{
  w.document.write('<tr><td align="center" height="80" valign="middle">');  
	w.document.write('<object id="fmp256" type="application/x-shockwave-flash" data="' + ss_minicaster_url + '" width="180" height="70">');
	w.document.write('<param name="movie" value="' + ss_minicaster_url + '" />');
	w.document.write('<param name="wmode" value="transparent" />');
	w.document.write('<param name="allowScriptAccess" value="sameDomain" />');
	w.document.write('</object>');
  w.document.write('</td></tr>');  
}
else
{
  w.document.write('<tr><td align="center">');  
 	w.document.write('<object id="MediaPlayer" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" standby="Loading Windows Media Player components..." width="200" height="80" type="application/x-oleobject">');
	w.document.write('<param ref value="http://' + ss_popupip + ':' + ss_popupport + '/" name="URL" 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="100" 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="80" width="200">');
	w.document.write('</embed>');
	w.document.write('</object>');
  w.document.write('</td></tr>');  
}
  w.document.write('<tr><td align="center" valign="middle" style="color: #e8e8e8; text-decoration: none; letter-spacing: 0px; font-weight: bold; font-size: 10px; font-family: verdana;"><a href="javascript:self.close()">CLOSE POPUP PLAYER</a></td></tr>');
  w.document.write('</table></center>');    
	w.document.write('</BODY></HTML>');
  w.document.close();  
}