/*                                                                                                                                                                              
	ClearBox JS by pyro
	
	script home:		http://www.clearbox.hu
	developer's e-mail:	pyrex(at)chello(dot)hu
	developer's msn:	pyro(at)radiomax(dot)hu
	support forum:		http://www.sg.hu/listazas.php3?id=1172325655

	LICESE:

	Using of the script is free for any non-commercial webpages without any commercial activities,
	without advertising or selling anything. If you want to use it on a commercial page, please contact the developer.
	The source code of the script (except of user variable settings) can be changed only with the developer's written permission.

*/


//
// 	User variable settings:
//

var

	CB_HideColor='#000', 
	CB_WinPadd=10,
	CB_RoundPix=12,
	CB_Animation='double',
	CB_ImgBorder=0,
	CB_ImgBorderColor='#000',
	CB_Padd=4,
	CB_ShowImgURL='off',
	CB_ImgNum='off',
	CB_ImgNumBracket='()',
	CB_SlShowTime=3,
	CB_TextH=11,
	CB_Font='Verdana',
	CB_FontSize=11,
	CB_FontColor='#6d6e71',
	CB_FontWeight='normal',
	CB_Font2='arial',
	CB_FontSize2=11,
	CB_FontColor2='#999',
	CB_FontWeight2='normal',
	CB_PicDir='communs/images',
	CB_BodyMarginLeft=0,
	CB_BodyMarginRight=0,
	CB_BodyMarginTop=0,
	CB_BodyMarginBottom=0,
	CB_Preload='on',
	CB_TextNav='off',
	CB_NavTextPrv='previous',
	CB_NavTextNxt='next',
	CB_NavTextFull='original size and download',
	CB_NavTextDL='',
	//CB_NavTextDL='download',
	CB_NavTextClose='Fermer',
	CB_NavTextStart='start SlideShow',
	CB_NavTextStop='stop SlideShow',
	CB_NavTextImgPrv='on',
	CB_NavTextImgNxt='on',
	CB_NavTextImgFull='on',
	CB_NavTextImgDL='off',
	//CB_NavTextImgDL='on',
	CB_PictureStart='start.png',
	CB_PicturePause='pause.png',
	CB_PictureClose='close.png',
	CB_PictureLoading='loading.gif',
	CB_PictureNext='next.png',
	CB_PicturePrev='prev.png',

//
//	NEW in ClearBox since 2.5:
//

	CB_HideOpacitySpeed=350,
	CB_ImgOpacitySpeed=400,
	CB_TextOpacitySpeed=300,
	CB_HideOpacity=.85,
	CB_AnimSpeed=500,
	CB_ImgTextFade='on',
	CB_FlashHide='off',
	CB_SelectsHide='on',
	CB_NoThumbnails='on', 
	CB_SimpleDesign='off',
	CB_ImgMinWidth=160,
	CB_ImgMinHeight=160,
	CB_CloseOnH='on',
	CB_ShowGalName='off',
	CB_AllowedToRun='on',
	CB_AllowExtFunct='off',
	CB_FullSize='off'

;

//
//	Do not change the following code!
//

function $CB(){if(arguments.length==1)return get$CB(arguments[0]);var b=[];$c(arguments).each(function(a){b.push(get$CB(a))});return b;function get$CB(a){if(typeof a=='string')a=document.getElementById(a);return a}};Function.prototype.lancol=function(a){var b=this;return function(){return b.apply(a,arguments)}};Kiterjeszt=function(a,b){for(kifejezes in b)a[kifejezes]=b[kifejezes];return a};if(!window.CBEE)var CBEE=new Object();var Osztaly={letrehoz:function(){return function(){this.azonnallefut.apply(this,arguments)}}};
var CB_effektek=new Object();CB_effektek.alap=function(){};CB_effektek.alap.prototype={parameterek:function(a){this.params=Kiterjeszt({haelindul:function(){},halefutott:function(){},effekt:CB_effektek.Effektek.evlassitva,idotartam:500,egyseg:'px',varakozas:true,fps:100},a||{})},effekt_lepes:function(){var a=new Date().getTime();if(a<this.time+this.params.idotartam){if(this.CBe.getAttribute('id')=='CB_SlideShowBar'&&CB_SSTimer=='off'){this.most=this.hova;this.clearTimer();return}if((this.CBe.getAttribute('id')=='CB_Image'||this.CBe.getAttribute('id')=='CB_TL'||this.CBe.getAttribute('id')=='CB_iFrame')&&CB_Break=='on'){this.clearTimer();return}this.cTime=a-this.time;this.setNow()}else{setTimeout(this.params.halefutott.lancol(this,this.CBe),10);this.clearTimer();this.most=this.hova}this.noveles()},setNow:function(){this.most=this.compute(this.honnan,this.hova)},compute:function(a,b){var c=b-a;return this.params.effekt(this.cTime,a,c,this.params.idotartam)},clearTimer:function(){clearInterval(this.timer);this.timer=null;return this},_start:function(a,b){if(!this.params.varakozas)this.clearTimer();if(this.timer)return;setTimeout(this.params.haelindul.lancol(this,this.CBe),10);this.honnan=a;this.hova=b;this.time=new Date().getTime();this.timer=setInterval(this.effekt_lepes.lancol(this),Math.round(1000/this.params.fps));return this},sajat:function(a,b){return this._start(a,b)},set:function(a){this.most=a;this.noveles();return this},elrejt:function(){return this.set(0)},setStyle:function(e,p,v){if(this.CBe.getAttribute('id')=='CB_Image'&&p=='height'){CB_MarginT=parseInt(DocScrY-(CB_ieRPBug+this.most+CB_TextH+(2*(CB_RoundPix+CB_ImgBorder+CB_Padd)))/2);CB_Win.style.marginTop=(CB_MarginT-(FF_ScrollbarBug/2))+'px';CB_ImgCont.style.height=this.most+(2*CB_ImgBorder)+'px'}if(this.CBe.getAttribute('id')=='CB_Image'&&p=='width'){CB_MarginL=parseInt(DocScrX-(this.most+(2*(CB_RoundPix+CB_ImgBorder+CB_Padd)))/2);CB_Win.style.marginLeft=CB_MarginL+'px'}if(p=='opacity'){if(v==0&&e.style.visibility!="hidden")e.style.visibility="hidden";else if(e.style.visibility!="visible")e.style.visibility="visible";if(window.ActiveXObject)e.style.filter="alpha(opacity="+v*100+")";e.style.opacity=v}else e.style[p]=v+this.params.egyseg}};
CB_effektek.magassag=Osztaly.letrehoz();CB_effektek.magassag.prototype=Kiterjeszt(new CB_effektek.alap(),{azonnallefut:function(a,b){this.CBe=$CB(a);this.parameterek(b);this.CBe.style.overflow='hidden'},toggle:function(){if(this.CBe.offsetHeight>0)return this.sajat(this.CBe.offsetHeight,0);else return this.sajat(0,this.CBe.scrollHeight)},show:function(){return this.set(this.CBe.scrollHeight)},noveles:function(){this.setStyle(this.CBe,'height',this.most)}});CB_effektek.szelesseg=Osztaly.letrehoz();CB_effektek.szelesseg.prototype=Kiterjeszt(new CB_effektek.alap(),{azonnallefut:function(a,b){this.CBe=$CB(a);this.parameterek(b);this.CBe.style.overflow='hidden';this.iniWidth=this.CBe.offsetWidth},toggle:function(){if(this.CBe.offsetWidth>0)return this.sajat(this.CBe.offsetWidth,0);else return this.sajat(0,this.iniWidth)},show:function(){return this.set(this.iniWidth)},noveles:function(){this.setStyle(this.CBe,'width',this.most)}});CB_effektek.Atlatszosag=Osztaly.letrehoz();CB_effektek.Atlatszosag.prototype=Kiterjeszt(new CB_effektek.alap(),{azonnallefut:function(a,b){this.CBe=$CB(a);this.parameterek(b);this.most=1},toggle:function(){if(this.most>0)return this.sajat(1,0);else return this.sajat(0,1)},show:function(){return this.set(1)},noveles:function(){this.setStyle(this.CBe,'opacity',this.most)}});CB_effektek.Effektek={egyenletes:function(t,b,c,d){return c*t/d+b},evlassitva:function(t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b}};
var CB_version='2.61',CB_Show=1;CB_STi=-50,CB_PadT=5,CB_CheckDuplicates='off';if(CB_Animation=='off'){CB_Animation='double';CB_AnimSpeed=1}function CB_KeyPress(a){var b;if(!a)var a=window.event;var b=(a.which)?a.which:a.keyCode;var c=String.fromCharCode(b);if(CB_ClearBox=='on'){if(CB_ActImgId>1&&(c=="%"||b==37||b==52)){if(CB_SSTimer=='on'){CB_SlideShowJump()}CB_LoadImage(CB_ActImgId-1);return false}if(CB_ActImgId<CB_Gallery.length-1&&(c=="'"||b==39||b==54)){if(CB_SSTimer=='on'){CB_SlideShowJump()}CB_LoadImage(CB_ActImgId+1);return false}if((c==" "||b==32)&&CB_IsAnimating==0){if(CB_Gallery.length<3){return false}if(CB_SS=='start'){CB_SSStart();return false}else{CB_SSPause();return false}}if(c==""||b==27){CB_Close();return false}if(b==13){return false}}else{if(CB_IsAnimating==1&&(c==" "||b==32||b==13)){return false}}}function CB_SSStart(){CB_SlideS.style.display='none';CB_SlideP.style.display='block';CB_SS='pause';CB_SlideB.style.display='block';CB_SlideShow()}function CB_SSPause(){CB_SlideP.style.display='none';CB_SlideS.style.display='block';CB_SlideShowStop()}CB_BodyMarginLeft=parseInt(CB_BodyMarginLeft);if(CB_BodyMarginLeft<0){CB_BodyMarginLeft=0}CB_BodyMarginRight=parseInt(CB_BodyMarginRight);if(CB_BodyMarginRight<0){CB_BodyMarginRight=0}CB_BodyMarginTop=parseInt(CB_BodyMarginTop);if(CB_BodyMarginTop<0){CB_BodyMarginTop=0}CB_BodyMarginBottom=parseInt(CB_BodyMarginBottom);if(CB_BodyMarginBottom<0){CB_BodyMarginBottom=0}if(CB_HideOpacity<0||CB_HideOpacity>1){CB_HideOpacity=0.75}CB_HideOpacitySpeed=parseInt(CB_HideOpacitySpeed);if(CB_HideOpacitySpeed<1||CB_HideOpacitySpeed>10000){CB_HideOpacitySpeed=300}CB_ImgOpacitySpeed=parseInt(CB_ImgOpacitySpeed);if(CB_ImgOpacitySpeed<1||CB_ImgOpacitySpeed>10000){CB_ImgOpacitySpeed=600}CB_TextOpacitySpeed=parseInt(CB_TextOpacitySpeed);if(CB_TextOpacitySpeed<1||CB_TextOpacitySpeed>10000){CB_TextOpacitySpeed=250}CB_WinPadd=parseInt(CB_WinPadd);if(CB_WinPadd<0){CB_WinPadd=1}if(CB_Animation!='off'&&CB_Animation!='normal'&&CB_Animation!='double'&&CB_Animation!='warp'){CB_Animation='double'}CB_ImgBorder=parseInt(CB_ImgBorder);if(CB_ImgBorder<0){CB_ImgBorder=1}CB_Padd=parseInt(CB_Padd);if(CB_Padd<0){CB_Padd=2}if(CB_ShowImgURL!='on'&&CB_ShowImgURL!='off'){CB_ShowImgURL='off'}CB_PadT=parseInt(CB_PadT);if(CB_PadT<0){CB_PadT=0}CB_RoundPix=parseInt(CB_RoundPix);if(CB_RoundPix<0){CB_RoundPix=12}CB_TextH=parseInt(CB_TextH);if(CB_TextH<25){CB_TextH=25}if(CB_SimpleDesign=='on'){CB_TextH=0;CB_PadT=0}CB_FontSize=parseInt(CB_FontSize);if(CB_FontSize<6){CB_FontSize=12}CB_FontSize2=parseInt(CB_FontSize2);if(CB_FontSize2<6){CB_FontSize2=11}if(CB_ImgNum!='on'&&CB_ImgNum!='off'){CB_ImgNum='on'}CB_SlShowTime=parseInt(CB_SlShowTime);if(CB_SlShowTime<1){CB_SlShowTime=5}CB_SlShowTime*=1000;if(CB_CheckDuplicates!='on'&&CB_CheckDuplicates!='off'){CB_CheckDuplicates='off'}if(CB_Preload!='on'&&CB_Preload!='off'){CB_Preload='on'}if(CB_ImgTextFade!='on'&&CB_ImgTextFade!='off'){CB_ImgTextFade='on'}if(CB_FlashHide!='on'&&CB_FlashHide!='off'){CB_FlashHide='off'}if(CB_SelectsHide!='on'&&CB_SelectsHide!='off'){CB_SelectsHide='on'}if(CB_NoThumbnails!='on'&&CB_NoThumbnails!='off'){CB_NoThumbnails='off'}if(CB_SimpleDesign!='on'&&CB_SimpleDesign!='off'){CB_SimpleDesign='off'}if(CB_CloseOnH!='on'&&CB_CloseOnH!='off'){CB_CloseOnH='on'}if(CB_ShowGalName!='on'&&CB_ShowGalName!='off'){CB_ShowGalName='on'}if(CB_AllowedToRun!='on'&&CB_AllowedToRun!='off'){CB_AllowedToRun='on'}if(CB_AllowExtFunct!='on'&&CB_AllowExtFunct!='off'){CB_AllowExtFunct='off'}if(CB_NavTextImgPrv!='on'&&CB_NavTextImgPrv!='off'){CB_NavTextImgPrv='on'}if(CB_NavTextImgNxt!='on'&&CB_NavTextImgNxt!='off'){CB_NavTextImgNxt='on'}if(CB_NavTextImgFull!='on'&&CB_NavTextImgFull!='off'){CB_NavTextImgFull='on'}if(CB_NavTextImgDL!='on'&&CB_NavTextImgDL!='off'){CB_NavTextImgDL='on'}if(CB_FullSize!='on'&&CB_FullSize!='off'){CB_FullSize='on'}CB_AnimSpeed=parseInt(CB_AnimSpeed);if(CB_AnimSpeed<1){CB_AnimSpeed=600}CB_ImgMinWidth=parseInt(CB_ImgMinWidth);if(CB_ImgMinWidth<50){CB_ImgMinWidth=50}CB_ImgMinHeight=parseInt(CB_ImgMinHeight);if(CB_ImgMinHeight<50){CB_ImgMinHeight=50}var CB_Break,CB_ScrollEnabled=true,CB_STii=CB_STi,CB_ScrollTimer,CB_ImgFadeNum,CB_ActThumbSrc,CB_IEShowBug='',CB_pngie=0,CB_AllThumbsWidth,CB_ResizeTimer,CB_IsAnimating,CB_ImgWidthOrig,CB_ImgHeightOrig,CB_ieRPBug=0,CB_ie6RPBug='',CB_ClearBox,CB_BodyMarginX=CB_BodyMarginLeft+CB_BodyMarginRight,CB_BodyMarginY=CB_BodyMarginTop+CB_BodyMarginBottom,FF_ScrollbarBug,CB_Links,CB_SlideBW=0,CB_SSTimer,CB_SS='start',CB_LoadingImg,CB_MarginL,CB_MarginT,CB_Content,CB_ImgWidth,CB_ImgHeight,CB_ImgRate,CB_Win,CB_Txt,CB_Img,CB_Prv,CB_Nxt,CB_ImgWidthOld,CB_ImgHeightOld,CB_ActImgId,CB_Gallery,CB_Count,CB_preImages,CB_Loaded,CB_Header,CB_Footer,CB_Left,CB_Right;CB_PicDir+='/';var IE=document.all?true:false;/*if(!IE)document.captureEvents(Event.MOUSEMOVE);*/if(CB_NavTextImgPrv=='on'){var temp=CB_NavTextPrv;CB_NavTextPrv='<img class="CB_BtmNav" src="'+CB_PicDir+'btm_prev.gif" alt="'+temp+'" title="'+temp+'" />'}if(CB_NavTextImgNxt=='on'){var temp=CB_NavTextNxt;CB_NavTextNxt='<img class="CB_BtmNav" src="'+CB_PicDir+'btm_next.gif" alt="'+temp+'" title="'+temp+'" />'}if(CB_NavTextImgFull=='on'){var temp=CB_NavTextFull;CB_NavTextFull='<img class="CB_BtmNav" src="'+CB_PicDir+'btm_max.gif" alt="'+temp+'" title="'+temp+'" />'}if(CB_NavTextImgDL=='on'){var temp=CB_NavTextDL;CB_NavTextDL='<img class="CB_BtmNav" src="'+CB_PicDir+'btm_dl.gif" alt="'+temp+'" title="'+temp+'" />'}function OnLoad(a,b){if(typeof window.addEventListener!='undefined'){window.addEventListener(a,b,false)}else if(typeof document.addEventListener!='undefined'){document.addEventListener(a,b,false)}else if(typeof window.attachEvent!='undefined'){window.attachEvent("on"+a,b)}}OnLoad('load',CB_Init);function CB_Init(){document.onkeypress=CB_KeyPress;document.body.style.position="static";var a='<div class="CB_RoundPixBugFix" style="width: '+CB_RoundPix+'px; height: '+CB_RoundPix+'px;"></div>';if(navigator.userAgent.indexOf("MSIE")!=-1){CB_IEShowBug='<img id="CB_ShowTh" alt="" src="'+CB_PicDir+'blank.gif" />'}else{CB_IEShowBug='<div id="CB_ShowTh"></div>'}if(!document.getElementById('CB_All')&&CB_Show!=0){var b=document.getElementsByTagName("body").item(0);var c=document.createElement("div");c.setAttribute('id','CB_HiddenText');b.appendChild(c);var d=document.createElement("div");d.setAttribute('id','CB_All');b.appendChild(d)}document.getElementById('CB_All').innerHTML='<div id="CB_ContentHide"></div><div id="CB_SlideShowBar"></div><table cellspacing="0" cellpadding="0" id="CB_Window"><tr id="CB_Header"><td id="CB_TopLeft">'+a+'</td><td id="CB_Top"></td><td id="CB_TopRight">'+a+'</td></tr><tr id="CB_Body"><td id="CB_Left"></td><td id="CB_Content" valign="top" align="left"><div id="CB_Padding"><div id="CB_ImgContainer"><img id="CB_CloseWindow" alt="'+CB_NavTextClose+'" title="'+CB_NavTextClose+'" src="'+CB_PicDir+CB_PictureClose+'" /><div id="CB_iFrCont"></div>'+CB_IEShowBug+'<div id="CB_Thumbs"><div id="CB_Thumbs2"></div></div><img id="CB_LoadingImage" alt="loading" src="'+CB_PicDir+CB_PictureLoading+'" /><img id="CB_Image" alt="" src="'+CB_PicDir+'blank.gif" /><div id="CB_PrevNext"><img id="CB_NavPrev" alt="" src="'+CB_PicDir+CB_PicturePrev+'" /><img id="CB_NavNext" alt="" src="'+CB_PicDir+CB_PictureNext+'" /><div id="CB_ImgHide"></div><img id="CB_SlideShowP" alt="'+CB_NavTextStop+'" title="'+CB_NavTextStop+'" src="'+CB_PicDir+CB_PicturePause+'" /><img id="CB_SlideShowS" alt="'+CB_NavTextStart+'" title="'+CB_NavTextStart+'" src="'+CB_PicDir+CB_PictureStart+'" /><a id="CB_Prev"></a><a id="CB_Next"></a></div></div><div id="CB_Text"><div id="CB_T1"></div><div id="CB_T2"></div><div id="CB_TL"></div></div></div></td><td id="CB_Right"></td></tr><tr id="CB_Footer"><td id="CB_BtmLeft">'+a+'</td><td id="CB_Btm"></td><td id="CB_BtmRight">'+a+'</td></tr></table>';if(navigator.userAgent.indexOf("MSIE 6")!=-1&&CB_RoundPix==0){CB_ie6RPBug=1}if(navigator.userAgent.indexOf("MSIE")!=-1&&CB_RoundPix<2){CB_ieRPBug=6}document.getElementById('CB_Padding').style.padding=CB_Padd+'px';CB_ShTh=document.getElementById('CB_ShowTh');CB_ImgHd=document.getElementById('CB_ImgHide');CB_ImgHd.style.backgroundColor='#fff';CB_ImgHd.style.opacity=0.75;CB_ImgHd.style.filter='alpha(opacity=75)';CB_Win=document.getElementById('CB_Window');CB_Thm=document.getElementById('CB_Thumbs');CB_Thm2=document.getElementById('CB_Thumbs2');if(CB_NoThumbnails=='on'){CB_ShTh.style.display='none'}CB_HideContent=document.getElementById('CB_ContentHide');CB_HideContent.style.backgroundColor=CB_HideColor;CB_HideContent.style.opacity=0;CB_HideContent.style.filter='alpha(opacity=0)';HideDocumentFadeEffectiFr=new CB_effektek.Atlatszosag(CB_HideContent,{idotartam:CB_HideOpacitySpeed,halefutott:function(){CB_AnimatePlease('HTML')}});HideDocumentFadeEffectiFr.elrejt();HideDocumentFadeEffect=new CB_effektek.Atlatszosag(CB_HideContent,{idotartam:CB_HideOpacitySpeed,halefutott:function(){CB_LoadImage()}});HideDocumentFadeEffect.elrejt();HideDocumentFadeEffect2=new CB_effektek.Atlatszosag(CB_HideContent,{idotartam:CB_HideOpacitySpeed,halefutott:function(){CB_HideContent.style.width='0px';CB_HideContent.style.height='0px';CB_LoadingImg.style.visibility='hidden';CB_ClearBox='off'}});HideDocumentFadeEffect2.elrejt();CB_Img=document.getElementById('CB_Image');CB_LoadingImg=document.getElementById('CB_LoadingImage');CB_ImgCont=document.getElementById('CB_ImgContainer');CB_Img.style.border=CB_ImgBorder+'px solid '+CB_ImgBorderColor;CB_Cls=document.getElementById('CB_CloseWindow');CB_Cls.onclick=function(){CB_Close()};CB_SlideS=document.getElementById('CB_SlideShowS');CB_SlideP=document.getElementById('CB_SlideShowP');CB_SlideS.onclick=function(){CB_SSStart();return false};CB_SlideP.onclick=function(){CB_SSPause();return false};CB_SlideB=document.getElementById('CB_SlideShowBar');CB_SlideB.style.opacity=0.5;CB_SlideB.style.filter='alpha(opacity=50)';CB_NavP=document.getElementById('CB_NavPrev');CB_NavP.onmouseover=function(){CB_NavP.style.visibility='visible'};CB_NavP.onclick=function(){if(CB_SSTimer=='on'){CB_SlideShowJump()}CB_LoadImage(CB_ActImgId-1);return false};CB_NavN=document.getElementById('CB_NavNext');CB_NavN.onmouseover=function(){CB_NavN.style.visibility='visible'};CB_NavN.onclick=function(){if(CB_SSTimer=='on'){CB_SlideShowJump()}CB_LoadImage(CB_ActImgId+1);return false};CB_Prv=document.getElementById('CB_Prev');CB_Prv.style.backgroundImage='url('+CB_PicDir+'blank.gif)';CB_Prv.onmouseover=function(){CB_NavP.style.visibility='visible'};CB_Prv.onmouseout=function(){CB_NavP.style.visibility='hidden'};CB_Nxt=document.getElementById('CB_Next');CB_Nxt.style.backgroundImage='url('+CB_PicDir+'blank.gif)';CB_Nxt.onmouseover=function(){CB_NavN.style.visibility='visible'};CB_Nxt.onmouseout=function(){CB_NavN.style.visibility='hidden'};CB_TxtL=document.getElementById('CB_TL');CB_Txt=document.getElementById('CB_Text');CB_Txt.style.height=(CB_TextH-CB_PadT)+'px';CB_TxtL.style.top='-'+(CB_TextH-CB_PadT)+'px';CB_TxtL.style.height=(CB_TextH-CB_PadT+3)+'px';CB_Txt.style.marginTop=CB_PadT+'px';if(CB_SimpleDesign=='on'){CB_Txt.style.display='none';CB_TextH=0}else{CB_Txt.style.display='block'}CB_Txt1=document.getElementById('CB_T1');CB_Txt1.style.fontFamily=CB_Font;CB_Txt1.style.fontWeight=CB_FontWeight;CB_Txt1.style.color=CB_FontColor;CB_Txt1.style.fontSize=CB_FontSize+'px';CB_HTxt=document.getElementById('CB_HiddenText');CB_HTxt.style.fontFamily=CB_Font;CB_HTxt.style.fontWeight=CB_FontWeight;CB_HTxt.style.fontSize=CB_FontSize+'px';CB_Txt2=document.getElementById('CB_T2');CB_Txt2.style.fontFamily=CB_Font2;CB_Txt2.style.fontWeight=CB_FontWeight2;CB_Txt2.style.color=CB_FontColor2;CB_Txt2.style.fontSize=CB_FontSize2+'px';CB_Header=document.getElementById('CB_Header').style;CB_Header.height=CB_RoundPix+'px';CB_Footer=document.getElementById('CB_Footer').style;CB_Footer.height=CB_RoundPix+'px';CB_Left=document.getElementById('CB_Left').style;CB_Left.width=CB_RoundPix+CB_ie6RPBug+'px';CB_Right=document.getElementById('CB_Right').style;CB_Right.width=CB_RoundPix+'px';CB_iFrC=document.getElementById('CB_iFrCont');if(CB_ImgTextFade=='on'){TxtFadeEffect=new CB_effektek.Atlatszosag(CB_TxtL,{idotartam:CB_TextOpacitySpeed,halefutott:function(){CB_CloseOnHON()}});ImgFadeEffect=new CB_effektek.Atlatszosag(CB_Img,{idotartam:CB_ImgOpacitySpeed,halefutott:function(){CB_ShowImage()}});ImgFadeEffect.elrejt();ImgFadeEffect2=new CB_effektek.Atlatszosag(CB_Img,{idotartam:CB_ImgOpacitySpeed});ImgFadeEffect2.elrejt()}CB_PrvNxt=document.getElementById('CB_PrevNext').style;CB_ShTh.onmouseover=function(){CB_ShowThumbs();return};CB_ImgHd.onmouseover=function(){CB_HideThumbs();return};CB_Txt.onmouseover=function(){CB_HideThumbs();return};CB_HideContent.onmouseover=function(){CB_HideThumbs();return};if(navigator.userAgent.indexOf("Opera")!=-1){CB_BodyMarginX=0;CB_BodyMarginY=0}if(navigator.userAgent.indexOf("Firefox")!=-1){CB_BodyMarginY=0}document.getElementById('CB_Thumbs').onmousemove=getMouseXY;var e=0;var f=0;var g=new Array("blank.gif","noprv.gif","s_btm.png","s_btmleft.png","s_btmright.png","s_left.png","s_right.png","s_top.png","s_topleft.png","s_topright.png","white.gif",CB_PictureStart,CB_PicturePause,CB_PictureClose,CB_PictureLoading,CB_PictureNext,CB_PicturePrev,"btm_prev.gif","btm_next.gif","btm_max.gif","btm_dl.gif");var h=new Array();CB_Links=document.getElementsByTagName('a');for(i=0;i<CB_Links.length;i++){CB_Rel=CB_Links[i].rel;CB_URL=CB_Links[i].getAttribute('href');if(CB_Rel.match('clearbox')!=null&&CB_Show!=0){if(CB_Rel=='clearbox'){CB_Links[i].onclick=function(){if(CB_AllowedToRun=='on'){CB_ClickIMG(this.rel+'+\\+'+this.getAttribute('href')+'+\\+'+this.getAttribute('title'));return false}}}else{if(CB_Rel.substring(0,8)=='clearbox'&&CB_Rel.charAt(8)=='['&&CB_Rel.charAt(CB_Rel.length-1)==']'){if(CB_Links[i].rel.substring(9,CB_Links[i].rel.length-1).split(',,')[0]!='clearbox'){CB_Links[i].onclick=function(){if(CB_AllowedToRun=='on'){CB_ClickIMG(this.rel.substring(9,this.rel.length-1)+'+\\+'+this.getAttribute('href')+'+\\+'+this.getAttribute('title'));return false}}}else{alert('ClearBox ERREUR #1 :\n\nLe nom de la gallerie de photos ne peut pas être "clearbox[clearbox]"!\n(dans : document, '+i+'. <a>.)')}if(CB_Links[i].getAttribute('tnhref')!=null&&CB_Links[i].getAttribute('tnhref')!='null'){g.push(CB_Links[i].getAttribute('tnhref'));var j=document.createElement('img');j.src=CB_Links[i].getAttribute('tnhref');j.alt='';j.className='CB_TnThumbs';CB_Links[i].appendChild(j)}}else if(CB_Rel.substring(0,8)=='clearbox'&&CB_Rel.charAt(8)=='('&&CB_Rel.charAt(CB_Rel.length-1)==')'){if(CB_Rel.substring(9,CB_Rel.length-1).split(',,')[2]=='click'){CB_Links[i].onclick=function(){if(CB_AllowedToRun=='on'){CB_ClickURL(this.rel.substring(9,this.rel.length-1)+'+\\+'+this.getAttribute('href')+'+\\+'+this.getAttribute('title'));return false}}}else{CB_Links[i].onmouseover=function(){if(CB_AllowedToRun=='on'){CB_ClickURL(this.rel.substring(9,this.rel.length-1)+'+\\+'+this.getAttribute('href')+'+\\+'+this.getAttribute('title'));return false}}}}else{alert('ClearBox ERROR#2:\n\n: Bad REL attribute: "'+CB_Links[i].rel+'"!\n(in: document, '+i+'. <a>.)')}}}}for(i=0;i<g.length;i++){h[i]=new Image();h[i].src=CB_PicDir+g[i]}CB_ImgWidthOld=CB_ImgWidth=CB_ImgMinWidth;CB_ImgHeightOld=CB_ImgHeight=CB_ImgMinHeight-CB_TextH;if(navigator.userAgent.indexOf("MSIE")!=-1&&navigator.userAgent.indexOf("Windows")!=-1&&navigator.userAgent.indexOf("MSIE 7")==-1&&navigator.userAgent.indexOf("MSIE 8")==-1){CB_pngFixIE()}}function CB_ClickIMG(a){if(CB_Show==0){return false}CB_ScrollEnabled=false;CB_Break='off';CB_Clicked=a.split('+\\+');CB_Rel=CB_Clicked[0].split(',,');if(CB_Rel[1]>0){CB_SlShowTimer=parseInt(CB_Rel[1])*1000}else{CB_SlShowTimer=CB_SlShowTime}if(CB_Rel[2]=='start'){CB_SS='pause'}if(CB_Gallery&&CB_Rel[0]==CB_Gallery[0][0]&&CB_Gallery[0][0]!='clearbox'){}else{CB_Gallery=new Array;CB_Gallery.push(new Array(CB_Rel[0],CB_Rel[1],CB_Rel[2]));if(CB_Clicked[0]=='clearbox'){CB_Gallery.push(new Array(CB_Clicked[1],CB_Clicked[2]))}else{for(i=0;i<CB_Links.length;i++){if(CB_Links[i].rel.substring(9,CB_Links[i].rel.length-1).split(',,')[0]==CB_Gallery[0][0]){CB_ActThumbSrc=CB_PicDir+'noprv.gif';if(CB_Links[i].getAttribute('tnhref')==null||CB_Links[i].getAttribute('tnhref')=='null'){for(j=0;j<CB_Links[i].childNodes.length;j++){if(CB_Links[i].childNodes[j].src!=undefined){CB_ActThumbSrc=CB_Links[i].childNodes[j].src}}}else{CB_ActThumbSrc=CB_Links[i].getAttribute('tnhref')}CB_Gallery.push(new Array(CB_Links[i].getAttribute('href'),CB_Links[i].getAttribute('title'),CB_ActThumbSrc))}}}}CB_ActImgId=0;while(CB_Gallery[CB_ActImgId][0]!=CB_Clicked[1]){CB_ActImgId++}CB_SetAllPositions();if(CB_SelectsHide=='on'){CB_HideSelect()}if(CB_FlashHide=='on'){CB_HideFlash()}CB_HideDocument()}function CB_SetAllPositions(){getBrowserSize();getDocumentSize();getScrollPosition();if(BrSizeY>DocSizeY){DocSizeY=BrSizeY}if((navigator.userAgent.indexOf("Netscape")!=-1||navigator.userAgent.indexOf("Firefox")!=-1)&&BrSizeX!=DocSizeX){FF_ScrollbarBug=window.scrollMaxY+window.innerHeight-DocSizeY}else{FF_ScrollbarBug=0}CB_SetMargins();if(CB_BodyMarginX==0){if(DocSizeX>screen.width){CB_HideContent.style.width=DocSizeX+'px'}else{CB_HideContent.style.width='100%'}}else{CB_HideContent.style.width=DocSizeX+CB_BodyMarginX+'px'}CB_HideContent.style.height=BrSizeY+DocScrY+'px';CB_HideContent.style.visibility='visible';return}function CB_ClickURL(a){if(CB_Show==0){return false}CB_Break='off';CB_iFrC.innerHTML='<iframe frameborder="0" id="CB_iFrame" src=""></iframe>';CB_iFr=document.getElementById('CB_iFrame');CB_iFr.style.opacity=0;CB_iFr.style.filter='alpha(opacity=0)';if(CB_ImgTextFade=='on'){iFrFadeEffect=new CB_effektek.Atlatszosag(CB_iFr,{idotartam:CB_ImgOpacitySpeed,halefutott:function(){CB_Cls.style.display='block';CB_Img.style.visibility='hidden';TxtFadeEffect.sajat(1,0)}});iFrFadeEffect.elrejt()}CB_ScrollEnabled=false;CB_Txt.style.width='0px';CB_TxtL.style.width='0px';CB_TxtLShow();CB_ClearBox='off';CB_Clicked=a.split('+\\+');CB_iFr.src=CB_Clicked[1];CB_PrvNxt.display='none';CB_Rel=CB_Clicked[0].split(',,');CB_SetAllPositions();CB_ImgWidth=parseInt(CB_Rel[0]);CB_ImgHeight=parseInt(CB_Rel[1]);if(CB_ImgWidth>BrSizeX-(2*(CB_RoundPix+CB_ImgBorder+CB_Padd+CB_WinPadd))){CB_ImgWidth=BrSizeX-(2*(CB_RoundPix+CB_ImgBorder+CB_Padd+CB_WinPadd))}if(CB_ImgHeight>BrSizeY-(2*(CB_RoundPix+CB_ImgBorder+CB_Padd+CB_WinPadd))-CB_TextH){CB_ImgHeight=BrSizeY-(2*(CB_RoundPix+CB_ImgBorder+CB_Padd+CB_WinPadd))-CB_TextH}CB_Img.style.width=CB_ImgWidthOld+'px';CB_Img.style.height=CB_ImgHeightOld+'px';CB_Img.style.display='block';CB_Img.style.visibility='hidden';CB_Win.style.visibility='visible';CB_Cls.style.display='none';CB_SlideS.style.display='none';CB_SlideP.style.display='none';if(CB_SelectsHide=='on'){CB_HideSelect()}if(CB_FlashHide=='on'){CB_HideFlash()}CB_HideDocument('HTML')}function CB_HideDocument(a){if(a=='HTML'){CB_LoadingImg.style.visibility='visible';HideDocumentFadeEffectiFr.sajat(0,CB_HideOpacity)}else{CB_NewWindow();HideDocumentFadeEffect.sajat(0,CB_HideOpacity)}CB_HideContent.style.height=DocSizeY+CB_BodyMarginY+'px'}function CB_NewWindow(){CB_NewAndLoad();CB_Img.style.width=CB_ImgWidthOld+'px';CB_Img.style.height=CB_ImgHeightOld+'px';CB_Img.style.display='block';CB_Img.style.visibility='hidden';CB_Win.style.visibility='visible'}function CB_NewAndLoad(){CB_SlideS.style.display='none';CB_SlideP.style.display='none';CB_Cls.style.display='none';CB_Prv.style.display='none';CB_Nxt.style.display='none'}function CB_LoadImage(a){CB_ClearBox='off';CB_ScrollTextStop();CB_NewAndLoad();CB_NavP.style.visibility='hidden';CB_NavN.style.visibility='hidden';CB_Txt.style.width='0px';CB_TxtL.style.width='0px';CB_Thm.style.width='0px';CB_ImgHd.style.width='0px';CB_ImgHd.style.height='0px';CB_ShTh.style.visibility='hidden';CB_Thm.style.display='none';CB_ImgHd.style.visibility='hidden';CB_TxtLShow();if(a){if(CB_ImgWidth>CB_ImgWidthOrig){CB_Img.style.width=CB_ImgWidth+'px'}if(CB_ImgHeight>CB_ImgHeightOrig){CB_Img.style.height=CB_ImgHeight+'px'}}if(a){CB_ActImgId=parseInt(a)}if(CB_Animation!='warp'){CB_Img.style.visibility='hidden';CB_LoadingImg.style.visibility='visible'}CB_Txt1.innerHTML='';CB_Txt2.innerHTML='';CB_Count=0;CB_preImages=new Image();CB_preImages.src=CB_Gallery[CB_ActImgId][0];CB_Loaded=false;CB_CloseOnHON();CB_CheckLoaded()}function CB_CheckLoaded(){if(CB_Count==1){CB_CloseOnHOFF();CB_Loaded=true;clearTimeout(CB_ImgLoadTimer);CB_GetImageSize();return}if(CB_Loaded==false&&CB_preImages.complete){CB_Count++}CB_ImgLoadTimer=setTimeout("CB_CheckLoaded()",5);return}function CB_GetImageSize(){CB_ImgWidth=CB_preImages.width;CB_ImgHeight=CB_preImages.height;CB_ImgWidthOrig=CB_ImgWidth;CB_ImgHeightOrig=CB_ImgHeight;CB_ImgRate=CB_ImgWidth/CB_ImgHeight;if(CB_ImgWidth<CB_ImgMinWidth){CB_ImgWidth=CB_ImgMinWidth}if(CB_ImgHeight<CB_ImgMinHeight){CB_ImgHeight=CB_ImgMinHeight}CB_FitToBrowser();CB_Img.src=CB_Gallery[CB_ActImgId][0];CB_AnimatePlease();return}function CB_AnimatePlease(a){CB_IsAnimating=1;if(CB_Animation=='double'){CB_WindowResizeXY(a)}else if(CB_Animation=='warp'){if(!a){CB_LoadingImg.style.visibility='hidden';CB_Img.style.visibility='visible';CB_Img.style.opacity=1;CB_Img.style.filter='alpha(opacity=100)'}CB_WindowResizeXY(a)}else if(CB_Animation=='off'){CB_SetMargins();CB_ImgCont.style.height=CB_ImgHeight+(2*CB_ImgBorder)+'px';CB_Img.style.width=CB_ImgWidth+'px';CB_Img.style.height=CB_ImgHeight+'px'}else if(CB_Animation=='normal'){CB_WindowResizeX(a)}return}function CB_WindowResizeX(a){CB_animWidth=new CB_effektek.szelesseg(CB_Img,{idotartam:CB_AnimSpeed,halefutott:function(){CB_WindowResizeY(a)}});CB_animWidth.sajat(CB_ImgWidthOld,CB_ImgWidth)}function CB_WindowResizeY(a){CB_animHeight=new CB_effektek.magassag(CB_Img,{idotartam:CB_AnimSpeed,halefutott:function(){if(a=='HTML'){CB_AfterResizeHTML()}else{CB_ImageFade()}}});CB_animHeight.sajat(CB_ImgHeightOld,CB_ImgHeight)}function CB_WindowResizeXY(a){CB_animWidth=new CB_effektek.szelesseg(CB_Img,{idotartam:CB_AnimSpeed,halefutott:function(){if(a=='HTML'){CB_AfterResizeHTML()}else{CB_ImageFade()}}});CB_animWidth.sajat(CB_ImgWidthOld,CB_ImgWidth);CB_animHeight=new CB_effektek.magassag(CB_Img,{idotartam:CB_AnimSpeed});CB_animHeight.sajat(CB_ImgHeightOld,CB_ImgHeight)}function CB_AfterResizeHTML(){CB_AfterLoadedHTML()}function CB_AfterLoadedHTML(){if(CB_AllowExtFunct=='on'){CB_ExternalFunction()}CB_Gallery='';CB_TxtLPos();CB_Img.style.visibility='visible';CB_Img.style.opacity=1;CB_Img.style.filter='alpha(opacity=100)';CB_LoadingImg.style.visibility='hidden';CB_iFr.style.top=CB_ImgBorder+'px';CB_iFr.style.left=CB_ImgBorder+'px';CB_iFr.style.width=CB_ImgWidth+'px';CB_iFr.style.height=CB_ImgHeight+'px';CB_Txt1.style.textAlign='center';if(CB_Clicked[2]&&CB_Clicked[2]!='null'&&CB_Clicked[2]!=null){CB_HTxt.innerHTML='';CB_HTxt.appendChild(document.createTextNode(CB_Clicked[2]));if(CB_HTxt.offsetWidth>CB_ImgWidth+(2*CB_ImgBorder)){CB_ScrollT(CB_Clicked[2])}else{CB_Txt1.appendChild(document.createTextNode(CB_Clicked[2]))}}else{if(CB_ShowImgURL=='on'){CB_Txt1.innerHTML=CB_Clicked[1]}}CB_ClearBox='on';CB_IsAnimating=0;if(CB_ImgTextFade=='on'){iFrFadeEffect.sajat(0,1)}else{CB_TxtL.style.visibility='hidden';CB_iFr.style.opacity=1;CB_iFr.style.filter='alpha(opacity=100)';CB_Cls.style.display='block';CB_CloseOnHON()}return}function CB_CloseOnHON(){if(CB_CloseOnH=='on'){CB_HideContent.onclick=function(){CB_Close();return false}}}function CB_CloseOnHOFF(){CB_HideContent.onclick=''}function CB_ImageFade(){if(CB_ImgWidth>CB_ImgWidthOrig){CB_ImgCont.style.width=CB_ImgWidth+(2*CB_ImgBorder)+'px';CB_Img.style.width=CB_ImgWidthOrig+'px'}if(CB_ImgHeight>CB_ImgHeightOrig){CB_ImgCont.style.height=CB_ImgHeight+(2*CB_ImgBorder)+'px';CB_Img.style.height=CB_ImgHeightOrig+'px'}if(CB_Animation!='warp'){CB_Txt1.innerHTML='';CB_Txt2.innerHTML='';CB_LoadingImg.style.visibility='hidden';CB_Img.src=CB_Gallery[CB_ActImgId][0];if(CB_ImgTextFade=='on'){CB_ImgFadeIn()}else{CB_Img.style.visibility='visible';CB_ShowImage()}}else{CB_ShowImage()}}function CB_ShowImage(){if(CB_AllowExtFunct=='on'){CB_ExternalFunction()}CB_Txt1.style.textAlign='left';CB_TxtLPos();if(CB_Gallery.length<3){CB_SlideS.style.display='none';CB_SlideP.style.display='none'}else{if(CB_SS=='start'){CB_SlideS.style.display='block';CB_SlideP.style.display='none'}else{CB_SlideP.style.display='block';CB_SlideS.style.display='none'}}CB_PrvNxt.display='block';CB_Cls.style.display='block';CB_Prv.style.height=CB_ImgHeight+'px';CB_Nxt.style.height=CB_ImgHeight+'px';if(CB_Gallery[CB_ActImgId][1]&&CB_Gallery[CB_ActImgId][1]!='null'&&CB_Gallery[CB_ActImgId][1]!=null){CB_HTxt.innerHTML='';CB_HTxt.appendChild(document.createTextNode(CB_Gallery[CB_ActImgId][1]));if(CB_HTxt.offsetWidth>CB_ImgWidth+(2*CB_ImgBorder)){CB_ScrollT(CB_Gallery[CB_ActImgId][1])}else{CB_Txt1.appendChild(document.createTextNode(CB_Gallery[CB_ActImgId][1]))}}else{if(CB_ShowImgURL=='on'){CB_Txt1.appendChild(document.createTextNode((CB_Gallery[CB_ActImgId][0].split('/'))[(CB_Gallery[CB_ActImgId][0].split('/').length)-1]))}}if(CB_ShowGalName=='on'&&CB_Rel[0]!="clearbox"){CB_Txt2.appendChild(document.createTextNode(CB_Rel[0]))}if(CB_ImgNum=='on'&&CB_Gallery.length>2){CB_Txt2.appendChild(document.createTextNode(' '+CB_ImgNumBracket.substring(0,1)+CB_ActImgId+'/'+(CB_Gallery.length-1)+CB_ImgNumBracket.substring(1,2)+' '))}if(CB_FullSize=='on'){if((CB_ShowGalName=='on'||CB_ImgNum=='on')&&CB_Rel[0]!="clearbox"){CB_Txt2.innerHTML+='<span class="CB_Sep"> | </span>'}var a=CB_NavTextDL;if(CB_ImgWidthOrig>CB_ImgWidth||CB_ImgHeightOrig>CB_ImgHeight){a=CB_NavTextFull}if(CB_Gallery[CB_ActImgId][0].substring(CB_Gallery[CB_ActImgId][0].length-4,CB_Gallery[CB_ActImgId][0].length)=='_box'){a=CB_NavTextFull;CB_Txt2.innerHTML+='<a class="CB_TextNav" target="_blank" href="'+CB_Gallery[CB_ActImgId][0].substring(0,CB_Gallery[CB_ActImgId][0].length-4)+'">'+a+'</a>'}else{CB_Txt2.innerHTML+='<a class="CB_TextNav" target="_blank" href="'+CB_Gallery[CB_ActImgId][0]+'">'+a+'</a>'}}if(CB_TextNav=='on'&&CB_Rel[0]!="clearbox"){CB_Txt2.innerHTML+='<span class="CB_Sep"> | </span>'}CB_PrevNext();if(CB_Gallery.length>0){if(CB_ImgWidth>CB_ImgWidthOrig){CB_ImgCont.style.width=''}CB_ImgWidthOld=CB_ImgWidth;CB_ImgHeightOld=CB_ImgHeight}if(CB_Gallery.length>2){if(CB_SS=='pause'){CB_SlideP.style.display='block';CB_SlideB.style.display='block';CB_SlideShow()}else{CB_SlideS.style.display='block'}}else{CB_SS='start'}CB_ClearBox='on';CB_IsAnimating=0;CB_ImgHd.style.width=CB_ImgWidth+(2*CB_ImgBorder)+'px';CB_ImgHd.style.height=CB_ImgHeight+(2*CB_ImgBorder)+'px';CB_CheckThumbs();if(CB_ImgTextFade=='on'){TxtFadeEffect.sajat(1,0)}else{CB_TxtL.style.visibility='hidden';CB_CloseOnHON()}return}function CB_ScrollT(a){CB_HTxt.innerHTML='';CB_HTxt.appendChild(document.createTextNode(a));CB_HTxt.innerHTML+=' | ';CB_HTxt.appendChild(document.createTextNode(a));CB_HTxt.innerHTML+=' | ';CB_Txt1.innerHTML='';CB_Txt1.appendChild(document.createTextNode(a));CB_Txt1.innerHTML+='<span class="CB_Sep"> | </span>';CB_Txt1.appendChild(document.createTextNode(a));CB_Txt1.innerHTML+='<span class="CB_Sep"> | </span>';CB_ScrollText()}function CB_ScrollText(){if(CB_STi<0){CB_STi++}else{if(CB_STi<CB_HTxt.offsetWidth/2){CB_Txt1.style.left=-CB_STi+'px';CB_STi++}else{CB_Txt1.style.left='0px';CB_STi=0}}CB_ScrollTimer=setTimeout("CB_ScrollText()",30)}function CB_CheckThumbs(){if(CB_Rel[0]!="clearbox"){CB_ShTh.style.visibility='visible';CB_Thm.style.width=CB_ImgWidth+(2*CB_ImgBorder)+'px';CB_Thm.style.top=CB_ImgHeight-70+'px';var a='';var b=10;var c=0;var d=0;CB_AllThumbsWidth=0;CB_preThumbs=new Image();CB_preThumbs2=new Image();for(i=1;i<CB_Gallery.length;i++){CB_preThumbs.src=CB_Gallery[i][2];c=Math.round(CB_preThumbs.width/CB_preThumbs.height*50);if(c>0){}else{c=50}CB_AllThumbsWidth+=c}CB_AllThumbsWidth+=(CB_Gallery.length-2)*b;for(i=1;i<CB_Gallery.length;i++){CB_preThumbs2.src=CB_Gallery[i][2];a+='<a onclick="if(CB_SSTimer==\'on\'){CB_SlideShowJump();}CB_LoadImage('+i+')"><img style="left: '+d+'px;" src="'+CB_Gallery[i][2]+'" height="50" class="CB_ThumbsImg" alt="" /></a>';d+=Math.round(CB_preThumbs2.width/CB_preThumbs2.height*50)+b}CB_Thm2.style.width=CB_AllThumbsWidth+'px';CB_Thm2.innerHTML=a;CB_Thm2.style.marginLeft=(CB_ImgWidth-CB_AllThumbsWidth)/2+'px'}return}function CB_TxtLPos(){CB_TxtL.style.width=CB_ImgWidth+(2*CB_ImgBorder)+'px';CB_Txt.style.width=CB_ImgWidth+(2*CB_ImgBorder)+'px'}function CB_TxtLShow(){CB_TxtL.style.opacity=1;CB_TxtL.style.filter='alpha(opacity=100)';CB_TxtL.style.display='block';CB_TxtL.style.visibility='visible'}function CB_ImgFadeIn(){ImgFadeEffect.sajat(0,1)}function CB_ShowThumbs(){CB_ImgHd.style.visibility='visible';CB_Thm.style.display='block';return}function CB_HideThumbs(){CB_ImgHd.style.visibility='hidden';CB_Thm.style.display='none';return}function getMouseXY(e){if(CB_AllThumbsWidth>CB_ImgWidth){if(IE){tempX=event.clientX}else{tempX=e.pageX}if(tempX<0){tempX=0}CB_Thm2.style.marginLeft=((BrSizeX-CB_ImgWidth)/2-tempX)/(CB_ImgWidth/(CB_AllThumbsWidth-CB_ImgWidth-(2*CB_ImgBorder)))+'px'}}function CB_ScrollTextStop(){if(CB_ScrollTimer){clearTimeout(CB_ScrollTimer)}CB_Txt1.style.left='0px';CB_STi=CB_STii}function CB_SlideShowStop(){CB_SSTimer='off';CB_SS='start';CB_SlideShowJump()}function CB_SlideShowJump(){CB_SlideB.style.width='0px';CB_SSTimer='off';CB_SlideBW=0;CB_SlideB.style.display='none'}function CB_SlideShow(){CB_SSTimer='on';CB_SlideB.style.left=(parseInt((BrSizeX-CB_ImgWidth)/2)+18+DocScrX-CB_ImgBorder)+'px';CB_SlideB.style.top=(parseInt((BrSizeY-CB_ImgHeight-CB_TextH)/2)+4+DocScrY-CB_ImgBorder)+'px';CB_ssbarWidth=new CB_effektek.szelesseg(CB_SlideB,{idotartam:CB_SlShowTimer,halefutott:function(){CB_SlideBW=0;CB_SlideB.style.width=CB_SlideBW+'px';if(CB_SSTimer=='on'){if(CB_ActImgId==CB_Gallery.length-1){CB_LoadImage(1)}else{CB_LoadImage(CB_ActImgId+1)}}}});CB_ssbarWidth.sajat(0,CB_ImgWidth+(2*CB_ImgBorder)-36)}function CB_FitToBrowser(){if(CB_ImgWidth>BrSizeX-(2*(CB_RoundPix+CB_ImgBorder+CB_Padd+CB_WinPadd))){CB_ImgWidth=BrSizeX-(2*(CB_RoundPix+CB_ImgBorder+CB_Padd+CB_WinPadd));CB_ImgHeight=Math.round(CB_ImgWidth/CB_ImgRate)}if(CB_ImgHeight>BrSizeY-(2*(CB_RoundPix+CB_ImgBorder+CB_Padd+CB_WinPadd))-CB_TextH){CB_ImgHeight=BrSizeY-(2*(CB_RoundPix+CB_ImgBorder+CB_Padd+CB_WinPadd))-CB_TextH;CB_ImgWidth=Math.round(CB_ImgRate*CB_ImgHeight)}return}function CB_SetMargins(){CB_MarginL=parseInt(DocScrX-(CB_ImgWidth+(2*(CB_RoundPix+CB_ImgBorder+CB_Padd)))/2);CB_MarginT=parseInt(DocScrY-(CB_ieRPBug+CB_ImgHeight+CB_TextH+(2*(CB_RoundPix+CB_ImgBorder+CB_Padd)))/2);CB_Win.style.marginLeft=CB_MarginL+'px';CB_Win.style.marginTop=(CB_MarginT-(FF_ScrollbarBug/2))+'px';return}function CB_PrevNext(){if(CB_ActImgId>1){if(CB_Preload=='on'){PreloadPrv=new Image();PreloadPrv.src=CB_Gallery[CB_ActImgId-1][0]}if(CB_TextNav=='on'){CB_Txt2.innerHTML+='<a class="CB_TextNav" onclick="if(CB_SSTimer==\'on\'){CB_SlideShowJump();}CB_LoadImage('+(CB_ActImgId-1)+')" alt="&lt;">'+CB_NavTextPrv+'</a>'}CB_Prv.style.display='block';CB_Prv.onclick=function(){if(CB_SSTimer=='on'){CB_SlideShowJump()}CB_LoadImage(CB_ActImgId-1);return false}}if(CB_ActImgId<CB_Gallery.length-1){if(CB_Preload=='on'){PreloadNxt=new Image();PreloadNxt.src=CB_Gallery[CB_ActImgId+1][0]}if(CB_TextNav=='on'){CB_Txt2.innerHTML+='<a class="CB_TextNav" onclick="if(CB_SSTimer==\'on\'){CB_SlideShowJump();}CB_LoadImage('+(CB_ActImgId+1)+')" alt="&gt;">'+CB_NavTextNxt+'</a>'}CB_Nxt.style.display='block';CB_Nxt.onclick=function(){if(CB_SSTimer=='on'){CB_SlideShowJump()}CB_LoadImage(CB_ActImgId+1);return false}}return}function CB_Close(){if(CB_Rel[0]=='clearbox'||CB_Gallery.length>2){if(CB_ImgLoadTimer){clearTimeout(CB_ImgLoadTimer)}}CB_Break='on';CB_ScrollEnabled=true;CB_ScrollTextStop();CB_Txt.style.width='0px';CB_TxtL.style.width='0px';CB_ImgHd.style.width='0px';CB_ImgHd.style.height='0px';CB_ImgHd.style.visibility='hidden';CB_ShTh.style.visibility='hidden';CB_SlideShowStop();CB_Txt1.innerHTML='';CB_Txt2.innerHTML='';CB_Img.src=CB_PicDir+'blank.gif';CB_ImgWidthOld=CB_ImgWidth;CB_ImgHeightOld=CB_ImgHeight;CB_ImgCont.style.height=CB_ImgHeight+(2*CB_ImgBorder)+'px';CB_Img.style.display='none';CB_Win.style.visibility='hidden';CB_iFrC.innerHTML='';CB_TxtLShow();CB_ShowDocument();CB_NavP.style.visibility='hidden';CB_NavN.style.visibility='hidden';CB_Prv.style.display='none';CB_Nxt.style.display='none';CB_LoadingImg.style.visibility='hidden';CB_CloseOnHOFF();return}function CB_ShowDocument(){HideDocumentFadeEffect2.sajat(CB_HideOpacity,0);if(CB_SelectsHide=='on'){CB_ShowSelect()}if(CB_FlashHide=='on'){CB_ShowFlash()}return}function getDocumentSize(){this.DocSizeX=0;this.DocSizeY=0;if(window.innerWidth&&window.scrollMaxX){DocSizeX=window.innerWidth+window.scrollMaxX;DocSizeY=window.innerHeight+window.scrollMaxY}else if(document.body.scrollWidth>document.body.offsetWidth){DocSizeX=document.body.scrollWidth;DocSizeY=document.body.scrollHeight}else{DocSizeX=document.body.offsetWidth;DocSizeY=document.body.offsetHeight}if(navigator.userAgent.indexOf("MSIE")!=-1||navigator.userAgent.indexOf("Opera")!=-1){DocSizeX=document.body.scrollWidth;DocSizeY=document.body.scrollHeight}if(navigator.userAgent.indexOf("Firefox")!=-1||navigator.userAgent.indexOf("Netscape")!=-1){DocSizeX=BrSizeX+window.scrollMaxX;DocSizeY=BrSizeY+window.scrollMaxY}return}function getBrowserSize(){this.BrSizeX=0;this.BrSizeY=0;if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){BrSizeX=document.documentElement.clientWidth;BrSizeY=document.documentElement.clientHeight}else if(typeof(window.innerWidth)=='number'){BrSizeX=window.innerWidth;BrSizeY=window.innerHeight}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){BrSizeX=document.body.clientWidth;BrSizeY=document.body.clientHeight;return}if(navigator.userAgent.indexOf("Opera")!=-1){BrSizeX=document.documentElement.clientWidth;BrSizeY=document.documentElement.clientHeight}if(document.compatMode!=undefined){if(document.compatMode.match('Back')&&(navigator.userAgent.indexOf("Firefox")!=-1||navigator.userAgent.indexOf("Opera")!=-1||navigator.userAgent.indexOf("Safari")!=-1)){BrSizeY=document.body.clientHeight}}return}function getScrollPosition(){this.DocScrX=0;this.DocScrY=0;if(typeof(window.pageYOffset)=='number'){DocScrY=window.pageYOffset;DocScrX=window.pageXOffset}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){DocScrY=document.body.scrollTop;DocScrX=document.body.scrollLeft}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){DocScrY=document.documentElement.scrollTop;DocScrX=document.documentElement.scrollLeft}return}function CB_pngFixIE(){var s,i,j;var a=new Array();a.push(document.getElementById('CB_CloseWindow'));a.push(document.getElementById('CB_SlideShowS'));a.push(document.getElementById('CB_SlideShowP'));a.push(document.getElementById('CB_NavPrev'));a.push(document.getElementById('CB_NavNext'));for(i=0;i<a.length;i++){s=a[i].getAttribute('src');if(s.toLowerCase().indexOf(".png")!=-1){a[i].src=CB_PicDir+'blank.gif';a[i].style.filter+="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+s+"', sizingMethod=image);"}}document.getElementById('CB_Top').style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+CB_PicDir+"/s_top.png', sizingMethod='scale');";document.getElementById('CB_TopLeft').style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+CB_PicDir+"/s_topleft.png', sizingMethod='crop');";document.getElementById('CB_TopRight').style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+CB_PicDir+"/s_topright.png', sizingMethod='crop');";document.getElementById('CB_Right').style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+CB_PicDir+"/s_right.png', sizingMethod='scale');";document.getElementById('CB_Left').style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+CB_PicDir+"/s_left.png', sizingMethod='scale');";document.getElementById('CB_Btm').style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+CB_PicDir+"/s_btm.png', sizingMethod='crop');";document.getElementById('CB_BtmLeft').style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+CB_PicDir+"/s_btmleft.png', sizingMethod='crop');";document.getElementById('CB_BtmRight').style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+CB_PicDir+"/s_btmright.png', sizingMethod='crop');";document.getElementById('CB_Top').style.backgroundImage="none";document.getElementById('CB_TopLeft').style.backgroundImage="none";document.getElementById('CB_TopRight').style.backgroundImage="none";document.getElementById('CB_Right').style.backgroundImage="none";document.getElementById('CB_Left').style.backgroundImage="none";document.getElementById('CB_Btm').style.backgroundImage="none";document.getElementById('CB_BtmLeft').style.backgroundImage="none";document.getElementById('CB_BtmRight').style.backgroundImage="none"}function CB_HideSelect(){var a=document.getElementsByTagName("select");for(i=0;i!=a.length;i++){a[i].style.visibility="hidden"}}function CB_ShowSelect(){var a=document.getElementsByTagName("select");for(i=0;i!=a.length;i++){a[i].style.visibility="visible"}}function CB_HideFlash(){var a=document.getElementsByTagName("object");for(i=0;i<a.length;i++){a[i].style.visibility="hidden"}var b=document.getElementsByTagName("embed");for(i=0;i<b.length;i++){b[i].style.visibility="hidden"}}function CB_ShowFlash(){var a=document.getElementsByTagName("object");for(i=0;i<a.length;i++){a[i].style.visibility="visible"}var b=document.getElementsByTagName("embed");for(i=0;i<b.length;i++){b[i].style.visibility="visible"}}function scroll_handle(a){if(navigator.userAgent.indexOf("Opera")!=-1){a=-a}if(CB_Gallery.length>2){if(a>0&&CB_ActImgId>1){if(CB_SSTimer=='on'){CB_SlideShowJump()}CB_LoadImage(CB_ActImgId-1)}if(a<0&&CB_ActImgId<CB_Gallery.length-1){if(CB_SSTimer=='on'){CB_SlideShowJump()}CB_LoadImage(CB_ActImgId+1)}}}function scroll_wheel(a){var b=CB_ClearBox=="on";var c=0;if(!a)a=window.event;if(a.wheelDelta){c=a.wheelDelta/120;if(window.opera)c=-c}else if(a.detail){c=-a.detail/3}if(c&&b)scroll_handle(c);if(a.preventDefault&&!CB_ScrollEnabled)a.preventDefault();a.returnValue=CB_ScrollEnabled}if(window.addEventListener)window.addEventListener('DOMMouseScroll',scroll_wheel,false);window.onmousewheel=document.onmousewheel=scroll_wheel;
