﻿/**
 * Progression is (C) 2007-2008 taka:nium and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 */
var progression,Progression,SWFObject;(function(){progression=function(){};var $=function(a){return document.getElementById(a)};var r=function(a){return document.getElementsByTagName(a)};var s=function(a,b){switch(a){case null:case undefined:{return b}}return a};var t="external_flashcontent";var u={url:"preloader.swf",replaceElementId:"attention",width:640,height:480,adjustHorizontal:false,adjustVertical:false,centering:true,version:"9.0.45",useExpressInstall:true,flashvars:{},params:{bgcolor:"#FFFFFF",wmode:"window",allowfullscreen:true,allowscriptaccess:"samedomain"},attributes:{}};var v=function(){(($("disabled_javascript")||{}).style||{}).display="none";if(SWFForceSize){var a=new SWFForceSize($("flashcontent"),u.width,u.height);a.onLoadDiv()}};progression.embedSWF=function(a){if(!swfobject){return}var b=u;var c=b.params;var d=b.attributes;var e=a;var f=e.params;var g=e.attributes;b.url=s(e.url,b.url);b.replaceElementId=s(e.replaceElementId,b.replaceElementId);b.width=s(e.width,b.width);b.height=s(e.height,b.height);b.adjustHorizontal=s(e.adjustHorizontal,b.adjustHorizontal);b.adjustVertical=s(e.adjustVertical,b.adjustVertical);b.centering=s(e.centering,b.centering);b.version=s(e.version,b.version);b.useExpressInstall=s(e.useExpressInstall,b.useExpressInstall);b.flashvars=s(e.flashvars,b.flashvars);c.bgcolor=s(f.bgcolor,c.bgcolor);c.wmode=s(f.wmode,c.wmode);c.allowfullscreen=s(f.allowfullscreen,c.allowfullscreen);c.allowscriptaccess=s(f.allowscriptaccess,c.allowscriptaccess);d.id=t;d.name=t;var h=(u.centering&&!u.adjustHorizontal);var i=(u.centering&&!u.adjustVertical);var j=u.adjustHorizontal?"100%":u.width+"px";var k=u.adjustVertical?"100%":u.height+"px";var l=h?"50%":"0";var m=i?"50%":"0";var n=h?"-"+Math.ceil(u.width/2)+"px":"0";var o=i?"-"+Math.ceil(u.height/2)+"px":"0";var p=u.useExpressInstall?"contents/scripts/swfobject/expressinstall.swf":undefined;var q=r("body")[0];if(q){q.style.background=u.params.bgcolor}else{swfobject.createCSS("body","background:"+u.params.bgcolor+";")}var q=$("flashcontent");if(q){q.style.width=j;q.style.height=k;q.style.left=l;q.style.top=m;q.style.marginLeft=n;q.style.marginTop=o}else{swfobject.createCSS("#flashcontent","width:"+j+"; height:"+k+"; left:"+l+"; top:"+m+"; margin-left:"+n+"; margin-top:"+o+";")}swfobject.embedSWF(u.url,u.replaceElementId,"100%","100%",u.version,p,u.flashvars,u.params,u.attributes);swfobject.addLoadEvent(v)};var w,_version,_width,_height,_useSWFForceSize,_flashvars,_params,_attributes;Progression=function(a){(($("enableJavaScript")||{}).style||{}).display="none";_version=a;document.write('<link rel="stylesheet" type="text/css" href="contents/styles/progression.css" />')};Progression.prototype={onLoad:function(){},init:function(){_useSWFForceSize=(this.onLoad.toString().indexOf("var forceSize = new SWFForceSize")>0);this.onLoad()}};SWFObject=function(a,b,c,d){w=a;_width=c;_height=d;_flashvars={};_params={};_attributes={}};SWFObject.prototype={useExpressInstall:function(a){},setAttribute:function(a,b){_attributes[a]=b},getAttribute:function(a){return _attributes[a]},addParam:function(a,b){_params[a]=b},getParams:function(){return _params[name]},addVariable:function(a,b){_flashvars[a]=b},getVariable:function(a){return _flashvars},getVariables:function(){return _flashvars},getVariablePairs:function(){},getSWFHTML:function(){},write:function(a){var b=r("head")[0].innerHTML;b=b.split(" ").join("").split("\t").join("");if(!_useSWFForceSize){SWFForceSize=null}progression.embedSWF({url:w,version:_version,width:parseInt(_width),height:parseInt(_height),adjustHorizontal:(_width=="100%"),adjustVertical:(_height=="100%"),centering:(b.indexOf("left:50%;")>0&&b.indexOf("top:50%;")>0),flashvars:{},params:{bgcolor:_params["bgcolor"],wmode:_params["wmode"],allowscriptaccess:_params["allowScriptAccess"]},attributes:{}});return false}}})();
