//alert('ok'); //no var content_slider_counter = 0; (function($) { function content_slider_child(e, t) { this._constructor(e, t, 0) } function content_slider(element, options) {//slider1 var self = this; //alert(this.$element); this.$element = $(element); this.$base = this.$element; this.$container = $('.circle_slider'); this.$element.wrap('
"; this.$element.prepend(r); this.$container = $("div." + this.options.container_class, this.$element); this.$container.mousedown($.proxy(this._mouse_down, this)); this.$container.mouseup($.proxy(this._mouse_up, this)); this.$element.mouseenter($.proxy(this._mouse_enter_widget, this)); this.$element.mouseleave($.proxy(this._mouse_leave_widget, this)); this.$container.mouseleave($.proxy(this._mouse_leave, this)); this.$container.mousemove($.proxy(this._mouse_move, this)); this.$container.on("touchstart", $.proxy(function(e) { e.preventDefault(); var t = e.originalEvent.touches[0] || e.originalEvent.changedTouches[0]; var n = 0; if (typeof t == "undefined" || typeof t.clientY == "undefined") n = 1; if (n == 0) { this.first_touch_x = t.clientX; this.first_touch_y = t.clientY; this.first_scroll_y = $("body").scrollTop(); this.ignore_click_up2 = 0 } this._mouse_down(t, 1) }, this)); this.$container.on("touchend", $.proxy(function(e) { e.preventDefault(); var t = e.originalEvent.touches[0] || e.originalEvent.changedTouches[0]; this._mouse_up(t) }, this)); this.$container.on("touchmove", $.proxy(function(e) { e.preventDefault(); var t = e.originalEvent.touches[0] || e.originalEvent.changedTouches[0]; t.touched = 1; var n = $(this.$container).offset(); var r = t.pageX - n.left + this.minus - this.options.circle_left_offset; var i = t.pageY - n.top; while (1) { if (this.options.hv_switch == 0 && this.options.enable_scroll_with_touchmove_on_horizontal_version == 0) break; if (this.options.hv_switch == 1 && this.options.enable_scroll_with_touchmove_on_vertical_version == 0) break; if (typeof t == "undefined" || typeof t.clientY == "undefined") break; var s = 0; if (t.clientX > 0 && t.clientY > 0) s = 1; else break; var o = Math.abs(t.clientX - this.first_touch_x); var u = Math.abs(t.clientY - this.first_touch_y); if (o > u) break; if (u > 10) this.ignore_click_up2 = 1; u = t.clientY - this.first_touch_y; var a = this.first_scroll_y - u; $("body").scrollTop(a); return } if (r < $(this.$container).width() && r > 0 && i < $(this.$container).height() && i > 0) this._mouse_move(t); else this._mouse_leave(t) }, this)) }, _set_prettyPhoto_div_position: function() { this.prettyPhoto_left = this._return_middle_position_of_content() - Math.floor(this.options.big_pic_width / 2) + Math.floor(this.options.big_pic_width * this.options.prettyPhoto_start); var e = 0; if (this.options.top_offset > 0) e = this.options.top_offset - Math.floor(this.options.big_pic_height / 2); this.prettyPhoto_top = e + Math.floor(this.options.big_pic_height * this.options.prettyPhoto_start); if (this.options.hv_switch) { this.$prettyPhoto_div.css({ top: this.prettyPhoto_left + "px", left: this.prettyPhoto_top + "px" }) } else { this.$prettyPhoto_div.css({ left: this.prettyPhoto_left + "px", top: this.prettyPhoto_top + "px" }) } }, _set_parent_window_size: function(e, t) { if (typeof e == "undefined") e = 0; if (typeof t == "undefined") t = 0; this.ret_values.height = 2 * this.options.top_offset + this.options.shadow_offset; var n = this.math._calculate_child_coordinates_by_n(this.max_show - 1, 0); if (this.options.minus_width > 0) n.new_pos -= this.options.minus_width; n.new_pos2 = n.new_pos + this.options.left_offset; wrapper_text_max_height = this.options.wrapper_text_max_height; var r = $(this.options.text_field_id_prefix + this.last_middle, this.$element); if (this.minus > 0 && this.last_middle > -1) { $block = $("div.content_slider_text_block_wrap", r); if ($block.length) { if (typeof this.last_text_width == "undefined") this.last_text_width = r.width(); var i = this.get_window_width(); r.css("width", i - 10 + "px") } } var s; if (this.options.hide_content == 0) s = r.height(); else s = 0; var o = this.$parent_wrapper.height(); var u = this.ret_values.height + s + 10; if (u > wrapper_text_max_height) wrapper_text_max_height = u; if (e) { if (!this.options.hv_switch) { if (t != 0) { this.$parent_wrapper.css({ width: t + "px" }); this.parent_wrapper_width = t; if (this.options.main_circle_position != 0) $(this.options.text_object, this.$element).css("width", t + "px"); if (this.options.max_shown_items == 1 && this.options.hv_switch == 0) { this.$container.css("left", "3px") } } this.$element.css({ height: wrapper_text_max_height + "px" }); return } else { this.$element.css({ width: t + "px" }); return } } if (n.new_pos <= 0) return; this.container_height = this.ret_values.height; if (this.options.hv_switch) { this.$container.css({ height: n.new_pos + "px", width: this.ret_values.height + "px" }); this.$element.css({ height: n.new_pos2 + "px", width: this.options.wrapper_text_max_height + "px" }) } else { /*this.$container.css({ width: n.new_pos + "px", height: this.ret_values.height + "px" });*/ this.$element.css({ width: n.new_pos2 + "px", height: wrapper_text_max_height + "px" }); if (this.real_width == 0) this.real_width = n.new_pos2 } this.ret_values.width = n.new_pos }, _return_container_width_height: function() { return this.ret_values }, _return_middle_position_of_content: function() { var e = this.math._calculate_child_coordinates_by_n(this.mid_elem + 1, 0); e.new_pos += Math.floor(this.options.big_pic_width / 2) + this.options.big_border; return e.new_pos }, _create_arrows: function() { var e; if (this.options.hv_switch) { if (this.options.border_on_off == 0 || this.options.use_thin_arrows == 1) { e = ''; e += '' } else { e = ''; e += '' } } else { if (this.options.border_on_off == 0 || this.options.use_thin_arrows == 1) { e = ''; e += '' } else { e = ''; e += '' } } return e }, _hide_arrows: function(e) { if (this.options.border_on_off == 0 || this.options.use_thin_arrows == 1) move_more = 4; else move_more = 0; if (e) { this.hide_text(this.math._convert_position_to_image_array(0, this.mid_elem), 1); this.arrow_hidden_counter = 0; if (this.options.hv_switch) { this.$left_arrow.animate({ top: this.options.arrow_width + move_more }, this.options.arrow_speed, this.options.arrow_easing, $.proxy(this._arrows_hidden, this)); this.$right_arrow.animate({ top: -this.options.arrow_width }, this.options.arrow_speed, this.options.arrow_easing, $.proxy(this._arrows_hidden, this)) } else { this.$left_arrow.animate({ left: this.options.arrow_width + move_more }, this.options.arrow_speed, this.options.arrow_easing, $.proxy(this._arrows_hidden, this)); this.$right_arrow.animate({ left: -this.options.arrow_width }, this.options.arrow_speed, this.options.arrow_easing, $.proxy(this._arrows_hidden, this)) } } else { this.hide_text(this.math._convert_position_to_n(this.mid_elem - 2), 0); if (this.options.hv_switch) { this.$left_arrow.css({ top: this.options.arrow_width + move_more }); this.$right_arrow.css({ top: -this.options.arrow_width }) } else { this.$left_arrow.css({ left: this.options.arrow_width + move_more }); this.$right_arrow.css({ left: -this.options.arrow_width }) } } }, _arrows_hidden: function() { if (this.arrow_hidden_counter >= 1) { this.func(); this.arrow_hidden_counter = 0 } else this.arrow_hidden_counter++ }, _arrows_shown: function() { this.clicked = 0 }, _show_arrows: function() { this.slider_state = 0; var e = 0; if (this.options.hv_switch) { if (this.options.border_on_off == 0 || this.options.use_thin_arrows == 1) e = 34; this.$left_arrow.animate({ top: 0 }, this.options.arrow_speed, this.options.arrow_easing, $.proxy(this._arrows_shown, this)); this.$right_arrow.animate({ top: e + "px" }, this.options.arrow_speed, this.options.arrow_easing, $.proxy(this._arrows_shown, this)) } else { if (this.options.border_on_off == 0 || this.options.use_thin_arrows == 1) e = 4; this.$left_arrow.animate({ left: 0 }, this.options.arrow_speed, this.options.arrow_easing, $.proxy(this._arrows_shown, this)); this.$right_arrow.animate({ left: e + "px" }, this.options.arrow_speed, this.options.arrow_easing, $.proxy(this._arrows_shown, this)) } this.show_text(this.math._convert_position_to_image_array(0, this.mid_elem)); if (this.last_c.master_click == 1 || this.is_touch_device) this._start_main_hover(); this.$element.trigger("open", [this.last_middle]) }, _align_arrows: function() { var e = this.math._calculate_arrows_positions(); if (this.options.hv_switch) { this.$left_arrow_class.css({ top: e.first_arrow_x, left: e.arrow_y }); this.$right_arrow_class.css({ top: e.second_arrow_x, left: e.arrow_y }) } else { this.$left_arrow_class.css({ left: e.first_arrow_x, top: e.arrow_y }); this.$right_arrow_class.css({ left: e.second_arrow_x, top: e.arrow_y }) } }, _set_arrows_events: function() { var e = this; this.$prettyPhoto_img.on("touchstart", function(e) { e.preventDefault(); e.stopPropagation(); $(this).click() }); this.$prettyPhoto_img.on("touchend", function(e) { e.preventDefault(); e.stopPropagation() }); this.$prettyPhoto_img.mouseup(function(e) { e.preventDefault(); e.stopPropagation() }); this.$prettyPhoto_img.mousedown(function(e) { e.preventDefault(); e.stopPropagation() }); this.$prettyPhoto_img.click(function(t) { var n = e.$prettyPhoto_a.attr("rel"); if (n == "prettyPhoto") { var r = e.$prettyPhoto_a.attr("href"); t.preventDefault(); t.stopPropagation(); if (e.is_auto_play == 1) { e.dismiss_auto_play = 1; e.prettyPhoto_open_status = 1 } $.fn.prettyPhoto({ callback: function() { e.prettyPhoto_open_status = 0 } }); $.prettyPhoto.open(r) } }); this.$left_arrow_class.click($.proxy(function(e) { e.preventDefault(); e.stopPropagation(); this.public_go_right() }, this)); this.$right_arrow_class.click($.proxy(function(e) { e.preventDefault(); e.stopPropagation(); this.public_go_left() }, this)); this.$left_arrow_class.on("touchstart", $.proxy(function(e) { e.preventDefault(); e.stopPropagation(); this.public_go_right() }, this)); this.$left_arrow_class.on("touchend", $.proxy(function(e) { e.preventDefault(); e.stopPropagation() }, this)); this.$right_arrow_class.on("touchstart", $.proxy(function(e) { e.preventDefault(); e.stopPropagation(); this.public_go_left() }, this)); this.$right_arrow_class.on("touchend", $.proxy(function(e) { e.preventDefault(); e.stopPropagation() }, this)); this.$left_arrow_class.mouseup($.proxy(function(e) { e.preventDefault(); e.stopPropagation() }, this)); this.$right_arrow_class.mousedown($.proxy(function(e) { e.preventDefault(); e.stopPropagation() }, this)); this.$left_arrow_class.mousedown($.proxy(function(e) { e.preventDefault(); e.stopPropagation() }, this)); this.$right_arrow_class.mousedown($.proxy(function(e) { e.preventDefault(); e.stopPropagation() }, this)) }, hide_text: function(e, t) { $text_element = $(this.options.text_object, this.$element); this.last_parent_height = this.$parent_wrapper.height(); if (this.options.small_resolution_max_height == 0 && this.options.hv_switch && this.under_600) this.$parent_wrapper.css("height", this.last_parent_height + "px"); if (t) $text_element.fadeOut(); else $text_element.hide() }, show_text: function(e, t, n) { if (this.options.hide_content == 1) return; if (typeof t == "undefined") t = 0; if (typeof n == "undefined") n = 0; if (this.options.keep_on_top_middle_circle) { var r = this.math._convert_position_to_n(this.mid_elem); this.items[r].$element.css("z-index", this.max_show) } this.last_middle = e; var i = $(this.options.text_field_id_prefix + e, this.$element); var s = $("div.circle_slider_text_wrapper_v2", i); if (s.length) this.options.vert_text_mode = 1; else this.options.vert_text_mode = 0; if (typeof this.options.map[e].link_url != "undefined") { this.$prettyPhoto_a.attr("href", this.options.map[e].link_url) } else { this.$prettyPhoto_a.attr("href", "") } if (typeof this.options.map[e].link_rel != "undefined") { this.$prettyPhoto_a.attr("rel", this.options.map[e].link_rel) } else { this.$prettyPhoto_a.attr("rel", "") } if (typeof this.options.map[e].link_target != "undefined") { if (this.options.map[e].link_target == "") this.options.map[e].link_target = "_self"; this.$prettyPhoto_a.attr("target", this.options.map[e].link_target) } else { this.$prettyPhoto_a.attr("target", "_self") } var o = $("." + this.options.left_text_class, i); if (this.options.small_resolution_max_height == 0) this.$parent_wrapper.css("height", ""); if (t == 0) i.fadeIn(); if (this.options.hv_switch == 0) { if (this.minus > 0) this._set_parent_window_size(1); else { if (this.options.automatic_height_resize) { this.ret_values = { height: 0, width: 0 }; this.ret_values.height = 2 * this.options.top_offset + this.options.shadow_offset; var u; if (this.options.hide_content == 0) u = i.height(); else u = 0; var a = this.$parent_wrapper.height(); var f = this.ret_values.height + u + 10; if (f != this.last_height) { if (f < this.options.wrapper_text_max_height) f = this.options.wrapper_text_max_height; this.last_height = f; this.$element.animate({ height: f + "px" }, 300, "linear") } } } } if (this.options.hv_switch) { if (this.options.vert_text_mode) { var l = i.width(); if (l >= this.max_size || n) { o.css({ width: this.max_size * 2 + "px" }) } var c = o.height(); if (this.under_600 == 0) i.css({ top: this.mid - c - this.options.left_text_class_padding + "px" }) } else { $block = $("div.content_slider_text_block_wrap", i); if ($block.length) { var h; if (this.under_600 == 0) { var p = this.get_window_width(); if (p > this.options.wrapper_text_max_height) h = this.options.wrapper_text_max_height - this.container_height - 2; else h = p - this.container_height - 20 } else h = this.options.big_pic_width; i.css({ width: h + "px" }) } else i.css({ width: "" }); var c = i.height(); var d = this.mid - Math.floor(c / 2); if (d < 0) d = 0; if (this.under_600 == 0) i.css({ top: d + "px" }) } } else { if (this.minus > 0) { var p = this.last_resolution; $block = $("div.content_slider_text_block_wrap", i); if ($block.length) { if (typeof this.last_text_width == "undefined") this.last_text_width = i.width(); i.css("width", p - 10 + "px") } } } if (typeof this.started == "undefined") { this.started = 1; this.hashchange() } }, _preset_all_children_parameters: function(e, t) { var n; var r; this.do_animate = e; var i; var s = []; for (i = 0; i < this.max_show; i++) { n = this.math._calculate_child_coordinates_by_n(i, this.operation); if (e) r = this.math._calculate_method_for_child_by_n(i, t); else r = 0; if (this.options.keep_on_top_middle_circle) s[i] = { i: i, pos: n.new_pos }; this.items[i]._set_pos_size(n.new_pos, this.speed, n.new_y_pos, n.new_siz.width, n.new_siz.height, n.new_border, r, $.proxy(this._animation_done, this)) } if (this.options.keep_on_top_middle_circle || this.options.dinamically_set_position_class) { s.sort(function(e, t) { return e.pos - t.pos }); var o = s.length; var u, a = this.mid_elem + 1, f; for (i = 0; i < o; i++) { u = s[i].i; if (this.options.dinamically_set_position_class) { this.items[u].$element.removeClass("all_around_position_" + this.items[u].position_in_slider); this.items[u].$element.addClass("all_around_position_" + i) } this.items[u].position_in_slider = i; if (this.options.keep_on_top_middle_circle) { if (i < a) f = i; if (i == a) f = o; if (i > a) f = o - i - 1; this.items[u].$element.css("z-index", f) } } } }, _stop_children: function() { for (i = 0; i < this.number_of_items; i++) { this.items[i].reset_positions() } if (this.prettyPhoto_status) { if (this.prettyPhoto_status == 1) { this.$prettyPhoto_div.stop(); this.$prettyPhoto_img.stop() } this._end_main_hover2(); this.prettyPhoto_status = 0; this.hover_status = 0; this.mouse_in_animation = 0; this.mouse_out_animation = 0 } }, _mouse_down: function(e, t) { if (this.ignore_click_down) { this.ignore_click_down = 0; return } if (typeof t == "undefined") t = 0; if (t == 0) if (typeof e != "undefined") e.preventDefault(); this.mouse_moved = 0; if (this.hover_status != 0) this._end_main_hover2(); if (typeof e != "undefined") if (typeof e.pageX != "undefined") { if (this.options.hv_switch) var n = e.pageY - this.offset - this.options.circle_left_offset; else var n = e.pageX - this.offset + this.minus - this.options.circle_left_offset } var r = n - this.last_mouse_x; this.last_mouse_x = n; this.slider_state = 1; this.mouse_state = 1; if (!this.clicked) { this.show_mouse_move = 1; this.clicked = 1 } var i = this.$container.offset(); if (this.options.hv_switch) { this.offset = i.top } else { this.offset = i.left + this.minus } this.was_gone = 0 }, _mouse_up: function(e) { if (this.ignore_click_up) { this.ignore_click_up = 0; return } this.mouse_state = 0; this._stop_children(); if (this.show_mouse_move) { var t = 1; this.show_mouse_move = 0; var n = 0; if (this.ignore_click_up2) { this.ignore_click_up2 = 0; this.slider_state = 0; this.clicked = 0; n = 1 } if (Math.abs(this.math.sum_movement) == 0 && !this.was_gone && n == 0) { this.func = 0; t = 0; if (this.options.hv_switch) var r = this.math._change_master_position_by_x(e.pageY - this.offset - this.options.circle_left_offset); else var r = this.math._change_master_position_by_x(e.pageX - this.offset + this.minus - this.options.circle_left_offset); this.last_c = r; if (r.master_click && n == 0) { var i = 38; var s = 20; if (this.options.border_on_off == 1 && this.options.use_thin_arrows == 0) { i = 48; s = 30 } if (r.dist_right > i && r.dist_left > s) { if (this.options.middle_click == 1) { t = 1; this.going_counter = -1; r.pos = 1 } if (this.options.middle_click == 2) { t = 1; this.going_counter = 1; r.pos = -1 } if (this.options.middle_click == 0 || this.options.middle_click == 3) { this.slider_state = 0; this.clicked = 0; if (this.options.middle_click == 3) { var o = ""; var u = 0; if (typeof this.options.map[this.last_middle].main_link != "undefined") o = this.options.map[this.last_middle].main_link; if (typeof this.options.map[this.last_middle].main_link_target != "undefined") u = this.options.map[this.last_middle].main_link_target; if (o != "") { if (u == 0) window.location = o; if (u == 1) window.open(o) } } } } else { this.slider_state = 0; this.clicked = 0 } } this.speed = (this.mid_elem - Math.abs(r.pos) + 1) * this.options.moving_speed + this.options.moving_speed_offset; if (!t) this.going_counter = -r.pos; this.keep_going = 1; if (r.pos < 0) { this.click = 2; if (r.pos < -1) this.operation = 1; else this.operation = 0; this.func = this.go_right; this._hide_arrows(1) } if (r.pos > 0) { this.click = 1; if (r.pos > 1) this.operation = 1; else this.operation = 0; this.func = this.go_left; this._hide_arrows(1) } if (r.pos == 0) { this.keep_going = 0 } this._before_moving(this.going_counter); return } else { this._reorder(); this.click = 0 } } }, _before_moving: function(e) { if (this.options.keep_on_top_middle_circle) { e = e * -1; var t = this.math._convert_position_to_n(this.mid_elem + e); this.items[t].$element.css("z-index", 100) } }, _arrow_mouse_up: function() { this.keep_going = 1; this.click = 0; this.armd = 0 }, _arrow_mouse_down: function() { this.armd = 1; this.clicked = 1 }, _arrow_mouse_leave: function() { if (this.armd) { this.clicked = 0; this.armd = 0 } }, _mouse_move: function(e) { this.mouse_moved = 1; if (typeof e.touched == "undefined") e.preventDefault(); var t = this.$container.offset(); if (this.options.hv_switch) { this.offset = t.top } else { this.offset = t.left + this.minus } var n = $(this.$element).offset(); this.y_offset = n.top; var r, i; if (typeof e != "undefined") if (typeof e.pageX != "undefined") { if (this.options.hv_switch) r = e.pageY - this.offset - this.options.circle_left_offset; else r = e.pageX - this.offset + this.minus - this.options.circle_left_offset; i = r - this.last_mouse_x } if (this.show_mouse_move && this.clicked) { this._move_all(i * this.options.movement_coefficient); if (Math.abs(this.sum_movement) >= 1 && !this.was_gone) { this.was_gone = 1; this._hide_arrows(0) } } this.last_mouse_x = r; if (this.show_mouse_move == 1 || this.slider_state == 1) return; var s = { pos: 0, master_click: 0 }; if (typeof e != "undefined") if (typeof e.pageX != "undefined") { if (this.options.hv_switch) { r = e.pageY - this.y_offset - this.options.circle_left_offset } else { if (this.minus == 0) { r = e.pageX - this.x_offset - this.options.circle_left_offset } else { r = e.pageX - this.parent_x_offset + this.minus - this.options.circle_left_offset } } s = this.math._convert_x_position_to_n(r) } if (s.master_click == 1) { if (this.hover_status == 2 || this.mouse_in_animation == 1) return; if (this.mouse_out_animation == 1) { this.$prettyPhoto_div.stop(); this.$prettyPhoto_img.stop(); this.mouse_out_animation = 0 } this.hover_status = 1; this.mouse_in_animation = 1; this._start_main_hover() } else { if (this.hover_status == 2 || this.hover_status == 1 && this.mouse_out_animation == 0) this._fake_mouse_leave() } }, _start_main_hover: function() { if (this.$prettyPhoto_a.attr("href") == "") return; var e = this.prettyPhoto_left - this.options.prettyPhoto_movement - 10; var t = this.prettyPhoto_top - this.options.prettyPhoto_movement - 10; var n = this.options.prettyPhoto_width + 3; this.prettyPhoto_status = 1; if (this.options.hv_switch == 0) { this.$prettyPhoto_div.animate({ left: e + "px", top: t + "px" }, this.options.prettyPhoto_speed, this.options.prettyPhoto_easing, $.proxy(this._ending_main_hover, this)) } else { this.$prettyPhoto_div.animate({ left: t + "px", top: e + "px" }, this.options.prettyPhoto_speed, this.options.prettyPhoto_easing, $.proxy(this._ending_main_hover, this)) } this.$prettyPhoto_img.animate({ width: n + "px", padding: "11px" }, this.options.prettyPhoto_speed, this.options.prettyPhoto_easing) }, _ending_main_hover: function() { var e = this.prettyPhoto_left - this.options.prettyPhoto_movement; var t = this.prettyPhoto_top - this.options.prettyPhoto_movement; var n = this.options.prettyPhoto_width; if (this.options.hv_switch == 0) { this.$prettyPhoto_div.animate({ left: e + "px", top: t + "px" }, this.options.prettyPhoto_speed, this.options.prettyPhoto_easing, $.proxy(this._end_main_hover, this)) } else { this.$prettyPhoto_div.animate({ left: t + "px", top: e + "px" }, this.options.prettyPhoto_speed, this.options.prettyPhoto_easing, $.proxy(this._end_main_hover, this)) } this.$prettyPhoto_img.animate({ width: n + "px", padding: "10px" }, this.options.prettyPhoto_speed, this.options.prettyPhoto_easing) }, _end_main_hover: function() { this.prettyPhoto_status = 2; this.hover_status = 2; this.mouse_in_animation = 0 }, _fake_mouse_leave: function() { if (this.$prettyPhoto_a.attr("href") == "") return; if (this.mouse_in_animation == 1) { this.$prettyPhoto_div.stop(); this.$prettyPhoto_img.stop(); this.mouse_in_animation = 0 } this.hover_status = 1; this.mouse_out_animation = 1; this._end_main_hover2() }, _end_main_hover2: function() { var e = this.prettyPhoto_left; var t = this.prettyPhoto_top; this.prettyPhoto_status = 1; if (this.options.hv_switch == 0) { this.$prettyPhoto_div.animate({ left: e + "px", top: t + "px" }, this.options.prettyPhoto_speed, this.options.prettyPhoto_easing, $.proxy(this._main_hover_ended, this)) } else { this.$prettyPhoto_div.animate({ left: t + "px", top: e + "px" }, this.options.prettyPhoto_speed, this.options.prettyPhoto_easing, $.proxy(this._main_hover_ended, this)) } this.$prettyPhoto_img.animate({ width: "0px", padding: "0px" }, this.options.prettyPhoto_speed, this.options.prettyPhoto_easing) }, _main_hover_ended: function() { this.prettyPhoto_status = 0; this.hover_status = 0; this.mouse_out_animation = 0 }, _mouse_enter_widget: function(e) { if (this.is_auto_play == 1) { this.dismiss_auto_play = 1 } }, _mouse_leave_widget: function(e) { if (this.prettyPhoto_open_status == 0) this.dismiss_auto_play = 0 }, _mouse_leave: function(e) { if (this.show_mouse_move && !this.click) { this.show_mouse_move = 0; this._reorder(); this.click = 0; this.show_mouse_move = 0; this.mouse_state = 0; for (i = 0; i < this.number_of_items; i++) { this.items[i].value_reset() } } if (this.hover_status == 2 || this.hover_status == 1 && this.mouse_out_animation == 0) this._fake_mouse_leave() }, _reorder: function() { var e = this.math.sum_movement; this.speed = (this.mid_elem + 1) * this.options.moving_speed + this.options.moving_speed_offset; if (Math.abs(this.math.sum_movement) < this.options.child_div_width / 2) { this.math._clear_movement(); this._preset_all_children_parameters(1, 0, 1) } else { this.math._clear_movement(); if (e < 0) { this.math._rotate_right(1); this._preset_all_children_parameters(1, 0, 1) } if (e > 0) { this.math._rotate_left(1); this._preset_all_children_parameters(1, 1, 1) } } this.sum_movement = 0 }, _create_a_html_for_a_child: function(e, t, n, r, i, s, o, u, a) { var f = ""; var l = "", c = ""; if (a != "") a += " "; if (s != "") s += " "; var h = 0; var p = 0; if (this.options.activate_border_div == 0 && this.options.border_on_off == 1) { h = 10; p = 10 } if (this.options.activate_border_div) f = ''; if (this.options.hv_switch == 0) { if (this.have_text_label_up) { l = '