/****** FILE: mysite/javascript/javascript.js *****/

google.load("jquery","1.7.1");if(document.body.className.indexOf('Client')>-1||document.body.className.indexOf('People')>-1){google.load("jqueryui","1.8");}
function loadHashChangeEvent(){(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){r||l(a());n()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow;h.onpropertychange=function(){try{if(event.propertyName==="title"){q.document.title=h.title}}catch(s){}}}};j.stop=k;o=function(){return a(q.location.href)};l=function(v,s){var u=q.document,t=$.fn[c].domain;if(v!==s){u.title=h.title;u.open();t&&u.write('<script>document.domain="'+t+'"<\/script>');u.close();q.location.hash=v}}})();return j})()})(jQuery,this);}
function initMap(){var mapElement=document.getElementById('GoogleMap');if(mapElement){var latlng=new google.maps.LatLng(51.5144,-0.1387),center=new google.maps.LatLng(51.5144,-0.1387);var myOptions={zoom:17,center:center,mapTypeId:google.maps.MapTypeId.ROADMAP,backgroundColor:'#fff',streetViewControl:true};var map=new google.maps.Map(mapElement,myOptions);var marker=new google.maps.Marker({position:latlng,map:map,title:"Maxxim Consulting",icon:"/themes/maxxim/images/map-icon.png"});mapElement.style.backgroundImage='none';}}
function loadMap(){google.load("maps","3",{callback:initMap,"other_params":"sensor=true&region=GB"});}
function loadSWF(){google.load("swfobject, 2.2");}
google.setOnLoadCallback(function(){var J=jQuery.noConflict();J(function($){if(!$.fn.replaceClass){$.fn.replaceClass=function(oldClass,newClass){return this.each(function(){$(this).removeClass(oldClass).addClass(newClass);});}}
$('body').replaceClass('no-js','platform-'+navigator.platform.toLowerCase());MFader=function(userSettings){loadHashChangeEvent();var self=this,hash=window.location.hash,parts=[],triggerLink,currentCheck,settings={tileClass:'',tilePrefix:'',tileImage:null,fadeSpeed:250,slideSpeed:350,mouseover:function(ev){getTile(this).stop().animate({opacity:1},settings.fadeSpeed);},mouseout:function(ev,tile){tile.stop().animate({opacity:0.5},settings.fadeSpeed,null,function(){this.removeAttribute('style');});},tileoff:function(tile){tile.stop().animate({opacity:0.5},settings.fadeSpeed,null,function(){this.removeAttribute('style');});}},currentItem={link:null,tile:null},events,elementCache={$Sidebar:$('#Sidebar'),$SubNav:$('#SubNav'),$Copy:$('#Copy')};function getIdentifier(id){var idSplit=id.split('-');return idSplit.slice(1,idSplit.length).join('-');}
function getTile(element){if(element.className.match(new RegExp(settings.tileClass))){return $(element);}
else{return $('#'+settings.tilePrefix+'-'+getIdentifier(element.id));}}
function getLink(element){if(element.className.match(new RegExp(settings.tileClass))){return $('#nav-'+getIdentifier(element.id));}
else{return $(element);}}
this.setCurrentItem=function(el){if(currentItem.tile&&currentItem.link){currentItem.tile.replaceClass('current','link').each(events.tileoff);currentItem.link.replaceClass('current','link');}
var tile=getTile(el),id=tile[0].id,identifier=getIdentifier(id);currentItem.tile=tile.replaceClass('link','current');currentItem.link=$('#nav-'+identifier).replaceClass('link','current');}
this.getPanel=function(){var href=currentItem.link.attr('href');if(href==undefined){return false;}
elementCache.$Sidebar.slideUp(settings.slideSpeed,function(){$.ajax({url:window.location.toString().replace(/#(.+?){0,}/g,'')+'ajax'+href,type:'get',data:{'ajax':true},success:function(data){var newSidebar=$(data).hide();elementCache.$Sidebar.replaceWith(newSidebar);elementCache.$Sidebar=newSidebar;newSidebar=null;elementCache.$Sidebar.stop(true,true).slideDown(settings.slideSpeed);window.location.hash=settings.tilePrefix+':'+getIdentifier(currentItem.link[0].id);},error:function(xhr){window.location.replace(href);}});});return false;}
settings=$.extend(settings,userSettings);events={mouseover:function(ev){var tile=getTile(this);getLink(this).replaceClass('link','current');settings.mouseover.call(this,ev,tile);},mouseout:function(ev){var tile=getTile(this);if(tile.hasClass('current')){return;}
getLink(this).replaceClass('current','link');settings.mouseout.call(this,ev,tile);},click:function(ev){if(getTile(this).hasClass('current')){return false;}
self.setCurrentItem(this);self.getPanel();ev.preventDefault();return false;},tileoff:function(){settings.tileoff($(this));}};settings.tileImage='a.'+settings.tileClass;elementCache.$Copy.delegate(settings.tileImage,'mouseover',events.mouseover).delegate(settings.tileImage,'mouseout',events.mouseout).delegate(settings.tileImage,'click',events.click);elementCache.$SubNav.delegate('a','mouseover',events.mouseover).delegate('a','mouseout',events.mouseout).delegate('a','click',events.click);currentCheck=$('a.current',elementCache.$SubNav);if(currentCheck.length){this.setCurrentItem(currentCheck[0]);}
goToHashLink();function goToHashLink(){if(hash){parts=hash.split(':');if(parts[0]=='#'+settings.tilePrefix){triggerLink=$('#nav-'+parts[1]);if(triggerLink.length){triggerLink.mouseover().click();}
else{window.location.hash='';}}}}
$(window).hashchange(function(){hash=window.location.hash;goToHashLink();});}
switch(document.body.className.split(' ')[0]){case'PeopleHolder':case'PeoplePage':new MFader({tileClass:'photo',tilePrefix:'person'});break;case'ClientHolder':case'ClientPage':new MFader({tileClass:'client',tilePrefix:'client',mouseover:function(ev,tile){tile.stop().animate({backgroundColor:'#b2b2b2'},250);},mouseout:function(ev,tile){tile.stop().animate({backgroundColor:'#f2f2f2'},250);},tileoff:function(tile){tile.stop().animate({backgroundColor:'#f2f2f2'},250);}});break;case'FAQPage':$('#FAQItems div.FAQItem h4 a').click(function(ev){var $this=$(this);$('#'+$this.attr('href').split('#')[1]).slideToggle('fast');ev.preventDefault();return false;});break;case'ContactPage':loadMap();break;case'PressHolder':$('#PressReleases ul a, #Articles ul a').attr('target','_blank');break;}
$('a.action.pdfFile').attr('target','_blank').click(function(){return confirm('This will open a PDF file in a new window which might take some time. Are you sure you wish to continue?');});$slideHolder=$('div.slideHolder');if($slideHolder.length){sliderObj={slideHolder:$slideHolder,ulWidth:null,numSlides:null,$nextButton:null,$prevButton:null,$slides:null,$currentSlide:null,$nextSlide:null,$prevSlide:null,$firstSlide:null,$lastSlide:null,isAnimating:false,isValidDir:function(dir){return dir=='next'||dir=='prev';},positionSlide:function(slide,dir){if(this.isValidDir(dir)){var width=dir=='prev'?-this.ulWidth:this.ulWidth;slide.css({left:width});}
return this;},positionNextSlide:function(slide){return this.positionSlide(slide,'next');},positionPrevSlide:function(slide){return this.positionSlide(slide,'prev');},prevClickEvent:function(){if(!this.isAnimating){this.isAnimating=true;var length=this.numSlides;if(length>1){this.positionPrevSlide(this.$prevSlide).animateSlideRight([this.$currentSlide,this.$prevSlide]).redefineSlides('prev');}}
return false;},nextClickEvent:function(){if(!this.isAnimating){this.isAnimating=true;var length=this.numSlides;if(length>1){this.positionNextSlide(this.$nextSlide).animateSlideLeft([this.$currentSlide,this.$nextSlide]).redefineSlides('next');}}
return false;},getNextItem:function(){var next=this.$currentSlide.next();if(!next.length){next=this.$firstSlide;}
return next;},getPrevItem:function(){var prev=this.$currentSlide.prev();if(!prev.length){prev=this.$lastSlide;}
return prev;},redefineSlides:function(dir){if(this.isValidDir(dir)){this.$currentSlide.removeClass('current');this.$currentSlide=this['$'+dir+'Slide'].addClass('current');this.$nextSlide=this.getNextItem();this.$prevSlide=this.getPrevItem();}
return this;},animateSlide:function(slide,dir){if(this.isValidDir(dir)&&slide instanceof Array){var operator=dir=='prev'?'-=':'+=';var self=this;for(var i in slide){slide[i].animate({left:operator+this.ulWidth},{duration:'slow',complete:function(){self.isAnimating=false;}});$('#Testimonials').children(':visible').fadeOut(200,function(){$('#testimonial-'+slide[1][0].id.split('-').slice(1).join('-')).fadeIn(200);});}}
return this;},animateSlideLeft:function(slide){return this.animateSlide(slide,'prev');},animateSlideRight:function(slide){return this.animateSlide(slide,'next');},hideButtons:function(){this.slideHolder.addClass('single');return this;},init:function(){var self=this,i=0;this.$ul=this.slideHolder.children('ul');this.$slides=this.$ul.children('li');this.numSlides=this.$slides.length;this.$nextButton=this.slideHolder.children('a.next');this.$prevButton=this.slideHolder.children('a.prev');if(this.numSlides>1){this.ulWidth=this.$ul.width();this.$firstSlide=this.$slides.first();this.$lastSlide=this.$slides.last();this.$currentSlide=this.$firstSlide;this.$nextSlide=this.getNextItem();this.$prevSlide=this.getPrevItem();this.$slides.slice(1,-1).each(function(index2,value){self.positionNextSlide($(value));});this.positionPrevSlide(this.$prevSlide);$('#Testimonials').children(':first').show();this.$slides.find('img').each(function(){var $this=$(this);$this.css('margin-top',-$this.height()/2);});this.$nextButton.click(function(){return self.nextClickEvent();});this.$prevButton.click(function(){return self.prevClickEvent();});}
else if(this.numSlides){this.hideButtons();}
return this;}}
sliderObj.init();window.setInterval(function(){sliderObj.nextClickEvent();},10000)}
var $gallery=$('#Gallery');if($gallery.length){var toggle=$('.toggle-controls > a').closest('div.toggleable');for(var i=0;i<=toggle.length;i++){var toggleVar=toggle[i];toggleContent=$(toggleVar).find('.toggle-content');cHeight=toggleContent.height();childrenLength=toggleContent.children().length;dHeight=$(toggleVar).height();cntrl=$(toggleVar).find('.toggle-controls');if(cHeight<=dHeight||childrenLength<=3){cntrl.remove();}}
$gallery.delegate('.toggle-controls > a','click',function(ev){var link=$(this),intro=link.closest('div.intro'),toggleable=intro.find('div.toggleable'),content=toggleable.find('.toggle-content'),controls=toggleable.find('.toggle-controls'),contentHeight=content.height();defaultHeight=intro.height();ev.preventDefault();if(intro.hasClass('collapsed')){toggleable.animate({height:contentHeight});intro.removeClass('collapsed').addClass('expanded');controls.find('a').replaceWith('<a href="#">Less</a>');}else{toggleable.animate({height:defaultHeight});intro.removeClass('expanded').addClass('collapsed');controls.find('a').replaceWith('<a href="#">More &raquo;</a>');}});};});});var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-5532417-34']);_gaq.push(['_trackPageview']);(function(){var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.src=('https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(ga);})();
;
/****** FILE: mysite/javascript/swfobject.js *****/

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){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"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();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},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[_16.length]=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");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_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");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_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(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?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(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
;
/****** FILE: mysite/javascript/AC_RunActiveContent.js *****/

var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion()
{var version;var axo;var e;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version=axo.GetVariable("$version");}catch(e){}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version="WIN 6,0,21,0";axo.AllowScriptAccess="always";version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version="WIN 3,0,18,0";}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");version="WIN 2,0,0,11";}catch(e){version=-1;}}
return version;}
function GetSwfVer(){var flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");var versionMajor=tempArrayMajor[0];var versionMinor=tempArrayMajor[1];var versionRevision=descArray[3];if(versionRevision==""){versionRevision=descArray[4];}
if(versionRevision[0]=="d"){versionRevision=versionRevision.substring(1);}else if(versionRevision[0]=="r"){versionRevision=versionRevision.substring(1);if(versionRevision.indexOf("d")>0){versionRevision=versionRevision.substring(0,versionRevision.indexOf("d"));}}
var flashVer=versionMajor+"."+versionMinor+"."+versionRevision;}}
else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1)flashVer=4;else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1)flashVer=3;else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1)flashVer=2;else if(isIE&&isWin&&!isOpera){flashVer=ControlVersion();}
return flashVer;}
function DetectFlashVer(reqMajorVer,reqMinorVer,reqRevision)
{versionStr=GetSwfVer();if(versionStr==-1){return false;}else if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",");}else{versionArray=versionStr.split(".");}
var versionMajor=versionArray[0];var versionMinor=versionArray[1];var versionRevision=versionArray[2];if(versionMajor>parseFloat(reqMajorVer)){return true;}else if(versionMajor==parseFloat(reqMajorVer)){if(versionMinor>parseFloat(reqMinorVer))
return true;else if(versionMinor==parseFloat(reqMinorVer)){if(versionRevision>=parseFloat(reqRevision))
return true;}}
return false;}}
function AC_AddExtension(src,ext)
{if(src.indexOf('?')!=-1)
return src.replace(/\?/,ext+'?');else
return src+ext;}
function AC_Generateobj(objAttrs,params,embedAttrs)
{var str='';if(isIE&&isWin&&!isOpera)
{str+='<object ';for(var i in objAttrs)
{str+=i+'="'+objAttrs[i]+'" ';}
str+='>';for(var i in params)
{str+='<param name="'+i+'" value="'+params[i]+'" /> ';}
str+='</object>';}
else
{str+='<embed ';for(var i in embedAttrs)
{str+=i+'="'+embedAttrs[i]+'" ';}
str+='> </embed>';}
document.write(str);}
function AC_FL_RunContent(){var ret=AC_GetArgs
(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_SW_RunContent(){var ret=AC_GetArgs
(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_GetArgs(args,ext,srcParamName,classid,mimeType){var ret=new Object();ret.embedAttrs=new Object();ret.params=new Object();ret.objAttrs=new Object();for(var i=0;i<args.length;i=i+2){var currArg=args[i].toLowerCase();switch(currArg){case"classid":break;case"pluginspage":ret.embedAttrs[args[i]]=args[i+1];break;case"src":case"movie":args[i+1]=AC_AddExtension(args[i+1],ext);ret.embedAttrs["src"]=args[i+1];ret.params[srcParamName]=args[i+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblclick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":ret.objAttrs[args[i]]=args[i+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":ret.embedAttrs[args[i]]=ret.objAttrs[args[i]]=args[i+1];break;default:ret.embedAttrs[args[i]]=ret.params[args[i]]=args[i+1];}}
ret.objAttrs["classid"]=classid;if(mimeType)ret.embedAttrs["type"]=mimeType;return ret;}
;

