var rules = {
"input.google_search":function(el) {
el.onfocus = function() {
el.style.backgroundImage = "none";
}
},
"#searches_nav li a":function(el) {
el.onclick = function() {
if(document.getElementById) {
load_search_content(el);
return false;
}
return true;
}
}
}
Behaviour.register(rules);
function write_flash_embed(movie, width, height) {
document.write('');
}
function load_search_content(link) {
url = link.href;
container = document.getElementById("searches");
search_contents = YAHOO.util.Dom.getElementsByClassName("search_content_enabled", "div");
for(var i = 0; i < search_contents.length; i++) {
div = search_contents[i];
div.className = "search_content_disabled";
}
item_id = link.id.replace("link", "item");
acttive_list_item = document.getElementById(item_id);
acttive_list_item.className = "active_search search_item";
search_items = YAHOO.util.Dom.getElementsByClassName("search_item", "li");
inactive_num = 1;
for(var i = 0; i < search_items.length; i++) {
list_item = search_items[i];
if(list_item.id != item_id) {
list_item.className = "inactive_search"+inactive_num+" search_item";
inactive_num++;
}
}
container_id = link.id.replace("link", "content");
content = document.getElementById(container_id);
content.className = "search_content_enabled";
}
function replaceHTML(url, content_area_id, uniq, onsuccess) {
callback = {
success: function(o) {
var area = document.getElementById(content_area_id);
area.innerHTML = '';
area.style.visibility = "hidden";
area.innerHTML = o.responseText;
var cxrand = Math.floor(Math.random() * 10000000);
tracking_code = "";
area.innerHTML = area.innerHTML + tracking_code;
area.style.visibility = "visible";
area.ajax_content_loaded = true;
onsuccess();
}
}
var transaction = YAHOO.util.Connect.asyncRequest('GET', url+"?no_owrap=True", callback, null);
}
var aa_ap = window.location.href.split("/")[3];
if (aa_ap == "restaurants" || aa_ap == "events" || aa_ap == "movies")
{
survey_script = document.createElement('script');
survey_script.type = 'text/javascript';
survey_script.src = 'http://www.surveymonkey.com/jsPop.aspx?sm=3CGfvQ5h8KpSEc_2fKyuiZLg_3d_3d';
document.getElementsByTagName('head')[0].appendChild(survey_script);
}
/*FROM THE BLOGS*/
jQuery(document).ready(function() {
jQuery('#from-blogs ul li:lt(3)').show();
jQuery('a#slick-show-blogs').click(function() {
jQuery('#from-blogs ul li').show();
jQuery('#slick-hide-blogs').show();
jQuery(this).hide();
return false;
});
jQuery('a#slick-hide-blogs').click(function() {
jQuery('#from-blogs ul li:gt(2)').hide();
jQuery('#slick-show-blogs').show();
jQuery(this).hide();
return false;
});
});
/*END FROM THE BLOGS*/
/* add what think to endeca*/
jQuery(document).ready(function(){
var url = window.location.href;
if(url.indexOf('endecaSearch') != -1) {
jQuery('#EndecaRSS').prepend("