function play_media(div_name,media_url,w,h,capdiv,cap)
{
if(media_url.toLowerCase().match("flv")){
var x=document.getElementById(div_name).innerHTML="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width="+w+" height="+h+" id='FLVPlayer'> <param name='movie' value='FLVPlayer_Progressive.swf' /> <param name='salign' value='lt' /> <param name='quality' value='high' /> <param name='scale' value='noscale' /> <param name='FlashVars' value='&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName="+(media_url.replace(/.flv/i, ""))+"&autoPlay=true&autoRewind=false' /> <embed src='FLVPlayer_Progressive.swf' flashvars='&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName="+(media_url.replace(/.flv/i, ""))+"&autoPlay=true&autoRewind=false' quality='high' scale='noscale' width="+w+" height="+h+" name='FLVPlayer' salign='LT' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object><div id="+capdiv+">"+cap+"</div>"}
else if(media_url.toLowerCase().match("mov")){
var x=document.getElementById(div_name).innerHTML="<object CLASSID='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width="+w+" height="+h+" align='middle' codebase='http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0'> <param name='src' value="+media_url+"><param name='autoplay' value='true'><param name='controller' value='true'><param name='bgcolor' value='BLACK'> <embed src="+media_url+" width="+w+" height="+h+" align='middle' type='video/quicktime' autoplay='true' controller='true' bgcolor='BLACK' pluginspage='http://www.apple.com/quicktime/download/'></embed></object><div id="+capdiv+">"+cap+"</div>"}
else if(media_url.toLowerCase().match("wmv")){
var x=document.getElementById(div_name).innerHTML="<object CLASSID='CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95' width="+w+" height="+h+" align='middle' type='application/x-oleobject' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112'> <param name='src' value="+media_url+"><param name='autoplay' value='true'><param name='controller' value='true'><param name='bgcolor' value='BLACK'> <embed src="+media_url+" width="+w+" height="+h+" align='middle' type='application/x-mplayer2' autoplay='true' controller='true' bgcolor='BLACK' pluginspage='http://www.microsoft.com/mediaplayer/'></embed></object><div id="+capdiv+">"+cap+"</div>"}
else if(media_url.toLowerCase().match("mp3")){
var x=document.getElementById(div_name).innerHTML="<embed src="+media_url+" width="+w+" height="+h+" align='middle' type='audio/mpeg' autoplay='true' controller='true' bgcolor='BLACK' pluginspage='http://www.apple.com/quicktime/download/' pluginurl='http://www.apple.com/quicktime/download/'><div id="+capdiv+">"+cap+"</div>"}
else if(media_url.toLowerCase().match("jpg")){
var x=document.getElementById(div_name).innerHTML="<img src="+media_url+"/><div id="+capdiv+">"+cap+"</div>"}
else {
var x=document.getElementById(div_name).innerHTML="<embed src="+media_url+" width="+w+" height="+h+" align='middle' autoplay='true' controller='true'><div id="+capdiv+">"+cap+"</div>"}
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}
function getSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
var a = new getObj('main');
a.style.height = myHeight-50+'px';
var b = new getObj('inscroll');
if(location.search.match("showfull")){
b.style.height = myHeight-454+'px'; }
else{ b.style.height = myHeight-94+'px'; }
var c = new getObj('right');
c.style.height = myHeight-50+'px';
var d = new getObj('left');
d.style.height = myHeight-50+'px';
}
function ShowOrHide(d1, d2) {
	  if (d1 != '') DoDiv(d1);
	  if (d2 != '') DoDiv(d2);
	}
function DoDiv(id) {
	  var item = null;
	  if (document.getElementById) {
		item = document.getElementById(id);
	  } else if (document.all){
		item = document.all[id];
	  } else if (document.layers){
		item = document.layers[id];
	  }
	  if (!item) {
	  }
	  else if (item.style) {
		if (item.style.display == "none"){ item.style.display = ""; }
		else {item.style.display = "none"; }
	  }else{ item.visibility = "show"; }
 	}
function blurOnFocus(){var as=document.getElementsByTagName('a');for(var i=0;i<as.length;i++){as[i].onfocus=function(){this.blur();};}}
window.onload=setTimeout('blurOnFocus()',350);