function getAllChildren(a){return a.all?a.all:a.getElementsByTagName("*")}function checkToken(c,b,a){if(c==""){return true}else{if(c==">"){a=a.firstChild;while(a){if(a==b){return true}a=a.nextSibling}}else{if(c=="first-child"){a=a.firstChild;while(a.nodeName=="#text"){if(a.firstChild){a=a.firstChild}else{a=a.nextSibling}}if(a==b){return true}}else{if(c=="a"){if(b.nodeName=="A"){return true}}else{if(c=="+"){a=a.nextSibling;while(a){if(a==b){return true}a=a.nextSibling}}else{if(c.length>0){if(b.getAttribute(c[1])){if(c[2]==""&&b.getAttribute(c[1])==c[3]){return true}else{if((c[2]=="~"||c[2]=="|")&&b.getAttribute(c[1]).indexOf(c[3])>-1){return true}}}}}}}}}return false}getElementsBySelector=document.getElementsBySelector=function(m){if(!document.getElementsByTagName||typeof(m)!="string"){return Array()}var r=new Array();var t=m.split(",");for(var q=0;q<t.length;q++){var m=t[q].replace(/^\s+/,"").replace(/\s+$/,"");var s=m.split(" ");var e=new Array(this);var c="";for(var o=0;o<s.length;o++){var h=s[o].replace(/^\s+/,"").replace(/\s+$/,"");if(h.indexOf(">")>-1){c=">";continue}else{if(h.indexOf(":first-child")>-1){c="first-child";h=h.replace(/:first-child/g,"")}else{if(h.indexOf(":link")>-1){c="a";h=h.replace(":link","")}else{if(h.indexOf("+")>-1){c="+";continue}else{if(h.match(/^([a-zA-Z*]+)\[([a-zA-Z]+)([~\|]?)=.([^\]"]*).\]$/)){parts=h.match(/^([a-zA-Z*]+)\[([a-zA-Z]+)([~\|]?)=.([^\]"]*).\]$/);c=new Array("attribute",parts[2],parts[3],parts[4]);h=parts[1]}}}}}h=h.replace(":visited","").replace(":active","").replace(":hover","").replace(":focus","");if(h.indexOf("#")>-1){var f=h.split("#");if(f[1]==""){return Array()}if(f[0]==""){f[0]="*"}var d=new Array();for(var n=0;n<e.length;n++){if(c!="+"){var p=e[n].getElementById(f[1])}else{var p=e[n].parentNode.getElementById(f[1])}if(p&&p.nodeName&&(f[0]=="*"||p.nodeName.toLowerCase()==f[0].toLowerCase())){if(checkToken(c,p,e[n])){d[d.length]=p}}}e=d;continue}if(h.indexOf(".")>-1){var f=h.split(".");if(f[1]==""){return Array()}if(f[0]==""){f[0]="*"}var d=new Array();for(var n=0;n<e.length;n++){if(f[0]=="*"){if(c!="+"){var b=getAllChildren(e[n])}else{var b=getAllChildren(e[n].parentNode)}}else{if(c!="+"){var b=e[n].getElementsByTagName(f[0])}else{var b=e[n].parentNode.getElementsByTagName(f[0])}}for(var g=0;g<b.length;g++){if(b[g].className&&b[g].className.match(new RegExp("\\b"+f[1]+"\\b"))){if(checkToken(c,b[g],e[n])){d[d.length]=b[g]}}}}e=d;continue}var d=new Array();for(var n=0;n<e.length;n++){if(h=="*"){if(c!="+"){var b=getAllChildren(e[n])}else{if(c=="+"){var b=getAllChildren(e[n].parentNode)}}}else{if(c!="+"){var b=e[n].getElementsByTagName(h)}else{var b=e[n].parentNode.getElementsByTagName(h)}}for(var g=0;g<b.length;g++){if(checkToken(c,b[g],e[n])){d[d.length]=b[g]}}}e=d;c=""}r=e}var a=new Array();for(q=0;q<r.length;q++){for(o=0;o<r.length;o++){if(r[q]==r[o]&&q!=o){r[o]=""}}if(r[q]!=""){a[a.length]=r[q]}}return a};function swfirController(){this.swfirs=new Array();this.addswfir=function(a){var b=this.swfirs.length;this.swfirs[b]=a;return b};this.getswfirs=function(){return this.swfirs};this.getNextId=function(){return this.swfirs.length};this.resize=function(c,b,a){if(this.swfirs[c].elasticityWidth==false){this.swfirs[c].setAttribute("width",b);this.swfirs[c].style.width=b+"px"}this.swfirs[c].setAttribute("height",a);this.swfirs[c].style.height=a+"px"}}var firController=new swfirController();function swfir(){this.name="swfir";this.version="1.1.1";this.debug=false;this.params=new Array();this.background="";this.src="swfir.swf";this.wmode="transparent";this.elasticityWidth=false;this.specify=function(b,c){if(b=="debug"){if(c==true||c=="true"){this.debug=true}else{this.debug=false}return}if(b=="wmode"){this.wmode=c}if(b=="background-color"){this.background=this.cleanColor(c);return}if(b=="border-color"||b=="shadow-color"){c=this.cleanColor(c,"flash")}if(b=="shadow-blur"){this.params.shadowBlurX=c;this.params.shadowBlurY=c;acceptableFound=true}if(b=="border-radius"||b=="border-width"||b=="border-alpha"||b=="shadow-blur-x"||b=="shadow-blur-y"){c=parseFloat(c);if((c==NaN||c=="NaN")&&this.debug==true){this.error("'"+b+"' must be a number.  Please make sure in your source there are no quotes (\") around the number.")}}if(b=="rotate"&&Number(c)<0){c=360+Number(c)}if(b=="src"){this.src=c;return}if(b=="elasticity"){if(parseFloat(c)){this.elasticityWidth=c}else{var a=document.createElement("div");a.style.position="absolute";a.style.left="-10em";a.style.width="1em";a.style.height="1em";document.body.appendChild(a);this.elasticityWidth=a.offsetHeight;a.parentNode.removeChild(a)}return}var d=new Array();d["border-radius"]="borderRadius";d["border-width"]="borderWidth";d["border-color"]="borderColor";d["shadow-offset"]="shadowOffset";d["shadow-angle"]="shadowAngle";d["shadow-alpha"]="shadowAlpha";d["shadow-blur-x"]="shadowBlurX";d["shadow-blur-y"]="shadowBlurY";d["shadow-strength"]="shadowStrength";d["shadow-color"]="shadowColor";d["shadow-quality"]="shadowQuality";d["shadow-inner"]="shadowInner";d["shadow-knockout"]="shadowKnockout";d["shadow-hide"]="shadowHide";d.rotate="rotate";d.overflow="overflow";d.link="link";this.params[d[b]]=c};this.swap=function(j){if(typeof(j).toLowerCase()=="string"){var b=document.getElementsBySelector(j)}else{if(j.nodeName){var b=[j]}else{if(j.length!=0){var b=j}}}if(this.hasImg(b)==false){var b=document.getElementsBySelector(j+" img");if(this.hasImg(b)==false&&this.debug==true){this.error("No images were selected with the selector '"+j+"'");return}}for(var k=0;k<b.length;k++){var e="";var l="";var c="";var f="";var o="";var p="";var a=this.src;var h="";if(b[k].getAttribute("id")){e=b[k].getAttribute("id")}if(b[k].className!=""){l=b[k].className+" swfir"}else{l="swfir"}if(this.background!=""){p=this.background}if(b[k].getAttribute("style")){if(b[k].style.cssText&&b[k].style.cssText!=""){c+=b[k].style.cssText+";"}else{if(typeof b[k].getAttribute("style")=="string"){c+=b[k].getAttribute("style")}}}f=b[k].width;o=b[k].height;if(this.elasticityWidth!=false){if(c!=""){c+=" "}c+="width:"+(f/this.elasticityWidth)+"em;"}else{if(b[k].getAttribute("width",2)){if(c!=""){c+=" "}c+="width:"+b[k].getAttribute("width",2)+";"}if(b[k].getAttribute("height",2)){if(c!=""){c+=" "}c+="height:"+b[k].getAttribute("height",2)+";"}}this.params.srcWidth=f;this.params.srcHeight=o;var d="";for(var n in this.params){d+=("&"+n+"="+this.params[n])}if((elementLink=this.withinLink(b[k]))!=false&&!this.params.link){d+="&link="+elementLink.href.replace(/\?/g,"%3F").replace(/&/g,"%26")}h="url="+b[k].src+d+"&swfirId="+firController.getNextId();var m=document.createElement("span");if(e){m.setAttribute("id",e)}if(l){m.className=l}b[k].parentNode.insertBefore(m,b[k]);m.appendChild(b[k].parentNode.removeChild(b[k]));var g=new SWFObject(this.src,"swfir"+firController.getNextId(),f,o,"6",this.bgcolor);if(c!=""){g.setAttribute("style",c)}g.addParam("flashvars",h);g.addParam("menu","false");g.addParam("wmode",this.wmode);g.write(m);firController.addswfir(m.firstChild)}};this.cleanColor=function(a,b){a=a.replace(/^0x/,"");a=a.replace(/^#/,"");if(a.length=="3"){a=a.substring(0,1)+a.substring(0,1)+a.substring(1,2)+a.substring(1,2)+a.substring(2,3)+a.substring(2,3)}if(b=="flash"){a="0x"+a}else{a="#"+a}return a};this.hasImg=function(b){for(var a=0;a<b.length;a++){if(b[a].nodeName=="IMG"){return true}}return false};this.withinLink=function(a){while(a.nodeName!="A"){if(a.parentNode){a=a.parentNode}else{return false}}return a};this.error=function(a){alert(this.name+" "+this.version+" Error\n\n"+a)}}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(n,b,o,e,j,l,g,f,d,m,k){if(!document.getElementById){return}this.DETECT_KEY=k?k:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(n){this.setAttribute("swf",n)}if(b){this.setAttribute("id",b)}if(o){this.setAttribute("width",o)}if(e){this.setAttribute("height",e)}if(j){this.setAttribute("version",new deconcept.PlayerVersion(j.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(l){this.addParam("bgcolor",l)}var a=f?f:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",g);this.setAttribute("doExpressInstall",false);var i=(d)?d:window.location;this.setAttribute("xiRedirectUrl",i);this.setAttribute("redirectUrl","");if(m){this.setAttribute("redirectUrl",m)}};deconcept.SWFObject.prototype={setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c.push(b+"="+a[b])}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn")}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"  style="'+this.getAttribute("style")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var f=this.getParams();for(var e in f){b+=[e]+'="'+f[e]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){b+='flashvars="'+d+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX")}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"  style="'+this.getAttribute("style")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var e in c){b+='<param name="'+e+'" value="'+c[e]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!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 c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var d=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){d=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(c){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");d=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(c){if(d.major==6){return d}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(c){}}if(b!=null){d=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}return d};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(a){var d=document.location.search||document.location.hash;if(d){var c=d.substring(1).split("&");for(var b=0;b<c.length;b++){if(c[b].substring(0,c[b].indexOf("="))==a){return c[b].substring((c[b].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return}var c=document.getElementsByTagName("OBJECT");for(var b=0;b<c.length;b++){c[b].style.display="none";for(var a in c[b]){if(typeof c[b][a]=="function"){c[b][a]=function(){}}}}};deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};if(typeof window.onunload=="function"){var a=window.onunload;window.onunload=function(){deconcept.SWFObjectUtil.cleanupSWFs();a()}}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs}};if(typeof window.onbeforeunload=="function"){var oldBeforeUnload=window.onbeforeunload;window.onbeforeunload=function(){deconcept.SWFObjectUtil.prepUnload();oldBeforeUnload()}}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload}if(Array.prototype.push==null){Array.prototype.push=function(a){this[this.length]=a;return this.length}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;function setPageHeight(){document.getElementById("page").style.height="100%";var a=(document.documentElement?document.documentElement:document.body).scrollHeight;if(a<document.body.scrollHeight){a=document.body.scrollHeight}document.getElementById("page").style.height=a+"px"}function footerShowItems(){var c=document.getElementById("fmenu1").getElementsByTagName("UL")[0];var a=[];for(var b=0;b<c.childNodes.length;b++){if(c.childNodes[b].tagName=="LI"){a.push(c.childNodes[b])}}for(var b=0;b<arguments.length;b++){a[arguments[b]-1].style.display="block"}}function quoteShowRandom(c){var a=document.getElementsByClassName("item",document.getElementById(c));var b=Math.floor(Math.random()*a.length);a[b].style.display="block"}AddToInitArray(function(){var b;var a=document.getElementById("frame1img");if(a){b=new swfir();b.specify("src","/css/q-ray/gfx/swfir.swf");b.specify("rotate","-12");document.getElementById("frame1img").style.visibility="visible";b.swap("#frame1img");document.getElementById("frame1img").style.visibility="visible"}a=document.getElementById("frame2img");if(a){b=new swfir();b.specify("src","/css/q-ray/gfx/swfir.swf");b.specify("rotate","-6.5");document.getElementById("frame2img").style.visibility="visible";b.swap("#frame2img");document.getElementById("frame2img").style.visibility="visible"}a=document.getElementById("frame3img");if(a){b=new swfir();b.specify("src","/css/q-ray/gfx/swfir.swf");b.specify("rotate","12");document.getElementById("frame3img").style.visibility="visible";b.swap("#frame3img");document.getElementById("frame3img").style.visibility="visible"}a=document.getElementById("frame4img");if(a){b=new swfir();b.specify("src","/css/q-ray/gfx/swfir.swf");b.specify("rotate","-7");document.getElementById("frame4img").style.visibility="visible";b.swap("#frame4img");document.getElementById("frame4img").style.visibility="visible"}a=document.getElementById("framefooterimg");if(a){b=new swfir();b.specify("src","/css/q-ray/gfx/swfir.swf");b.specify("rotate","7");document.getElementById("framefooterimg").style.visibility="visible";b.swap("#framefooterimg");document.getElementById("framefooterimg").style.visibility="visible"}if(!inCMS()){b=new swfir();b.specify("src","/css/q-ray/gfx/swfir.swf");b.specify("rotate","-2");b.swap("#tekst .image")}});if(window.opera){document.documentElement.className+=" opera"}if(navigator.userAgent.toLowerCase().indexOf("firefox")>-1){document.documentElement.className+=" firefox"}if(navigator.userAgent.toLowerCase().indexOf("msie")>-1){document.documentElement.className+=" ie"}var dw_Event={add:function(d,c,a,b){b=b||false;if(d.addEventListener){d.addEventListener(c,a,b)}else{if(d.attachEvent){d.attachEvent("on"+c,a)}}},remove:function(d,c,a,b){b=b||false;if(d.removeEventListener){d.removeEventListener(c,a,b)}else{if(d.detachEvent){d.detachEvent("on"+c,a)}}},DOMit:function(a){a=a?a:window.event;if(!a.target){a.target=a.srcElement}if(!a.preventDefault){a.preventDefault=function(){a.returnValue=false;return false}}if(!a.stopPropagation){a.stopPropagation=function(){a.cancelBubble=true}}return a},getTarget:function(a){a=dw_Event.DOMit(a);var b=a.target;if(b.nodeType!=1){b=b.parentNode}return b}};function addLoadEvent(a){var b=window.onload?window.onload:function(){};window.onload=function(){b();a()}}function dw_scrollObj(d,c,a){var b=document.getElementById(d);this.id=d;dw_scrollObj.col[this.id]=this;this.animString="dw_scrollObj.col."+this.id;this.load(c,a);if(b.addEventListener){b.addEventListener("DOMMouseScroll",dw_scrollObj.doOnMouseWheel,false)}b.onmousewheel=dw_scrollObj.doOnMouseWheel}dw_scrollObj.printEnabled=false;dw_scrollObj.defaultSpeed=dw_scrollObj.prototype.speed=100;dw_scrollObj.defaultSlideDur=dw_scrollObj.prototype.slideDur=500;dw_scrollObj.isSupported=function(){if(document.getElementById&&document.getElementsByTagName&&document.addEventListener||document.attachEvent){return true}return false};dw_scrollObj.col={};dw_scrollObj.prototype.on_load=function(){};dw_scrollObj.prototype.on_scroll=function(){};dw_scrollObj.prototype.on_scroll_start=function(){};dw_scrollObj.prototype.on_scroll_stop=function(){};dw_scrollObj.prototype.on_scroll_end=function(){};dw_scrollObj.prototype.on_update=function(){};dw_scrollObj.prototype.on_glidescroll=function(){};dw_scrollObj.prototype.on_glidescroll_start=function(){};dw_scrollObj.prototype.on_glidescroll_stop=function(){};dw_scrollObj.prototype.on_glidescroll_end=function(){};dw_scrollObj.prototype.load=function(d,a){var c,b;if(this.lyrId){b=document.getElementById(this.lyrId);b.style.visibility="hidden"}this.lyr=b=document.getElementById(d);if(!dw_scrollObj.printEnabled){this.lyr.style.position="absolute"}this.lyrId=d;this.horizId=a||null;c=document.getElementById(this.id);this.y=0;this.x=0;this.shiftTo(0,0);this.getDims(c,b);b.style.visibility="visible";this.ready=true;this.on_load()};dw_scrollObj.prototype.shiftTo=function(a,b){if(this.lyr){this.lyr.style.left=(this.x=a)+"px";this.lyr.style.top=(this.y=b)+"px"}};dw_scrollObj.prototype.getX=function(){return this.x};dw_scrollObj.prototype.getY=function(){return this.y};dw_scrollObj.prototype.getDims=function(b,a){this.wd=this.horizId?document.getElementById(this.horizId).offsetWidth:a.offsetWidth;this.maxX=(this.wd-b.offsetWidth>0)?this.wd-b.offsetWidth:0;this.maxY=(a.offsetHeight-b.offsetHeight>0)?a.offsetHeight-b.offsetHeight:0};dw_scrollObj.prototype.updateDims=function(){var b=document.getElementById(this.id);var a=document.getElementById(this.lyrId);this.getDims(b,a);this.on_update()};dw_scrollObj.prototype.initScrollVals=function(a,b){if(!this.ready){return}if(this.timerId){clearInterval(this.timerId);this.timerId=0}this.speed=b||dw_scrollObj.defaultSpeed;this.fx=(a==0)?-1:(a==180)?1:0;this.fy=(a==90)?1:(a==270)?-1:0;this.endX=(a==90||a==270)?this.x:(a==0)?-this.maxX:0;this.endY=(a==0||a==180)?this.y:(a==90)?0:-this.maxY;this.lyr=document.getElementById(this.lyrId);this.lastTime=new Date().getTime();this.on_scroll_start(this.x,this.y);this.timerId=setInterval(this.animString+".scroll()",10)};dw_scrollObj.prototype.scroll=function(){var b=new Date().getTime();var c=(b-this.lastTime)/1000*this.speed;if(c>0){var a=this.x+Math.round(this.fx*c);var e=this.y+Math.round(this.fy*c);if((this.fx==-1&&a>-this.maxX)||(this.fx==1&&a<0)||(this.fy==-1&&e>-this.maxY)||(this.fy==1&&e<0)){this.lastTime=b;this.shiftTo(a,e);this.on_scroll(a,e)}else{clearInterval(this.timerId);this.timerId=0;this.shiftTo(this.endX,this.endY);this.on_scroll(this.endX,this.endY);this.on_scroll_end(this.endX,this.endY)}}};dw_scrollObj.prototype.ceaseScroll=function(){if(!this.ready){return}if(this.timerId){clearInterval(this.timerId);this.timerId=0}this.on_scroll_stop(this.x,this.y)};dw_scrollObj.prototype.initScrollByVals=function(b,a,c){if(!this.ready||this.sliding){return}this.startX=this.x;this.startY=this.y;this.destX=this.destY=this.distX=this.distY=0;if(a<0){this.distY=(this.startY+a>=-this.maxY)?a:-(this.startY+this.maxY)}else{if(a>0){this.distY=(this.startY+a<=0)?a:-this.startY}}if(b<0){this.distX=(this.startX+b>=-this.maxX)?b:-(this.startX+this.maxX)}else{if(b>0){this.distX=(this.startX+b<=0)?b:-this.startX}}this.destX=this.startX+this.distX;this.destY=this.startY+this.distY;this.glideScrollPrep(this.destX,this.destY,c)};dw_scrollObj.prototype.initScrollToVals=function(b,a,c){if(!this.ready||this.sliding){return}this.startX=this.x;this.startY=this.y;this.destX=-Math.max(Math.min(b,this.maxX),0);this.destY=-Math.max(Math.min(a,this.maxY),0);this.distY=this.destY-this.startY;this.distX=this.destX-this.startX;this.glideScrollPrep(this.destX,this.destY,c)};dw_scrollObj.prototype.glideScrollPrep=function(b,a,c){this.slideDur=(typeof c=="number")?c:dw_scrollObj.defaultSlideDur;this.per=Math.PI/(2*this.slideDur);this.sliding=true;this.lyr=document.getElementById(this.lyrId);this.startTime=new Date().getTime();this.timerId=setInterval(this.animString+".doGlideScroll()",10);this.on_glidescroll_start(this.startX,this.startY)};dw_scrollObj.prototype.doGlideScroll=function(){var b=new Date().getTime()-this.startTime;if(b<this.slideDur){var a=this.startX+Math.round(this.distX*Math.sin(this.per*b));var c=this.startY+Math.round(this.distY*Math.sin(this.per*b));this.shiftTo(a,c);this.on_glidescroll(a,c)}else{clearInterval(this.timerId);this.timerId=0;this.sliding=false;this.shiftTo(this.destX,this.destY);this.on_glidescroll(this.destX,this.destY);this.on_glidescroll_stop(this.destX,this.destY);if(this.distX&&(this.destX==0||this.destX==-this.maxX)||this.distY&&(this.destY==0||this.destY==-this.maxY)){this.on_glidescroll_end(this.destX,this.destY)}}};dw_scrollObj.handleMouseWheel=function(f,e){var b=dw_scrollObj.col[f];var a=b.x;var d=b.y;b.on_scroll_start(a,d);var c;c=12*e+d;c=(c<0&&c>=-b.maxY)?c:(c<-b.maxY)?-b.maxY:0;b.shiftTo(a,c);b.on_scroll(a,c)};dw_scrollObj.doOnMouseWheel=function(a){var b=0;if(!a){a=window.event}if(a.wheelDelta){b=a.wheelDelta/120}else{if(a.detail){b=-a.detail/3}}if(b){dw_scrollObj.handleMouseWheel(this.id,b)}if(a.preventDefault){a.preventDefault()}a.returnValue=false};dw_scrollObj.GeckoTableBugFix=function(){};function dw_getLayerOffset(d,c,b){var f="offset"+b.charAt(0).toUpperCase()+b.slice(1);var e=d[f];while((d=d.offsetParent)!=c){e+=d[f]}var a=f.replace("offset","client");if(d[a]){e+=d[a]}return e}dw_writeStyleSheet=function(c,a){var b='<link rel="stylesheet" href="'+c+'"';if(a!==false){b+=' media="screen"'}document.write(b+" />")};function dw_addLinkCSS(b,a){if(!document.createElement){return}var c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("type","text/css");if(a!==false){c.setAttribute("media","screen")}c.setAttribute("href",b);document.getElementsByTagName("head")[0].appendChild(c)}dw_scrollObj.prototype.setUpLoadLinks=function(d){var c=this.id;var b=document.getElementById(d);var g=b.getElementsByTagName("a");var j,e;for(var f=0;g[f];f++){j=dw_scrollObj.get_DelimitedClass(g[f].className);e=j.split("_");if(e[0]=="load"&&e[1]==c&&e.length>2){var a=e[2];var h=e[3]?e[3]:null;dw_Event.add(g[f],"click",function(l,k,i){return function(m){dw_scrollObj.col[l].load(k,i);if(m&&m.preventDefault){m.preventDefault()}return false}}(c,a,h))}}};dw_scrollObj.prototype.setUpScrollControls=function(e,g,c){var b=this.Id;b="wn";var a=document.getElementById(e);if(g&&c=="v"||c=="h"){dw_scrollObj.handleControlVis(e,b,c);dw_Scrollbar_Co.addEvent(this,"on_load",function(){dw_scrollObj.handleControlVis(e,b,c)});dw_Scrollbar_Co.addEvent(this,"on_update",function(){dw_scrollObj.handleControlVis(e,b,c)})}var h=a.getElementsByTagName("a"),j,d;for(var f=0;h[f];f++){j=dw_scrollObj.get_DelimitedClass(h[f].className);d=dw_scrollObj.getEv_FnType(j.slice(0,j.indexOf("_")));switch(d){case"mouseover":case"mousedown":dw_scrollObj.handleMouseOverDownLinks(h[f],b,j);break;case"scrollToId":dw_scrollObj.handleScrollToId(h[f],b,j);break;case"scrollTo":case"scrollBy":case"click":dw_scrollObj.handleClick(h[f],b,j);break}}};dw_scrollObj.handleMouseOverDownLinks=function(h,c,j){var g=j.split("_");var e=g[0];var i=/^(mouseover|mousedown)_(up|down|left|right)(_[\d]+)?$/;if(i.test(j)){var b=(e=="mouseover")?"mouseout":"mouseup";var f=g[1];var d=g[2]||null;var a=(f=="up")?90:(f=="down")?270:(f=="left")?180:0;dw_Event.add(h,e,function(k){dw_scrollObj.col[c].initScrollVals(a,d)});dw_Event.add(h,b,function(k){dw_scrollObj.col[c].ceaseScroll()});if(e=="mouseover"){dw_Event.add(h,"mousedown",function(k){dw_scrollObj.col[c].speed*=3});dw_Event.add(h,"mouseup",function(k){dw_scrollObj.col[c].speed=dw_scrollObj.prototype.speed})}dw_Event.add(h,"click",function(k){if(k&&k.preventDefault){k.preventDefault()}return false})}};dw_scrollObj.handleScrollToId=function(b,f,a){var e=a.split("_");var g=e[1],d,c;if(e[2]){if(isNaN(parseInt(e[2]))){d=e[2];c=(e[3]&&!isNaN(parseInt(e[3])))?parseInt(e[3]):null}else{c=parseInt(e[2])}}dw_Event.add(b,"click",function(h){dw_scrollObj.scrollToId(f,g,d,c);if(h&&h.preventDefault){h.preventDefault()}return false})};dw_scrollObj.scrollToId=function(e,c,a,b){var f=dw_scrollObj.col[e];var d=document.getElementById(c);if(d){if(a){if(document.getElementById(a)&&f.lyrId!=a){f.load(a)}}var g=document.getElementById(f.lyrId);var i=dw_getLayerOffset(d,g,"left");var h=dw_getLayerOffset(d,g,"top");f.initScrollToVals(i,h,b)}};dw_scrollObj.handleClick=function(k,c,m){var d=dw_scrollObj.col[c];var f=m.split("_");var e=f[0];var g=/^([\d]+)$/;var i,l,j,h,a;switch(e){case"scrollTo":i="scrollTo";l=/^(null|end|[\d]+)$/;j=l.test(f[1])?f[1]:"";h=l.test(f[2])?f[2]:"";a=(f[3]&&g.test(f[3]))?f[3]:null;break;case"scrollBy":i="scrollBy";l=/^(([m]?[\d]+)|null)$/;j=l.test(f[1])?f[1]:"";h=l.test(f[2])?f[2]:"";if(!isNaN(parseInt(j))){j=-parseInt(j)}else{if(typeof j=="string"){j=j.indexOf("m")!=-1?j.replace("m",""):j}}if(!isNaN(parseInt(h))){h=-parseInt(h)}else{if(typeof h=="string"){h=h.indexOf("m")!=-1?h.replace("m",""):h}}a=(f[3]&&g.test(f[3]))?f[3]:null;break;case"click":var b=dw_scrollObj.getClickParts(m);i=b.fn;j=b.x;h=b.y;a=b.dur;break}if(j!==""&&h!==""){if(j=="end"){j=d.maxX}if(h=="end"){h=d.maxY}if(j==="null"||j===null){j=d.x}if(h==="null"||h===null){h=d.y}j=parseInt(j);h=parseInt(h);a=!isNaN(parseInt(a))?parseInt(a):null;if(i=="scrollBy"){dw_Event.add(k,"click",function(n){dw_scrollObj.col[c].initScrollByVals(j,h,a);if(n&&n.preventDefault){n.preventDefault()}return false})}else{if(i=="scrollTo"){dw_Event.add(k,"click",function(n){dw_scrollObj.col[c].initScrollToVals(j,h,a);if(n&&n.preventDefault){n.preventDefault()}return false})}}}};dw_scrollObj.getClickParts=function(j){var e=j.split("_");var i=/^(up|down|left|right)$/;var c,g="",a,d,b,h="",f="";if(e.length>=4){d=e[1].match(i);c=d?d[1]:null;i=/^(to|by)$/;d=e[2].match(i);if(d){g=(d[0]=="to")?"scrollTo":"scrollBy"}b=e[3];i=/^([\d]+)$/;a=(e[4]&&i.test(e[4]))?e[4]:null;switch(g){case"scrollBy":if(!i.test(b)){h="";f="";break}switch(c){case"up":h=0;f=b;break;case"down":h=0;f=-b;break;case"left":h=b;f=0;break;case"right":h=-b;f=0}break;case"scrollTo":i=/^(end|[\d]+)$/;if(!i.test(b)){h="";f="";break}switch(c){case"up":h=null;f=b;break;case"down":h=null;f=(b=="end")?b:-b;break;case"left":h=b;f=null;break;case"right":h=(b=="end")?b:-b;f=null}break}}return{fn:g,x:h,y:f,dur:a}};dw_scrollObj.getEv_FnType=function(b){var a=/^(mouseover|mousedown|scrollBy|scrollTo|scrollToId|click)$/;if(a.test(b)){return b}return""};dw_scrollObj.get_DelimitedClass=function(a){if(a.indexOf("_")==-1){return""}var b=/\s+/;if(!b.test(a)){return a}else{var d=a.split(b);for(var c=0;d[c];c++){if(d[c].indexOf("_")!=-1){return d[c]}}}};dw_scrollObj.handleControlVis=function(d,e,b){var c=dw_scrollObj.col[e];var a=document.getElementById(d);if((b=="v"&&c.maxY>0)||(b=="h"&&c.maxX>0)){a.style.visibility="visible"}else{a.style.visibility="hidden"}};function init_dw_Scroll(){var a=new dw_scrollObj("wn","lyr1","t1");a.setUpScrollControls("scrollLinks");a.on_scroll=a.on_glidescroll=function(){var b=document.getElementById("slide_right");if(a.x==-a.maxX){b.style.top="-1000px"}else{b.style.top="59px"}b=document.getElementById("slide_left");if(a.x==0){b.style.top="-1000px"}else{b.style.top="59px"}};a.on_scroll()};
