/*

embed.js
made by Imppossible Object (io) for AnimeTV

*/

function _gel(a){return document.getElementById?document.getElementById(a):null}

function doEmbed(id, w, h, s, c)
{
    var e=_gel(id);

    if (w == null) {w=680;}
    if (h == null) {h=510;}
    if (s == null) {return 0;}
    if (c == null) {c="01";}

    if (e)
    {
        e.innerHTML='<embed src="http://animetv.impossibleobject.net/FlowPlayerDark.swf"'
	+' allowfullscreen="true" allowscriptaccess="always" quality="high" bgcolor="#ffffff"'
	+' type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"'
	+' flashvars="config={&quot;autoPlay&quot;:false,'
	+'&quot;useNativeFullScreen&quot;:true,'
	+'&quot;videoFile&quot;:&quot;http://animetv.impossibleobject.net/video/'+s+'/'+s+'_'+c+'.mp4&quot;,'
	+'&quot;splashImageFile&quot;:&quot;http://animetv.impossibleobject.net/imagenes/'+s+'/'+s+'_'+c+'_previa.jpg&quot;,'
	+'&quot;useSmoothing&quot;:true,'
	+'&quot;embedCode&quot;:&quot;http://animetv.impossibleobject.net/&quot;,'
	+'&quot;controlBarGloss&quot;:&quot;none&quot;,'
	+'&quot;autoBuffering&quot;:false,'
	+'&quot;controlsOverVideo&quot;:&quot;ease&quot;'
	+'}&amp;" width="'+w+'" height="'+h+'">';

	e.innerHTML+="<div style=\"color:#777;\">animetv.impossibleobject.net</div>"
    }
}

