var timerlen=5;
var slideAniLen=250;
var timerID=new Array();
var startTime=new Array();
var obj=new Array();
var endHeight=new Array();
var moving=new Array();
var dir=new Array();
function slidedown(_1){
if(moving[_1]){
return;
}
if(document.getElementById(_1).style.display!="none"){
return;
}
moving[_1]=true;
dir[_1]="down";
startslide(_1);
}
function slideup(_2){
if(moving[_2]){
return;
}
if(document.getElementById(_2).style.display=="none"){
return;
}
moving[_2]=true;
dir[_2]="up";
startslide(_2);
}
function startslide(_3){
obj[_3]=document.getElementById(_3);
endHeight[_3]=parseInt(obj[_3].style.height);
startTime[_3]=(new Date()).getTime();
if(dir[_3]=="down"){
obj[_3].style.height="1px";
}
obj[_3].style.display="block";
timerID[_3]=setInterval("slidetick('"+_3+"');",timerlen);
}
function slidetick(_4){
var _5=(new Date()).getTime()-startTime[_4];
if(_5>slideAniLen){
endSlide(_4);
}else{
var d=Math.round(_5/slideAniLen*endHeight[_4]);
if(dir[_4]=="up"){
d=endHeight[_4]-d;
}
obj[_4].style.height=d+"px";
}
return;
}
function endSlide(_7){
clearInterval(timerID[_7]);
if(dir[_7]=="up"){
obj[_7].style.display="none";
}
obj[_7].style.height=endHeight[_7]+"px";
delete (moving[_7]);
delete (timerID[_7]);
delete (startTime[_7]);
delete (endHeight[_7]);
delete (obj[_7]);
delete (dir[_7]);
return;
}
function toggleSlide(_8){
if(document.getElementById(_8).style.display=="none"){
slidedown(_8);
}else{
slideup(_8);
}
}
img2="http://finalfantasy-xiii.net/images/somnus/divadjustdown.gif";
img1="http://finalfantasy-xiii.net/images/somnus/divadjustup.gif";
function chng(_9){
if(document[_9].src.indexOf(img1)!=-1){
document[_9].src=img2;
}else{
document[_9].src=img1;
}
}
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(_a,id,w,h,_e,c,_10,_11,_12,_13,_14){
if(!document.createElement||!document.getElementById){
return;
}
this.DETECT_KEY=_14?_14:"detectflash";
this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
if(_a){
this.setAttribute("swf",_a);
}
if(id){
this.setAttribute("id",id);
}
if(w){
this.setAttribute("width",w);
}
if(h){
this.setAttribute("height",h);
}
if(_e){
this.setAttribute("version",new deconcept.PlayerVersion(_e.toString().split(".")));
}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),_10);
if(c){
this.addParam("bgcolor",c);
}
var q=_11?_11:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",_10);
this.setAttribute("doExpressInstall",false);
var xir=(_12)?_12:window.location;
this.setAttribute("xiRedirectUrl",xir);
this.setAttribute("redirectUrl","");
if(_13){
this.setAttribute("redirectUrl",_13);
}
};
deconcept.SWFObject.prototype={setAttribute:function(_17,_18){
this.attributes[_17]=_18;
},getAttribute:function(_19){
return this.attributes[_19];
},addParam:function(_1a,_1b){
this.params[_1a]=_1b;
},getParams:function(){
return this.params;
},addVariable:function(_1c,_1d){
this.variables[_1c]=_1d;
},getVariable:function(_1e){
return this.variables[_1e];
},getVariables:function(){
return this.variables;
},getVariablePairs:function(){
var _1f=new Array();
var key;
var _21=this.getVariables();
for(key in _21){
_1f.push(key+"="+_21[key]);
}
return _1f;
},getSWFHTML:function(){
var _22="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","PlugIn");
}
_22="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_22+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _23=this.getParams();
for(var key in _23){
_22+=[key]+"=\""+_23[key]+"\" ";
}
var _25=this.getVariablePairs().join("&");
if(_25.length>0){
_22+="flashvars=\""+_25+"\"";
}
_22+="/>";
}else{
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","ActiveX");
}
_22="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_22+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _26=this.getParams();
for(var key in _26){
_22+="<param name=\""+key+"\" value=\""+_26[key]+"\" />";
}
var _28=this.getVariablePairs().join("&");
if(_28.length>0){
_22+="<param name=\"flashvars\" value=\""+_28+"\" />";
}
_22+="</object>";
}
return _22;
},write:function(_29){
if(this.getAttribute("useExpressInstall")){
var _2a=new deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_2a)&&!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 _29=="string")?document.getElementById(_29):_29;
n.innerHTML=this.getSWFHTML();
return true;
}else{
if(this.getAttribute("redirectUrl")!=""){
document.location.replace(this.getAttribute("redirectUrl"));
}
}
return false;
}};
deconcept.SWFObjectUtil.getPlayerVersion=function(_2c,_2d){
var _2e=new deconcept.PlayerVersion([0,0,0]);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){
_2e=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);
_2e=new deconcept.PlayerVersion([i,0,0]);
}
}
catch(e){
}
if(_2c&&_2e.major>_2c.major){
return _2e;
}
if(!_2c||((_2c.minor!=0||_2c.rev!=0)&&_2e.major==_2c.major)||_2e.major!=6||_2d){
try{
_2e=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
}
catch(e){
}
}
}
return _2e;
};
deconcept.PlayerVersion=function(_32){
this.major=parseInt(_32[0])!=null?parseInt(_32[0]):0;
this.minor=parseInt(_32[1])||0;
this.rev=parseInt(_32[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(_34){
var q=document.location.search||document.location.hash;
if(q){
var _36=q.indexOf(_34+"=");
var _37=(q.indexOf("&",_36)>-1)?q.indexOf("&",_36):q.length;
if(q.length>1&&_36>-1){
return q.substring(q.indexOf("=",_36)+1,_37);
}
}
return "";
}};
deconcept.SWFObjectUtil.cleanupSWFs=function(){
var _38=document.getElementsByTagName("OBJECT");
for(var i=0;i<_38.length;i++){
for(var x in _38[i]){
if(typeof _38[i][x]=="function"){
_38[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(_3b){
this[this.length]=_3b;
return this.length;
};
}
var getQueryParamValue=deconcept.util.getRequestParameter;
var FlashObject=deconcept.SWFObject;
var SWFObject=deconcept.SWFObject;
var bustcachevar=1;
var loadedobjects="";
var rootdomain="http://"+window.location.hostname;
var bustcacheparameter="";
function ajaxpage(url,_3d){
var _3e=false;
if(window.XMLHttpRequest){
_3e=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
try{
_3e=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e){
try{
_3e=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
}
}
}else{
return false;
}
}
_3e.onreadystatechange=function(){
loadpage(_3e,_3d);
};
if(bustcachevar){
bustcacheparameter=(url.indexOf("?")!=-1)?"&"+new Date().getTime():"?"+new Date().getTime();
}
_3e.open("GET",url+bustcacheparameter,true);
_3e.send(null);
}
function loadpage(_3f,_40){
if(_3f.readyState==4&&(_3f.status==200||window.location.href.indexOf("http")==-1)){
document.getElementById(_40).innerHTML=_3f.responseText;
}
}
function loadobjs(){
if(!document.getElementById){
return;
}
for(i=0;i<arguments.length;i++){
var _41=arguments[i];
var _42="";
if(loadedobjects.indexOf(_41)==-1){
if(_41.indexOf(".js")!=-1){
_42=document.createElement("script");
_42.setAttribute("type","text/javascript");
_42.setAttribute("src",_41);
}else{
if(_41.indexOf(".css")!=-1){
_42=document.createElement("link");
_42.setAttribute("rel","stylesheet");
_42.setAttribute("type","text/css");
_42.setAttribute("href",_41);
}
}
}
if(_42!=""){
document.getElementsByTagName("head").item(0).appendChild(_42);
loadedobjects+=_41+" ";
}
}
}