//==========================================================================================================================================
// TTV.js © 1999-2009 Shepperton Software - All Rights Reserved                                                                   21-Jul-2009
//------------------------------------------------------------------------------------------------------------------------------------------
// This code is the COPYRIGHT of Shepperton Software. Infringement of this copyright is illegal. Any form of re-use of this code
// for any purpose, commercial or private, is strictly forbidden without the explicit prior written permission of Shepperton Software.
//------------------------------------------------------------------------------------------------------------------------------------------

if (self.parent.frames.length != 0) self.parent.location="/";

function SSF_innerHTML(id,content) { 
  var ele=document.getElementById(id);
  if (document.all) ele.innerHTML=content; 
  else { var r=document.createRange(); 
    r.setStartBefore(ele); 
    var h=r.createContextualFragment(content); 
    while (ele.hasChildNodes()) ele.removeChild(ele.lastChild); 
    ele.appendChild(h); }
}

function SSF_FlashOK() {
	var c='', d, e; try { d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); c=d.GetVariable("$version"); } catch (e) {}
  arr=navigator.plugins; for (f=0; f<arr.length; f++) { if (arr[f].description.indexOf("Shockwave Flash")>=0) c="plugged_in"; }
  return (c=='') ? false : true;
}
function SSF_flash(el,swf,w,h,flv) {
  if (SSF_FlashOK()==false) return;
  es="<embed type='application/x-shockwave-flash' width='"+w+"' height='"+h+"' "+
  "src='"+swf+"?movie="+flv+"&autoplay=true' wmode='opaque' allowFullScreen='false' />";
  SSF_innerHTML(el,es);
}

//------------------------------------------------------------------------------------------------------------------------------------------
// EoF
//==========================================================================================================================================