/**
 * cookie
 */
jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};

/**
 * jQuery.ScrollTo - Easy element scrolling using jQuery.
 * Copyright (c) 2007-2009 Ariel Flesler
 */
;(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:'xy',duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=='BackCompat'?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=='object'){b=j;j=0}if(typeof b=='function')b={onAfter:b};if(n=='max')n=9e9;b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue)j/=2;b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is('html,body');switch(typeof f){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case'object':if(f.is||f.style)s=(f=d(f)).offset()}d.each(b.axis.split(''),function(a,i){var e=i=='x'?'Left':'Top',h=e.toLowerCase(),c='scroll'+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css('margin'+e))||0;g[c]-=parseInt(f.css('border'+e+'Width'))||0}g[c]+=b.offset[h]||0;if(b.over[h])g[c]+=f[i=='x'?'width':'height']()*b.over[h]}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=='%'?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],m);if(!a&&b.queue){if(l!=g[c])t(b.onAfterFirst);delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=='x'?'Width':'Height',h='scroll'+e;if(!d(a).is('html,body'))return a[h]-d(a)[e.toLowerCase()]();var c='client'+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);

/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 */
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;

/**
 * highslide
 */
var hs={graphicsDir:"highslide/graphics/",restoreCursor:"zoomout.cur",fullExpandIcon:"fullexpand.gif",expandSteps:10,expandDuration:250,restoreSteps:10,restoreDuration:250,captionSlideSpeed:1,numberOfImagesToPreload:5,marginLeft:10,marginRight:35,marginTop:10,marginBottom:35,zIndexCounter:1001,slideInOutline:true,fullExpandTitle:"Expand to actual size",restoreTitle:"Click to close image, click and drag to move. Use arrow keys for next and previous.",focusTitle:"Click to bring to front",loadingText:"Loading...",loadingTitle:"Click to cancel",loadingOpacity:0.75,showCredits:true,creditsText:"Powered by <i>Highslide JS</i>",creditsHref:"http://vikjavev.no/highslide/?user=1",creditsTitle:"Go to the Highslide JS homepage",anchor:"auto",align:"auto",captionId:null,slideshowGroup:"",enableKeyListener:true,spaceForCaption:30,minWidth:200,minHeight:200,allowSizeReduction:true,outlineType:"drop-shadow",wrapperClassName:null,preloadTheseImages:new Array(),continuePreloading:true,expandedImagesCounter:0,expanders:new Array(),overrides:new Array("anchor","align","outlineType","spaceForCaption","wrapperClassName","minWidth","minHeight","captionId","allowSizeReduction","slideshowGroup","enableKeyListener"),overlays:new Array(),toggleImagesGroup:null,ie:(document.all&&!window.opera),nn6:document.getElementById&&!document.all,safari:navigator.userAgent.indexOf("Safari")!=-1,hasFocused:false,isDrag:false,$:function(b){return document.getElementById(b)},createElement:function(b,f,e,d){var c=document.createElement(b);if(f){hs.setAttribs(c,f)}if(e){hs.setStyles(c,e)}if(d){d.appendChild(c)}return c},setAttribs:function(c,d){for(var b in d){c[b]=d[b]}},setStyles:function(c,d){for(var b in d){c.style[b]=d[b]}},ieVersion:function(){arr=navigator.appVersion.split("MSIE");return parseFloat(arr[1])},clientInfo:function(){var b=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;this.width=hs.ie?b.clientWidth:self.innerWidth;this.height=hs.ie?b.clientHeight:self.innerHeight;this.scrollLeft=hs.ie?b.scrollLeft:pageXOffset;this.scrollTop=hs.ie?b.scrollTop:pageYOffset},position:function(c){var b=c;var d=Array();d.x=b.offsetLeft;d.y=b.offsetTop;while(b.offsetParent){b=b.offsetParent;d.x+=b.offsetLeft;d.y+=b.offsetTop}return d},expand:function(b,d,f){try{new HsExpander(b,d,f);return false}catch(c){return true}},focusTopmost:function(){var c=0;var b=-1;for(i=0;i<hs.expanders.length;i++){if(hs.expanders[i]){if(hs.expanders[i].wrapper.style.zIndex&&hs.expanders[i].wrapper.style.zIndex>c){c=hs.expanders[i].wrapper.style.zIndex;b=i}}}if(b==-1){hs.focusKey=-1}else{hs.expanders[b].focus()}},closeId:function(b){for(i=0;i<hs.expanders.length;i++){if(hs.expanders[i]&&(hs.expanders[i].thumb.id==b||hs.expanders[i].a.id==b)){hs.expanders[i].doClose();return}}},close:function(c){var b=hs.getWrapperKey(c);if(hs.expanders[b]){hs.expanders[b].doClose()}return false},toggleImages:function(b,c){if(b){hs.closeId(b)}if(hs.ie){c.href=c.href.replace("about:(blank)?","")}hs.toggleImagesExpandEl=c;return false},getAdjacentAnchor:function(d,f){var b=document.getElementsByTagName("A");var c=new Array;for(i=0;i<b.length;i++){if(hs.isHsAnchor(b[i])){c.push(b[i])}}var e=-1;for(i=0;i<c.length;i++){if(hs.expanders[d]&&c[i]==hs.expanders[d].a){e=i;break}}return c[e+f]},getSrc:function(b){return b.rel.replace(/_slash_/g,"/")||b.href},previousOrNext:function(b,d){if(typeof b=="object"){var c=hs.getWrapperKey(b)}else{if(typeof b=="number"){var c=b}}if(hs.expanders[c]){hs.toggleImagesExpandEl=hs.getAdjacentAnchor(c,d);hs.toggleImagesGroup=hs.expanders[c].slideshowGroup;hs.expanders[c].doClose()}return false},previous:function(b){return hs.previousOrNext(b,-1)},next:function(b){return hs.previousOrNext(b,1)},keyHandler:function(b){if(!b){b=window.event}if(!b.target){b.target=b.srcElement}if(b.target.form){return}var c=null;switch(b.keyCode){case 34:case 39:case 40:c=1;break;case 33:case 37:case 38:c=-1;break;case 27:case 13:if(hs.expanders[hs.focusKey]){hs.expanders[hs.focusKey].doClose()}return false}if(c!=null){document.onkeydown=null;if(hs.expanders[hs.focusKey]&&hs.expanders[hs.focusKey].enableKeyListener==false){return true}return hs.previousOrNext(hs.focusKey,c)}else{return true}},registerOverlay:function(b){hs.overlays.push(b)},getWrapperKey:function(c){var b=-1;while(c.parentNode){c=c.parentNode;if(c.id&&c.id.match(/^highslide-wrapper-[0-9]+$/)){b=c.id.replace(/^highslide-wrapper-([0-9]+)$/,"$1");break}}return b},cleanUp:function(){if(hs.toggleImagesExpandEl){hs.toggleImagesExpandEl.onclick();hs.toggleImagesExpandEl=null}else{for(i=0;i<hs.expanders.length;i++){if(hs.expanders[i]&&hs.expanders[i].isExpanded){hs.focusTopmost()}}}},mouseDownHandler:function(b){if(!b){b=window.event}if(b.button>1){return true}if(!b.target){b.target=b.srcElement}var c=b.target;while(!c.tagName.match(/(HTML|BODY)/)&&!c.className.match(/highslide-(image|move|html)/)){c=hs.nn6?c.parentNode:c.parentElement}if(c.tagName.match(/(HTML|BODY)/)){return}hs.dragKey=hs.getWrapperKey(c);if(c.className.match(/highslide-(image|move)/)){hs.isDrag=true;hs.dragObj=hs.expanders[hs.dragKey].content;if(c.className.match("highslide-image")){hs.dragObj.style.cursor="move"}tx=parseInt(hs.expanders[hs.dragKey].wrapper.style.left);ty=parseInt(hs.expanders[hs.dragKey].wrapper.style.top);hs.leftBeforeDrag=tx;hs.topBeforeDrag=ty;hs.dragX=hs.nn6?b.clientX:event.clientX;hs.dragY=hs.nn6?b.clientY:event.clientY;document.onmousemove=hs.mouseMoveHandler;if(hs.dragObj.className.match(/highslide-(image|html)-blur/)){hs.expanders[hs.dragKey].focus();hs.hasFocused=true}return false}else{if(c.className.match(/highslide-html/)){hs.expanders[hs.dragKey].focus();hs.expanders[hs.dragKey].redoShowHide();hs.hasFocused=false}}},mouseMoveHandler:function(d){if(hs.isDrag){if(!hs.expanders[hs.dragKey]||!hs.expanders[hs.dragKey].wrapper){return}var f=hs.expanders[hs.dragKey].wrapper;var c=hs.nn6?tx+d.clientX-hs.dragX:tx+event.clientX-hs.dragX;f.style.left=c+"px";var b=hs.nn6?ty+d.clientY-hs.dragY:ty+event.clientY-hs.dragY;f.style.top=b+"px";return false}},mouseUpHandler:function(f){if(!f){f=window.event}if(f.button>1){return true}if(!f.target){f.target=f.srcElement}hs.isDrag=false;var g=f.target;while(!g.tagName.match(/(HTML|BODY)/)&&!g.className.match(/highslide-(image|move)/)){g=g.parentNode}if(g.className.match(/highslide-(image|move)/)&&hs.expanders[hs.dragKey]){if(g.className.match("highslide-image")){g.style.cursor=hs.styleRestoreCursor}var d=parseInt(hs.expanders[hs.dragKey].wrapper.style.left);var c=parseInt(hs.expanders[hs.dragKey].wrapper.style.top);var b=d!=hs.leftBeforeDrag||c!=hs.topBeforeDrag;if(!b&&!hs.hasFocused){hs.expanders[hs.dragKey].doClose()}else{if(b||(!b&&hs.hasHtmlExpanders)){hs.expanders[hs.dragKey].redoShowHide()}}hs.hasFocused=false}else{if(g.className.match("highslide-image-blur")){g.style.cursor=hs.styleRestoreCursor}}},isHsAnchor:function(b){return(b.className&&(b.className.match("highslide$")||b.className.match("highslide ")))},preloadFullImage:function(c){if(hs.continuePreloading&&hs.preloadTheseImages[c]&&hs.preloadTheseImages[c]!="undefined"){var b=document.createElement("img");b.onload=function(){hs.preloadFullImage(c+1)};b.src=hs.preloadTheseImages[c]}},preloadImages:function(d){if(d){this.numberOfImagesToPreload=d}var c=0;var f=document.getElementsByTagName("A");for(i=0;i<f.length;i++){a=f[i];if(hs.isHsAnchor(a)){if(c<this.numberOfImagesToPreload){hs.preloadTheseImages[c]=hs.getSrc(a);c++}}}hs.preloadFullImage(0);var e=document.createElement("img");e.src=hs.graphicsDir+hs.restoreCursor;if(hs.outlineType){for(i=1;i<=8;i++){var b=document.createElement("img");b.src=hs.graphicsDir+"outlines/"+hs.outlineType+"/"+i+".png"}}}};HsExpander=function(b,g,k){try{hs.continuePreloading=false;if(!hs.container){hs.container=hs.createElement("div",null,{position:"absolute",left:0,top:0},document.body)}if(g&&g.thumbnailId){var d=hs.$(g.thumbnailId)}else{for(i=0;i<b.childNodes.length;i++){if(b.childNodes[i].tagName&&b.childNodes[i].tagName=="IMG"){var d=b.childNodes[i];break}}}if(!d){d=b}for(i=0;i<hs.expanders.length;i++){if(hs.expanders[i]&&hs.expanders[i].thumb!=d&&!hs.expanders[i].onLoadStarted){hs.expanders[i].cancelLoading()}}for(i=0;i<hs.expanders.length;i++){if(hs.expanders[i]&&hs.expanders[i].thumb==d){hs.expanders[i].focus();return false}}this.key=hs.expandedImagesCounter++;hs.expanders[this.key]=this;if(k=="html"){this.isHtml=true;this.contentType="html"}else{this.isImage=true;this.contentType="image"}this.a=b;for(i=0;i<hs.overrides.length;i++){var c=hs.overrides[i];if(g&&g[c]!=undefined){this[c]=g[c]}else{this[c]=hs[c]}}if(hs.toggleImagesGroup!=null&&hs.toggleImagesGroup!=this.slideshowGroup){hs.toggleImagesGroup=null;hs.expanders[this.key]=null;return}this.thumbsUserSetId=d.id||b.id;this.thumb=d;this.overlays=new Array();var h=hs.position(d);this.wrapper=hs.createElement("div",{id:"highslide-wrapper-"+this.key,className:this.wrapperClassName},{visibility:"hidden",position:"absolute",zIndex:hs.zIndexCounter++});this.thumbWidth=d.width?d.width:d.offsetWidth;this.thumbHeight=d.height?d.height:d.offsetHeight;this.thumbLeft=h.x;this.thumbTop=h.y;this.thumbClass=d.className;this.thumbOffsetBorderW=(this.thumb.offsetWidth-this.thumbWidth)/2;this.thumbOffsetBorderH=(this.thumb.offsetHeight-this.thumbHeight)/2;if(this.isImage){this.imageCreate()}return false}catch(f){return true}};HsExpander.prototype.displayLoading=function(){if(this.onLoadStarted){return}this.originalCursor=this.a.style.cursor;this.a.style.cursor="wait";this.loading=hs.createElement("a",{className:"highslide-loading",title:hs.loadingTitle,href:"javascript:hs.expanders["+this.key+"].cancelLoading()",innerHTML:hs.loadingText},{position:"absolute",visibility:"hidden"},hs.container);if(hs.ie){this.loading.style.filter="alpha(opacity="+(100*hs.loadingOpacity)+")"}else{this.loading.style.opacity=hs.loadingOpacity}this.loading.style.left=(this.thumbLeft+this.thumbOffsetBorderW+(this.thumbWidth-this.loading.offsetWidth)/2)+"px";this.loading.style.top=(this.thumbTop+(this.thumbHeight-this.loading.offsetHeight)/2)+"px";setTimeout("if (hs.expanders["+this.key+"] && hs.expanders["+this.key+"].loading) hs.expanders["+this.key+"].loading.style.visibility = 'visible';",100)};HsExpander.prototype.imageCreate=function(){var b=document.createElement("img");var c=this.key;var b=document.createElement("img");this.content=b;b.onload=function(){if(hs.expanders[c]){hs.expanders[c].onLoad()}};b.className="highslide-image "+this.thumbClass;b.style.visibility="hidden";b.style.display="block";b.style.position="absolute";b.style.zIndex=3;b.title=hs.restoreTitle;b.onmouseover=function(){if(hs.expanders[c]){hs.expanders[c].onMouseOver()}};b.onmouseout=function(f){var d=f?f.relatedTarget:event.toElement;if(hs.expanders[c]){hs.expanders[c].onMouseOut(d)}};if(hs.safari){hs.container.appendChild(b)}b.src=hs.getSrc(this.a);this.displayLoading()};HsExpander.prototype.onLoad=function(){try{if(!this.content){return}if(this.onLoadStarted){return}else{this.onLoadStarted=true}if(this.loading){hs.container.removeChild(this.loading);this.loading=null;this.a.style.cursor=this.originalCursor||""}if(this.isImage){this.newWidth=this.content.width;this.newHeight=this.content.height;this.fullExpandWidth=this.newWidth;this.fullExpandHeight=this.newHeight;this.content.width=this.thumbWidth;this.content.height=this.thumbHeight}var h=hs.marginBottom;if(this.captionId&&hs.$(this.captionId)){this.caption=hs.$(this.captionId).cloneNode(true)}else{if(this.thumbsUserSetId&&hs.$("caption-for-"+this.thumbsUserSetId)){this.caption=hs.$("caption-for-"+this.thumbsUserSetId).cloneNode(true)}}if(this.caption){h+=this.spaceForCaption;this.caption.id=null}this.wrapper.appendChild(this.content);this.content.style.position="relative";if(this.caption){this.wrapper.appendChild(this.caption)}this.wrapper.style.left=this.thumbLeft+"px";this.wrapper.style.top=this.thumbTop+"px";hs.container.appendChild(this.wrapper);if(this.swfObject){this.swfObject.write(this.flashContainerId)}this.offsetBorderW=(this.wrapper.offsetWidth-this.thumbWidth)/2;this.offsetBorderH=(this.wrapper.offsetHeight-this.thumbHeight)/2;var f=hs.marginRight+2*this.offsetBorderW;h+=2*this.offsetBorderH;var m=this.newWidth/this.newHeight;var c=this.allowSizeReduction?this.minWidth:this.newWidth;var p=this.allowSizeReduction?this.minHeight:this.newHeight;var g={x:"auto",y:"auto"};if(this.align=="center"){g.x="center";g.y="center"}else{if(this.anchor.match(/^top/)){g.y=null}if(this.anchor.match(/right$/)){g.x="max"}if(this.anchor.match(/^bottom/)){g.y="max"}if(this.anchor.match(/left$/)){g.x=null}}client=new hs.clientInfo();this.x={min:parseInt(this.thumbLeft)-this.offsetBorderW+this.thumbOffsetBorderW,span:this.newWidth,minSpan:this.newWidth<c?this.newWidth:c,justify:g.x,marginMin:hs.marginLeft,marginMax:f,scroll:client.scrollLeft,clientSpan:client.width,thumbSpan:this.thumbWidth};var d=this.x.min+parseInt(this.thumbWidth);this.x=this.justify(this.x);this.y={min:parseInt(this.thumbTop)-this.offsetBorderH+this.thumbOffsetBorderH,span:this.newHeight,minSpan:this.newHeight<p?this.newHeight:p,justify:g.y,marginMin:hs.marginTop,marginMax:h,scroll:client.scrollTop,clientSpan:client.height,thumbSpan:this.thumbHeight};var b=this.y.min+parseInt(this.thumbHeight);this.y=this.justify(this.y);if(this.isHtml){this.htmlSizeOperations()}if(this.isImage){this.correctRatio(m)}var o=this.x;var n=this.y;var l={x:o.min-20,y:n.min-20,w:o.span+40,h:n.span+40+this.spaceForCaption};hs.hideSelects=(hs.ie&&hs.ieVersion()<7);if(hs.hideSelects){this.showHideElements("SELECT","hidden",l)}hs.hideIframes=(window.opera||navigator.vendor=="KDE"||(hs.ie&&hs.ieVersion()<5.5));if(hs.hideIframes){this.showHideElements("IFRAME","hidden",l)}this.changeSize(this.thumbLeft+this.thumbOffsetBorderW-this.offsetBorderW,this.thumbTop+this.thumbOffsetBorderH-this.offsetBorderH,this.thumbWidth,this.thumbHeight,o.min,n.min,o.span,n.span,hs.expandDuration,hs.expandSteps);setTimeout("if (hs.expanders["+this.key+"])hs.expanders["+this.key+"].onExpanded()",hs.expandDuration)}catch(k){if(hs.expanders[this.key]&&hs.expanders[this.key].a){window.location.href=hs.getSrc(hs.expanders[this.key].a)}}};HsExpander.prototype.changeSize=function(d,m,f,h,c,l,e,g,b,k){dW=(e-f)/k;dH=(g-h)/k;dX=(c-d)/k;dY=(l-m)/k;for(i=1;i<hs.expandSteps;i++){f+=dW;h+=dH;d+=dX;m+=dY;setTimeout("if (hs.expanders["+this.key+"]) hs.expanders["+this.key+"]."+this.contentType+"SetSize("+f+", "+h+", "+d+", "+m+")",Math.round(i*(b/k)))}};HsExpander.prototype.imageSetSize=function(c,b,g,f){try{this.content.width=c;this.content.height=b;hs.setStyles(this.wrapper,{visibility:"visible",left:g+"px",top:f+"px"});this.content.style.visibility="visible";if(this.thumb.tagName=="IMG"){this.thumb.style.visibility="hidden"}}catch(d){window.location.href=hs.getSrc(hs.expanders[this.key].a)}};HsExpander.prototype.onExpanded=function(){this[this.contentType+"SetSize"](this.x.span,this.y.span,this.x.min,this.y.min);this.isExpanded=true;this.focus();this.createCustomOverlays();if(hs.showCredits){this.writeCredits()}if(this.caption){this.writeCaption()}if(!this.caption||!hs.slideInOutline&&this.outlineType){this.writeOutline()}if(this.fullExpandWidth>this.x.span){this.createFullExpand()}if(!this.caption&&!this.outlineType){this.onDisplayFinished()}};HsExpander.prototype.onDisplayFinished=function(){var c=hs.getAdjacentAnchor(this.key,1);if(c){var b=document.createElement("img");b.src=hs.getSrc(c)}};HsExpander.prototype.justify=function(d){if(d.justify=="auto"||d.justify=="center"){var c=false;var b=true;if(d.justify=="center"){d.min=Math.round(d.scroll+(d.clientSpan-d.span-d.marginMax)/2)}else{d.min=Math.round(d.min-((d.span-d.thumbSpan)/2))}if(d.min<d.scroll+d.marginMin){d.min=d.scroll+d.marginMin;c=true}if(d.span<d.minSpan){d.span=d.minSpan;b=false}if(d.min+d.span>d.scroll+d.clientSpan-d.marginMax){if(c&&b){d.span=d.clientSpan-d.marginMin-d.marginMax}else{if(d.span<d.clientSpan-d.marginMin-d.marginMax){d.min=d.scroll+d.clientSpan-d.span-d.marginMin-d.marginMax}else{d.min=d.scroll+d.marginMin;if(b){d.span=d.clientSpan-d.marginMin-d.marginMax}}}}if(d.span<d.minSpan){d.span=d.minSpan;b=false}}else{if(d.justify=="max"){d.min=Math.floor(d.min-d.span+d.thumbSpan)}}if(d.min<d.marginMin){tmpMin=d.min;d.min=d.marginMin;if(b){d.span=d.span-(d.min-tmpMin)}}return d};HsExpander.prototype.correctRatio=function(d){var c=this.x;var g=this.y;var f=false;if(c.span/g.span>d){var b=c.span;c.span=g.span*d;if(c.span<c.minSpan){c.span=c.minSpan;g.span=c.span/d}f=true}else{if(c.span/g.span<d){var e=g.span;g.span=c.span/d;f=true}}if(f){c.min=parseInt(this.thumbLeft)-this.offsetBorderW+this.thumbOffsetBorderW;c.minSpan=c.span;this.x=this.justify(c);g.min=parseInt(this.thumbTop)-this.offsetBorderH+this.thumbOffsetBorderH;g.minSpan=g.span;this.y=this.justify(g)}};HsExpander.prototype.cancelLoading=function(){this.a.style.cursor=this.originalCursor;if(this.loading){hs.container.removeChild(this.loading);this.loading=null}hs.expanders[this.key]=null};HsExpander.prototype.writeCredits=function(){var b=hs.createElement("a",{href:hs.creditsHref,className:"highslide-credits",innerHTML:hs.creditsText,title:hs.creditsTitle});this.createOverlay(b,"top left")};HsExpander.prototype.writeCaption=function(){try{this.wrapper.style.width=this.wrapper.offsetWidth+"px";this.caption.style.visibility="hidden";this.caption.style.position="relative";if(hs.ie){this.caption.style.zoom=1}this.caption.className+=" highslide-display-block";var capHeight=this.caption.offsetHeight;var slideHeight=(capHeight<this.content.height)?capHeight:this.content.height;this.caption.style.marginTop="-"+slideHeight+"px";this.caption.style.zIndex=2;var step=1;if(slideHeight>400){step=4}else{if(slideHeight>200){step=2}else{if(slideHeight>100){step=1}}}if(hs.captionSlideSpeed){step=step*hs.captionSlideSpeed}else{step=slideHeight}setTimeout("if (hs.expanders["+this.key+"] && hs.expanders["+this.key+"].caption) hs.expanders["+this.key+"].caption.style.visibility = 'visible'",10);var t=0;for(marginTop=-slideHeight;marginTop<=0;marginTop+=step,t+=10){var eval="if (hs.expanders["+this.key+"] && hs.expanders["+this.key+"].caption) { hs.expanders["+this.key+"].caption.style.marginTop = '"+marginTop+"px';";if(hs.slideInOutline&&marginTop>=0){eval+="hs.expanders["+this.key+"].writeOutline();"}else{if(!hs.slideInOutline){eval+="hs.expanders["+this.key+"].repositionOutline(0);"}}eval+="}";setTimeout(eval,t)}}catch(e){}};HsExpander.prototype.writeOutline=function(){if(!this.outlineType){this.onDisplayFinished();return}this.outline=new Array();var b=hs.ieVersion();hs.hasAlphaImageLoader=hs.ie&&b>=5.5&&b<7;hs.hasIe7Bug=hs.ie&&b==7;hs.hasPngSupport=!hs.ie;this.preloadOutlineElement(1)};HsExpander.prototype.preloadOutlineElement=function(c){if(!hs.hasAlphaImageLoader&&!hs.hasPngSupport&&!hs.hasIe7Bug){return}if(this.outline[c]&&this.outline[c].onload){this.outline[c].onload=null;return}var e=hs.graphicsDir+"outlines/"+this.outlineType+"/"+c+".png";if(hs.hasAlphaImageLoader){this.outline[c]=hs.createElement("div",null,{filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='"+e+"') "})}else{if(hs.hasIe7Bug){this.outline[c]=hs.createElement("div",null,{backgroundImage:"url("+e+")"})}}var b=document.createElement("img");if(hs.hasPngSupport){this.outline[c]=b}this.outline[c].style.position="absolute";var d=(c%2==1)?10:20;this.outline[c].style.height=d+"px";this.outline[c].style.width=d+"px";if(hs.ie){this.outline[c].style.lineHeight=d+"px"}if(hs.slideInOutline){var f=this;if(c<8){b.onload=function(){f.preloadOutlineElement(c+1)}}else{b.onload=function(){f.displayOutline()}}}else{this.wrapper.appendChild(this.outline[c]);if(c<8){this.preloadOutlineElement(c+1)}else{this.repositionOutline(0)}}if(hs.safari){this.outline[c].style.left="10px";this.outline[c].style.top="10px";hs.container.appendChild(b)}b.src=e};HsExpander.prototype.displayOutline=function(){this.repositionOutline(12);for(i=1;i<=8;i++){this.wrapper.appendChild(this.outline[i])}this.hasOutline=true;for(i=10,t=0;i>=0;i--,t+=50){setTimeout("if (hs.expanders["+this.key+"]) hs.expanders["+this.key+"].repositionOutline("+i+")",t)}};HsExpander.prototype.repositionOutline=function(e){if(this.isClosing){return}var c=this.wrapper.offsetWidth;var d=this.wrapper.offsetHeight;var b=Array(Array(Array(1,5),"width",c-(2*e)-20),Array(Array(1,5),"left",10+e),Array(Array(1,2,8),"top",-10+e),Array(Array(2,4),"left",c-10-e),Array(Array(3,3),"left",c-e),Array(Array(3,7),"top",10+e),Array(Array(3,7),"height",d-(2*e)-20),Array(Array(4,6),"top",d-10-e),Array(Array(5,5),"top",d-e),Array(Array(6,7,8),"left",-10+e));if(navigator.vendor=="KDE"){b.push(Array(1,5),"height",(e%2)+10)}for(i=0;i<b.length;i++){for(j=0;j<b[i][0].length;j++){this.outline[b[i][0][j]].style[b[i][1]]=b[i][2]+"px"}}if(e==0){this.onDisplayFinished()}};HsExpander.prototype.showHideElements=function(c,b,f){var e=document.getElementsByTagName(c);if(e){for(i=0;i<e.length;i++){if(e[i].nodeName==c){var h=e[i].getAttribute("hidden-by");if(b=="visible"&&h){h=h.replace("["+this.key+"]","");e[i].setAttribute("hidden-by",h);if(!h){e[i].style.visibility="visible"}}else{if(b=="hidden"){var l=hs.position(e[i]);l.w=e[i].offsetWidth;l.h=e[i].offsetHeight;var k=(l.x+l.w<f.x||l.x>f.x+f.w);var g=(l.y+l.h<f.y||l.y>f.y+f.h);var d=hs.getWrapperKey(e[i]);if(!k&&!g&&d!=this.key){if(!h){e[i].setAttribute("hidden-by","["+this.key+"]")}else{if(!h.match("["+this.key+"]")){e[i].setAttribute("hidden-by",h+"["+this.key+"]")}}e[i].style.visibility="hidden"}else{if(h=="["+this.key+"]"||hs.focusKey==d){e[i].setAttribute("hidden-by","");e[i].style.visibility="visible"}else{if(h&&h.match("["+this.key+"]")){e[i].setAttribute("hidden-by",h.replace("["+this.key+"]",""))}}}}}}}}};HsExpander.prototype.focus=function(){for(i=0;i<hs.expanders.length;i++){if(hs.expanders[i]&&i==hs.focusKey){var b=hs.expanders[i];b.content.className+=" highslide-"+b.contentType+"-blur";if(b.caption){b.caption.className+=" highslide-caption-blur"}if(b.isImage){b.content.style.cursor=hs.ie?"hand":"pointer";b.content.title=hs.focusTitle}}}this.wrapper.style.zIndex=hs.zIndexCounter++;this.content.className="highslide-"+this.contentType;if(this.caption){this.caption.className=this.caption.className.replace(" highslide-caption-blur","")}if(this.isImage){this.content.title=hs.restoreTitle;hs.styleRestoreCursor=window.opera?"pointer":"url("+hs.graphicsDir+hs.restoreCursor+"), pointer";if(hs.ie&&hs.ieVersion()<6){hs.styleRestoreCursor="hand"}this.content.style.cursor=hs.styleRestoreCursor}hs.focusKey=this.key;document.onkeydown=hs.keyHandler};HsExpander.prototype.doClose=function(){document.onkeydown=null;try{if(!hs.expanders[this.key]){return}var f=hs.expanders[this.key];this.isClosing=true;var h=this.wrapper.childNodes.length;for(i=h-1;i>0;i--){var g=this.wrapper.childNodes[i];if(g!=this.content){this.wrapper.removeChild(this.wrapper.childNodes[i])}}if(this.scrollerDiv&&this.scrollerDiv!="scrollingContent"){f[this.scrollerDiv].style.overflow="hidden"}hs.outlinePreloader=0;this.wrapper.style.width=null;var c=(this.isImage)?this.content.width:parseInt(this.content.style.width);var b=(this.isImage)?this.content.height:parseInt(this.content.style.height);this.changeSize(parseInt(this.wrapper.style.left),parseInt(this.wrapper.style.top),c,b,this.thumbLeft-this.offsetBorderW+this.thumbOffsetBorderW,this.thumbTop-this.offsetBorderH+this.thumbOffsetBorderH,this.thumbWidth,this.thumbHeight,hs.restoreDuration,hs.restoreSteps);setTimeout("if (hs.expanders["+this.key+"]) hs.expanders["+this.key+"].onEndClose()",hs.restoreDuration)}catch(d){hs.expanders[this.key].onEndClose()}};HsExpander.prototype.onEndClose=function(){this.thumb.style.visibility="visible";if(hs.hideSelects){this.showHideElements("SELECT","visible")}if(hs.hideIframes){this.showHideElements("IFRAME","visible")}this.wrapper.parentNode.removeChild(this.wrapper);hs.expanders[this.key]=null;hs.cleanUp()};HsExpander.prototype.createOverlay=function(f,b,e,d){if(typeof f=="string"&&hs.$(f)){f=hs.$(f).cloneNode(true);f.id=null}if(!f||typeof f=="string"||!this.isImage){return}if(!b){var b="center center"}var c=hs.createElement("div",null,{position:"absolute",zIndex:3,visibility:"hidden"},this.wrapper);if(d&&d<1){if(hs.ie){c.style.filter="alpha(opacity="+(d*100)+")"}else{c.style.opacity=d}}f.className+=" highslide-display-block";c.appendChild(f);var h=this.offsetBorderW;var g=this.offsetBorderH;if(b.match(/^bottom/)){g+=this.content.height-c.offsetHeight}if(b.match(/^center/)){g+=(this.content.height-c.offsetHeight)/2}if(b.match(/right$/)){h+=this.content.width-c.offsetWidth}if(b.match(/center$/)){h+=(this.content.width-c.offsetWidth)/2}c.style.left=h+"px";c.style.top=g+"px";if(this.mouseIsOver||!e){c.style.visibility="visible"}if(e){c.setAttribute("hideOnMouseOut",true)}this.overlays.push(c)};HsExpander.prototype.createCustomOverlays=function(){for(i=0;i<hs.overlays.length;i++){var b=hs.overlays[i];if(b.thumbnailId==null||b.thumbnailId==this.thumbsUserSetId){this.createOverlay(b.overlayId,b.position,b.hideOnMouseOut,b.opacity)}}};HsExpander.prototype.onMouseOver=function(){this.mouseIsOver=true;for(i=0;i<this.overlays.length;i++){this.overlays[i].style.visibility="visible"}};HsExpander.prototype.onMouseOut=function(c){this.mouseIsOver=false;var b=new Array();for(i=0;i<this.overlays.length;i++){var d=c;while(d&&d.parentNode){if(d==this.overlays[i]){return}d=d.parentNode}if(this.overlays[i].getAttribute("hideOnMouseOut")){b.push(this.overlays[i])}}for(i=0;i<b.length;i++){b[i].style.visibility="hidden"}};HsExpander.prototype.createFullExpand=function(){var b=hs.createElement("a",{href:"javascript:hs.expanders["+this.key+"].doFullExpand();",title:hs.fullExpandTitle},{background:"url("+hs.graphicsDir+hs.fullExpandIcon+")",display:"block",margin:"0 10px 10px 0",width:"45px",height:"44px"});this.createOverlay(b,"bottom right",true,0.75);this.fullExpandIcon=b};HsExpander.prototype.doFullExpand=function(){try{var c=parseInt(this.wrapper.style.left)-(this.fullExpandWidth-this.content.width)/2;if(c<hs.marginLeft){c=hs.marginLeft}this.wrapper.style.left=c+"px";var b=this.wrapper.offsetWidth-this.content.width;this.content.width=this.fullExpandWidth;this.content.height=this.fullExpandHeight;this.focus();this.fullExpandIcon.parentNode.removeChild(this.fullExpandIcon);this.wrapper.style.width=(this.content.width+b)+"px";if(this.outlineType){this.repositionOutline(0)}for(x in this.overlays){this.wrapper.removeChild(this.overlays[x])}if(hs.showCredits){this.writeCredits()}this.createCustomOverlays();this.redoShowHide()}catch(d){window.location.href=hs.expanders[this.key].content.src}};HsExpander.prototype.redoShowHide=function(){var b={x:parseInt(this.wrapper.style.left)-20,y:parseInt(this.wrapper.style.top)-20,w:this.content.offsetWidth+40,h:this.content.offsetHeight+40+this.spaceForCaption};if(hs.hideSelects){this.showHideElements("SELECT","hidden",b)}if(hs.hideIframes){this.showHideElements("IFRAME","hidden",b)}};document.onmousedown=hs.mouseDownHandler;document.onmouseup=hs.mouseUpHandler;

/**
 * common
 * @copyright 2009 SCRAPTURE
 * @license SCRAPTURE
 * @date 2009-11-22 00:00:00
 */
hs.graphicsDir="http://static.scrapture.org/js/highslide/2.2.6/graphics/";hs.outlineType="rounded-white";hs.allowSizeReduction=false;window.onload=function(){hs.preloadImages(10)};var grow=true;var IE6=(navigator.userAgent.indexOf("MSIE 6")>=0)?true:false;jQuery(document).ready(function(){$("li.normal").css("filter","alpha(style=0, opacity=50)");$("li.underCons").css("filter","alpha(style=0, opacity=20)");$("#open-lang").toggle(function(){$("ul#langInner").slideToggle("fast")},function(){$("ul#langInner").slideToggle("fast")});$("#open-info").toggle(function(){$("ul#infoInner").slideToggle("fast")},function(){$("ul#infoInner").slideToggle("fast")});$("body").click(function(){$("ul#langInner").fadeOut("fast");$("ul#infoInner").fadeOut("fast")})});function showicon(f,a,b,e){delDay=7;oldDay=new Date(f+"/"+a+"/"+b);newDay=new Date();b=(newDay-oldDay)/(1000*24*3600);if(b<=delDay){if(e=="new"){document.write('<span class="new">NEW</span>')}if(e=="hot"){document.write('<span class="hot">HOT</span>')}if(e=="news"){document.write('<span class="news">NEWS</span>')}}};