function clearDefault(fm){
if(fm.defaultValue==fm.value){
fm.value="";
}
}
function setActiveStyleSheet(_2){
var i,a,main;
for(i=0;(a=document.getElementsByTagName("link")[i]);i++){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){
a.disabled=true;
if(a.getAttribute("title")==_2){
a.disabled=false;
}
}
}
}
function getActiveStyleSheet(){
var i,a;
for(i=0;(a=document.getElementsByTagName("link")[i]);i++){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")&&!a.disabled){
return a.getAttribute("title");
}
}
return null;
}
function getPreferredStyleSheet(){
var i,a;
for(i=0;(a=document.getElementsByTagName("link")[i]);i++){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("rel").indexOf("alt")==-1&&a.getAttribute("title")){
return a.getAttribute("title");
}
}
return null;
}
function createCookie(_6,_7,_8){
if(_8){
var _9=new Date();
_9.setTime(_9.getTime()+(_8*24*60*60*1000));
var _a="; expires="+_9.toGMTString();
}else{
_a="";
}
document.cookie=_6+"="+_7+_a+"; path=/";
}
function readCookie(_b){
var _c=_b+"=";
var ca=document.cookie.split(";");
for(var i=0;i<ca.length;i++){
var c=ca[i];
while(c.charAt(0)==" "){
c=c.substring(1,c.length);
}
if(c.indexOf(_c)==0){
return c.substring(_c.length,c.length);
}
}
return null;
}
window.onload=function(e){
var _11=readCookie("style");
var _12=_11?_11:getPreferredStyleSheet();
setActiveStyleSheet(_12);
};
window.onunload=function(e){
var _14=getActiveStyleSheet();
createCookie("style",_14,365);
};
var cookie=readCookie("style");
var title=cookie?cookie:getPreferredStyleSheet();
setActiveStyleSheet(title);
function display_date(){
date=new Date();
var _15=date.getDay();
var _16=date.getDate();
var _17=date.getMonth();
var _18="";
var _19="";
if(_17==0){
_19="Jan.";
}
if(_17==1){
_19="Feb.";
}
if(_17==2){
_19="March";
}
if(_17==3){
_19="April";
}
if(_17==4){
_19="May";
}
if(_17==5){
_19="June";
}
if(_17==6){
_19="July";
}
if(_17==7){
_19="Aug.";
}
if(_17==8){
_19="Sept.";
}
if(_17==9){
_19="Oct.";
}
if(_17==10){
_19="Nov.";
}
if(_17==11){
_19="Dec.";
}
if(_15==0){
_18="Sunday";
}
if(_15==1){
_18="Monday";
}
if(_15==2){
_18="Tuesday";
}
if(_15==3){
_18="Wednesday";
}
if(_15==4){
_18="Thursday";
}
if(_15==5){
_18="Friday";
}
if(_15==6){
_18="Saturday";
}
var _1a=_18+", "+_19+" "+_16;
document.write("<span class=\"date\">"+_1a+"</date>");
}
function banner(_1b,_1c){
this.img_source=_1b;
this.chance=_1c;
}
function display(){
with(this){
document.write(img_source+"<a href=\"javascript:goto_URL();\"><IMG SRC=\"/images/banners/picture0.gif\" border=\"0\" name=\"animation\" alt=\"Table Tennis\"></a>");
}
}
banner.prototype.display=display;
banners=new Array();
banners[0]=new banner("<a href=\"index.asp\" target=\"_self\" onMouseOver=\"top.window.status='Home'; return true\" onMouseOut=\"top.window.status=''; return true\"><img src=\"images/logo_banners/Logo_StefanFeth.jpg\" border=\"0\" align=\"left\" alt=\"ButterflyOnline: Butterfly Table Tennis\" title=\"ButterflyOnline: Butterfly Table Tennis\"></a>",10);
banners[1]=new banner("<a href=\"index.asp\" target=\"_self\" onMouseOver=\"top.window.status='Home'; return true\" onMouseOut=\"top.window.status=''; return true\"><img src=\"images/logo_banners/Logo_GaoJun.jpg\" border=\"0\" align=\"left\" alt=\"ButterflyOnline: Butterfly Table Tennis\" title=\"ButterflyOnline: Butterfly Table Tennis\"></a>",10);
banners[2]=new banner("<a href=\"index.asp\" target=\"_self\" onMouseOver=\"top.window.status='Home'; return true\" onMouseOut=\"top.window.status=''; return true\"><img src=\"images/logo_banners/Logo_MichaelMaze.jpg\" border=\"0\" align=\"left\" alt=\"ButterflyOnline: Butterfly Table Tennis\" title=\"ButterflyOnline: Butterfly Table Tennis\"></a>",10);
banners[3]=new banner("<a href=\"index.asp\" target=\"_self\" onMouseOver=\"top.window.status='Home'; return true\" onMouseOut=\"top.window.status=''; return true\"><img src=\"images/logo_banners/Logo_TimoBoll.jpg\" border=\"0\" align=\"left\" alt=\"ButterflyOnline: Butterfly Table Tennis\" title=\"ButterflyOnline: Butterfly Table Tennis\"></a>",10);
banners[4]=new banner("<a href=\"index.asp\" target=\"_self\" onMouseOver=\"top.window.status='Home'; return true\" onMouseOut=\"top.window.status=''; return true\"><img src=\"images/logo_banners/Logo_DavidZhuang.jpg\" border=\"0\" align=\"left\" alt=\"ButterflyOnline: Butterfly Table Tennis\" title=\"ButterflyOnline: Butterfly Table Tennis\"></a>",10);
banners[5]=new banner("<a href=\"index.asp\" target=\"_self\" onMouseOver=\"top.window.status='Home'; return true\" onMouseOut=\"top.window.status=''; return true\"><img src=\"images/logo_banners/Logo_MLanders.jpg\" border=\"0\" align=\"left\" alt=\"ButterflyOnline: Butterfly Table Tennis\" title=\"ButterflyOnline: Butterfly Table Tennis\"></a>",10);
sum_of_all_chances=0;
for(i=0;i<banners.length;i++){
sum_of_all_chances+=banners[i].chance;
}
function display_banner(){
chance_limit=0;
randomly_selected_chance=Math.round((sum_of_all_chances-1)*Math.random())+1;
for(i=0;i<banners.length;i++){
chance_limit+=banners[i].chance;
if(randomly_selected_chance<=chance_limit){
document.write(banners[i].img_source+"<a href=\"javascript:goto_URL();\"><IMG SRC=\"/images/banners/picture0.gif\" border=\"0\" name=\"animation\" alt=\"Table Tennis\" title=\"Table Tennis\"></a>");
return banners[i];
break;
}
}
}
function expandCollapse(){	
for(var i=0;i<expandCollapse.arguments.length;i++){
  var _1e=document.getElementById(expandCollapse.arguments[i]);
  _1e.style.display=(_1e.style.display=="none")?"block":"none";
  }
}
function openShut(){
for(var i=0;i<openShut.arguments.length;i++){
var _20=document.getElementById(openShut.arguments[i]);
_20.style.display=(_20.style.display=="none")?"block":"none";
}
}

if(typeof deconcept=="undefined"){
var deconcept=new Object();
}
if(typeof deconcept.util=="undefined"){
deconcept.util=new Object();
}
if(typeof deconcept.SWFObjectUtil=="undefined"){
deconcept.SWFObjectUtil=new Object();
}
deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){
if(!document.createElement||!document.getElementById){
return;
}
this.DETECT_KEY=_b?_b:"detectflash";
this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
if(_1){
this.setAttribute("swf",_1);
}
if(id){
this.setAttribute("id",id);
}
if(w){
this.setAttribute("width",w);
}
if(h){
this.setAttribute("height",h);
}
if(_5){
this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));
}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),_7);
if(c){
this.addParam("bgcolor",c);
}
var q=_8?_8:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",_7);
this.setAttribute("doExpressInstall",false);
var _d=(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){
this.setAttribute("redirectUrl",_a);
}
};
deconcept.SWFObject.prototype={setAttribute:function(_e,_f){
this.attributes[_e]=_f;
},getAttribute:function(_10){
return this.attributes[_10];
},addParam:function(_11,_12){
this.params[_11]=_12;
},getParams:function(){
return this.params;
},addVariable:function(_13,_14){
this.variables[_13]=_14;
},getVariable:function(_15){
return this.variables[_15];
},getVariables:function(){
return this.variables;
},getVariablePairs:function(){
var _16=new Array();
var key;
var _18=this.getVariables();
for(key in _18){
_16.push(key+"="+_18[key]);
}
return _16;
},getSWFHTML:function(){
var _19="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","PlugIn");
}
_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){
_19+=[key]+"=\""+_1a[key]+"\" ";
}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){
_19+="flashvars=\""+_1c+"\"";
}
_19+="/>";
}else{
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","ActiveX");
}
_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){
_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";
}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){
_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";
}
_19+="</object>";
}
return _19;
},write:function(_20){
if(this.getAttribute("useExpressInstall")){
var _21=new deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);
}
}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof _20=="string")?document.getElementById(_20):_20;
n.innerHTML=this.getSWFHTML();
return true;
}else{
if(this.getAttribute("redirectUrl")!=""){
document.location.replace(this.getAttribute("redirectUrl"));
}
}
return false;
}};
deconcept.SWFObjectUtil.getPlayerVersion=function(_23,_24){
var _25=new deconcept.PlayerVersion([0,0,0]);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){
_25=new deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));
}
}else{
try{
var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
for(var i=3;axo!=null;i++){
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
_25=new deconcept.PlayerVersion([i,0,0]);
}
}
catch(e){
}
if(_23&&_25.major>_23.major){
return _25;
}
if(!_23||((_23.minor!=0||_23.rev!=0)&&_25.major==_23.major)||_25.major!=6||_24){
try{
_25=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
}
catch(e){
}
}
}
return _25;
};
deconcept.PlayerVersion=function(_29){
this.major=parseInt(_29[0])!=null?parseInt(_29[0]):0;
this.minor=parseInt(_29[1])||0;
this.rev=parseInt(_29[2])||0;
};
deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
if(this.major<fv.major){
return false;
}
if(this.major>fv.major){
return true;
}
if(this.minor<fv.minor){
return false;
}
if(this.minor>fv.minor){
return true;
}
if(this.rev<fv.rev){
return false;
}
return true;
};
deconcept.util={getRequestParameter:function(_2b){
var q=document.location.search||document.location.hash;
if(q){
var _2d=q.indexOf(_2b+"=");
var _2e=(q.indexOf("&",_2d)>-1)?q.indexOf("&",_2d):q.length;
if(q.length>1&&_2d>-1){
return q.substring(q.indexOf("=",_2d)+1,_2e);
}
}
return "";
}};
deconcept.SWFObjectUtil.cleanupSWFs=function(){
var _2f=document.getElementsByTagName("OBJECT");
for(var i=0;i<_2f.length;i++){
for(var x in _2f[i]){
if(typeof _2f[i][x]=="function"){
_2f[i][x]=null;
}
}
}
};
if(typeof window.onunload=="function"){
var oldunload=window.onunload;
window.onunload=function(){
deconcept.SWFObjectUtil.cleanupSWFs();
oldunload();
};
}else{
window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;
}
if(Array.prototype.push==null){
Array.prototype.push=function(_32){
this[this.length]=_32;
return this.length;
};
}
var getQueryParamValue=deconcept.util.getRequestParameter;
var FlashObject=deconcept.SWFObject;
var SWFObject=deconcept.SWFObject;

