Verwaltungs-Berufsgenossenschaft Bz.Verw., Ridlerstr. 37, 80339 München, (0 89) 5 00 95-0, Fax (0 89) 5 02 48 77, Fax (0 89) 5 02 69 47, function cookieExist(id) {, var mC = $.cookies.get(id), if (mC != null){, //alert("Value:" + mC.ratingValue), }, }, 0 Bewertungen 1, var ccc = $.cookies.get('cook7381585'), var newAvg = 0.0, var newAnz = 0, var newAvg0 = 0, if (newAnz > 0){, newAvg0 = newAvg0/newAnz, }, var sumGoloAnz = 0, if (ccc != null){, // vgl., ob Rating Id schon aus Suchmaschine, var myId = "," + ccc.ratingId + ",", var searchIds = '', var found = searchIds.indexOf(myId), if (found == -1){, newAvg = (0)+ccc.ratingValue, newAvg = newAvg/1, sumGoloAnz++, newAvg0 = newAvg, newAvg = Math.round(newAvg*2)/2, newAnz = 1, }, else {, // id schon von Suchmasch., cookie delete, $.cookies.del('cook7381585'), }, }, // Varta?, if (0.0 > 0){, if (newAnz > 1){, newAvg = (0.0 + newAvg0)/2, }, else {, newAvg = 0.0 + newAvg0, }, if (sumGoloAnz == 0){, newAvg = 0.0, }, newAvg = Math.round(newAvg*2)/2, //newAnz++, }, var halfStar = newAvg + "", halfStar = halfStar.indexOf(".5"), var firstHalf = 0, var cidx = 0, var outRat = 0, //alert("COOKIE: alteAnz:" + '0' + " alteAVG:" + '0.0'), if (newAnz > 0){, /*, for(i = 1, i = i){, document.write(' '), }, if (newAvg '), outRat = 1, }, if ((halfStar == -1), (firstHalf == 1)){, if (outRat == 0){, document.write(' '), }, }, }, outRat = 0, }, */, }, //$(document).ready(function() {, var addHtml = "", var bew = " Bewertungen", if (newAnz == 1){, bew = " Bewertung", }, if (newAnz == 0){, //alert("newAnz index_0:" + newAnz + "/" + '0'), addHtml = "", addHtml+= " ", addHtml+= " Jetzt bei golocal bewerten! ", $("#gl_table_0").attr("class","empfehlung_no_entries"), $("#newRat_0").html(addHtml), tb_init('a.thickb0, area.thickb, input.thickb'), }, else {, var myStar = "", for(i = 1, i = i){, myStar += ' ', }, if (newAvg ', outRat = 1, }, if ((halfStar == -1), (firstHalf == 1)){, if (outRat == 0){, myStar +=' ', }, }, }, outRat = 0, }, $("#newRates_0").html(myStar), addHtml = "", //alert("newAnz index:" + newAnz + "/" + '0'), addHtml+= " ", addHtml+=" " + newAnz + " " + bew + " 1 ", addHtml+= " ", $("#gl_table_0").attr("class","empfehlung"), $("#newRat_0").html(addHtml), //$("#newAnz_0").html(addHtml), }, //alert("addHtml:" + addHtml), //}), var myID = 0, var ratType = 0, var myUrl = "", var indx = 0, var goloId = 0, function new_info(url, id, rat, index, glId){, myID = id, ratType = rat, myUrl = url, indx = index, goloId = glId, myUrl = "http://www.go-local.com/jsonp/getReviews/", $(document).ready(function(){, var golocalUrl = 'http://www2.dasoertliche.de/' + "?form_name=golocalrating&page=" + '78' +, "&context=" + '11' + "&action=84&kw=" + glId + "&layout=1&recFrom=" +, index + "&buc=" + glId + "&ph=", var addHtml = "", addHtml+= " ", addHtml+=" " + newAnz + " " + 'Bewertungen' + " 1 ", addHtml+= " ", $("#newRat_"+index).html(addHtml), tb_init('a.thickbox, area.thickbox, input.thickbox'), //url = "http://koeln.go-local.com/locations/immobilien-immobilienmakler-ee6ccf75ce31d5e9a44b0ed2891b5bcb/", //alert("Parent TREFFERLISTE new_info glReload url:" + url), var ajaxOptions = {, url: "http://www.golocal.de/jsonp/getReviews/", dataType: 'jsonp', async: false, success: callbackSuccess, data: {id: glId, callbackName: 'callbackSuccess'}, }, $.ajax(ajaxOptions), }), }, function callbackSuccess(data){, var firstArray = data['ratings'], var secArray = data['authors'], $(document).ready(function(){, var cDate = new Date(), var tag = cDate.getDate(), var mon = cDate.getMonth(), var year = cDate.getFullYear(), //year += 1900, tag+=1, var newOptions = {, expiresAt: new Date(year, mon, tag), }, $.cookies.setOptions(newOptions), var cookieItem = {, ratingId : firstArray[0].ratingId, date : firstArray[0].date, authorId: firstArray[0].authorId, author: secArray[0].name, text: firstArray[0].text, ratingValue: firstArray[0].ratingValue, points: secArray[0].points, tags: firstArray[0].tags, }, var idCookie = "cook" + myID, //alert("idCookie:" + idCookie), $.cookies.set(idCookie, cookieItem), var mC = $.cookies.get(idCookie), //alert("Cookie gesetzt im Parent TEXT:" + mC.text), // TEST: location.reload(), setGolocalRatings("http://www.golocal.de/jsonp/getReviews/", "http://www2.oe-static.de/img", ratType,myUrl,"", "1", myID, indx, goloId, 0, "0.0"), //alert("Cookie Text:" + mC.text), }), }, #tooltip{, position:absolute, display:none, }, $(document).ready(function() {, $('body').data('myDetail'+0, 'http://www2.dasoertliche.de/?id=2247005453295178371378&recuid=5XVNDA5YELIZVPEITCNAKGRSGJMKY7ARPQTPQAI&action=58&pagePos=1&dar=1&kw=&form_name=detail&lastFormName=search_inv&ph=08950095333&ci=M%fcnchen&recFrom=1&hitno=0&backbuab=89000047&orderby=name&ttforderby=rel&buc=2247&verlNr=120&la=&page=78&context=11&arkey='), }), var data = {id : "2247005453295178371378", recuid: "5XVNDA5YELIZVPEITCNAKGRSGJMKY7ARPQTPQAI", pc: "80339", ci: "München", na: "Verwaltungs-Berufsgenossenschaft Bz.Verw.", st: "Ridlerstr.%2037", bi: "2247"}, var custom = {previews : [], thumbnails : [], addText : "type=infotext&text=", moreButton: false}, try {, $v$.itemHandler.addItem (data,custom), } catch (e) {, alert(e), }