/*window_resize - begin*/
var d = document;
var winIE = (navigator.userAgent.indexOf("Opera")==-1 && (d.getElementById &&  d.documentElement.behaviorUrns))  ? true : false;

function bodySize(){
	if(winIE && d.documentElement.clientWidth) {
		sObj = d.getElementsByTagName("body")[0].style;
		sObj.width = (d.documentElement.clientWidth<1000) ? "1000px" : "100%";
	}
}

function init(){
	if(winIE) { bodySize(); }
}
 
onload = init;

if(winIE) { onresize = bodySize; }
/*window_resize - end*/

/*flash - begin*/
function insertFlash(width,height,path,bgcolor,align,id) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+width+'" height="'+height+'" id="'+id+'" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+path+'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="bgcolor" value="'+bgcolor+'" />');
	document.write('<embed src="'+path+'" quality="high" wmode="transparent" bgcolor="'+bgcolor+'" width="'+width+'" height="'+height+'" name="'+id+'" align="middle" menu="false" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function online_orig ( adres,foto_tekst,sirina_okna,vysota_okna,foto_width,foto_height,poz_sleva,poz_sverhu )  
{
  myWin= open("", "displayWindow", "width="+sirina_okna+",height="+vysota_okna+",status=no,toolbar=no,menubar=no,resizable=no,left="+poz_sleva+",top="+poz_sverhu+"");
  myWin.document.open();  
  myWin.document.write("<html><head><title>Online</title><META HTTP-EQUIV='Content-Type' CONTENT='text/html; CHARSET=Windows-1251'>");
  myWin.document.write('<link href="http:\/\/www.predanie.ru\/small-osipov.css\" type=\"text\/css\" rel=\"stylesheet\">');
  myWin.document.write("</head><body bgcolor=white topmargin=0 leftmargin=0>");
  myWin.document.write("<center><br>");
  myWin.document.write("<font style=''></font>");  
  
  myWin.document.write("<embed src=http:\/\/www.predanie.ru\/flvplayer.swf width=320 height=260 autostart=true allowfullscreen=true allowscriptaccess=always flashvars=&file="+foto_tekst+" /><br />");
  
myWin.document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
		myWin.document.write("<tr><td colspan=2><img src=\"/img/sp1.gif\" width=\"1\" height=\"2\" border=\"0\"></td></tr>");
		myWin.document.write("<tr valign=middle>");

		myWin.document.write("<td class=\"to\" style=\"color: #000000;\" nowrap>Код ролика:&nbsp;</td>");
		myWin.document.write("<td><INPUT class=\"form_login\" style=\"width: 120px;\" tabindex=\"2\" type=\"text\" id=\"pcode\" name=\"\" value=\'<object width=&quot;425&quot; height=&quot;355&quot;><param name=&quot;movie&quot; value=&quot;http://www.predanie.ru/flvplayer.swf?file="+foto_tekst+"&quot;></param><param name=&quot;wmode&quot; value=&quot;transparent&quot;></param><embed src=&quot;http://www.predanie.ru/flvplayer.swf?file="+foto_tekst+"&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;355&quot;></embed></object><br /><a href=&quot;http://www.aosipov.ru&quot;>www.aosipov.ru</a>\' OnClick=\"selectText(this);b1=true;\"></td>");
		myWin.document.write("</tr>");
		myWin.document.write("<tr><td colspan=2><img src=\"/img/sp1.gif\" width=\"1\" height=\"2\" border=\"0\"></td></tr>");
		myWin.document.write("<tr valign=middle>");
		myWin.document.write("<td class=\"to\" style=\"color: #000000;\" nowrap>Код для ЖЖ:&nbsp;</td>");
		myWin.document.write("<td><INPUT class=\"form_login\" style=\"width: 120px;\" tabindex=\"2\" type=\"text\" id=\"code\" name=\"\" value=\'<lj-embed><object width=&quot;425&quot; height=&quot;355&quot;><param name=&quot;movie&quot; value=&quot;http://www.predanie.ru/flvplayer.swf?file="+foto_tekst+"&quot;></param><param name=&quot;wmode&quot; value=&quot;transparent&quot;></param><embed src=&quot;http://www.predanie.ru/flvplayer.swf?file="+foto_tekst+"&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;355&quot;></embed></object></lj-embed><br /><a href=&quot;http://www.aosipov.ru&quot;>www.aosipov.ru</a>\' OnClick=\"selectText(this);b1=true;\"></td>");
		myWin.document.write("</tr>");
		myWin.document.write("<tr><td colspan=2><img src=\"/img/sp1.gif\" width=\"1\" height=\"2\" border=\"0\"></td></tr>");
		myWin.document.write("<tr valign=middle>");
		myWin.document.write("<td class=\"to\" style=\"color: #000000;\" nowrap>Код для LiveInternet:&nbsp;</td>");
		myWin.document.write("<td><INPUT class=\"form_login\" style=\"width: 120px;\" tabindex=\"2\" type=\"text\" id=\"licode\" name=\"\" value=\'[flash=425,355,http://www.predanie.ru/flvplayer.swf?file="+foto_tekst+"]<br /><a href=http://www.aosipov.ru&quot;>www.aosipov.ru</a>' OnClick=\"selectText(this);b1=true;\"></td>");
		myWin.document.write("</tr>");
myWin.document.write("</table>");
  
  myWin.document.write("<br><a target=\"_blank\" href=\"http:\/\/www.predanie.ru\/\"> <img border=\"0\" alt=\"Православный портал Предание\" title=\"Православный портал Предание\" src=\"http:\/\/www.predanie.ru\/images\/knopka2.gif\" width=\"88\" height=\"31\"></a><a target=\"_blank\" href=\"http:\/\/media.tv-soyuz.ru\/\"><img border=\"0\" alt=\"Православный телеканал «Союз»\" title=\"Православный телеканал «Союз»\" src=\"http:\/\/tv-soyuz.ru\/img\/88_31_tv-soyuz.gif\" width=\"88\" height=\"31\"></a>");
    
  myWin.document.write("</center>");    
  myWin.document.write("<br></center>");
  myWin.document.write("</body></html>");  
  myWin.document.close();
}

function online ( adres,foto_tekst,sirina_okna,vysota_okna,foto_width,foto_height,poz_sleva,poz_sverhu)  
{
  var foto_width=512;
  var foto_height=384;
  
  if(d.documentElement.clientWidth>1100)
  {
  foto_width=580;
  foto_height=432;
  }

  var vysota_okna=foto_height+75;
  var sirina_okna=foto_width+20;
  var comment="";
  
  var swf="http://aosipov.ru/uppod/uppod.swf";
  var st_main="http://aosipov.ru/uppod/video_ao_main.txt";
  var st_embed="http://aosipov.ru/uppod/video_ao_embed.txt";
// comment='Святи';
  
  myWin= open("", "displayWindow", "width="+sirina_okna+",height="+vysota_okna+",status=no,toolbar=no,menubar=no,resizable=yes");
  myWin.document.open();  
  myWin.document.write("<html><head><title>Online</title><META HTTP-EQUIV='Content-Type' CONTENT='text/html; CHARSET=Windows-1251'>");
  myWin.document.write('<link href="http:\/\/www.predanie.ru\/small-osipov.css\" type=\"text\/css\" rel=\"stylesheet\">');
  myWin.document.write("</head><body bgcolor=white topmargin=0 leftmargin=0>");
  myWin.document.write("<center>");
  myWin.document.write("<font style='font-size: 5px' ><br></font>");  
  
//  myWin.document.write('<table border=0 cellspacing=0  cellpadding=0><tr><td align=center><object type="application/x-shockwave-flash" height="'+foto_height+'" width="'+foto_width+'" > <param name="movie" value="'+swf+'" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name=FlashVars value="st='+st_main+'&uppod=video&file='+foto_tekst+'" /><param name="bgcolor" value="#FFFFFF" /><embed src="'+swf+'"  allowFullScreen="true" type="application/x-shockwave-flash" flashvars="st='+st_main+'&uppod=video&file='+foto_tekst+'" height="'+foto_height+'" width="'+foto_width+'" /></embed></object></td></tr><table>');
  myWin.document.write('<table border=0 cellspacing=0  cellpadding=0><tr><td align=center><object type="application/x-shockwave-flash" data="'+swf+'" height="'+foto_height+'" width="'+foto_width+'" > <param name="movie" value="'+swf+'" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name=FlashVars value="st='+st_main+'&uppod=video&file='+foto_tekst+'" /><param name="bgcolor" value="#FFFFFF" /></object></td></tr><table>');

  
myWin.document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
		myWin.document.write("<tr><td colspan=2><img src=\"/img/sp1.gif\" width=\"1\" height=\"4\" border=\"0\"><br></td></tr>");
		myWin.document.write("<tr valign=middle>");
		myWin.document.write("<td class=\"to\" style=\"color: #000000;\" nowrap>Код для блога:&nbsp;</td>");
		myWin.document.write("<td><INPUT  style=\"font-size: 9px; width:120px\" readonly=\"readonly\"  type=\"text\" id=\"code\" name=\"\" value=\'<object type=&quot;application/x-shockwave-flash&quot; data=&quot;"+swf+"&quot;   height=&quot;384&quot; width=&quot;512&quot; > <param name=&quot;movie&quot; value=&quot;"+swf+"&quot; /><param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /><param name=&quot;allowScriptAccess&quot; value=&quot;always&quot; /><param name=FlashVars value=&quot;st="+st_embed+"&uppod=video&comment="+comment+"&file="+foto_tekst+"&quot; /><param name=&quot;bgcolor&quot; value=&quot;#FFFFFF&quot; /></object>\' OnClick=\"this.select();\"></td>");
		myWin.document.write("</tr>");
		myWin.document.write("<tr><td colspan=2 align=center><img src=\"/img/sp1.gif\" width=\"1\" height=\"10\" border=\"0\"></td></tr>")
//myWin.document.write("</table>");
  
myWin.document.write("<tr><td colspan=2 align=center><a target=\"_blank\" href=\"http:\/\/www.predanie.ru\/\"> <img border=\"0\" alt=\"Православный портал Предание\" title=\"Православный портал Предание\" src=\"http:\/\/www.predanie.ru\/images\/knopka2.gif\" width=\"88\" height=\"31\"></a><a target=\"_blank\" href=\"http:\/\/tv-soyuz.ru\/\"><img border=\"0\" alt=\"Православный телеканал «Союз»\" title=\"Православный телеканал «Союз»\" src=\"http:\/\/tv-soyuz.ru\/img\/88_31_tv-soyuz.gif\" width=\"88\" height=\"31\"></a></td></tr");

myWin.document.write("</table>");
    
  myWin.document.write("</center>");    
//  myWin.document.write("<br></center>");
  myWin.document.write("</body></html>");  
  myWin.document.close();
 
}

/*flash - end*/


