function loadGooMap() {
if (window.location.hostname=='www.rz.htw-berlin.de') {
api_key = "ABQIAAAA-vgev7OBhLOwGDtddchCERS62bWrB-k0hd7YdyiXGqaxxw6TSRSY_y21WVYjht19JVtVjpSHB9jybw";
/*api_key = "ABQIAAAAKBHKS_aBED2TrUklQQcqXBS8z0C6-NLB3MplpnSvDfV1nWRvYhSk5CtNAnsw6j-3BCiETkv37GBqxw";*/
} else {
api_key = "ABQIAAAA-vgev7OBhLOwGDtddchCERS62bWrB-k0hd7YdyiXGqaxxw6TSRSY_y21WVYjht19JVtVjpSHB9jybw";
/*api_key = "ABQIAAAAKBHKS_aBED2TrUklQQcqXBT3QPq7YDjGk212yEr678aEGMn8ihQE5RO3tqPUDLqP6HbZ3x7YuO6Ykw";*/
}
document.writeln('');
}
function toggleLogin() {
new Effect.toggle($('loginform'),'slide',{ duration: 0.5 });
if ($('loginform').style.display == "none") {
new Effect.Fade('pagewrapper',{ duration: 0.9, to: 0.25 });
$('status').style.display='none';
$('query').disabled='disabled';
$('search_submit').disabled='disabled';
window.setTimeout('activateInput()', 500);
} else {
new Effect.Appear('pagewrapper',{ duration: 0.9, from: 0.25 });
$('status').style.display='block';
$('query').disabled='';
$('search_submit').disabled='';
}
return false;
}
function activateInput() {
$('username').focus();
}
function hideNews(not_hide) {
var i = 0;
news_id = 'news'+i;
while ($(news_id)) {
term_id = news_id + "_term";
if (news_id != not_hide) {
if ($(news_id).className=="up") {
new Effect.SlideUp(news_id,{duration: 0.3});
} else {
$(news_id).style.display='none';
$(term_id).className="up";
}
$(news_id).className="down";
$(term_id).className="down";
}
i++;
news_id = 'news'+i;
}
}
function toggleNews(news_id) {
new Effect.toggle($(news_id),'slide',{ duration: 0.3 });
/*term_id = news_id + "_term";
if ($(news_id).style.display == "none") {
hideNews(news_id);
new Effect.SlideDown(news_id,{duration: 0.3 });
$(news_id).className="up";
}
else {
hideNews('newsx');
}*/
return false;
}
function hideBreadcrumb() {
$('breadcrumb').style.display = 'none';
$('headline').style.cursor = 'pointer';
}
function displayBreadcrumb() {
if ($('breadcrumb').style.display == 'none') {
new Effect.SlideDown('breadcrumb');
$('headline').style.cursor = 'text';
}
}
function showToggleBox(box_id) {
if(document.getElementById) {
document.writeln(' [' +
'Einblenden' +
'Ausblenden'
+ ']');
}
}
function toggleBox(box_id) {
var showlink=$('showlink'+box_id);
var hidelink=$('hidelink'+box_id);
if($(box_id).style.display == 'none') {
hidelink.style.display='';
showlink.style.display='none';
} else {
hidelink.style.display='none';
showlink.style.display='';
}
new Effect.toggle($(box_id),'blind',{ duration: 0.3 });
}
function highLight(highlight_id) {
highlight_box = highlight_id + "_box";
new Effect.Highlight(highlight_id, {startcolor:'#D10000', endcolor:'#f5f5f5', duration: 1});
new Effect.Highlight(highlight_box, {startcolor:'#FFF0F0', endcolor:'#fdfdfd', duration: 1});
}