/****************************************************************************
**
** Copyright (C) 2005-2006 Intuisphere. All rights reserved.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
****************************************************************************/

 function ISobf_b(id){return eval("document.photo_album_"+id);};function ISobf_f(id,n){return document.images['is_gallery_img_'+id+"_"+n];};function ISobf_e(id,n){return getElementByKey('is_gallery_'+id+"_"+n);};function ISobf_d(id){var o=ISobf_b(id);if(!isDefined(o.current_page)){o.current_page=0;}return o.current_page;};function ISobf_c(id){return getElementByKey('album_'+id+'_prev_button')};function ISobf_a(id){return getElementByKey('album_'+id+'_next_button')};function ISobf_g(id){var o=ISobf_b(id);var but_prev=ISobf_c(id);var but_next=ISobf_a(id);var nb_max=o.photos.length/(o.nb_rows*o.nb_columns);if(nb_max>Math.floor(nb_max)){nb_max++;}nb_max=Math.floor(nb_max);var firstIndex=0;var lastIndex=nb_max-1;var max_range=o.navigator.page_range[o.current_page];var range=Math.floor(max_range/2);firstIndex=Math.max(0,Math.min(nb_max-1,o.current_page+range)-(max_range-1));lastIndex=Math.min(nb_max-1,firstIndex+(max_range-1));if(o.current_page==0){displayElement(but_prev,false);}else{displayElement(but_prev,true);}if(o.current_page>=lastIndex){displayElement(but_next,false);}else{displayElement(but_next,true);}var selector=getElementByKey('album_'+id+'_selector_zone');var html_selector="";for(var i=firstIndex;i<lastIndex+1;i++){if(i!=o.current_page){var st_page="\"IS_Gallery_goPage('"+id+"',"+i+")\"";html_selector+="<a href='javascript:void(0)' onclick="+st_page+"><font color=#0000ff>"+(i+1)+"</font></a>&nbsp;";}else{html_selector+="<b>"+(i+1)+"</b>&nbsp;";}}IS_writeLayer(selector,html_selector);};function IS_Gallery_openThumbnail(id,url,n_image){var o=ISobf_b(id);var ISobf_y=ISobf_d(id);var n=((ISobf_y*o.nb_rows*o.nb_columns)+n_image);window.location.replace(url+"?n_album_img="+n)};function IS_Gallery_onloadPhotoAlbum(id){var ISobf_q=IS_getUrlParameter('id_album');if(ISobf_q=="null")return;if(id!=ISobf_q)return;var ISobf_y=IS_getIntegerUrlParameter('n_page_album');if(ISobf_y=="null")return;var o=ISobf_b(id);o.current_page=ISobf_y;IS_Gallery_goPage(id,o.current_page);};function IS_Gallery_goPrevPage(id){var o=ISobf_b(id);ISobf_d(id);o.current_page--;if(o.current_page<0)o.current_page=0;IS_Gallery_goPage(id,o.current_page);};function IS_Gallery_goNextPage(id){var o=ISobf_b(id);ISobf_d(id);o.current_page++;IS_Gallery_goPage(id,o.current_page);};function IS_Gallery_goPage(id,n){var o=ISobf_b(id);o.current_page=n;ISobf_g(id);var r=0;var c=0;var ISobf_t=(o.nb_rows*o.nb_columns)*n;var ISobf_u=0;for(r=0;r<o.nb_rows;r++){for(c=0;c<o.nb_columns;c++){var ISobf_E=ISobf_e(id,ISobf_u);var ISobf_s=ISobf_f(id,ISobf_u);if(ISobf_t<o.photos.length){ISobf_s.src=o.photos[ISobf_t];displayElement(ISobf_E,true);}else{displayElement(ISobf_E,false);}ISobf_t++;ISobf_u++;}}};function IS_overThumbnail(e,id,n){var o=ISobf_b(id);ISobf_d(id);var ISobf_t=o.current_page*(o.nb_rows*o.nb_columns)+n;IS_displayTooltip(e,o.desc[ISobf_t]);};function IS_outThumbnail(){IS_hideTooltip()};function IS_Gallery_displayHelp(){var help=document.is_gallery_manager.layer_help;help.setVisible(!help.b_is_visible);};function IS_Gallery_hideHelp(){var help=document.is_gallery_manager.layer_help;if(help.b_is_visible)help.setVisible(false);};function IS_Gallery_SwitchCommentsDisplaying(){document.is_gallery_manager.b_display_comment=!document.is_gallery_manager.b_display_comment;var checkbox=getElementByKey('ISidPhotoAlbumButtonEnableCommentCheckbox');checkbox.checked=document.is_gallery_manager.b_display_comment};function ISobf_j(){var ISobf_D=document.is_gallery_manager.slide_show;var n=ISobf_D.current_index;var ISobf_s=document.photo_album.cache_snapshot_images[n-1];ISobf_h(ISobf_s,true)};function ISobf_i(){var ISobf_D=document.is_gallery_manager.slide_show;var n=ISobf_D.current_index;var ISobf_s=document.photo_album.cache_snapshot_images[n+1];ISobf_h(ISobf_s,false)};function ISobf_h(p_this,b_is_prev){var ISobf_p=document.is_gallery_manager;var lx_snapshot=ISobf_p.snapshot_size[0];var ly_snapshot=ISobf_p.snapshot_size[1];if(!p_this)return;var key=p_this.index_src;var obj_size=document.photo_album.original_image_size[key];if(isDefined(obj_size)==false){document.photo_album.original_image_size[key]=new Object();obj_size=document.photo_album.original_image_size[key];obj_size.width=lx_snapshot;obj_size.height=ly_snapshot;if(p_this.width>p_this.height){obj_size.height=(p_this.height*lx_snapshot)/p_this.width;}else if(p_this.width<p_this.height){obj_size.width=(p_this.width*ly_snapshot)/p_this.height;}}var img_visible=p_this;img_visible.width=obj_size.width;img_visible.height=obj_size.height;var img=(b_is_prev)?document.images['is_gallery_prev_snapshot']:document.images['is_gallery_next_snapshot'];var caching_img=p_this;if(img.image_to_load==caching_img){img.width=obj_size.width;img.height=obj_size.height;img.src=document.photo_album_thumbnails[p_this.index_src]}};function IS_Gallery_init_onload(){new IsGalleryLayoutManager();return false;};function IS_Gallery_handler_keydown(e){var key=e.keyCode;IS_Gallery_hideHelp();var gallery_manager=document.is_gallery_manager;if(gallery_manager.slide_show.b_slideshow_running){gallery_manager.stopSlideShow();}else{if(key==27){gallery_manager.goParent();}if(key==37){gallery_manager.goPrev();}if(key==39){gallery_manager.goNext();}if(key==13){gallery_manager.startSlideshow();}if((key==122)){return true;}}return false;};function IS_Gallery_mousewheel_container_zone(e){var gallery_manager=document.is_gallery_manager;if(gallery_manager.slide_show.b_slideshow_running){}else{var n_offset=0;if(isDefined(e.wheelDelta)){n_offset=(e.wheelDelta<0)?1:-1;}else{if(isDefined(e.detail)){n_offset=(e.detail<0)?-1:1;}}if(gallery_manager.can_wheel_slide){if(n_offset<0){gallery_manager.goPrev();}if(n_offset>0){gallery_manager.goNext();}return false}}return true};function IS_Gallery_handler_mousemove(e){};function IsGalleryLayoutManager(){this.layout_type=document.photo_album.layout_type;this.unid=document.photo_album.unid;this.nb_columns=document.photo_album.nb_columns;this.nb_rows=document.photo_album.nb_rows;this.b_display_comment=document.photo_album.b_display_comments;this.b_display_nav_bar=document.photo_album.b_display_nav_bar;this.b_display_nav_thumbnails=document.photo_album.b_display_nav_thumbnails;this.snapshot_size=[70,65];this.photo_bounding_rect=new IsRect(document.big_photo_position[0],document.big_photo_position[1],document.big_photo_position[2],document.big_photo_position[3]);document.is_gallery_manager=this;document.photo_album.cache_snapshot_images=new Array();document.photo_album.original_image_size=new Array();this.photo_indicator=new IsLayer("ISidPhotoAlbumShortInfo");this.comment=new IsGalleryComment();this.nav_bar=new IsGalleryNavBar();this.global_div=new IsLayer("is-global-layer");this.layer_help=new IsLayer("ISidPhotoAlbumHelpWindow");this.layer_help.layer.onmousedown=function(){IS_Gallery_hideHelp();};this.img_container=new IsLayer("id-big-photo-container");this.img_container.layer.onmouseout=function(){document.is_gallery_manager.can_wheel_slide=false;return false};this.img_container.layer.onmouseover=function(){document.is_gallery_manager.can_wheel_slide=true;return false};this.img_container.layer.onmousewheel=function(){return IS_Gallery_mousewheel_container_zone(event);};this.layer_prev_snapshot=new IsLayer("is-gallery-prev-snapshot");this.layer_next_snapshot=new IsLayer("is-gallery-next-snapshot");var img_prev=document.images["is_gallery_prev_snapshot"];img_prev.layer=new IsLayer("is_gallery_prev_snapshot");img_prev.layer.setOpacity(70);img_prev.onmouseover=function(){this.layer.setOpacity(100);};img_prev.onmouseout=function(){this.layer.setOpacity(70);};var img_next=document.images["is_gallery_next_snapshot"];img_next.layer=new IsLayer("is_gallery_next_snapshot");img_next.layer.setOpacity(70);img_next.onmouseover=function(){this.layer.setOpacity(100);};img_next.onmouseout=function(){this.layer.setOpacity(70);};this.slide_show=new IsSlideShow("big_photo_album",document.photo_album);this.slide_show.fct_onload=this.onLoadPhoto;this.slide_show.current_index=IS_getIntegerUrlParameter('n_album_img');this.slide_show.slideshow_time=document.photo_album.slideshow_time;this.slide_show.initialize();this.ISobf_R();};IsGalleryLayoutManager.prototype.ISobf_T=function(img,n,is_prev){var n_index=n;var image=document.photo_album.cache_snapshot_images[n_index];if(isDefined(image)==false){document.photo_album.cache_snapshot_images[n_index]=new Image();image=document.photo_album.cache_snapshot_images[n_index];}var src_image=document.photo_album_thumbnails[n_index];img.image_to_load=image;if(is_prev){image.onload=ISobf_j;}else{image.onload=ISobf_i;}image.index_src=n_index;image.src_image=src_image;image.src=src_image};IsGalleryLayoutManager.prototype.loadSnapshot=function(){var slide_show=this.slide_show;var n=slide_show.current_index;if(n-1>=0){this.ISobf_T(document.images['is_gallery_prev_snapshot'],n-1,true);}if(n+1<slide_show.array_images.length){this.ISobf_T(document.images['is_gallery_next_snapshot'],n+1,false);}};IsGalleryLayoutManager.prototype.onLoadPhoto=function(){var gal_manager=document.is_gallery_manager;var slide_show=gal_manager.slide_show;gal_manager.loadSnapshot();gal_manager.updateTextComment();gal_manager.photo_indicator.write("[&nbsp;"+(slide_show.current_index+1)+"&nbsp;/&nbsp;"+slide_show.array_images.length+"&nbsp;]");IS_Gallery_hideHelp();};IsGalleryLayoutManager.prototype.ISobf_R=function(){setInterval("document.is_gallery_manager.updateLayout()",400);};IsGalleryLayoutManager.prototype.ISobf_Z=function(){var ISobf_H=this.photo_bounding_rect.x+this.photo_bounding_rect.lx/2;var ISobf_G=ISobf_H-this.nav_bar.getWidth()/2;var ISobf_o=4;var ISobf_v=this.comment.getHeight();var ISobf_w=ISobf_v+2*ISobf_o;if(this.b_display_nav_bar){ISobf_w+=this.nav_bar.getHeight()}var ISobf_x=qMax(ISobf_w,this.snapshot_size[1]+ISobf_o);var ISobf_L=this.photo_bounding_rect.y+this.photo_bounding_rect.ly+ISobf_o;var ISobf_M=getWindowHeight()-ISobf_x-this.global_div.relativePoxY()+getWindowScrollY();if(ISobf_L>ISobf_M){ISobf_L=ISobf_M;}var ISobf_n=3;var ISobf_J=ISobf_G-this.snapshot_size[0]-ISobf_n-1;var ISobf_K=ISobf_G+this.nav_bar.getWidth()+ISobf_n;var ISobf_I=ISobf_H-this.comment.getWidth()/2;var ISobf_N=ISobf_L;var ISobf_O=ISobf_L+ISobf_o;if(this.b_display_nav_bar){ISobf_O+=this.comment.getHeight();this.nav_bar.move(ISobf_G,ISobf_O);}var ISobf_P=ISobf_L+ISobf_x-this.snapshot_size[1]-ISobf_o;this.layer_prev_snapshot.move(ISobf_J,ISobf_P);this.layer_prev_snapshot.setSize(this.snapshot_size[0],this.snapshot_size[1]);this.layer_next_snapshot.move(ISobf_K,ISobf_P);this.layer_next_snapshot.setSize(this.snapshot_size[0],this.snapshot_size[1]);this.layer_help.move(ISobf_H-this.layer_help.getWidth()/2,ISobf_L-20-this.layer_help.getHeight());this.comment.move(ISobf_I,ISobf_N);};IsGalleryLayoutManager.prototype.ISobf_Y=function(){var ISobf_H=this.photo_bounding_rect.x+this.photo_bounding_rect.lx/2;var ISobf_G=ISobf_H-this.nav_bar.getWidth()/2;var ISobf_o=4;var ISobf_w=this.comment.getHeight()+ISobf_o;if(this.b_display_nav_bar){ISobf_w+=this.nav_bar.getHeight()}var ISobf_x=qMax(ISobf_w,this.snapshot_size[1]+ISobf_o);var ISobf_L=this.photo_bounding_rect.y-ISobf_x;if(ISobf_L<0){ISobf_L=0;}if(getWindowScrollY()>this.global_div.relativePoxY()+ISobf_L){ISobf_L=getWindowScrollY()+2-this.global_div.relativePoxY();}var ISobf_n=3;var ISobf_J=ISobf_G-this.snapshot_size[0]-ISobf_n-1;var ISobf_K=ISobf_G+this.nav_bar.getWidth()+ISobf_n;var ISobf_I=ISobf_H-this.comment.getWidth()/2;var ISobf_N=ISobf_L+ISobf_o;if(this.b_display_nav_bar){ISobf_N+=this.nav_bar.getHeight()}if(this.b_display_nav_bar){this.nav_bar.move(ISobf_G,ISobf_L);}this.layer_prev_snapshot.move(ISobf_J,ISobf_L);this.layer_prev_snapshot.setSize(this.snapshot_size[0],this.snapshot_size[1]);this.layer_next_snapshot.move(ISobf_K,ISobf_L);this.layer_next_snapshot.setSize(this.snapshot_size[0],this.snapshot_size[1]);this.layer_help.move(ISobf_H-this.layer_help.getWidth()/2,ISobf_L+20+ISobf_w);this.comment.move(ISobf_I,ISobf_N);};IsGalleryLayoutManager.prototype.updateLayout=function(){if(this.slide_show.b_slideshow_running){var x=document.is_layer_manager.mouse.x;var y=document.is_layer_manager.mouse.y;var delta=200;var x0=this.initial_mouse_x;var y0=this.initial_mouse_y;var dx=x-x0;var dy=y-y0;if(dx<0)dx=-dx;if(dy<0)dy=-dy;if((dx>=delta)||(dy>delta)){this.stopSlideShow();}}if(this.layout_type==0){this.ISobf_Y();}else if(this.layout_type==1){this.ISobf_Z();}this.comment.setVisible(this.b_display_comment);if(this.b_display_nav_bar){this.nav_bar.setVisible(!this.slide_show.b_slideshow_running);this.nav_bar.prev_button_layer.setVisible(this.prevButtonIsVisible());this.nav_bar.next_button_layer.setVisible(this.nextButtonIsVisible())}if(this.b_display_nav_thumbnails){this.layer_prev_snapshot.setVisible(this.prevButtonIsVisible());this.layer_next_snapshot.setVisible(this.nextButtonIsVisible())}};IsGalleryLayoutManager.prototype.updateTextComment=function(){var s_text=document.photo_album.comments[this.slide_show.current_index];this.comment.setText(s_text);};IsGalleryLayoutManager.prototype.goPrev=function(){this.slide_show.goPrev();};IsGalleryLayoutManager.prototype.prevButtonIsVisible=function(){if(this.slide_show.b_slideshow_running==false)if(this.slide_show.current_index>0){return true;}return false;};IsGalleryLayoutManager.prototype.nextButtonIsVisible=function(){if(this.slide_show.b_slideshow_running==false)if(this.slide_show.current_index<this.slide_show.array_images.length-1){return true;}return false;};IsGalleryLayoutManager.prototype.goNext=function(){this.slide_show.goNext();};IsGalleryLayoutManager.prototype.startSlideshow=function(){IS_Gallery_hideHelp();setTimeout("document.is_gallery_manager.temporized_startSlideshow()",50);};IsGalleryLayoutManager.prototype.temporized_startSlideshow=function(){this.slide_show.startSlideshow();setInterval("document.is_gallery_manager.mouse_movement_detection()",50);};IsGalleryLayoutManager.prototype.mouse_movement_detection=function(){var gallery_manager=document.is_gallery_manager;gallery_manager.initial_mouse_x=document.is_layer_manager.mouse.x;gallery_manager.initial_mouse_y=document.is_layer_manager.mouse.y;};IsGalleryLayoutManager.prototype.stopSlideShow=function(){this.slide_show.stopSlideShow();};IsGalleryLayoutManager.prototype.goParent=function(){var url;var n_page=roundTowardsZero(this.slide_show.current_index/(this.nb_columns*this.nb_rows));url=replaceSubstring(document.photo_album.parent_url,"_(CUSTOM)","")+"?id_album="+this.unid+"&n_page_album="+n_page;url=replaceSubstring(document.photo_album.parent_url,"_(CUSTOM)","")+"?id_album="+this.unid+"&n_page_album="+n_page;window.location.replace(url)};function IsGalleryComment(){this.bg_layer=new IsLayer("ISidPhotoAlbumCommentWindow2");this.main_layer=new IsLayer("ISidPhotoAlbumCommentWindow");this.bg_layer.setOpacity(80);};IsGalleryComment.prototype.move=function(x,y){this.bg_layer.move(x,y);this.main_layer.move(x,y);};IsGalleryComment.prototype.setVisible=function(b){this.bg_layer.setVisible(b);this.main_layer.setVisible(b);};IsGalleryComment.prototype.setText=function(text){this.main_layer.write(text);this.bg_layer.write(text);};IsGalleryComment.prototype.getWidth=function(){return this.main_layer.getWidth();};IsGalleryComment.prototype.getHeight=function(){return this.main_layer.layer.offsetHeight;};function IsGalleryNavBar(){this.bg_layer=new IsLayer("ISidPhotoAlbumNavigationBar");this.prev_button_layer=new IsLayer("big_photo_album_prev_button");this.next_button_layer=new IsLayer("big_photo_album_next_button");};IsGalleryNavBar.prototype.setVisible=function(b){this.bg_layer.setVisible(b);this.prev_button_layer.setVisible(b);this.next_button_layer.setVisible(b);};IsGalleryNavBar.prototype.move=function(x,y){this.bg_layer.move(x,y);};IsGalleryNavBar.prototype.getWidth=function(){return this.bg_layer.getWidth();};IsGalleryNavBar.prototype.getHeight=function(){return this.bg_layer.getHeight();};function IsSlideShow(img_name,array_images,component_size,array_info_img){this.ISobf_m=component_size;this.ISobf_ISobf_k=array_info_img;this.ISobf_r=img_name;this.ISobf_z=document.images[this.ISobf_r];this.ISobf_A=document.images[this.ISobf_r+"-sd-second"];if(this.ISobf_A){this.ISobf_A.ISobf_C=this;this.ISobf_A.layer=new IsLayer(this.ISobf_r+"-sd-second");}this.ISobf_z.ISobf_C=this;this.array_images=array_images;this.current_index=0;this.b_apply_filter=true;this.b_slideshow_running=false;this.slideshow_time=1;this.fct_onload=function(){}};IsSlideShow.prototype.getStringRef=function(){return "document.images['"+this.ISobf_r+"'].ISobf_C";};IsSlideShow.prototype.initialize=function(){this.ISobf_X=this.current_index;this.ISobf_S();IsLayerManager.prototype.setVisible(this.ISobf_z,true);};IsSlideShow.prototype.goPrev=function(){if(this.current_index<1){return;}this.ISobf_X=this.current_index;this.current_index--;this.ISobf_S()};IsSlideShow.prototype.goNext=function(){if(this.current_index>=this.array_images.length-1){if(this.b_slideshow_running==true){this.current_index=-1;}else{return;}}this.ISobf_X=this.current_index;this.current_index++;this.ISobf_S()};IsSlideShow.prototype.startSlideshow=function(){if(this.b_slideshow_running==false){this.b_slideshow_running=true;this.slide_show_timer=setInterval(this.getStringRef()+".goNext()",this.slideshow_time*1000);}};IsSlideShow.prototype.ISobf_Q=function(newSize,size_max){var size=newSize;var p1=size[0]*size_max[1];var p2=size_max[0]*size[1];if(p1==p2){newSize=size_max;return newSize;}if((size_max[0]==0)||(size_max[1]==0)){newSize=size_max;return newSize;}var r1=size[0]/size[1];var r2=size[1]/size[0];var newSize1=[(size_max[1]*r1),size_max[1]];var newSize2=[size_max[0],(size_max[0]*r2)];if(((Math.abs(newSize1[0]-size_max[0])<1)&&(Math.abs(newSize1[1]-size_max[1])<1))||((Math.abs(newSize2[0]-size_max[0])<1)&&(Math.abs(newSize2[1]-size_max[1])<1))){newSize=size_max;return newSize;}if(p2>p1){newSize=newSize1;}else{newSize=newSize2;}if(newSize[0]<1){newSize[0]=1;}if(newSize[1]<1){newSize[1]=1;}return newSize;};IsSlideShow.prototype.ISobf_S=function(){var ISobf_l=true;var apply_filter=this.b_apply_filter;if(this.b_slideshow_running==false){apply_filter=false;}var n=this.current_index;this.ISobf_z.IS_b_apply_filter=false;try{if(!this.ISobf_z.filters){ISobf_l=false;}}catch(e){ISobf_l=false;}if(ISobf_l==false)if(!this.ISobf_A){apply_filter=false;}var b_display_LoadingMessage=true;this.ISobf_z.IS_b_errorOccured=false;this.ISobf_z.IS_b_loading_finished=false;var old_src=this.ISobf_z.src;var new_src=this.array_images[n];var new_size=-1;if(isDefined(this.ISobf_ISobf_k)){var info_image=this.ISobf_ISobf_k[n];new_size=this.ISobf_Q(info_image,this.ISobf_m);this.ISobf_z.width=new_size[0];this.ISobf_z.height=new_size[1];}if(apply_filter){if(ISobf_l){this.ISobf_z.IS_b_apply_filter=true;this.ISobf_z.style.filter="blendTrans(duration=1)";if(this.ISobf_z.filters)this.ISobf_z.filters.blendTrans.Apply();this.finishTransition();}else{if(new_size!=-1){this.ISobf_A.width=new_size[0];this.ISobf_A.height=new_size[1];}this.ISobf_A.ISobf_B=0;this.ISobf_A.src=this.array_images[n];this.ISobf_A.layer.setOpacity(this.ISobf_A.ISobf_B);this.ISobf_A.layer.setVisible(true);this.ISobf_A.ISobf_F=setInterval(this.getStringRef()+".goNextTransition()",50);}}else{this.finishTransition();}};IsSlideShow.prototype.finishTransition=function(){if(this.ISobf_A){this.ISobf_A.layer.setVisible(false);clearInterval(this.ISobf_A.ISobf_F);}var n=this.current_index;var old_src=this.ISobf_z.src;var new_src=this.array_images[n];if(old_src!=new_src){this.ISobf_z.onload=this.ISobf_V;this.ISobf_z.onerror=this.ISobf_U;this.ISobf_z.onabort=this.ISobf_U}else{b_display_LoadingMessage=false;this.ISobf_z.onload=function(){};}this.ISobf_z.src=new_src;this.fct_onload()};IsSlideShow.prototype.goNextTransition=function(){if(this.ISobf_A.ISobf_B==100){this.finishTransition();return;}var o=this.ISobf_A.ISobf_B;this.ISobf_A.layer.setOpacity(o);this.ISobf_A.ISobf_B+=5;};IsSlideShow.prototype.ISobf_V=function(){var slide_show=this.ISobf_C;slide_show.ISobf_X=slide_show.current_index;var obj_image=slide_show.ISobf_z;if(obj_image.IS_b_apply_filter==true){obj_image.IS_b_apply_filter=false;if(obj_image.filters){obj_image.filters.blendTrans.Play();}}return false;};IsSlideShow.prototype.ISobf_U=function(){var ISobf_D=this.ISobf_C;var ISobf_z=ISobf_D.ISobf_z;ISobf_z.IS_b_errorOccured=true;};IsSlideShow.prototype.ISobf_W=function(){var ISobf_z=this.ISobf_z;if(ISobf_z.IS_b_apply_filter==true){ISobf_z.IS_b_apply_filter=false;if(ISobf_z.filters){ISobf_z.filters.blendTrans.Stop();}}};IsSlideShow.prototype.stopSlideShow=function(){if(this.b_slideshow_running){if(this.ISobf_X!=this.current_index){this.current_index=this.ISobf_X}}this.b_slideshow_running=false;clearInterval(this.slide_show_timer);this.ISobf_W();} 
