jQuery.cookie=function(k,a,c){if(typeof a!="undefined"){c=c||{};if(a===null){a="";c.expires=-1}var b="";if(c.expires&&(typeof c.expires=="number"||c.expires.toUTCString)){var f;if(typeof c.expires=="number"){f=new Date();f.setTime(f.getTime()+(c.expires*24*60*60*1000))}else{f=c.expires}b="; expires="+f.toUTCString()}var g=c.path?"; path="+(c.path):"";var j=c.domain?"; domain="+(c.domain):"";var m=c.secure?"; secure":"";document.cookie=[k,"=",encodeURIComponent(a),b,g,j,m].join("")}else{var l=null;if(document.cookie&&document.cookie!=""){var h=document.cookie.split(";");for(var d=0;d<h.length;d++){var e=jQuery.trim(h[d]);if(e.substring(0,k.length+1)==(k+"=")){l=decodeURIComponent(e.substring(k.length+1));break}}}return l}};/* SWFObject v2.1 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var $so=function(){var UNDEF="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",win=window,doc=document,nav=navigator;regObjArr=[],objIdArr=[];var ua=function(){var w3cdom=typeof doc.getElementById!=UNDEF&&typeof doc.getElementsByTagName!=UNDEF&&typeof doc.createElement!=UNDEF,playerVersion=[0,0,0],d=null;if(typeof nav.plugins!=UNDEF&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;if(d&&!(typeof nav.mimeTypes!=UNDEF&&nav.mimeTypes[FLASH_MIME_TYPE]&&!nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof win.ActiveXObject!=UNDEF){var a=null,fp6Crash=false;try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".7")}catch(e){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".6");playerVersion=[6,0,21];a.AllowScriptAccess="always"}catch(e){if(playerVersion[0]==6){fp6Crash=true}}if(!fp6Crash){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX)}catch(e){}}}if(!fp6Crash&&a){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}}catch(e){}}}}var u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=false,windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u);
/*@cc_on
		ie = true;
		@if (@_win32)
		windows = true;
		@elif (@_mac)
				mac = true;
			@end
		@*/
return{w3cdom:w3cdom,pv:playerVersion,webkit:webkit,ie:ie,win:windows,mac:mac}}();function createSWF(attObj,parObj,id){var r,el;el=(typeof id.nodeName==UNDEF?getElementById(id):id);if(el){id=el.getAttribute("id");if(typeof attObj.id==UNDEF){attObj.id=id}if(ua.ie&&ua.win){var att="";for(var i in attObj){if(attObj[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){parObj.movie=attObj[i]}else{if(i.toLowerCase()=="styleclass"){att+=' class="'+attObj[i]+'"'}else{if(i.toLowerCase()!="classid"){att+=" "+i+'="'+attObj[i]+'"'}}}}}var par="";for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par+='<param name="'+j+'" value="'+parObj[j]+'" />'}}el.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+att+">"+par+"</object>";objIdArr[objIdArr.length]=attObj.id;r=getElementById(attObj.id)}else{if(ua.webkit&&ua.webkit<312){var e=createElement("embed");e.setAttribute("type",FLASH_MIME_TYPE);for(var k in attObj){if(attObj[k]!=Object.prototype[k]){if(k.toLowerCase()=="data"){e.setAttribute("src",attObj[k])}else{if(k.toLowerCase()=="styleclass"){e.setAttribute("class",attObj[k])}else{if(k.toLowerCase()!="classid"){e.setAttribute(k,attObj[k])}}}}}for(var l in parObj){if(parObj[l]!=Object.prototype[l]){if(l.toLowerCase()!="movie"){e.setAttribute(l,parObj[l])}}}el.parentNode.replaceChild(e,el);r=e}else{var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);for(var m in attObj){if(attObj[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){o.setAttribute("class",attObj[m])}else{if(m.toLowerCase()!="classid"){o.setAttribute(m,attObj[m])}}}}for(var n in parObj){if(parObj[n]!=Object.prototype[n]&&n.toLowerCase()!="movie"){createObjParam(o,n,parObj[n])}}el.parentNode.replaceChild(o,el);r=o}}}return r}function createObjParam(el,pName,pValue){var p=createElement("param");p.setAttribute("name",pName);p.setAttribute("value",pValue);el.appendChild(p)}function removeSWF(id){var obj=getElementById(id);if(obj&&(obj.nodeName=="OBJECT"||obj.nodeName=="EMBED")){if(ua.ie&&ua.win){if(obj.readyState==4){removeObjectInIE(id)}else{win.attachEvent("onload",function(){removeObjectInIE(id)})}}else{obj.parentNode.removeChild(obj)}}}function removeObjectInIE(id){var obj=getElementById(id);if(obj){for(var i in obj){if(typeof obj[i]=="function"){obj[i]=null}}obj.parentNode.removeChild(obj)}}function hasPlayerVersion(rv){var pv=ua.pv,v=rv.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10)||0;v[2]=parseInt(v[2],10)||0;return(pv[0]>v[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?true:false}function getElementById(id){var el=null;try{el=doc.getElementById(id)}catch(e){}return el}function createElement(el){return doc.createElement(el)}return{getFlashPlayerVersion:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]}},hasFlashPlayerVersion:hasPlayerVersion,createSWF:function(attObj,parObj,replaceElemIdStr){if(ua.w3cdom){return createSWF(attObj,parObj,replaceElemIdStr)}else{return undefined}},removeSWF:function(objElemIdStr){if(ua.w3cdom){removeSWF(objElemIdStr)}},expressInstallCallback:function(){alert("so")}}}();var _videoTimeout=null;function introEnds(){var a=$("#homeVideoContainer").css({display:"none"});if(a.length>0){animatePanel();_videoTimeout=setTimeout(function(){a.remove();_videoTimeout=null},120000)}}var g_flash=(function(){var f="flash";var a="dontask.flash";var c="express.flash";var j="10";var b="6.0.65";var e=function(){return g()&&$so.hasFlashPlayerVersion(b)};var i=function(){$.cookie(a,"yes")};var d=function(k,l,m){var n="/content/flash/expressInstall.swf";var o="MMredirectURL="+window.location+"&MMplayerType="+($.browser.msie?"ActiveX":"PlugIn")+"&MMdoctitle="+document.title;$so.createSWF({data:n,width:m,height:l},{menu:false,wmode:"transparent",loop:false,quality:"high",flashvars:o},k)};var h=function(){var m=$so.hasFlashPlayerVersion(j);var l=$(document.body);var k=l.hasClass(f);if(m&&!k){l.addClass(f)}else{if(!m){if(k){l.removeClass(f)}}}return m};var g=function(){return $.cookie(a)!="yes"};window.swfobject=function(){return{expressInstallCallback:function(){i();$(document).triggerHandler(c,[h()])}}}();$(document).ready(function(){h()});return{bindExpress:function(k){$(document).bind(c,k)},canUpgrade:e,dontAskAgain:i,express:d,isGood:h,shouldExpress:g}})();var g_intro=(function(){var f=503;var e=966;var b="/content/flash/intro.swf";var a="#main";var d=function(){$so.createSWF({data:b,height:f,width:e},{menu:false,wmode:"transparent",loop:true,quality:"high"},"homeVideo")};var c=function(){$("#homeVideoContainer").remove();animatePanel()};return{init:function(){if(_videoTimeout){clearTimeout(_videoTimeout);_videoTimeout=null}if($("#homeVideoContainer").length>0){$("#homeVideoContainer").remove()}var g=$('<div id="homeVideoContainer"><div id="homeVideo"></div></div>').appendTo(a).css({display:"block"});$("#main").css({visibility:"visible"});if(g_flash){if(!g_flash.isGood()){if(g_flash.canUpgrade()){g_flash.bindExpress(function(i,h){if(h){d()}else{c()}});g_flash.express("homeVideo",f,e)}else{c()}}else{d()}}else{d()}}}})();