<script language="JavaScript" type="text/javascript"> if('%field5%'!=''&&'%field5%'!='-'){ var ss2009='%field5%'; ss2009=ss2009.replace(/(https?)(:\/\/www\.youtube\.com\/)\S+(\?v|&v)=(\S+)/ig,'https$2embed/$4').replace(/(https?)(:\/\/youtu\.be\/)(\S+)/ig,'https://www.youtube.com/embed/$3').replace(/^\s+|\s+$/gm,''); if(ss2009.indexOf('https://www.youtube.com/embed/')==0) document.write('<iframe width="560" height="315" src="'+ss2009+'" frameborder="0" allowfullscreen></iframe>'); else document.write('<a href="'+ss2009+'" target="_blank">'+ss2009+'</a>'); } </script>
<script language="JavaScript" type="text/javascript"> if('%field5%'!=''&&'%field5%'!='-'){ ss2009='%field5%'; var ss2009=ss2009.replace("watch?v=", "v/"); ss400='src="'+ss2009+'&hl=ru&fs=1"'; document.write('<embed '+ss400+' type=application/x-shockwave-flash allowscriptaccess=always allowfullscreen=true width=320 height=265></embed>')} </script>
t=text.split('[video]'); if(t[1]) {t2=t[1].split('[/video]'); if(t2[0]) { var ss2009=t2[0].replace("watch?v=", "v/");ss400='src="'+ss2009+'&hl=ru&fs=1"';video.innerHTML='<embed '+ss400+' type=application/x-shockwave-flash allowscriptaccess=always allowfullscreen=true width=260 height=210></embed>';text=text.replace('[video]'+t2[0]+'[/video]','Видеоролик загружен') } else {video.innerHTML='';text=text.replace('[video][/video]','Конец просмотра');}}
while(text.search(/\[video\](.*?)\[\/video\]/g)>=0){t=text.split('[video]'); if(t[1]) {t2=t[1].split('[/video]');video_c++; if(t2[0]&&video_max>=video_c) { var ss2009=t2[0].replace("watch?v=", "v/");ss400='src="'+ss2009+'&hl=ru&fs=1"';text=text.replace('[video]'+t2[0]+'[/video]','<embed '+ss400+' type=application/x-shockwave-flash allowscriptaccess=always allowfullscreen=true width=300 height=250></embed>') } else {text=text.replace('[video]'+t2[0]+'[/video]','');}}};
etags[i]=new Array(/\[video\]https?:\/\/www.youtube.com\/watch\?v=([^&]*?)(&[^#&]*)?(#t=(.*?))?\[\/video\]/g,'<iframe width="600" height="310" src="//www.youtube.com/embed/$1?rel=0&start=$4;theme=light" frameborder="0" allowfullscreen></iframe>');i++;