var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); var short_list_current_entity_id = ''; var global_var_added_to_short_list = false; function addOneToHeaderShortList() { var new_counter = parseInt(jQuery("#header_shortlist_number").html()) + 1; jQuery("#header_shortlist_number").html(new_counter); } function addToShortListCallback() { if (global_var_added_to_short_list) { jQuery("#" + short_list_current_entity_id).removeAttr('onclick'); jQuery("#" + short_list_current_entity_id).removeClass("short_list_not_added").addClass("short_list_added").html("Shortlisted "); if (jQuery("#bot_border").css('bottom') == '1px') { jQuery("#bot_border").css({bottom: '0px'}).show(); } else { jQuery("#bot_border").css({bottom: '1px'}).show(); } } //fixing firefox's caching problem: jQuery.ajax({ url: location.href, caching:true, success: function(html) { } }); addOneToHeaderShortList(); } function addToShortListCallbackProfilePage(link_id, button_id) { if (global_var_added_to_short_list) { //button jQuery("." + button_id).addClass("btn_pressed"); jQuery("." + button_id).removeClass("short_list_not_added_profile").addClass("short_list_added_profile").html("Add to Contacts"); jQuery("." + button_id).attr('onclick','').unbind('click'); //link jQuery("." + link_id).replaceWith('
Added to Contacts
'); if (jQuery("#bot_border").css('bottom') == '1px') { jQuery("#bot_border").css({bottom: '0px'}).show(); } else { jQuery("#bot_border").css({bottom: '1px'}).show(); } //fixing firefox's caching problem: jQuery.ajax({ url: location.href, caching:true, success: function(html) { } }); addOneToHeaderShortList(); } } function VTKCheckCookieId() { //Very important, we need to check the browser cookie before we send data to the server: var current_cookie = getCookie('cookie_id'); if (current_cookie == null || current_cookie =="") { var new_cookie_value = "7353e8c281841e3d212a24504f2ae84c"; setCookie('cookie_id', new_cookie_value, 365*2, '/'); var currentTime = new Date(); var month = currentTime.getMonth() + 1; var day = currentTime.getDate(); var year = currentTime.getFullYear(); setCookie('cookie_time', year+'-'+month+'-'+day, 365*2, '/'); } //end of checking cookie. } function VTKShortListAdd(options) { //get window view port: var view_port = {width: $(window).width(), height: $(window).height(),scrollLeft: $(document).scrollLeft(), scrollTop: $(document).scrollTop()}; var checkOffset = false; if (options.checkOffset) checkOffset = true; //get all options var destination_id = options.destination_id; //tooltip div id var element_id = options.element_id; //for which element var delayed_close = options.delayed_close; var tooltip_width = options.tooltip_width; var tooltip_start_point = options.tooltip_start_point //supports 'topLeft' and 'topRight' only var tooltip_top_offset = options.tooltip_top_offset; var tooltip_left_offset = options.tooltip_left_offset; var entity_id = options.entity_id; //entity id var entity_type = options.entity_type; //entity type var ajax_handler = options.ajax_handler; var callback_function = options.callback_function; var callback_function_link_id = options.callback_function_link_id; //passing in link element id for callback functions var callback_function_button_id = options.callback_function_button_id; //passing in button element id for callback functions if(typeof(options.callback_function_link_id) == 'undefined') { var callback_function_link_id = ""; } if(typeof(options.callback_function_button_id) == 'undefined') { var callback_function_button_id = ""; } if(typeof(options.client_title) == 'undefined') { var client_title = ""; } else { var client_title = options.client_title; } if(typeof(options.fixed_position) == 'undefined') { var fixed_position = false; } else { var fixed_position = options.fixed_position; } var $destination = $('#' + destination_id); var $element = $('#' + element_id); //copy $source contents into $destination: var $destination_content = $('#' + destination_id + '_content'); var $client_title = $('#' + destination_id + '_client_title'); //check cookie: VTKCheckCookieId(); var $element_position = $element.position(); if(typeof($element_position) == 'undefined') return ''; $client_title.html(decodeURIComponent(client_title.replace(/\+/g, " "))); short_list_current_entity_id = element_id; $destination_content.html("