
var ccm_uiLoaded=false;var ccm_siteActivated=true;var ccm_animEffects=false;ccm_parseJSON=function(resp,onNoError){if(resp.error){alert(resp.message);}else{onNoError();}}
ccm_deactivateSite=function(onDone){if(ccm_siteActivated==false){return false;}
if($("#ccm-overlay").length<1){$(document.body).append('<div id="ccm-overlay"></div>');}
$("embed,object").each(function(){$(this).attr('ccm-style-old-visibility',$(this).css('visibility'));$(this).css('visibility','hidden');});if(ccm_animEffects){$("#ccm-overlay").fadeIn(100);}else{$("#ccm-overlay").show();}
ccm_siteActivated=false;if(typeof onDone=='function'){onDone();}}
ccm_activateSite=function(){if(ccm_animEffects){$("#ccm-overlay").fadeOut(100);}else{$("#ccm-overlay").hide();}
$("embed,object").each(function(){$(this).css('visibility',$(this).attr('ccm-style-old-visibility'));});ccm_siteActivated=true;ccm_topPaneDeactivated=false;}
ccm_addHeaderItem=function(item,type){if(type=='CSS'){if(!($('head').children('link[href*='+item+']').length)){$('head').append('<link rel="stylesheet" type="text/css" href="'+item+'?ts='+new Date().getTime()+'" />');}}else if(type=='JAVASCRIPT'){if(!($('head').children('script[src*='+item+']').length)){$('head').append('<script type="text/javascript" src="'+item+'?ts='+new Date().getTime()+'"></script>');}}}
ccm_disableLinks=function(){td=document.createElement("DIV");td.style.position="absolute";td.style.top="0px";td.style.left="0px";td.style.width="100%";td.style.height="100%";td.style.zIndex="1000";document.body.appendChild(td);};$(document).ready(function(){$(".SlideBoxOverlay").click(function(){if($(this).parent().find('.SlideBoxContent a').attr("href")!=undefined)
window.location=$(this).parent().find('.SlideBoxContent a').attr("href");return false;});});;var ccm_calendar={response:function(data){resp=eval("("+data+")");if(resp.errors){for(i=0;i<resp.errors.length;i++){$("div#ccm-calendar-add-event-response").html('<div class="ccm-error">'+resp.errors[i]+'</div>');$("div#ccm-calendar-add-event-response").show();}
tinyMCE.execCommand('mceAddControl',false,'calendar_event_description_textarea');}else if(resp.response){$("div#ccm-calendar-add-event-response").html(resp.response);$("div#ccm-calendar-add-event-response").show();setTimeout(function(){window.location.reload();},500);}},init:function(type){this.type=type;var trigs=$('.ccm-calendar-popup-trigger');for(var i=0;i<trigs.length;i++){var id=trigs[i].id.replace('calPopupTrigger','');var p=$('#calPopup'+id);if(p.length==0){continue;}
trigs[i].popup=p;trigs[i].onmouseover=function(e){offs=$(this).position();clearTimeout(this.popup.tmr);$('.ccm-calendar-popup').hide();this.popup.css('display','block');this.popup.css('position','absolute');var mwidth=this.popup.width();var mheight=this.popup.height();var posX=offs.left;var posY=offs.top;var offsetY=(ccm_calendar.type=='WEEK')?30:20;if($(window).height()<e.clientY+mheight){posY=posY-mheight-30;}else{posY=posY+offsetY;}
if($(window).width()<e.clientX+mwidth){posX=e.pageX-mwidth-20;}
this.popup.css('top',posY);this.popup.css('left',posX);}
trigs[i].onmouseout=function(){this.popup.tmr=setTimeout(function(){"$('#"+this.popup.attr('id')+"').css('display','none');"},1000);}
p.mouseover(function(){clearTimeout(this.tmr);});p.mouseout(function(){this.tmr=setTimeout("$('#"+this.id+"').css('display','none');",1000);});}
if($("#ccm-calendar-add-event").length>0){$("#ccm-calendar-add-event form").submit(function(){tinyMCE.execCommand('mceRemoveControl',false,'calendar_event_description_textarea');})
$("#ccm-calendar-add-event form").ajaxForm({beforeSubmit:function(){},success:function(resp){ccm_calendar.response(resp);}});$(".ccm-calendar-events a").click(function(e){e.stopPropagation();});$("#calendar_event_is_all_day").click(function(){var cbiad=$(this).get(0);$("#calendar_event_start_date_tw").each(function(){if(cbiad.checked){$("#calendar_event_start_date_tw").hide();$("#calendar_event_end_date_tw").hide();}else{$("#calendar_event_start_date_tw").show();$("#calendar_event_end_date_tw").show();}});});$("#calendar_event_start_date_a").change(ccm_calendar.autoEndTime);$("#calendar_event_start_date_m").change(ccm_calendar.autoEndTime);$("#calendar_event_start_date_h").change(ccm_calendar.autoEndTime);$("#calendar_event_start_date_dt").change(ccm_calendar.autoEndTime);$(".ccm-calendar-cell-add-event").click(function(){var date=$(this).attr('ccm-calendar-cell-date');$("#calendar_event_start_date_dt").val(date);$("#calendar_event_end_date_dt").val(date);$.fn.dialog.open({title:"Add Event",element:'#ccm-calendar-add-event',width:620,height:380,modal:false,onClose:function(){$("#ccm-calendar-add-event").prependTo("#ccm-calendar-add-event-wrapper");}});var desc=$('.ccm-dialog-window #calendar_event_description').get(0);if(desc)desc.id='calendar_event_description_textarea';tinyMCE.execCommand('mceAddControl',false,'calendar_event_description_textarea');});}},autoEndTime:function(){var start_caldate=$("#calendar_event_start_date_dt").val();var start_hour=$("#calendar_event_start_date_h").val();var start_minute=$("#calendar_event_start_date_m").val();var start_ampm=$("#calendar_event_start_date_a").val();var start_date=new Date();var start_caldateParts=start_caldate.split('/');start_date.setFullYear(start_caldateParts[2]);start_date.setMonth(start_caldateParts[0]);start_date.setDate(start_caldateParts[1]);var start_24_hours=(start_ampm=='PM')?(parseInt(start_hour)+12):start_hour;start_date.setHours(start_24_hours);start_date.setMinutes(start_minute);var end_date=new Date();end_date.setTime(start_date.getTime()+(3600*1000));$("#calendar_event_end_date_dt").val(end_date.getMonth()+'/'+end_date.getDate()+'/'+end_date.getFullYear());var end_hours=(end_date.getHours()<=12)?end_date.getHours():end_date.getHours()-12;$("#calendar_event_end_date_h").val(end_hours);var end_minute=(end_date.getMinutes()<10)?'0'+end_date.getMinutes():end_date.getMinutes();$("#calendar_event_end_date_m").val(end_minute);var end_ampm=(end_date.getHours()<=12)?'AM':'PM';$("#calendar_event_end_date_a").val(end_ampm);}};jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b;},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b;},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b;},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b;},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b;},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b;},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b;},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b;},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b;},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b;},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b;},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b;},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b;},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b;},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b;},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b;},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b;},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b;}});;(function(c){function y(b,a){D();c(b).each(function(d){c.ceebox(this,d,a)})}function D(){o=new(function(){var b="";c.each(c.fn.ceebox.videos,function(a,d){if(d.siteRgx!=null&&typeof d.siteRgx!="string"){a=String(d.siteRgx);b=b+a.slice(1,a.length-2)+"|"}});this.vidRegex=new RegExp(b+"\\.swf$","i")})}function z(b,a){b=b.match(a);a=[];var d=b.length;if(d>1){a[0]=b[0];a[1]=b[1];a[2]=d==2?b[0]:b[2];a[3]=d==4?b[3]:b[1]}else a=[b,b,b,b];return a}function E(b,a,d){document.onkeydown=function(f){f=f||window.event;f=f.keyCode||f.which;switch(f){case 13:return false;case 27:c.fn.ceebox.closebox(d);document.onkeydown=null;break;case 188:case 37:b&&b.prevId!=null&&u(a,b.prevId,d);break;case 190:case 39:b&&b.nextId!=null&&u(a,b.nextId,d);break}}}function F(b,a,d){function f(g,l){var n,s=e,p=s-2E3;g=="prev"?(n=[{left:0},"left"]):(n=[{right:0},x="right"]);var r=function(q){return c.extend({zIndex:105,width:k+j,height:i+j,position:"absolute",top:m,backgroundPosition:n[1]+" "+q+j},n[0])};c("<a href='#'></a>").text(g).attr({id:"cee_"+
g}).css(r(p)).hover(function(){c(this).css(r(s))},function(){c(this).css(r(p))}).one("click",function(q){q.preventDefault();u(a,l,d.fadeOut)}).appendTo("#cee_box")}var k=parseInt(d.width/2),i=d.height-d.titleHeight-2*d.padding,m=d.padding,e=i/2,j="px";if(d.type=="video"||d.type=="html"){k=60;i=80;m=parseInt((d.height-d.titleHeight-10)/2);e=24}if(d.type=="video")m=parseInt((m*2-2*d.padding)/2);b.prevId!=null&&f("prev",b.prevId);b.nextId&&f("next",b.nextId);c("#cee_title").append("<div id='cee_count'>Item "+
(b.cbId+1)+" of "+b.cbLen+"</div>")}function u(b,a,d){c("#cee_prev,#cee_next").unbind().click(function(){return false});document.onkeydown=null;var f=c("#cee_box").children(),k=f.length;f.fadeOut(d,function(){c(this).remove();this==f[k-1]&&b.eq(a).trigger("click")})}function t(b,a){return b&&b<a||!a?b:a}function v(b){return typeof b=="function"}function G(b){var a=b.length;return a>1?b[a-1]:b}c.ceebox={version:"2.0.9"};c.fn.ceebox=function(b){b=c.extend({selector:c(this).selector},c.fn.ceebox.defaults,b);var a=this;b.videoJSON?c.getJSON(b.videoJSON,function(d){c.extend(c.fn.ceebox.videos,d);y(a,b)}):y(a,b);c(".cee_close").die().live("click",function(){c.fn.ceebox.closebox();return false});return this};c.fn.ceebox.defaults={html:true,image:true,video:true,modal:false,titles:true,htmlGallery:true,imageGallery:true,videoGallery:true,videoWidth:false,videoHeight:false,videoRatio:"16:9",htmlWidth:false,htmlHeight:false,htmlRatio:false,imageWidth:false,imageHeight:false,animSpeed:"normal",easing:"swing",fadeOut:400,fadeIn:400,overlayColor:"#000",overlayOpacity:0.8,boxColor:"",textColor:"",borderColor:"",borderWidth:"3px",padding:15,margin:150,onload:null,unload:null,videoJSON:null};c.fn.ceebox.ratios={"4:3":1.333,"3:2":1.5,"16:9":1.778,"1:1":1,square:1};c.fn.ceebox.relMatch={width:/(?:width:)([0-9]+)/i,height:/(?:height:)([0-9]+)/i,ratio:/(?:ratio:)([0-9\.:]+)/i,modal:/modal:true/i,nonmodal:/modal:false/i,videoSrc:/(?:videoSrc:)(http:[\/\-\._0-9a-zA-Z:]+)/i,videoId:/(?:videoId:)([\-\._0-9a-zA-Z:]+)/i};c.fn.ceebox.loader="<div id='cee_load' style='z-index:105;top:50%;left:50%;position:fixed'></div>";c.fn.ceebox.videos={base:{param:{wmode:"transparent",allowFullScreen:"true",allowScriptAccess:"always"},flashvars:{autoplay:true}},facebook:{siteRgx:/facebook\.com\/video/i,idRgx:/(?:v=)([a-zA-Z0-9_]+)/i,src:"http://www.facebook.com/v/[id]"},youtube:{siteRgx:/youtube\.com\/watch/i,idRgx:/(?:v=)([a-zA-Z0-9_\-]+)/i,src:"http://www.youtube.com/v/[id]&hl=en&fs=1&autoplay=1"},metacafe:{siteRgx:/metacafe\.com\/watch/i,idRgx:/(?:watch\/)([a-zA-Z0-9_]+)/i,src:"http://www.metacafe.com/fplayer/[id]/.swf"},google:{siteRgx:/google\.com\/videoplay/i,idRgx:/(?:id=)([a-zA-Z0-9_\-]+)/i,src:"http://video.google.com/googleplayer.swf?docId=[id]&hl=en&fs=true",flashvars:{playerMode:"normal",fs:true}},spike:{siteRgx:/spike\.com\/video|ifilm\.com\/video/i,idRgx:/(?:\/)([0-9]+)/i,src:"http://www.spike.com/efp",flashvars:{flvbaseclip:"[id]"}},vimeo:{siteRgx:/vimeo\.com\/[0-9]+/i,idRgx:/(?:\.com\/)([a-zA-Z0-9_]+)/i,src:"http://www.vimeo.com/moogaloop.swf?clip_id=[id]&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1"},dailymotion:{siteRgx:/dailymotion\.com\/video/i,idRgx:/(?:video\/)([a-zA-Z0-9_]+)/i,src:"http://www.dailymotion.com/swf/[id]&related=0&autoplay=1"},cnn:{siteRgx:/cnn\.com\/video/i,idRgx:/(?:\?\/video\/)([a-zA-Z0-9_\/\.]+)/i,src:"http://i.cdn.turner.com/cnn/.element/apps/cvp/3.0/swf/cnn_416x234_embed.swf?context=embed&videoId=[id]",width:416,height:374}};c.ceebox=function(b,a,d){var f,k=[],i=0;c(b).is("a[href],area[href],input[href]")?(f=c(b)):(f=c(b).find("a[href],area[href],input[href]"));var m={image:function(j){return j.match(/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/i)||false},video:function(j,g){return g&&g.match(/^video$/i)?true:j.match(o.vidRegex)||false},html:function(){return true}};f.each(function(j){var g=this,l=c.metadata?c.extend({},d,c(g).metadata()):d;c.each(m,function(n){if(m[n](c(g).attr("href"),c(g).attr("rel"))&&l[n]){if(d.htmlGallery==true&&n=="html"){k[i]=j;i++}else if(d.imageGallery==true&&n=="image"){k[i]=j;i++}else if(d.videoGallery==true&&n=="video"){k[i]=j;i++}c(g).unbind("click").bind("click",function(s){s.preventDefault();s.stopPropagation();c.fn.ceebox.overlay(l);if(n=="image"){var p=new Image;p.onload=function(){var r=p.width,q=p.height;l.imageWidth=t(r,c.fn.ceebox.defaults.imageWidth);l.imageHeight=t(q,c.fn.ceebox.defaults.imageHeight);l.imageRatio=r/q;c.fn.ceebox.popup(g,c.extend(l,{type:n}))};p.src=c(g).attr("href")}else c.fn.ceebox.popup(g,c.extend(l,{type:n}))});return false}})});var e=k.length;c.each(k,function(j){var g=f[k[j]];if(e>1){var l={parentId:a,cbId:j,cbLen:e};if(j>0)l.prevId=k[j-1];if(j<e-1)l.nextId=k[j+1];c.data(g,"ceeboxGallery",l)}})};c.fn.ceebox.overlay=function(b){b=c.extend({width:60,height:30,type:"html"},c.fn.ceebox.defaults,b);c("#cee_overlay").size()==0&&c("<div id='cee_overlay'></div>").css({opacity:b.overlayOpacity,position:"absolute",top:0,left:0,backgroundColor:b.overlayColor,width:"100%",height:c(document).height(),zIndex:100}).appendTo(c("body"));if(c("#cee_box").size()==0){var a=A(b);a={position:a.position,zIndex:102,top:"50%",left:"50%",height:b.height+"px",width:b.width+"px",marginLeft:a.mleft+"px",marginTop:a.mtop+"px",opacity:0,borderWidth:b.borderWidth,borderColor:b.borderColor,backgroundColor:b.boxColor,color:b.textColor};c("<div id='cee_box'></div>").css(a).appendTo("body").animate({opacity:1},b.animSpeed,function(){c("#cee_overlay").addClass("cee_close")})}c("#cee_box").removeClass().addClass("cee_"+b.type);c("#cee_load").size()==0&&c(c.fn.ceebox.loader).appendTo("body");c("#cee_load").show("fast").animate({opacity:1},"fast")};c.fn.ceebox.popup=function(b,a){var d=B(a.margin);a=c.extend({width:d.width,height:d.height,modal:false,type:"html",onload:null},c.fn.ceebox.defaults,a);var f,k;if(c(b).is("a,area,input")&&(a.type=="html"||a.type=="image"||a.type=="video")){if(f=c.data(b,"ceeboxGallery"))k=c(a.selector).eq(f.parentId).find("a[href],area[href],input[href]");C[a.type].prototype=new H(b,a);d=new C[a.type];b=d.content;a.action=d.action;a.modal=d.modal;if(a.titles){a.titleHeight=c(d.titlebox).contents().contents().wrap("<div></div>").parent().attr("id","ceetitletest").css({position:"absolute",top:"-300px",width:d.width+"px"}).appendTo("body").height();c("#ceetitletest").remove();a.titleHeight=a.titleHeight>=10?a.titleHeight+20:30}else a.titleHeight=0;a.width=d.width+2*a.padding;a.height=d.height+a.titleHeight+2*a.padding}c.fn.ceebox.overlay(a);o.action=a.action;o.onload=a.onload;o.unload=a.unload;d=A(a);d={marginLeft:d.mleft,marginTop:d.mtop,width:a.width+"px",height:a.height+"px",borderWidth:a.borderWidth};if(a.borderColor){var i=/#[1-90a-f]+/gi;i=z(a.borderColor,i);d=c.extend(d,{borderTopColor:i[0],borderRightColor:i[1],borderBottomColor:i[2],borderLeftColor:i[3]})}d=a.textColor?c.extend(d,{color:a.textColor}):d;d=a.boxColor?c.extend(d,{backgroundColor:a.boxColor}):d;c("#cee_box").animate(d,a.animSpeed,a.easing,function(){var m=c(this).append(b).children().hide(),e=m.length,j=true;m.fadeIn(a.fadeIn,function(){if(c(this).is("#cee_iframeContent"))j=false;j&&this==m[e-1]&&c.fn.ceebox.onload()});if(a.modal==true)c("#cee_overlay").removeClass("cee_close");else{c("<a href='#' id='cee_closeBtn' class='cee_close' title='Close'>close</a>").prependTo("#cee_box");f&&F(f,k,a);E(f,k,a.fadeOut)}})};c.fn.ceebox.closebox=function(b){b=b||400;c("#cee_box").fadeOut(b);c("#cee_overlay").fadeOut(typeof b=="number"?b*2:"slow",function(){c("#cee_box,#cee_overlay,#cee_HideSelect,#cee_load").unbind().trigger("unload").remove();if(v(o.unload)){o.unload();o.unload=null}});document.onkeydown=null};c.fn.ceebox.onload=function(){c("#cee_load").hide(300).fadeOut(600,function(){c(this).remove()});if(v(o.action)){o.action();o.action=null}if(v(o.onload)){o.onload();o.onload=null}};var o,H=function(b,a){function d(l){var n=l.length;return n>1?l[n-1]:l}var f=a.type,k={image:[a.imageWidth,a.imageHeight,a.imageRatio||a.imageWidth/a.imageHeight],video:[a.videoWidth,a.videoHeight,a.videoRatio],html:[a.htmlWidth,a.htmlHeight,a.htmlRatio]},i=k[f][0],m=k[f][1],e=k[f][2],j=c(b).attr("rel");if(j&&j!=""){var g={};c.each(c.fn.ceebox.relMatch,function(l,n){g[l]=n.exec(j)});if(g.modal)a.modal=true;if(g.nonmodal)a.modal=false;if(g.width)i=Number(d(g.width));if(g.height)m=Number(d(g.height));if(g.ratio){e=d(g.ratio);e=Number(e)?Number(e):String(e)}if(g.videoSrc)this.videoSrc=String(d(g.videoSrc));if(g.videoId)this.videoId=String(d(g.videoId))}f=B(a.margin);i=t(i,f.width);m=t(m,f.height);if(e){if(!Number(e)){c.each(c.fn.ceebox.ratios,function(l,n){if(e==l){e=n;return false}});e=Number(e)||1}if(i/m>e)i=parseInt(m*e,10);if(i/m<e)m=parseInt(i/e,10)}this.modal=a.modal;this.href=c(b).attr("href");this.title=c(b).attr("title")||b.t||"";this.titlebox=a.titles?"<div id='cee_title'><h2>"+this.title+"</h2></div>":"";this.width=i;this.height=m;this.rel=j},C={image:function(){this.content="<img id='cee_img' src='"+this.href+"' width='"+this.width+"' height='"+this.height+"' alt='"+this.title+"'/>"+this.titlebox},video:function(){var b=new(function(d,f,k){var i=this;i.flashvars=i.param={};c.each(c.fn.ceebox.videos,function(m,e){if(e.siteRgx!=null&&typeof e.siteRgx!="string"&&e.siteRgx.test(d)){if(e.idRgx){e.idRgx=new RegExp(e.idRgx);k=e.idRgx.exec(d);k=String(G(k))}i.src=e.src?e.src.replace("[id]",k):f;e.flashvars&&c.each(e.flashvars,function(j,g){if(typeof g=="string")i.flashvars[j]=g.replace("[id]",k)});e.param&&c.each(e.param,function(j,g){if(typeof g=="string")i.param[j]=g.replace("[id]",k)});i.width=e.width;i.height=e.height}})})(this.href,this.videoSrc,this.videoId),a=c.fn.ceebox.videos.base;b.src=b.src||this.href;b.param=c.extend(a.param,b.param);b.flashvars=c.extend(a.flashvars,b.flashvars);b.width=this.width=b.width?b.width:this.width;b.height=this.height=b.height?b.height:this.height;this.action=function(){c("#cee_vid").flash({swf:b.src,params:b.param,flashvars:b.flashvars,width:b.width,height:b.height})};this.content="<div id='cee_vid' style='width:"+this.width+"px;height:"+this.height+"px'></div>"+this.titlebox},html:function(){var b=this.href,a=this.rel;a=[b.match(/[a-zA-Z0-9_\.]+\.[a-zA-Z]{2,4}/i),b.match(/^http:+/),a?a.match(/^iframe/):false];if(document.domain==a[0]&&a[1]&&!a[2]||!a[1]&&!a[2]){var d=b;if(a=b.match(/#[a-zA-Z0-9_\-]+/)){d=b.split("#")[0];d=String(d+" "+a)}this.action=function(){c("#cee_ajax").load(d)};this.content=this.titlebox+"<div id='cee_ajax' style='width:"+(this.width-30)+"px;height:"+(this.height-20)+"px'></div>"}else{c("#cee_iframe").remove();this.content=this.titlebox+"<iframe frameborder='0' hspace='0' src='"+b+"' id='cee_iframeContent' name='cee_iframeContent"+Math.round(Math.random()*1E3)+"' onload='$.fn.ceebox.onload()' style='width:"+this.width+"px;height:"+this.height+"px;' > </iframe>"}}},B=function(b){var a=document.documentElement;b=b||100;this.width=(window.innerWidth||self.innerWidth||a&&a.clientWidth||document.body.clientWidth)-b;this.height=(window.innerHeight||self.innerHeight||a&&a.clientHeight||document.body.clientHeight)-b;return this},A=function(b){var a="fixed",d=0,f=/[0-9]+/g;f=z(b.borderWidth,f);if(!window.XMLHttpRequest){c("#cee_HideSelect")===null&&c("body").append("<iframe id='cee_HideSelect'></iframe>");a="absolute";d=parseInt(document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop,10)}this.mleft=parseInt(-1*(b.width/2+Number(f[3])),10);this.mtop=parseInt(-1*(b.height/2+Number(f[0])),10)+d;this.position=a;return this}})(jQuery);;function mapClick(part){var s=part.toLowerCase().split(" ");$("#level2 tr:hidden").show();$.each(s,function(){$("#level2 tbody tr:visible .indexColumn:not(:contains('"+this+"'))").parent().hide();});$("#level2 theader tr").show();$("#worldheader").html(part);$("#worldlist").val(part);switch(part){case"afrika":setAreas(africa);break;case"asien":setAreas(asien);break;case"europa":setAreas(europa);break;case"sydamerika":setAreas(sydamerika);break;case"nordamerika":setAreas(nordamerika);break;default:setAreas(countries);break;}}
$(document).ready(function(){$('#storeselect').change(function(){$("#level2 tr:hidden").show();var s=$('#storeselect :selected').val().toLowerCase().split(" ");$.each(s,function(){$("#level2 tbody tr:visible .indexColumn:not(:contains('"+this+"'))").parent().hide();});});$("#level2 tr:visible .indexColumn:not(:contains('afrika'))").parent().hide();$('#puffs_middle .puff .overlay').css('margin-top',"-45px");$('#puffs_small .puff .overlay, #icons_small .puff .overlay').css('margin-top',"-40px");$('#puff_big').mouseover(function(){});$('#puff_big').mouseout(function(){});$('#puffs_middle .puff').each(function(index){$(this).mouseover(function(){$(this).find('.overlay').stop().animate({marginTop:"-87px"},{queue:false,duration:200});});$(this).mouseout(function(){$(this).find('.overlay').stop().animate({marginTop:"-45px"});});});$('#puffs_small .puff').each(function(index){$(this).mouseover(function(){$(this).find('.overlay').stop().animate({marginTop:"-60px"},{queue:false,duration:200});});$(this).mouseout(function(){$(this).find('.overlay').stop().animate({marginTop:"-40px"});});});$('#icons_small .puff').each(function(index){$(this).mouseover(function(){$(this).find('.overlay').stop().animate({marginTop:"-60px"},{queue:false,duration:200});});$(this).mouseout(function(){$(this).find('.overlay').stop().animate({marginTop:"-40px"});});});$(".overlay").click(function(){window.location=$(this).parent().find('.content a').attr("href");return false;});$('#icons_small .puff:nth-child(4)').css('margin-left',0);$("#level2 tr:has(td)").each(function(){var t=$(this).text().toLowerCase();$("<td class='indexColumn'></td>").hide().text(t).appendTo(this);});$("#FilterTextBox").keyup(function(){var s=$(this).val().toLowerCase().split(" ");$("#level2 tr:hidden").show();if($('#countrylist :selected').val()=='*'){var w=$('#worldlist :selected').val().toLowerCase();if($('#worldlist :selected').val()!='*'){$("#level2 tbody tr:visible .indexColumn:not(:contains('"+w+"'))").parent().hide();}}else{var w=$('#worldlist :selected').val().toLowerCase();var c=$('#countrylist :selected').val().toLowerCase();if($('#worldlist :selected').val()!='*'){$("#level2 tbody tr:visible .indexColumn:not(:contains('"+w+"'))").parent().hide();$("#level2 tbody tr:visible .indexColumn:not(:contains('"+c+"'))").parent().hide();}}
$.each(s,function(){$("#level2 tbody tr:visible .indexColumn:not(:contains('"+this+"'))").parent().hide();});});$('#worldlist').change(function(){var s=$('#worldlist :selected').val().toLowerCase().split(" ");$("#level2 tr:hidden").show();$.each(s,function(){$("#level2 tbody tr:visible .indexColumn:not(:contains('"+this+"'))").parent().hide();});if($('#worldlist :selected').val()=='*'){$("#level2 tr:hidden").show();}
switch($('#worldlist :selected').val().toLowerCase()){case"afrika":setAreas(africa);break;case"asien":setAreas(asien);break;case"europa":setAreas(europa);break;case"sydamerika":setAreas(sydamerika);break;case"nordamerika":setAreas(nordamerika);break;default:setAreas(countries);break;}
$("#worldheader").html($('#worldlist :selected').text().toLowerCase());});$('#countrylist').change(function(){$("#level2 tr:hidden").show();var s=$('#countrylist :selected').val().toLowerCase().split(" ");var w=$('#worldlist :selected').val().toLowerCase();if($('#countrylist :selected').val()=='*'){if($('#worldlist :selected').val()!='*'){$("#level2 tbody tr:visible .indexColumn:not(:contains('"+w+"'))").parent().hide();}else{$("#level2 tr:hidden").show();}}else{if($('#worldlist :selected').val()!='*'){$("#level2 tbody tr:visible .indexColumn:not(:contains('"+w+"'))").parent().hide();}else{$("#level2 tr:hidden").show();}
$.each(s,function(){$("#level2 tbody tr:visible .indexColumn:not(:contains('"+this+"'))").parent().hide();});}});$('#level2 tr:odd').addClass('odd');$('#level2 tbody tr:even').addClass('even');$('#puffs_middle .puff .overlay').each(function(i){if($(this).html()<20){$(this).remove();}});});function setAreas(arr){$('#countrylist').find('option').remove().end();var selectBox=$('#countrylist');for(var i=arr.length-1;i>=0;i--){var selectBox=$('#countrylist');selectBox.prepend('<option value="'+arr[i]+'">'+arr[i]+'</option>');}
$('#countrylist').find('option:last-child').remove().end();var selectBox=$('#countrylist');selectBox.prepend('<option value="*">Alla</option>');selectBox.val(0);if(arr.length<2){$('#countrylist').attr("disabled",true);$('#countrylist').css({opacity:.5})}else{$('#countrylist').attr("disabled",false);$('#countrylist').css({opacity:1})}}
function setCities(arr){$('#storeselect').find('option').remove().end();var selectBox=$('#storeselect');for(var i=arr.length-1;i>=0;i--){var selectBox=$('#storeselect');if(arr[i].length>1){selectBox.prepend('<option value="'+arr[i]+'">'+arr[i]+'</option>');}}
$('#storeselect').find('option:last-child').remove().end();$('#storeselect').val(3)};;var CCM_DISPATCHER_FILENAME='/index.php';var CCM_CID=1;var CCM_EDIT_MODE=false;var CCM_ARRANGE_MODE=false;var CCM_IMAGE_PATH="/concrete/images";var CCM_TOOLS_PATH="/index.php/tools/required";var CCM_REL="";$(function(){ccm_calendar.init('ALL');});$(document).ready(function(){$(".ceebox").ceebox();});function debug(){}
stLight.options({publisher:'9e793d51-f3ee-41eb-902d-1369d3c8ddca'});$(document).ready(function(){$('#breadcrumb').hide();});$(document).ready(function(){$("#SlideBox_6996").mouseover(function(){$(this).find('.SlideBoxOverlay').stop().animate({marginTop:"-70px"},{queue:false,duration:200});});$("#SlideBox_6996").mouseout(function(){$(this).find('.SlideBoxOverlay').stop().animate({marginTop:"-40px"});});});$(document).ready(function(){$("#SlideBox_7124").mouseover(function(){$(this).find('.SlideBoxOverlay').stop().animate({marginTop:"-70px"},{queue:false,duration:200});});$("#SlideBox_7124").mouseout(function(){$(this).find('.SlideBoxOverlay').stop().animate({marginTop:"-40px"});});});$(document).ready(function(){$("#SlideBox_7096").mouseover(function(){$(this).find('.SlideBoxOverlay').stop().animate({marginTop:"-55px"},{queue:false,duration:200});});$("#SlideBox_7096").mouseout(function(){$(this).find('.SlideBoxOverlay').stop().animate({marginTop:"-35px"});});});$(document).ready(function(){$("#SlideBox_6989").mouseover(function(){$(this).find('.SlideBoxOverlay').stop().animate({marginTop:"-55px"},{queue:false,duration:200});});$("#SlideBox_6989").mouseout(function(){$(this).find('.SlideBoxOverlay').stop().animate({marginTop:"-35px"});});});$(document).ready(function(){$("#SlideBox_4402").mouseover(function(){$(this).find('.SlideBoxOverlay').stop().animate({marginTop:"-55px"},{queue:false,duration:200});});$("#SlideBox_4402").mouseout(function(){$(this).find('.SlideBoxOverlay').stop().animate({marginTop:"-35px"});});});
