= 'undefined' && just Loaded == false) { _gaq.push(['_track Pageview', window.location.pathname]); } //get the pagination marked jq('#project_table_paginate span:nth-child(3) span').each(function() { jq(this).attr('id', 'paginiate_bottom_' + jq(this).text()); }); //update the first and last page number for table window.pagination_start = jq('.table_paginate.paginate_button.number').first().text(); window.pagination_last = jq('.table_paginate.paginate_button.number').last().text(); //insert the custom pagination template var pagination Control Vars = { start: parse Int(window.pagination_start), last : parse Int(window.pagination_last) }; var $pagination Control = jq('#browse-projects-pagination'); if (typeof project Pagintor Url Values !

var CONTEST_TYPE = 'c'; var PROJECT_TYPE = 'p'; var bookmark Tooltip Msg = { project: { bookmark: "\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438", unbookmark: "\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u0437 \u0437\u0430\u043a\u043b\u0430\u0434\u043e\u043a" }, contest: { bookmark: "\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u043d\u043a\u0443\u0440\u0441 \u0432 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438", unbookmark: "\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u043d\u043a\u0443\u0440\u0441 \u0438\u0437 \u0437\u0430\u043a\u043b\u0430\u0434\u043e\u043a" } }; var infowindow Data = []; var ab Test Bookmark Color = false; function set Infowindow Data (data, index) { var infowindow = {}; = data[index.lat]; = data[index.lon]; if (! infowindow.lon) { return; } = data[index.name]; infowindow.budget = data[index.budget]; infowindow.seo_url = data[index.seo_url]; infowindow.location = []; if (data[index.vicinity]) { infowindow.location.push(data[index.vicinity]); } if (data[index.administrative_area_level_1]) { infowindow.location.push(data[index.administrative_area_level_1]); } if (data[index.project_country]) { infowindow.location.push(data[index.project_country]); } infowindow.address = infowindow.location.join(', '); infowindow.hourly = data[index.duration] !

= 'Fixed'; infowindow Data.push(infowindow); } function fn Project_table Name Render(o Obj) { set Infowindow Data(o Obj.a Data, project_table Column Indexes); var description = ''; var truncate Description = true; if (o Obj.a Data[project_table Column Indexes.private] == true && o Obj.a Data[project_table Column Indexes.name] == '') { var name = '\u041f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u043b\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0441 \u2116' + o Obj.a Data[project_table Column Indexes.id]; truncate Description = false; if (get User Idfrom Cookie() == '') { description = '\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0434\u0435\u0442\u0430\u043b\u0438.'; } } else { var name = o Obj.a Data[project_table Column Indexes.name]; description = o Obj.a Data[project_table Column Indexes.description]; } var max Size = 190; if (description.length max Size && truncate Description) { description = description.substring(0, max Size - 3); description += '...'; } var upgrade_icons = ''; var icon_array = []; var icon_label = []; // Featured if (o Obj.a Data[project_table Column Indexes.featured] == true) { icon_label.push('featured'); icon_array.push('\u0438\u0437\u0431\u0440\u0430\u043d\u043d\u044b\u0435'); } // Urgent if (o Obj.a Data[project_table Column Indexes.urgent] == true) { icon_label.push('urgent'); icon_array.push('\u0441\u0440\u043e\u0447\u043d\u044b\u0435'); } // Qualified if (o Obj.a Data[project_table Column Indexes.qualified] == true) { icon_label.push('qualified'); icon_array.push('\u0434\u043b\u044f \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445'); } // Fulltime if (o Obj.a Data[project_table Column Indexes.fulltime] == true) { icon_label.push('fulltime'); icon_array.push('\u0441 \u043f\u043e\u043b\u043d\u043e\u0439 \u0437\u0430\u043d\u044f\u0442\u043e\u0441\u0442\u044c\u044e'); } // Sealed if (o Obj.a Data[project_table Column Indexes.sealed] == true) { icon_label.push('sealed'); icon_array.push('\u0441\u043a\u0440\u044b\u0442\u044b\u0435'); } // NDA if (o Obj.a Data[project_table Column Indexes.nda] == true) { icon_label.push('nda'); icon_array.push('\u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u043e \u043d\u0435\u0440\u0430\u0437\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0438'); } //Prepaid if (o Obj.a Data[project_table Column Indexes.prepaid] == true) { icon_label.push('prepaid'); icon_array.push('\u0441 \u043f\u0440\u0435\u0434\u043e\u043f\u043b\u0430\u0442\u043e\u0439'); } //Top Contest if (o Obj.a Data[project_table Column Indexes.top] == true) { icon_label.push('top'); icon_array.push('\u0442\u043e\u043f-\u043a\u043e\u043d\u043a\u0443\u0440\u0441'); } //Local Job if (o Obj.a Data[project_table Column Indexes.local] == true) { icon_label.push('local'); icon_array.push('\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439'); } if (window.local Jobs) { var project Location = [ o Obj.a Data[project_table Column Indexes.vicinity], o Obj.a Data[project_table Column Indexes.project_country] ]; var distance = o Obj.a Data[project_table Column Indexes.distance] ?

o Obj.a Data[project_table Column Indexes.distance] : null; project Location = project Location.filter(Boolean).join(', '); } var skills = skills Render(o Obj); var project Type = o Obj.a Data[project_table Column Indexes.type]; var flicon Trophy = jq('#flicon-trophy').text(); var flicon Desktop = jq('#flicon-desktop').text(); var data For Template = { 'icon_array': icon_array, 'icon_label': icon_label, 'name': name, 'seo_url': 'https:// + o Obj.a Data[project_table Column Indexes.seo_url], 'description': description, 'skills': skills, 'project Type': project Type, 'flicon Trophy': flicon Trophy, 'flicon Desktop': flicon Desktop }; if (typeof project Location !

== '1') { return ''; } else { var tick Svg = jq('#flicon-tick').text(); return ''; } } function fn Project_table Row Callback(n Row, a Data, i Display Index) { // Enable bid checking on the row jq(n Row).attr("project_id", a Data[project_table Column Indexes.id]); jq(n Row).attr("bid_placed_check",1); jq(n Row)Class('Project Table-row project-details'); jq(n Row).attr('id', a Data[project_table Column Indexes.id]); //Highlight the row for Highlight Contests if (a Data[project_table Column Indexes.highlight] == "true") { jq(n Row)Class('highlight-contest'); } var private Flag = a Data[project_table Column Indexes.private]; generate Repost Link(n Row, a Data[project_table Column Indexes.id], private Flag, a Data[project_table Column Indexes.type], a Data[project_table Column Indexes.jobs]); return n Row; } function process Project Budget(budget Object, type) { var min = budget Object.minbudget_usd / exchange Rate; var max = budget Object.maxbudget_usd / exchange Rate; if (typeof max ! = '') { var budget = currency Code + Math.floor(min) + ' - ' + currency Code + Math.ceil(max) + (type == 'hourly' ?

T_('/hr') : ''); return budget; } else { var budget = currency Code + Math.floor(min) + '+'; return budget; } } function generate Repost Link(n Row, project_id, private Flag, type, project SKills) { var freelancer Account = (typeof is Freelancer ! is Freelancer : false; if (type == 'c') { //if it it is a contest var repost Button Label = '\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0439 \u043a\u043e\u043d\u043a\u0443\u0440\u0441'; } else { //for other situations var repost Button Label = '\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442'; } //check the eligibility of Bid Now button var required Skills = project Skills[project_id]; var eligible = false; for (index in required Skills) { var val = required Skills[index]; if(typeof seller_jobs['s' + val] !

= 'undefined') { eligible = true; break; } } // If user is in /jobs/localjobs always show Bid Button if (window.local Jobs) { eligible = true; } var project Descr Template = _.template(window.descr_tmpl, { project Id: project_id, type: type, button Label: repost Button Label, eligible : eligible, is Private: private Flag, SSL_BASE_URL: 'https:// is Freelancer: freelancer Account, }); jq(n Row).find('.

Project Table-controls').html(project Descr Template); } function fn Project_table Draw Callback() { if (infowindow Data.length 0) { jq.each(infowindow Data, function(i, data) { jq('#project-map-canvas').trigger('add', [data]); }); infowindow Data = []; } if (typeof just Loaded !

== 'undefined') { data For Template.project Location = project Location; } if (typeof distance ! == null) { data For Template.distance = distance; } return _.template(window.name_tmpl, data For Template); } function fn Project_table Bids Render(o Obj) { if (o Obj.a Data[project_table Column Indexes.private] == true) { return ''; } return _.template(window.bids_tmpl, { type : o Obj.a Data[project_table Column Indexes.type], bids Count : o Obj.a Data[project_table Column Indexes.bids], }); } function fn Project_table Start Render(o Obj) { var contest Extended = o Obj.a Data[project_table Column Indexes.extended] == 1 ?

true : false; var contest Extended Label = ''; if (contest Extended) { contest Extended Label = ""; } return o Obj.a Data[project_table Column Indexes.left] + contest Extended Label; } function fn Project_table Left Render(o Obj) { var contest Extended = o Obj.a Data[project_table Column Indexes.extended] == 1 ?

true : false; var contest Extended Label = ''; if (contest Extended) { contest Extended Label = ""; } return o Obj.a Data[project_table Column Indexes.left] + contest Extended Label; } function fn Project_table Avg Render(o Obj) { var price; var price Details; if (o Obj.a Data[project_table Column Indexes.type] == PROJECT_TYPE) { if (o Obj.a Data[project_table Column Indexes.duration] == 'Fixed') { var bids = jq(o Obj.a Data[project_table Column Indexes.bids]).data('bids'); if (typeof bids == 'undefined'