function blankElements_Home()  {
  if(!($("blogAuthorInfo") == null)) Element.hide("blogAuthorInfo");
  if(!($("blogAuthorPosts") == null)) Element.hide("blogAuthorPosts");

  if(!($('flash') == null))	Element.show("flash");
  
  if(!($("blogTippList") == null)) Element.show("blogTippList");
  if(!($("blogToptipp")== null)) Element.show("blogToptipp");
  if(!($("blogTop5")== null)) Element.show("blogTop5");
  if(!($('blogTagCloud') == null)) $('blogTagCloud').show();

  blankElements_disableCityGuides();
}

function blankElements_PostNew()  {
  if(!($("blogTippList") == null)) Element.hide("blogTippList");
  if(!($("blogToptipp")== null)) Element.hide("blogToptipp");
  if(!($("blogTop5")== null)) Element.hide("blogTop5");
  if(!($('flash') == null))	Element.hide("flash");
  if(!($('blogTagCloud') == null)) $('blogTagCloud').hide();
  blankElements_disableCityGuides();
}

function blankElements_PostShow(urlAuthorInfo, urlAuthorPosts)  {
  //alert('Updating columns\n' + urlAuthorInfo + '\n' + urlAuthorPosts);
  if(!($("blogAuthorInfo") == null)) Element.show("blogAuthorInfo");
  if(!($("blogAuthorPosts") == null)) Element.show("blogAuthorPosts");
  new Ajax.Updater('blogAuthorInfo', urlAuthorInfo, {asynchronous:true, evalScripts:true});
  new Ajax.Updater('blogAuthorPosts', urlAuthorPosts, {asynchronous:true, evalScripts:true});
  
  if(!($('flash') == null))	Element.hide("flash");
  
  if(!($("blogTippList") == null)) Element.hide("blogTippList");
  if(!($("blogToptipp")== null)) Element.hide("blogToptipp");
  if(!($("blogTop5")== null)) Element.hide("blogTop5");
  if(!($('blogTagCloud') == null)) $('blogTagCloud').hide();
  if(!($('blogCityGuide') == null)) $('blogCityGuide').hide();
}

function blankElements_UsersEdit()  {
  if(!($("blogTippList") == null)) Element.hide("blogTippList");
  if(!($('flash') == null))	Element.hide("flash");
  if(!($('blogTagCloud') == null)) $('blogTagCloud').hide();
  blankElements_disableCityGuides();
}

function blankElements_SearchResult()  {
  if(!($('flash') == null))	Element.hide("flash");
}

function updateContentDivs(siteUrl) {
  new Ajax.Updater('blogTippList', siteUrl+'/blog/recommendation', {asynchronous:true, evalScripts:true});
  new Ajax.Updater('blogToptipp', siteUrl+'/blog/toptipp', {asynchronous:true, evalScripts:true});
  new Ajax.Updater('blogTop5', siteUrl+'/blog/topfive', {asynchronous:true, evalScripts:true});
  new Ajax.Updater('blogTagCloud', siteUrl+'/blog/tag_cloud', {asynchronous:true, evalScripts:true});
}

function blankElementsCityGuideSelect() {
  $$('body')[0].setStyle({backgroundImage: 'url(' + path2heaven + '/images/cityguides_bg.jpg)'});
  
  if(!($('blogCityGuideSelectBox') == null)) $('blogCityGuideSelectBox').show();
  new Ajax.Updater('blogCityGuideSelectBox', path2heaven + '/minisites/left_select_box', {evalScripts:true});
  new Ajax.Updater('column2middle', path2heaven + '/minisites/middle_select_box', {evalScripts:true});
  new Ajax.Updater('blogToptipp', path2heaven + '/minisites/newest_trailer_box', {evalScripts:true});
  

  if(!($("blogAuthorInfo") == null)) Element.hide("blogAuthorInfo");
  if(!($("blogAuthorPosts") == null)) Element.hide("blogAuthorPosts");
  if(!($("blogTippList") == null)) Element.hide("blogTippList");
  if(!($("blogToptipp")== null)) Element.show("blogToptipp");
  if(!($("blogTop5")== null)) Element.show("blogTop5");
}

function blankElementsCityGuideSite(cityguide_id, city, country, page) {
  $$('body')[0].setStyle({backgroundImage: 'url(' + path2heaven + '/images/cityguides_bg.jpg)'});
  if(!($('logo_image') == null)) {
    $('logo_image').src = "/fileadmin/style/img/sightseeker_logo_mit_cityguides.gif";
    $('logo_image').setStyle({width:"668px", height:"98px"})
  }
  if(!($("blogAuthorInfo") == null)) $("blogAuthorInfo").hide();
  if(!($("blogAuthorPosts") == null)) $("blogAuthorPosts").hide();
  
  if(!($("blogTop5")== null)) $("blogTop5").show();
  if(!($('blogCityGuideSelectBox') == null)) $('blogCityGuideSelectBox').show();
  if(!($('blogCityGuide') == null)) $('blogCityGuide').show();
  if(!($('blogToptipp') == null)) $('blogToptipp').show();
  if(!($("blogTippList") == null)) $('blogTippList').show();
  
  new Ajax.Updater('column2middle', path2heaven + '/search/search?updatefilter=1&dontupdatetipplist=1&citysearch=' + city + '&countrysearch=' + country + '&page=' + page, {evalScripts:true});
  new Ajax.Updater('blogTop5', path2heaven + '/minisites/topfive_box/' + cityguide_id + '?use_days=all', {evalScripts:true});
  new Ajax.Updater('blogTippList', path2heaven + '/minisites/reco_box/' + cityguide_id, {evalScripts:true});
  new Ajax.Updater('blogToptipp', path2heaven + '/minisites/trailer_box/' + cityguide_id, {evalScripts:true});
  new Ajax.Updater('blogSearchbox', path2heaven + '/minisites/search_box/' + cityguide_id, {evalScripts:true});
  new Ajax.Updater('blogCityGuideSelectBox', path2heaven + '/minisites/left_select_box', {evalScripts:true});
  
  if(!($('flash') == null)) $('flash').hide();
}

function blankElements_showFavourites() {
  if(!($("blogAuthorInfo") == null)) Element.hide("blogAuthorInfo");
  if(!($("blogAuthorPosts") == null)) Element.hide("blogAuthorPosts");
  blankElements_disableCityGuides();
}

function blankElements_disableCityGuides() {
  if(!($('blogCityGuideSelectBox') == null)) $('blogCityGuideSelectBox').hide();
  if(!($('blogCityGuide') == null)) $('blogCityGuide').hide();
  $$('body')[0].setStyle({backgroundImage: 'url(/fileadmin/style/img/karte.jpg)'});
  if(!($('logo_image') == null)) {
    $('logo_image').src = "/fileadmin/style/img/logo.gif";
    $('logo_image').setStyle({width:"203x", height:"100px"})
  }
  new Ajax.Updater('blogSearchbox', path2heaven + '/search/searchbox', {evalScripts:true});
}
