// SWF var swf_check_interval=false; var swf_ready=false; var page=""; var cQuery=""; var cLastQuery=""; var php_page=""; var php_L=""; var php_warning=""; var php_playkeg=0; var cLastQuery=""; var onloadMain=false; function ins() { if(!onloadMain) return ''; page=php_page; var L=php_L; var warning=php_warning; var main = document.getElementById('framediv'); var topLine = document.getElementById('topLine'); var topMen = document.getElementById('topMen'); var getMain = top.frames[0].document.getElementById('getMain').innerHTML; var getTop = top.frames[0].document.getElementById('getTop').innerHTML; var getTopMen = top.frames[0].document.getElementById('getTopMen').innerHTML; var getJS = top.frames[0].document.getElementById('getJS').innerHTML; if(main && getMain) { main.innerHTML=getMain; } else { alert('Error loading content!'); } if(topLine && getTop) { topLine.innerHTML=getTop; } else { if(!topLine) alert('Error loading topLine!'); if(!getTop) alert('Error loading getTop!'); } if(topMen && getTopMen) { topMen.innerHTML=getTopMen; } top.document.title=top.frames[0].document.title; top.frames[0].document.body.innerHTML=''; hideAllFloat(); setPage(page,L); blur_it(); if(warning!="") { warnme(warning); } if(getJS!="") { if(!document.getElementById('cScript')) { var scriptDiv = document.createElement("div"); scriptDiv.id = "cScript"; var script = document.createElement("script"); script.type = "text/javascript"; script.text = "\n//\n"; document.body.appendChild(scriptDiv); scriptDiv.appendChild(script); } else { var scriptDiv=document.getElementById('cScript'); scriptDiv.innerHTML=""; var script = document.createElement("script"); script.type = "text/javascript"; script.text = "\n//\n"; scriptDiv.appendChild(script); } } initLytebox(); if(page=="anfahrt") { window.setTimeout('loadGMapScript()',0); } if(page=="user") { sInfo(); } ghide(); } function warnme(warning) { if(warning!="") { window.setTimeout("alert('"+warning+"')",1); } } var swf_check_interval=false; var swf_ready=false; var page=""; function setSwishReady() { swf_ready=1; } function setPage(page_in,L,bild) { page=page_in; if(swf_check_interval) window.clearInterval(swf_check_interval); swf_check_interval=window.setInterval('setSwishVars(\''+page+'\',\''+L+'\');',40); } function setSwishVars(page_in,L) { if(swf_ready==1) { if(document.SWF_MENU) { document.SWF_MENU.SetVariable('_root.PAGE',page_in); document.SWF_MENU.SetVariable('_root.L',L); document.SWF_MENU.SetVariable('_root.playKeg',php_playkeg); if(swf_check_interval) window.clearInterval(swf_check_interval); } } } function insertSWF() { var swfObj=document.getElementById('swfObj'); if(swfObj) { if(swf) { swfObj.innerHTML=swf; window.setTimeout('insertQuery()',0); } } } function insertQuery() { top.frames[0].location.href='c.php?'+cQuery; } function checkCurLength(str) { $('tz').innerHTML=str.length; if(str.length>500) { $('textar').value=$('textar').value.substr(0,500); } } var lastFloatObj=""; var closeFloat=false; function hideFloat(closeObj) { closeFloat=window.setTimeout(function() { hideFloatScr(closeObj);},0); } function hideFloatScr(closeObj) { if(document.getElementById(closeObj)) { if(lastFloatObj==document.getElementById(closeObj)) { lastFloatObj=false; document.getElementById(closeObj).style.display='none'; } } } function showFloat(e,thisIs,posObj,floatObj) { if(closeFloat) window.clearTimeout(closeFloat); var curFloat=document.getElementById(floatObj); if(curFloat==lastFloatObj) return true; if(lastFloatObj) lastFloatObj.style.display='none'; var obj=document.getElementById(posObj); if(!obj) alert('Error getting Object!'); var curPos=findPos(obj); curFloat.style.display='block'; curFloat.style.top=curPos[0]+"px"; curFloat.style.left=curPos[1]+"px"; lastFloatObj=curFloat; } function hideAllFloat() { var fl=""; var floatDivs=new Array('indexFloat','optionsFloat','accountFloat'); for(i in floatDivs) { fl=document.getElementById(floatDivs[i]); if(fl) fl.style.display='none'; } } var curEl=""; function tMenShow(elId) { if(curEl==elId) return true; var oldElL=document.getElementById('tMenL_'+curEl); var oldElR=document.getElementById('tMenR_'+curEl); if(oldElL) oldElL.className='tMenItL'; if(oldElR) oldElR.style.display='none'; curEl=elId; var newElL=document.getElementById('tMenL_'+curEl) var newElR=document.getElementById('tMenR_'+curEl) if(newElL) newElL.className='tMenItR'; if(newElR) newElR.style.display='block'; } function check(info) { $('testInfo').innerHTML+=" "+info; } function blur_it() { var alla=document.getElementsByTagName('a'); if(alla) { for(var i=0; i>> function openForm(url) { if(url=="") return ''; new Ajax.Request(url, { method:'GET', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText!="") { $('formHover').innerHTML=obj.responseText; $('formHover').style.display='block'; if(window.location.hash!='') { window.location.hash='#formHover'; } } else { alert('Fehler - kein Inhalt!'); } } }); } function closeForm() { if($('formHover')) { $('formHover').style.display='none'; $('formHover').innerHTML=""; } } function buildTable(cols) { new Ajax.Request('c.php?c='+editscript+'&genTable='+cols, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText!="") { $('inBox').innerHTML=obj.responseText; } else { alert('Fehler!'); } } }); } function outTable(tblId) { var tblHeadObj = document.getElementById(tblId).tHead; var tblBodyObj = document.getElementById(tblId).tBodies[0]; curRows=tblBodyObj.rows.length; if(tblHeadObj) curRows+=tblHeadObj.rows.length; curCols=tblBodyObj.rows[0].cells.length; var form="
"; var cellName=cellValue=""; for(var i = 0; i"+cellValue+""; } } form+=""; form+=""; form+=""; if($('hiddenDiv')) $('hiddenDiv').remove(); var divHidden=document.createElement('div'); divHidden.setAttribute('id','hiddenDiv'); divHidden.setAttribute('style','display:none;'); divHidden.innerHTML=form; document.body.appendChild(divHidden); document.forms['tableSubmit'].submit(); } var curRows=0; var curCols=0; function addColumn(tblId) { var tblHeadObj = document.getElementById(tblId).tHead; var h=0; if(tblHeadObj) { for (h=0; h'; } } var tblBodyObj = document.getElementById(tblId).tBodies[0]; if(tblBodyObj) for (var i=h; i'; } curRows=tblBodyObj.rows.length; if(tblHeadObj) curRows+=tblHeadObj.rows.length; curCols=tblBodyObj.rows[0].cells.length; } function deleteColumn(tblId) { var allRows = document.getElementById(tblId).rows; for (var i=0; i 1) { allRows[i].deleteCell(-1); } } } function addRow(tblId) { var allRows = document.getElementById(tblId).rows; var allCols = allRows[0].cells; $(tblId).insertRow(allRows.length); var tblBodyObj = document.getElementById(tblId).tBodies[0]; for (var i=0; i'; } } function delRow(tblId) { var allRows = document.getElementById(tblId).rows; if (allRows.length > 1) { document.getElementById(tblId).deleteRow(-1); } } var activeAjax=0; var editscript='hcpg'; function storePage(pid,type,obj,string) { activeAjax++; objId=obj.id.replace(/ctp/g,'ct'); new Ajax.Request('c.php?c='+editscript+'_s&p='+pid+'&ctid='+objId+'&type='+type+'&'+string, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { activeAjax--; if(obj.responseText=="SUCCESS") { $('loadInfo').innerHTML+='
'+activeAjax+" - successfull"; } else { $('loadInfo').innerHTML+='
'+activeAjax+" - "+obj.responseText; } } }); } function assignClasses(elementString,obj,pid) { var items=elementString.split('&'); var texts_used=0; var arLen=0; var eleId=new Array; var newItems=new Array; for(i=0;i1) { if(typAr[i-1]=="img" || typAr[i-1]=="video") { thisChild.className='textElement'; thisChild.style.zIndex=1000; } else thisChild.className='textElementBottom'; } thisChild.className+=' moveable'; /* if($(obj.id+'spanfix')) { $(obj.id+'spanfix').remove(); } if(i==arLen-1) { thisChild.insert( {after: '
'}); } */ } else { } } } } function onPageUpdate(obj) { activeAjax++; var buerger='&'+Sortable.serialize('buerger_liste',{tag:'div',only:'movePageElement'}); var touris='&'+Sortable.serialize('tourismus_liste',{tag:'div',only:'movePageElement'}); new Ajax.Request('c.php?c='+editscript+'_s&ed=arrangePages'+buerger+touris, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { activeAjax--; if(obj.responseText=="SUCCESS") { if(activeAjax<1) //alert('kleiner Null'); window.location.reload(); } else { alert(obj.responseText); } } }); } function deleteCont(cid) { if(confirm('Diesen Container (ohne Elemente) wirklich löschen?')) { new Ajax.Request('c.php?c=hcpg_s&removeCont='+cid, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText=="SUCCESS") { $('ctp_'+cid).remove(); Sortable.destroy('ctp_'+cid); } else if(obj.responseText=="RELM - SUCCESS") { window.top.frames[0].location.reload(); } else { alert(obj.responseText); } } }); } } function delImage(id,pid) { if(confirm('Dieses Bild wirklich löschen?')) { new Ajax.Request('c.php?c=hcpg_s&p='+pid+'&delImage='+id, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText!="") { obj.responseText=="SUCCESS"; $('child_'+id).style.display='none'; $('imgid_'+id).style.display='none'; } else { alert('Fehler!'); } } }); } } function onContainerUpdate(obj,pid) { out='&'+Sortable.serialize('containerFrame',{tag:'div'}); storePage(pid,'cont',obj,out); } function onElementUpdate(obj,pid) { out='&'+Sortable.serialize(obj.id,{tag:'div'}); assignClasses(out,obj,pid); }// ADMIN ENDE <<< function addEleSelect(obj) { if(obj.options[0].value==0) obj.options[0]=null; var type=obj.value; var inType=''; if($('inBox')) $('inBox').remove(); if(type=='text') { new Ajax.Request('c.php?c='+editscript+'&add=text', { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText!="") { $('sel').insert({after:'
'+obj.responseText+'
'}); } else { alert('Fehler!'); } }, onFailure: function (obj) { alert('ERROR!'); } }); } if(type=='img') { new Ajax.Request('c.php?c='+editscript+'&add=img', { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText!="") { $('sel').insert({after:'
'+obj.responseText+'
'}); } else { alert('Fehler!'); } }, onFailure: function (obj) { alert('ERROR!'); } }); } if(type=='table') { new Ajax.Request('c.php?c='+editscript+'&add=table', { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText!="") { $('sel').insert({after:'
'+obj.responseText+'
'}); } else { alert('Fehler!'); } }, onFailure: function (obj) { alert('ERROR!'); } }); } if(type=="video") { new Ajax.Request('c.php?c='+editscript+'&add=vid', { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText!="") { $('sel').insert({after:'
'+obj.responseText+'
'}); } else { alert('Fehler!'); } } }); } if(type=="files") { new Ajax.Request('c.php?c='+editscript+'&add=files', { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText!="") { $('sel').insert({after:'
'+obj.responseText+'
'}); } else { alert('Fehler!'); } } }); } } function editElement(id,pid) { new Ajax.Request('c.php?c='+editscript+'&p='+pid+'&edit=ele&ed='+id, { method:'GET', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText!="") { $('formHover').innerHTML=obj.responseText; $('formHover').style.display='block'; if(window.location.hash!='') { //window.location.hash=""; window.location.hash='#formHover'; } } else { alert('Fehler!'); } } }); } function deleteElement(eid,remId) { if(confirm('Dieses Element wirklich löschen?')) { new Ajax.Request('c.php?c='+editscript+'_s&delEle='+eid, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText=="SUCCESS") { //alert(cLastQuery); top.frames[0].location.href=cLastQuery; } else { alert(obj.responseText); } } }); } } function deleteHeaderImg(id,pid,PID) { if(PID==undefined) { PID="hcpg_s"; } if(confirm('Dieses Header Bild wirklich löschen?')) { window.frames[0].location.href='c.php?c='+PID+'&delHeadImg='+id+"&p="+pid; } return ''; } function deleteMitarbeiter(id) { if(confirm('Diesen Mitarbeiter wirklich löschen?')) { new Ajax.Request('c.php?c=mit_s&del='+id, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText=="SUCCESS") { //alert(cLastQuery); top.frames[0].location.href='c.php?c=mit'; } else { alert(obj.responseText); } } }); } } function setMitarbeiterKatPos(obj) { string='&'+Sortable.serialize(obj.id,{tag:'div'}); new Ajax.Request('c.php?c=mit_s&edkp=pos'+string, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { } }); } function deleteMitarbeiterKat(id) { if(confirm('Diesen Position wirklich löschen?')) { new Ajax.Request('c.php?c=mit_s&delKat='+id, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText=="SUCCESS") { top.frames[0].location.href='c.php?c=mit'; } else { alert(obj.responseText); } } }); } } function deleteNews(id) { if(confirm('Diesen Newseintrag wirklich löschen?')) { new Ajax.Request('c.php?c=start_s&delNews='+id, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText=="SUCCESS") { top.frames[0].location.href='c.php?c=news'; } else { alert(obj.responseText); } } }); } } function deleteHelp(id) { if(confirm('Diese Frage wirklich löschen?')) { new Ajax.Request('c.php?c=help_s&del='+id, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText=="SUCCESS") { top.frames[0].location.href='c.php?c=help'; } else { alert(obj.responseText); } } }); } } function deleteBegriff(id,ch) { if(confirm('Diesen Begriff wirklich löschen?')) { new Ajax.Request('c.php?c=gloss_s&del='+id, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText=="SUCCESS") { top.frames[0].location.href='c.php?c=gloss&ch='+ch; } else { alert(obj.responseText); } } }); } } function deleteGal(id) { if(confirm('Diese Kategorie wirklich löschen?')) { new Ajax.Request('c.php?c=gal_s&delkat='+id, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText=="SUCCESS") { top.frames[0].location.href='c.php?c=gal'; } else { alert(obj.responseText); } } }); } } function deleteFile(id,bereich) { if(confirm('Diese Datei wirklich löschen?')) { new Ajax.Request('c.php?c=down_s&b='+bereich+'&del='+id, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText=="SUCCESS") { if(bereich=='public') bereich='down'; top.frames[0].location.href='c.php?c='+bereich; } else { alert(obj.responseText); } } }); } } function deleteRef(id) { if(confirm('Diese Referenz wirklich löschen?')) { new Ajax.Request('c.php?c=ref_s&del='+id, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText=="SUCCESS") { top.frames[0].location.href='c.php?c=ref'; } else { alert(obj.responseText); } } }); } } function deleteGalVideo(id,k) { if(confirm('Dieses Video wirklich löschen?')) { new Ajax.Request('c.php?c=gal_s&type=video&del='+id, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText=="SUCCESS") { top.frames[0].location.href='c.php?c=gal&k='+k; } else { alert(obj.responseText); } } }); } } function deleteGalBild(id,k) { if(confirm('Dieses Bild wirklich löschen?')) { new Ajax.Request('c.php?c=gal_s&type=bild&del='+id, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText=="SUCCESS") { top.frames[0].location.href='c.php?c=gal&k='+k; } else { alert(obj.responseText); } } }); } } function deleteLink(id) { if(confirm('Diesen Link wirklich löschen?')) { new Ajax.Request('c.php?c=links_s&del='+id, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText=="SUCCESS") { top.frames[0].location.href='c.php?c=links'; } else { alert(obj.responseText); } } }); } } function deleteNlettEmail(id) { if(confirm('Diese Emailadresse wirklich löschen?')) { new Ajax.Request('c.php?c=adm_nlett_s&del='+id, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText=="SUCCESS") { top.frames[0].location.href='c.php?c=adm_nlett&sc=email'; } else { alert(obj.responseText); } } }); } } // ===> Lightbox // Additional methods for Element added by SU, Couloir // - further additions by Lokesh Dhakar (huddletogether.com) // Object.extend(Element, { getWidth: function(element) { element = $(element); return element.offsetWidth; }, setWidth: function(element,w) { element = $(element); element.style.width = w +"px"; }, setHeight: function(element,h) { element = $(element); element.style.height = h +"px"; }, setTop: function(element,t) { element = $(element); element.style.top = t +"px"; }, setLeft: function(element,l) { element = $(element); element.style.left = l +"px"; }, setSrc: function(element,src) { element = $(element); element.src = src; }, setHref: function(element,href) { element = $(element); element.href = href; }, setInnerHTML: function(element,content) { element = $(element); element.innerHTML = content; } }); function getPageSize(){ var xScroll, yScroll; if (window.innerHeight && window.scrollMaxY) { xScroll = window.innerWidth + window.scrollMaxX; yScroll = window.innerHeight + window.scrollMaxY; } else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac xScroll = document.body.scrollWidth; yScroll = document.body.scrollHeight; } else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari xScroll = document.body.offsetWidth; yScroll = document.body.offsetHeight; } var windowWidth, windowHeight; // console.log(self.innerWidth); // console.log(document.documentElement.clientWidth); if (self.innerHeight) { // all except Explorer if(document.documentElement.clientWidth){ windowWidth = document.documentElement.clientWidth; } else { windowWidth = self.innerWidth; } windowHeight = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode windowWidth = document.documentElement.clientWidth; windowHeight = document.documentElement.clientHeight; } else if (document.body) { // other Explorers windowWidth = document.body.clientWidth; windowHeight = document.body.clientHeight; } // for small pages with total height less then height of the viewport if(yScroll < windowHeight){ pageHeight = windowHeight; } else { pageHeight = yScroll; } // console.log("xScroll " + xScroll) // console.log("windowWidth " + windowWidth) // for small pages with total width less then width of the viewport if(xScroll < windowWidth){ pageWidth = xScroll; } else { pageWidth = windowWidth; } // console.log("pageWidth " + pageWidth) arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) return arrayPageSize; } // // // // <=== Lightbox function flvPlayer(file,titel) { document.title=document.title.replace(/#.*/g,''); if($('overlay')) $('overlay').remove(); var objBody = window.top.document.getElementsByTagName("body").item(0); var objOverlay = document.createElement("div"); objOverlay.setAttribute('id','overlay'); objOverlay.style.display = 'none'; objOverlay.onclick = function() { closeFlvPlayer();} objBody.appendChild(objOverlay); if($('flvPlayer')) $('flvPlayer').remove(); var objFlvPlayer = document.createElement("div"); objFlvPlayer.setAttribute('id','flvPlayer'); objFlvPlayer.style.display = 'none'; objBody.appendChild(objFlvPlayer); var arrayPageSize = getPageSize(); Element.setWidth('overlay', arrayPageSize[0]); Element.setHeight('overlay', arrayPageSize[1]); new Effect.Appear('overlay', { duration: 0.2, from: 0.0, to: 0.4 }); new Ajax.Request('c.php?c=flvplay&f='+file+'&t='+titel, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText!="") { $('flvPlayer').innerHTML=obj.responseText; if($('flvCloseLink')) { $('flvCloseLink').onfocus=new Function('if(this.blur)this.blur();'); } $('flvPlayer').style.display='block'; window.location.hash='#'; } else { alert('Fehler!'); } } }); } function closeFlvPlayer() { if($('vPlayer')) $('vPlayer').remove(); if($('flvPlayer')) $('flvPlayer').remove(); if($('overlay')) $('overlay').remove(); } var imgwindow; function showimage(url,w,h) { if(imgwindow) { if(imgwindow.closed==false) { imgwindow.close(); } } h=h+112; features ='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0' window_top = 10 window_left = 10 imgwindow=window.open(url,'img_window','width='+w+',height='+h+',top='+window_top+',left='+window_left+',features='+features+''); imgwindow.focus(); } var gltext=new Array; function ghover(replace_id,begriff_id) { pos=findPos($(replace_id)); if(gltext[begriff_id]=="" || gltext[begriff_id]==undefined) { new Ajax.Request('c.php?c=gloss&glid='+begriff_id, { method:'get', requestHeaders:{'Cache-control':'no-cache'}, onComplete: function (obj) { if(obj.responseText!="") { gltext[begriff_id]=obj.responseText; $('glcont').innerHTML=gltext[begriff_id]; positionGL(pos); } else { return ''; } } }); } else { $('glcont').innerHTML=gltext[begriff_id]; positionGL(pos); } //$('gl').innerHTML=gltext[begriff_id]; } function positionGL(pos) { $('gl').style.top=pos[0]+16+'px'; if((pos[1]+24)<724) { $('gl').style.left=pos[1]+16+'px'; } else { $('gl').style.left=724+'px'; } $('gl').style.display='block'; } function ghide() { $('gl').style.display='none'; } function setFontSize(sid) { if(sid==-1) { var fSize='8px'; } else if(sid==0) { var fSize='10px'; } else { var fSize='14px'; } document.getElementsByTagName('body')[0].style.fontSize=fSize; document.cookie='fSize='+fSize+'; expires=Sun, 31 May 2015 23:59:59 UTC; path=/'; } function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(50.044925,9.035819), 14); map.setMapType(G_HYBRID_MAP); var icon = new GIcon(); icon.image = "img/bg_klee.png"; icon.iconSize = new GSize(24, 25); icon.iconAnchor = new GPoint(2, 20); var point = new GLatLng(50.044925,9.035819); map.addOverlay(new GMarker(point, icon)); } } function loadGMapScript() { if(!document.getElementById('gMapScript')) { var script = document.createElement("script"); script.id = "gMapScript"; script.type = "text/javascript"; script.src = "http://maps.google.com/maps?file=api&v=2.x&key=ABQIAAAAPL7OzXO2V24RWpwBgVc3BhR8eVEsZlttRK8-2Sa_ndwH9Zgp9xTDXmJiYhWKV48iIYrDuzEGPobCcg&async=2&callback=load"; document.body.appendChild(script); } else { load(); } }