'); } else{ document.if_viewfinder.document.open(); document.if_viewfinder.document.write('
  
   
'); } } function Gallery( name, size_gallery, description) { this.name = name; this.max = 0; this.size = size_gallery; this.images = new Object(); this.images.name = new Array(); this.images.type = new Array(); this.description = description; this.first = 0; this.current_type = "h"; this.refresh = Refresh; this.move_left = Move_left; this.move_right = Move_right; this.load_image = Load_image; this.format_viewfinder = Format_viewfinder; this.init = Init; } // ********************************************** // *********** Objeto menu ********************** // ********************************************** function Menu_init(g) { for(var i = 0; i < g.length; i ++) { this.galleries_info.name[i] = g[i].name; this.galleries_info.description[i] = g[i].description; } } function Menu_refresh() { eval("document." + this.loc + ".document.write('')"); for(var i = 0; i < this.galleries_info.name.length; i ++) eval('document.' + this.loc + '.document.write(' + "'" + '

' + this.galleries_info.name[i] + "
')"); eval("document." + this.loc + ".document.write('')"); } function ScrollIt(if_loc, dist, direction) { var distance = dist * direction; eval("document." + if_loc + ".window.scrollBy(0," + distance + ")"); } function Move_down() { var scr_function = "ScrollIt(" + "'" + this.loc + "'" + "," + this.scr_distance + ",1)"; this.timer = setInterval(scr_function, this.scr_time); } function Move_up() { var scr_function = "ScrollIt(" + "'" + this.loc + "'" + "," + this.scr_distance + ",-1)"; this.timer = setInterval(scr_function, this.scr_time); } function Stop_scroll() { if( this.timer) { clearInterval(this.timer); this.timer = null; } } function Menu( name, iframe_location, scroll_distance, scrolling_time, n_items, gallery_name, gallery_instance_name) { this.scr_distance = scroll_distance; this.scr_time = scrolling_time; this.timer = null; this.loc = iframe_location; this.g_name = gallery_name; this.g_instance_name = gallery_instance_name; this.items = n_items; this.galleries_info = new Object(); this.galleries_info.name = new Array(); this.galleries_info.description = new Array(); this.init = Menu_init; this.move_up = Move_up; this.move_down = Move_down; this.stop_scroll = Stop_scroll; this.refresh = Menu_refresh; } function init() { g_index.init(root.Gallery[0].Gallery_Images); m_index.init(root.Gallery); g_index.format_viewfinder("h"); g_index.refresh(); m_index.refresh(); document.left_arrow.src = "images/common/arrowo2n2.gif" document.right_arrow.src = "images/common/arrowo4n2.gif" document.up_arrow.src = "images/common/arrowo1n2.gif" document.down_arrow.src = "images/common/arrowo3n2.gif" } // Inicializacion de objetos graficos de cliente var g_index = new Gallery("gallery",9,root.Gallery[0].description); var m_index = new Menu("menu_index","if_menu",1,5,root.Gallery.length,"gallery", "g_index");
Agradecimientos     
     
               
Osc - Abril 2004 ollf@tid.es        
1