// JavaScript Document
//SWF Object
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; // for backwards compatibility
var SWFObject = deconcept.SWFObject;

// Persistant scrolling layer
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function flvS3(v1){//v1.5
var v2=MM_findObj(v1);if (!v2){this.x=this.y=this.h=this.w=0;return;}var v3,v4,v5,v6,v7=(document.layers)?v2:v2.style,v8=document,v9=navigator.appVersion;v3=isNaN(parseInt(v7.left))?v2.offsetLeft:parseInt(v7.left);v4=isNaN(parseInt(v7.top))?v2.offsetTop:parseInt(v7.top);if (v9.indexOf("MSIE 5")>-1&&v9.indexOf("Mac")>-1){if (v2.parentElement.tagName=="BODY"){v3+=parseInt(v8.body.leftMargin);v4+=parseInt(v8.body.topMargin);}}if (v2.offsetHeight){v5=v2.offsetHeight;v6=v2.offsetWidth;}else if (document.layers){v5=v7.clip.height;v6=v7.clip.width;}else {v5=v6=0;}this.x=parseInt(v3);this.y=parseInt(v4);this.h=parseInt(v5);this.w=parseInt(v6);}

function flvS7(){//v1.0
var v1=(arguments.length>0)?arguments[0]:window;if (v1.innerWidth){this.x=v1.pageXOffset;this.y=v1.pageYOffset;this.w=v1.innerWidth;this.h=v1.innerHeight;}else {var v2=document;if (v2.documentElement&&v2.documentElement.clientWidth){var v3=v2.documentElement;this.x=v3.scrollLeft;this.y=v3.scrollTop;this.w=v3.clientWidth;this.h=v3.clientHeight;}else if (v2.body){var v4=v2.body;this.x=v4.scrollLeft;this.y=v4.scrollTop;this.w=v4.clientWidth;this.h=v4.clientHeight;}else {this.x=this.y=this.w=this.h=0;}}}

function dmxFPLP5(v1,v2){//v1.12
var v3=MM_findObj(v1),v4=window,v5=new flvS7(),v6=new flvS3(v1),v7,v8,v9=document,v10,v11,v12,v13,v14;this.cx=v6.x;this.cy=v6.y;if (v2){v3.PLP3=v5.w;v3.PLP4=v5.h;if (v3.PLP7==0||v3.PLP7==1){v8=v3.PLP20;}else if (v3.PLP7==2){v8=Math.round((v5.h/2)-(v6.h/2));}else {v8=v5.h-(v6.h+v3.PLP20);}v3.PLP1=v8;if (v3.PLP8==0||v3.PLP8==1){v7=v3.PLP21;}else if (v3.PLP8==2){v7=Math.round((v5.w/2)-(v6.w/2));}else {v7=v5.w-(v6.w+v3.PLP21);}v3.PLP2=v7;this.cx=v7;this.cy=v8;v14=(document.layers)?v3:v3.style;v14.left=v7+v3.PLP5;v14.top=v8+v3.PLP5;}else {if (v3.PLP18==0){if (v3.PLP14==0||v3.PLP14==2){if (v3.PLP7==0||v3.PLP7==1){v8=v5.y+v3.PLP20;}else if (v3.PLP7==2){v8=Math.round(v5.y+(v5.h/2)-(v6.h/2));}else {v8=v5.y+v5.h-(v6.h+v3.PLP20);if (v9.h<(v8+v6.h+v3.PLP20)){if (v9.h<v6.h){v8=v5.y+v5.h-(v6.h+v3.PLP20);}else {v8=v5.h-(v6.h+v3.PLP20);}}if (v8<0){v8=0}}}else {v8=this.cy;}v3.PLP1=v8;if (v3.PLP14==1||v3.PLP14==2){if (v3.PLP8==0||v3.PLP8==1){v7=v5.x+v3.PLP21;}else if (v3.PLP8==2){v7=Math.round(v5.x+(v5.w/2)-(v6.w/2));}else {v7=v5.x+v5.w-(v6.w+v3.PLP21);if (v9.w<(v7+v6.w+v3.PLP21)){if (v9.w<v6.w){v7=v5.x+v5.w-(v6.w+v3.PLP21);}else {v7=v5.w-(v6.w+v3.PLP21);}}if (v7<0){v7=0;}}}else {v7=this.cx;}v3.PLP2=v7;}else {if (v3.PLP10==1){if (v3.PLP1<v5.y){v8=v5.y+v3.PLP16;}else {v10=v5.y+v5.h;v12=v3.PLP1+v6.h+v3.PLP16;if (v12>v10){v8=v10-(v6.h+v3.PLP16);}else {v8=v3.PLP1;}}}else {v8=v3.PLP1;}if (v3.PLP11==1){if (v3.PLP2<v5.x){v7=v5.x+v3.PLP17;}else {v11=v5.x+v5.w;v13=v3.PLP2+v6.w+v3.PLP17;if (v13>v11){v7=v11-(v6.w+v3.PLP17);}else {v7=v3.PLP2;}}}else {v7=v3.PLP2;}}}this.nx=v7;this.ny=v8;}

function dmxFPLP4(v1){//v1.12
var v2=MM_findObj(v1),v3=(document.layers)?v2:v2.style,v4=new flvS7(),v5=0,v6=new flvS3(v1),v7,v8,v9,v10,v11,v12,v13,v14,v3;if (v2.PLP12!=null){clearTimeout(v2.PLP12);}if (v2.PLP3!=v4.w||v2.PLP4!=v4.h){v5=1;}v7=new dmxFPLP5(v1,v5);v8=v7.nx;v9=v7.ny;if ((v7.cx!=v8)||(v7.cy!=v9)){if (v2.PLP6>0){if (v2.PLP9>0){v10=v2.PLP9;v11=v2.PLP9;v12=Math.abs(v7.cx-v8);v13=Math.abs(v7.cy-v9);if (v12<v13){v11=(v12!=0)?((v13/v12)*v2.PLP9):v2.PLP9;}else {v10=(v13!=0)?((v12/v13)*v2.PLP9):v2.PLP9;}if (v10>=v12){v10=Math.min(Math.ceil(v10),v2.PLP9);}if (v11>=v13){v11=Math.min(Math.ceil(v11),v2.PLP9);}if ((v7.cx<v8)&&(v7.cx+v10<v8)){v8=v7.cx+v10;}if ((v7.cx>v8)&&(v7.cx-v10>v8)){v8=v7.cx-v10;}if ((v7.cy<v9)&&(v7.cy+v11<v9)){v9=v7.cy+v11;}if ((v7.cy>v9)&&(v7.cy-v11>v9)){v9=v7.cy-v11;}}else {v12=((v8-v7.cx)/v2.PLP6);v13=((v9-v7.cy)/v2.PLP6);v12=(v12>0)?Math.ceil(v12):Math.floor(v12);v8=v7.cx+v12;v13=(v13>0)?Math.ceil(v13):Math.floor(v13);v9=v7.cy+v13;}}v3=(document.layers)?v2:v2.style;v3.left=v8+v2.PLP5;v3.top=v9+v2.PLP5;v14="dmxFPLP4('"+v1+"')";v2.PLP12=setTimeout(v14,10);}}

function dmxFPLP3(){//v1.12
var v1=document,v2,v3,v4;for (i=0;i<v1.PLP13.length;i++){v2=v1.PLP13[i];v3=MM_findObj(v2);if (v3.PLP15){dmxFPLP4(v2);}}if (!v1.PLP22){v4="dmxFPLP3()";setTimeout(v4,10);}}

function dmxFPLP1(){//v1.12
// Copyright 2003-2005, Marja Ribbers (FlevOOware.nl), George Petrov (DMXzone.com)
var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4=false,v5=false,v6=window,v7=document,v8=new flvS3(v2),v9,v10,v11,v12=navigator,v13=v12.userAgent,v9,v14=v7.body;if (v3){if (v7.PLP13==null){v7.PLP13=new Array();v4=true;}for (var v15=0;v15<v7.PLP13.length;v15++){if (v7.PLP13[v15]==v2){v5=true;break;}}if (!v5){v7.PLP13[v7.PLP13.length]=v2;}v9=(v7.layers)?v3:v3.style;v7.PLP19=v13.toLowerCase().indexOf("mac")!=-1;v3.PLP8=parseInt(v1[1]);if (v3.PLP8==0){v3.PLP21=v8.x;}else {v3.PLP21=parseInt(v1[2]);if (v3.PLP8==3){v10=v7.PLP19&&v7.getElementById&&!v6.opera&&!v7.all&&v13.toLowerCase().indexOf("safari")<0;v10=v10||(!v7.PLP19&&(!v7.all||(v6.opera&&parseInt(v12.appVersion))>6));if (v3.PLP21<16&&v10){v3.PLP21=v3.PLP21+16;}}}v3.PLP7=parseInt(v1[3]);if (v3.PLP7==0){v3.PLP20=v8.y;}else {v3.PLP20=parseInt(v1[4]);}v3.PLP6=parseInt(v1[5]);v3.PLP9=parseInt(v1[6]);v3.PLP18=parseInt(v1[7]);if (v3.PLP18==0){v3.PLP14=parseInt(v1[8]);}else if (v3.PLP18==1){v3.PLP11=parseInt(v1[8]);v3.PLP17=parseInt(v1[9]);v3.PLP10=parseInt(v1[10]);v3.PLP16=parseInt(v1[11]);}else {v3.PLP11=0;v3.PLP10=0;}v3.PLP5=(document.layers||window.opera)?"":"px";if (!v7.layers){if (v14.scrollHeight>v14.offsetHeight){v7.w=v14.scrollWidth;v7.dh=v14.scrollHeight;}else {v7.w=v14.offsetWidth;v7.dh=v14.offsetHeight;}}v11=new dmxFPLP5(v2,1);if (v11.cx!=v11.nx||v11.cy!=v11.ny){v9=(document.layers)?v3:v3.style;v9.left=v11.nx+v3.PLP5;v9.top=v11.ny+v3.PLP5;}v3.PLP15=true;if (v4){v7.PLP22=v7.all&&!v6.opera&&!v7.PLP19;if (v7.PLP22){v6.attachEvent("onresize",dmxFPLP3);v6.attachEvent("onscroll",dmxFPLP3);}}dmxFPLP3();}}
//-->




/***********************************************
* Dynamic Ajax Content- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var bustcachevar=1 //bust potential caching of external pages after initial request? (1=yes, 0=no)
var loadedobjects=""
var rootdomain="http://"+window.location.hostname
var bustcacheparameter=""

function ajaxpage(url, containerid){
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
} 
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.onreadystatechange=function(){
loadpage(page_request, containerid)
}
if (bustcachevar) //if bust caching of external page
bustcacheparameter=(url.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime()
page_request.open('GET', url+bustcacheparameter, true)
page_request.send(null)
}

function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
document.getElementById(containerid).innerHTML=page_request.responseText
}

function loadobjs(){
if (!document.getElementById)
return
for (i=0; i<arguments.length; i++){
var file=arguments[i]
var fileref=""
if (loadedobjects.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding
if (file.indexOf(".js")!=-1){ //If object is a js file
fileref=document.createElement('script')
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", file);
}
else if (file.indexOf(".css")!=-1){ //If object is a css file
fileref=document.createElement("link")
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", file);
}
}
if (fileref!=""){
document.getElementsByTagName("head").item(0).appendChild(fileref)
loadedobjects+=file+" " //Remember this object as being already added to page
}
}
}

// --Show/Hide Layers--
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}


/*****************************************
IE HOVER FIX // REQUIRED FOR HTML MAIN NAV
******************************************/
sfHover = function() {
	var sfEls = document.getElementById("navFlashContent").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

