/*!
 * FSI Server Interface
 * http://www.fsi-viewer.com
 *
 * Advanced Version with HTML and XHTML support
 * 
 * Copyright (C) 2000-2016 NeptuneLabs GmbH - All rights reserved.
 *
 * Version: 1.6.8
 */
;var fsiPresetFlashVersion="6,0,65,0";var fsiImageFallbackLinked=true;var fsiTextFallbackActive=true;var fsiTextFallbackText="Flash Player Required.\nWould you like to download the latest version of Flash Player now?";var flashFallbackImage="erez?src=erez-private/flashrequired.svg&tmp=Large&quality=97";function flashDetectorAdvanced(presetFlashVersion,imageFallbackLinked,textFallbackActive,textFallbackText){this.flashVersion=0;var flashDownload;var flashDownloadCab;this.init=function(){var scheme;if(window.location&&window.location.protocol.indexOf("https")>-1){scheme="https://"}else{scheme="http://"}flashDownload=scheme+"www.adobe.com/go/getflashplayer";flashDownloadCab=scheme+"download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab";var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1)?true:false;if(isIE&&isWin&&!isOpera){try{var axTester=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");var axVersionFull=axTester.GetVariable("$version");if(axVersionFull){var regVersion=axVersionFull.match(/(\d+),\d+,\d+,\d+/);if(regVersion&&regVersion[1]){this.flashVersion=parseInt(regVersion[1])}}}catch(e){}}else{var napl;if(navigator.plugins){napl=navigator.plugins}else{napl=false}if(napl&&napl.length>0&&(napl["Shockwave Flash 2.0"]||napl["Shockwave Flash"])){var flashDesc=napl["Shockwave Flash"+(napl["Shockwave Flash 2.0"]?" 2.0":"")].description;this.flashVersion=parseInt(flashDesc.split(" ")[2].split(".")[0])}}if(this.flashVersion==0&&isIE&&isWin&&!isOpera){pushVBDetection()}};this.writeFlashCode=function(fsiurl,fallbackimg,parameters,returncode){var objcode='<object type="application/x-shockwave-flash" data="'+fsiurl+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+flashDownloadCab;var emdcode='<embed type="application/x-shockwave-flash" pluginspage="'+flashDownload+'"';var params=new Object();if(parameters){var parameters=parameters.split(";");for(var c=0;c<parameters.length;c++){var parameter=parameters[c].split("=");if(parameter[1]){params[parameter[0].toLowerCase()]=parameter[1]}else{if(parameter!=""){alert("Wrong parameter: "+parameter)}}}}var useVersion;if(params.version){useVersion=decodeURI(params.version);params.version=""}else{useVersion=presetFlashVersion}objcode+="#version="+useVersion+'"';addAutoParameters(params);var majorversion=useVersion.split(",")[0];if(this.flashVersion>=majorversion){var code;if(params.width){code=' width="'+params.width+'"';objcode+=code;emdcode+=code;params.width=""}if(params.height){code=' height="'+params.height+'"';objcode+=code;emdcode+=code;params.height=""}if(params.id||params.name){objcode+=' id="'+params.id+'"';if(params.name){emdcode+=' name="'+params.name+'"'}else{emdcode+=' name="'+params.id+'"'}params.id="";params.name=""}objcode+=">\n";params.src=encodeURI(fsiurl);params.movie=encodeURI(fsiurl);for(var pkey in params){if(params[pkey]){if(pkey!="src"){objcode+='<param name="'+pkey+'" value="'+decodeURI(params[pkey])+'"/>\n'}if(pkey!="movie"){emdcode+=" "+pkey+'="'+decodeURI(params[pkey])+'"'}}}emdcode+="/>";objcode+=emdcode+"\n";objcode+="</object>"}else{if(fallbackimg){objcode='<img src="'+fallbackimg+'" border=0 />';if(imageFallbackLinked){objcode='<a href="'+flashDownload+'" target="_blank">'+objcode+"</a>"}objcode='<p align="center">'+objcode+"</p>"}}if(!objcode){if(textFallbackActive&&confirm(textFallbackText)){top.location=flashDownload}}else{if(returncode){return objcode}else{document.write(objcode)}}};this.writeXHTMLFlashCode=function(fsiurl,fallbackimg,parameters,returncode){var objcode='<object type="application/x-shockwave-flash" codebase="'+flashDownloadCab;var params=new Object();if(parameters){var parameters=parameters.split(";");for(var c=0;c<parameters.length;c++){var parameter=parameters[c].split("=");if(parameter[1]){params[parameter[0]]=parameter[1]}else{if(parameter!=""){alert("Wrong parameter: "+parameter)}}}}var version;if(params.version){version=params.version;params.version=""}else{version=presetFlashVersion}objcode+="#version="+version+'"';var majorversion=version.split(",")[0];if(this.flashVersion>=majorversion){fsiurl=replaceAmp(fsiurl);objcode+=' data="'+fsiurl+'"';if(params.width){code=' width="'+params.width+'"';objcode+=code;params.width=""}if(params.height){code=' height="'+params.height+'"';objcode+=code;params.height=""}if(params.id||params.name){objcode+=' id="'+params.id+'"';params.id=""}objcode+=">\n";params.movie=fsiurl;addAutoParameters(params);for(var pkey in params){if(params[pkey]){objcode+='<param name="'+pkey+'" value="'+params[pkey]+'"/>\n'}}objcode+="</object>"}else{if(fallbackimg){objcode='<p align="center"><img src="'+fallbackimg+'" border=0 /></p>';if(imageFallbackLinked){objcode='<a href="'+flashDownload+'">'+objcode+"</a>"}}}if(!objcode){if(confirm(textFallbackText)){top.location=flashDownload}}else{if(returncode){return objcode}else{document.write(objcode)}}};this.writeJSHTMLCode=function(fsiurl,erezprefix,fallbackimg,parameters,xhtml){var params=new Object();if(parameters){var parameters=parameters.split(";");for(c=0;c<parameters.length;c++){parameter=parameters[c].split("=");if(parameter[1]){params[parameter[0]]=parameter[1]}else{if(parameter!=""){alert("Wrong parameter: "+parameter)}}}}if(params.width){objwidth=params.width}else{alert("Missing width")}if(params.height){objheight=params.height}else{alert("Missing height")}if(params.bgcolor){objbgcolor=params.bgcolor}else{objbgcolor=""}if(params.quality){objquality=params.quality}else{objquality=""}if(params.wmode){objwmode=params.wmode}else{objwmode=""}delete params.width;delete params.height;var htmlcode='<script type="text/javascript">\n';if(xhtml){htmlcode+="/* <![CDATA[ */\n"}else{htmlcode+="<!--\n"}htmlcode+='\twriteFlashCode( "'+fsiurl+'",';htmlcode+='\n\t\t"'+erezprefix+fallbackimg+'",';htmlcode+='\n\t\t"width='+objwidth+";height="+objheight;for(var pkey in params){if(params[pkey]){htmlcode+=";"+pkey+"="+params[pkey]}}addAutoParameters(params);htmlcode+='");\n';if(xhtml){htmlcode+="/* ]]> */\n"}else{htmlcode+="// -->\n"}htmlcode+="<\/script>\n";htmlcode+="<noscript>\n";if(xhtml){htmlcode+='\t<object type="application/x-shockwave-flash" data="'+replaceAmp(fsiurl)+'" codebase="'+flashDownloadCab+"#version="+presetFlashVersion+'" width="'+objwidth+'" height="'+objheight+'">\n';htmlcode+='\t\t<param name="movie" value="'+replaceAmp(fsiurl)+'"/>\n'}else{htmlcode+='\t<object type="application/x-shockwave-flash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+flashDownloadCab+"#version="+presetFlashVersion+'" width="'+objwidth+'" height="'+objheight+'">\n';htmlcode+='\t\t<param name="movie" value="'+fsiurl+'"/>\n'}for(var pkey in params){htmlcode+='\t\t<param name="'+pkey+'" value="'+params[pkey]+'" />\n'}if(!xhtml){htmlcode+='\t\t<embed src="'+fsiurl+'"\n';htmlcode+='\t\t\twidth="'+objwidth+'"\n';htmlcode+='\t\t\theight="'+objheight+'"\n';for(var pkey in params){htmlcode+="\t\t\t"+pkey+'="'+params[pkey]+'"\n'}htmlcode+='\t\t\ttype="application/x-shockwave-flash"\n';htmlcode+='\t\t\tpluginspage="'+flashDownload+'">\n';htmlcode+="\t\t</embed>\n"}htmlcode+="\t</object>\n";htmlcode+="</noscript>\n";return htmlcode};this.warpInHTML=function(title,maincode,helperjs,externaljs,xhtml){if(xhtml){htmlcode='<?xml version="1.0" encoding="ISO-8859-1" ?>\n';htmlcode+='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1-transitional.dtd">\n';htmlcode+='<html xmlns="http://www.w3.org/1999/xhtml">\n';htmlcode+="<head>\n";htmlcode+='<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />\n';htmlcode+="<title>"+title+"</title>\n";htmlcode+='<style type="text/css">\n';htmlcode+="body,html{width:100%;height:100%;margin:0px;padding:0px;overflow:auto;}\n";htmlcode+="table.t1{width:100%;height:100%;margin:0px;padding:0px;}\n";htmlcode+="td.t1{height:100%;text-align:center;vertical-align:middle}\n";htmlcode+="</style>\n";if(externaljs){htmlcode+=externaljs}if(helperjs){htmlcode+=helperjs}htmlcode+="</head>\n";htmlcode+="<body>\n";htmlcode+='<table class="t1" cellspacing="0" cellpadding="0" border="0"><tr><td class="t1">\n';htmlcode+=maincode;htmlcode+="\n</td></tr></table>\n";htmlcode+="</body>\n";htmlcode+="</html>\n"}else{htmlcode='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n';htmlcode+="<html>\n";htmlcode+="<head>\n";htmlcode+='<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />\n';htmlcode+="<title>"+title+"</title>\n";htmlcode+='<style type="text/css">\n';htmlcode+="body,html{width:100%;height:100%;margin:0px;padding:0px;overflow:auto;}\n";htmlcode+="table.t1{width:100%;height:100%;margin:0px;padding:0px;}\n";htmlcode+="td.t1{height:100%;text-align:center;vertical-align:middle}\n";htmlcode+="</style>\n";if(externaljs){htmlcode+=externaljs}if(helperjs){htmlcode+=helperjs}htmlcode+="</head>\n";htmlcode+="<body>\n";htmlcode+='<table class="t1" cellspacing="0" cellpadding="0" border="0"><tr><td class="t1">\n';htmlcode+=maincode;htmlcode+="\n</td></tr></table>\n";htmlcode+="</body>\n";htmlcode+="</html>\n"}return htmlcode};var pushVBDetection=function(){var doc='<script type="text/vbscript">\n';doc+="On Error Resume Next\n";doc+="Dim i\n";doc+="For i = 30 to 6 Step -1\n";doc+='If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i))) Then\n';doc+="Else\n";doc+="fsiFD.flashVersion = i\n";doc+="Exit For\n";doc+="End If\n";doc+="Next\n";doc+="<\/script>\n";document.write(doc)};var addAutoParameters=function(params){if(!params.allowscriptaccess){params.allowscriptaccess="always"}if(!params.allowfullscreen){params.allowfullscreen="true"}if(!params.quality){params.quality="high"}};var replaceAmp=function(fsiurl){return fsiurl.replace(/\&/g,"&amp;")}}function writeFlashCode(fsiurl,fallbackimg,parameters,returncode){if(fsiFDA){var ret=fsiFDA.writeFlashCode(fsiurl,fallbackimg,parameters,returncode);if(returncode){return ret}}}function writeXHTMLFlashCode(fsiurl,fallbackimg,parameters,returncode){if(fsiFDA){var ret=fsiFDA.writeXHTMLFlashCode(fsiurl,fallbackimg,parameters,returncode);if(returncode){return ret}}}function writeJSHTMLCode(fsiurl,fallbackimg,parameters,xhtml){if(fsiFDA){return fsiFDA.writeJSHTMLCode(fsiurl,fallbackimg,parameters,xhtml)}}function warpInHTML(title,maincode,helperjs,externaljs,xhtml){if(fsiFDA){return fsiFDA.warpInHTML(title,maincode,helperjs,externaljs,xhtml)}}function getFlashWriter(erezprefix){htmlcode='<script type="text/javascript" src="'+getFlashWriterURL(erezprefix)+'"><\/script>\n';return htmlcode}function getFlashWriterURL(erezprefix){writerurl=erezprefix+"js/fsiwriter.js";return writerurl}var fsiFDA;if(!fsiFDA){fsiFDA=new flashDetectorAdvanced(fsiPresetFlashVersion,fsiImageFallbackLinked,fsiTextFallbackActive,fsiTextFallbackText);fsiFDA.init()};