function account_menu_down(action){ if(action=='down'){ $('#account_left_menu').css('height', '22px'); $('#account_left_close').html(''); $('#account_left_menu_2').attr('onclick', 'account_menu_down(\'up\')'); $('#account_left_close').attr('onclick', 'account_menu_down(\'up\')'); createCookie('account_left', 'down',1); }else{ $('#account_left_menu').css('height', 'auto'); $('#account_left_close').html(''); $('#account_left_menu_2').attr('onclick', 'account_menu_down(\'down\')'); $('#account_left_close').attr('onclick', 'account_menu_down(\'down\')'); createCookie('account_left', 'up',1); } } function burgain_offers_down(action){ if(action=='down'){ $('#bargain_offers_box_navigation').css('display', 'none'); $('#bargain_offers_box').css('height', '20px'); $('#burgain_close').html(''); $('#bargain_offers_box_h2').attr('onclick', 'burgain_offers_down(\'up\')'); $('#burgain_close').attr('onclick', 'burgain_offers_down(\'up\')'); createCookie('burgain_offers', 'down',1); }else{ $('#bargain_offers_box').css('height', '260px'); $('#burgain_close').html(''); $('#bargain_offers_box_h2').attr('onclick', 'burgain_offers_down(\'down\')'); $('#burgain_close').attr('onclick', 'burgain_offers_down(\'down\')'); $('#bargain_offers_box_navigation').css('display', 'block'); createCookie('burgain_offers', 'up',1); } } function notifications_info(){ } function remove_from_notifications(notification_id){ } function search_result_info(){ } function remove_from_search_result(search_id){ } function save_this_search_results(){ $('#advanced_info').show(); } function short_list_info(){ } function add_2_short_list(property_id){ $('#add_shortlist_info').show(); } function remove_from_short_list(short_id){ } function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function eraseCookie(name) { createCookie(name,"",-1); }