 /** newsi library v1.10 */
newsi.HTML=function(){}
newsi.HTML.prototype=newsi;
newsi.HTML.prototype.showHide=function(data){
if(arguments.length==1){if(typeof data=="string")this._getStateFromElement(data);else this._showHideByEvent(data);}
else{this._showHideByCodeCall(arguments[0],arguments[1]);}
}
newsi.HTML.prototype._showHideByEvent=function(data){
var e=data[data.length-1];
var data1=[];
for(var i=0;i<(data.length-1);i++){
data1[i]=data[i];
}
this.obj=data1[0];
this.id=data1[1];
switch(data1.length){
	case 3:
	this.obj.state=data1[2];
	this._doShowHide();
	break;
	default:
	this._getStateFromElement(this.id);
	break;
	}
}
newsi.HTML.prototype._showHideByCodeCall=function(id,state){
this.obj={};
this.id=id;
this.obj.state=state;
this._doShowHide();
}
newsi.HTML.prototype._getStateFromElement=function(id){
this.obj={};
this.id=id;
if(this.dom){
	var state = document.getElementById(this.id).style.display;
	if(state=="block"||state=="")this.obj.state="hide";else this.obj.state="show";
	}
this._doShowHide();	
}
newsi.HTML.prototype._doShowHide=function(){
if(this.dom){
	if(this.obj.state=='hide'){
		document.getElementById(this.id).style.display="none";
		this.obj.state='show';
		}
		else{
		document.getElementById(this.id).style.display="block";
		this.obj.state='hide';
		}
	}
}
newsi.HTML.prototype.gebid=function(id){
return this.getElementById(id);
}
newsi.HTML.prototype.getElementById=function(id){
if(this.hasDOM()){return document.getElementById(id);}
return;
}
newsi.html=new newsi.HTML();
newsi.HTML.Flash=function(){
this.requiredVersion=6;
this.maxVersion=-1;
this.actualVersion=0; 
this.hasRightVersion=false;
this.jsVersion = 1.0;
this.path="";
this.getString="str"
this.flVersion="00008";
this.flName="dev";
this.flColor = "#FFFFFF";
this.flWidth = "629";
this.flHeight = "429";
this.flQuality = "high";
this.flScale = "noscale";
this.flSalign = "tl";
this.flGetFlashPlayerURL="http://www.adobe.com/products/flashplayer/"
}
newsi.HTML.Flash.prototype=newsi;
newsi.HTML.Flash.prototype.placeMovie=function(obj){
var arr=[
'requiredVersion',
'maxVersion',
'jsVersion',
'path',
'getString',
'flVersion',
'flName',
'flColor',
'flWidth',
'flHeight',
'flQuality',
'flScale',
'flSalign',
'flGetFlashPlayerURL'
];
if(obj){for(var i=0;i<arr.length;i++){if(obj[arr[i]]){this[arr[i]]=obj[arr[i]];}}}
this.detectSettings();
trace(this.actualVersion);
document.write(this.doPlace());
//return this.doPlace();	
}
newsi.HTML.Flash.prototype.detectSettings=function(){
// if user of api doesn't set a max version, set it to 10 as a default...
if(this.maxVersion==-1){this.maxVersion=10;}
if(this.hasActiveX()&&this.getPlatform()=="Windows"){
	var mv=this.maxVersion;
	var i=2;
	while(i<=mv){
		if(this.getversion(i)){this.actualVersion=i;}
		i++;
		}
	}
if(navigator.plugins){
	if(navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]){
		var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
		var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;
		var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));
		var i=2;
		while(i<=this.maxVersion){if(flashVersion==i){this.actualVersion=i}i++;}
		if(flashVersion>=this.maxVersion){this.actualVersion=this.maxVersion;}
		}
	}	
if(navigator.userAgent.indexOf("WebTV") != -1){this.actualVersion=3;}
if(this.actualVersion>=this.requiredVersion){this.hasRightVersion=true;}
}
newsi.HTML.Flash.prototype.doPlace=function(){
//var suffix=this.flName.substring((this.flName.length-4));
//if(suffix!=".swf"){this.flName+=".swf";}
var last=this.path.substring((this.path.length-1));
if(last!="/"&&last!=""){this.path+="/";}
this.url=this.path+""+this.flName;
if(this.hasRightVersion){return this.rightVersion();}else{return this.wrongVersion();}
}
newsi.HTML.Flash.prototype.wrongVersion=function(){
var content='<table cellspacing="0" cellpadding="0" border="0" width="352" align="center">'
		+ '<tr>'
		+ '<td>'
		+ '<table cellspacing="1" cellpadding="30" border="0" bgcolor="#cccccc" width="100%" height="33">'
		+ '<tr>'
		+ '<td bgcolor="#fafafa"><div class="font-family:Verdana;color:#666666;font-size:11px;"><span style="font-family:Verdana;color:#333333;font-size:18px;font-weight:800;"><strong>Flash plug-in required</strong></span>'
		+ '<P>To view the advanced features of this page you need to have the Adobe Flash plugin installed on your system.'
		+ '<P><a target="_blank" href="'
		+ this.flGetFlashPlayerURL
		+ '"><b>Click here to download the Flash plugin from the Adobe website</b></a></div></td>'
		+ '</tr>'
		+ '</table></td>'
		+ '</tr>'
		+ '</table>';
return content;
}
newsi.HTML.Flash.prototype.rightVersion=function(){
var content='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="' 
	+ this.flWidth 
	+ '" HEIGHT="' 
	+ this.flHeight 
	+ '" id="Untitled-1" ALIGN="">'
	+ '<PARAM NAME=movie VALUE="' 
	+ this.url 
	+ '"><PARAM NAME=flashvars VALUE="' 
	+ this.getString 
	+ '"><PARAM NAME=base VALUE="' 
	+ this.path 
	+ 'v_' 
	+ this.flVersion 
	+ '/swf"><PARAM NAME=quality VALUE="' 
	+ this.flQuality 
	+ '"><PARAM NAME=bgcolor VALUE="' 
	+ this.flColor 
	+ '"><PARAM NAME=menu value=false /><PARAM NAME="scale" value="' 
	+ this.flScale 
	+ '" /><PARAM NAME="salign" value="' 
	+ this.flSalign 
	+ '" />'
	+ '<EMBED src="' 
	+ this.url 
	+ '" flashvars="' 
	+ this.getString 
	+ '" base="' 
	+ this.path 
	+ 'v_' 
	+ this.flVersion 
	+ '/swf" quality="' 
	+ this.flQuality 
	+ '" scale="' 
	+ this.flScale 
	+ '" salign="' 
	+ this.flSalign 
	+ '" bgcolor="' 
	+ this.flColor 
	+ '" WIDTH="' 
	+ this.flWidth 
	+ '" HEIGHT="' 
	+ this.flHeight 
	+ '" MENU="false" NAME="Untitled-1" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="'
	+ this.flGetFlashPlayerURL
	+ '"></EMBED>'
	+ '</OBJECT>';
return content;
}
newsi.HTML.Flash.prototype.getversion=function(version){
this.sf="ShockwaveFlash.ShockwaveFlash."+version;
var f="try{var ax=new ActiveXObject(this.sf);return true;}catch(e){return false;}";
this.func=new Function(f);
return this.func();
}
newsi.html.flash=new newsi.HTML.Flash();