_UPLAN_HOST = 'http://urlaubsplaner.at';_USESSION = 'p1n5stf36quae1kair2912j50q';/*/var/www/vhosts/urlaubsplaner.at/httpdocs*/ /*! * Ext JS Library 3.3.0 * Copyright(c) 2006-2010 Ext JS, Inc. * licensing@extjs.com * http://www.extjs.com/license */ // for old browsers window.undefined = window.undefined; /** * @class Ext * Ext core utilities and functions. * @singleton */ ISys = { }; ISys.apply = function(o, c, defaults){ // no "this" reference for friendly out of scope calls if(defaults){ ISys.apply(o, defaults); } if(o && c && typeof c == 'object'){ for(var p in c){ o[p] = c[p]; } } return o; }; (function(){ var idSeed = 0, toString = Object.prototype.toString, ua = navigator.userAgent.toLowerCase(), check = function(r){ return r.test(ua); }, DOC = document, docMode = DOC.documentMode, isStrict = DOC.compatMode == "CSS1Compat", isOpera = check(/opera/), isChrome = check(/\bchrome\b/), isWebKit = check(/webkit/), isSafari = !isChrome && check(/safari/), isSafari2 = isSafari && check(/applewebkit\/4/), // unique to Safari 2 isSafari3 = isSafari && check(/version\/3/), isSafari4 = isSafari && check(/version\/4/), isIE = !isOpera && check(/msie/), isIE7 = isIE && (check(/msie 7/) || docMode == 7), isIE8 = isIE && (check(/msie 8/) && docMode != 7), isIE6 = isIE && !isIE7 && !isIE8, isGecko = !isWebKit && check(/gecko/), isGecko2 = isGecko && check(/rv:1\.8/), isGecko3 = isGecko && check(/rv:1\.9/), isBorderBox = isIE && !isStrict, isWindows = check(/windows|win32/), isMac = check(/macintosh|mac os x/), isAir = check(/adobeair/), isLinux = check(/linux/), isSecure = /^https/i.test(window.location.protocol); ISys.apply(ISys, { SSL_SECURE_URL : isSecure && isIE ? 'javascript:""' : 'about:blank', isStrict : isStrict, isSecure : isSecure, isReady : false, session: "", setSession: function(s){ ISys.session = s; }, getSession: function(){ return ISys.session; }, applyIf : function(o, c){ if(o){ for(var p in c){ if(!ISys.isDefined(o[p])){ o[p] = c[p]; } } } return o; }, id : function(el, prefix){ el = ISys.getDom(el, true) || {}; if (!el.id) { el.id = (prefix || "isys-") + (++idSeed); } return el.id; }, extend : function(){ // inline overrides var io = function(o){ for(var m in o){ this[m] = o[m]; } }; var oc = Object.prototype.constructor; return function(sb, sp, overrides){ if(typeof sp == 'object'){ overrides = sp; sp = sb; sb = overrides.constructor != oc ? overrides.constructor : function(){sp.apply(this, arguments);}; } var F = function(){}, sbp, spp = sp.prototype; F.prototype = spp; sbp = sb.prototype = new F(); sbp.constructor=sb; sb.superclass=spp; if(spp.constructor == oc){ spp.constructor=sp; } sb.override = function(o){ ISys.override(sb, o); }; sbp.superclass = sbp.supr = (function(){ return spp; }); sbp.override = io; ISys.override(sb, overrides); sb.extend = function(o){return ISys.extend(sb, o);}; return sb; }; }(), override : function(origclass, overrides){ if(overrides){ var p = origclass.prototype; ISys.apply(p, overrides); if(ISys.isIE && overrides.hasOwnProperty('toString')){ p.toString = overrides.toString; } } }, namespace : function(){ var o, d; ISys.each(arguments, function(v) { d = v.split("."); o = window[d[0]] = window[d[0]] || {}; ISys.each(d.slice(1), function(v2){ o = o[v2] = o[v2] || {}; }); }); return o; }, urlEncode : function(o, pre){ var empty, buf = [], e = encodeURIComponent; if (ISys.session != "") o.PHPSESSID = ISys.session; ISys.iterate(o, function(key, item){ empty = ISys.isEmpty(item); ISys.each(empty ? key : item, function(val){ buf.push('&', e(key), '=', (!ISys.isEmpty(val) && (val != key || !empty)) ? e(val) : ''); }); }); if(!pre){ buf.shift(); pre = ''; } return pre + buf.join(''); }, urlDecode : function(string, overwrite){ if(ISys.isEmpty(string)){ return {}; } var obj = {}, pairs = string.split('&'), d = decodeURIComponent, name, value; ISys.each(pairs, function(pair) { pair = pair.split('='); name = d(pair[0]); value = d(pair[1]); obj[name] = overwrite || !obj[name] ? value : [].concat(obj[name]).concat(value); }); return obj; }, urlAppend : function(url, s){ if(!ISys.isEmpty(s)){ return url + (url.indexOf('?') === -1 ? '?' : '&') + s; } return url; }, toArray : function(){ return isIE ? function(a, i, j, res){ res = []; for(var x = 0, len = a.length; x < len; x++) { res.push(a[x]); } return res.slice(i || 0, j || res.length); } : function(a, i, j){ return Array.prototype.slice.call(a, i || 0, j || a.length); }; }(), isIterable : function(v){ //check for array or arguments if(ISys.isArray(v) || v.callee){ return true; } //check for node list type if(/NodeList|HTMLCollection/.test(toString.call(v))){ return true; } //NodeList has an item and length property //IXMLDOMNodeList has nextNode method, needs to be checked first. return ((typeof v.nextNode != 'undefined' || v.item) && ISys.isNumber(v.length)); }, each : function(array, fn, scope){ if(ISys.isEmpty(array, true)){ return; } if(!ISys.isIterable(array) || ISys.isPrimitive(array)){ array = [array]; } for(var i = 0, len = array.length; i < len; i++){ if(fn.call(scope || array[i], array[i], i, array) === false){ return i; }; } }, iterate : function(obj, fn, scope){ if(ISys.isEmpty(obj)){ return; } if(ISys.isIterable(obj)){ ISys.each(obj, fn, scope); return; }else if(typeof obj == 'object'){ for(var prop in obj){ if(obj.hasOwnProperty(prop)){ if(fn.call(scope || obj, prop, obj[prop], obj) === false){ return; }; } } } }, getDom : function(el, strict){ if(!el || !DOC){ return null; } if (el.dom){ return el.dom; } else { if (typeof el == 'string') { var e = DOC.getElementById(el); // IE returns elements with the 'name' and 'id' attribute. // we do a strict check to return the element with only the id attribute if (e && isIE && strict) { if (el == e.getAttribute('id')) { return e; } else { return null; } } return e; } else { return el; } } }, getBody : function(){ return DOC.body || DOC.documentElement; }, getHead : function() { var head; return function() { if (head == undefined) { head = DOC.getElementsByTagName("head")[0]; } return head; }; }(), isEmpty : function(v, allowBlank){ return v === null || v === undefined || ((ISys.isArray(v) && !v.length)) || (!allowBlank ? v === '' : false); }, isArray : function(v){ return toString.apply(v) === '[object Array]'; }, isDate : function(v){ return toString.apply(v) === '[object Date]'; }, isObject : function(v){ return !!v && Object.prototype.toString.call(v) === '[object Object]'; }, isPrimitive : function(v){ return ISys.isString(v) || ISys.isNumber(v) || ISys.isBoolean(v); }, isFunction : function(v){ return toString.apply(v) === '[object Function]'; }, isNumber : function(v){ return typeof v === 'number' && isFinite(v); }, isString : function(v){ return typeof v === 'string'; }, isBoolean : function(v){ return typeof v === 'boolean'; }, isElement : function(v) { return v ? !!v.tagName : false; }, isDefined : function(v){ return typeof v !== 'undefined'; }, isOpera : isOpera, isWebKit : isWebKit, isChrome : isChrome, isSafari : isSafari, isSafari3 : isSafari3, isSafari4 : isSafari4, isSafari2 : isSafari2, isIE : isIE, isIE6 : isIE6, isIE7 : isIE7, isIE8 : isIE8, isGecko : isGecko, isGecko2 : isGecko2, isGecko3 : isGecko3, isBorderBox : isBorderBox, isLinux : isLinux, isWindows : isWindows, isMac : isMac, isAir : isAir, ajax: function(o){ var XMLHttpRequestObject = false; var data = this.createParamQStr(o.params || {}); try { // Firefox, Opera 8.0+, Safari XMLHttpRequestObject=new XMLHttpRequest(); } catch (e){ // Internet Explorer try{ XMLHttpRequestObject=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e){ XMLHttpRequestObject=new ActiveXObject("Microsoft.XMLHTTP"); } } if(XMLHttpRequestObject) { var ctype = o.type == "xml" ? "application/xml" : "application/x-www-form-urlencoded"; XMLHttpRequestObject.open( (o.method || "POST"), o.url, (o.async || true) ); XMLHttpRequestObject.setRequestHeader("Content-type", ctype); XMLHttpRequestObject.setRequestHeader("Content-length", data ? data.length : 0 ); XMLHttpRequestObject.onreadystatechange = function(){ var type = o.type || "text"; if ((XMLHttpRequestObject.readyState == 4) && (XMLHttpRequestObject.status == 200)){ var rt = type == "text" ? XMLHttpRequestObject.responseText : XMLHttpRequestObject.responseXML.documentElement; if (o.loadIn) document.getElementById(o.loadIn).innerHTML = rt; if (o.success) o.success(rt); if (o.pharseJS) soolt.pharseJSInHTMLText(rt); } }; XMLHttpRequestObject.send( data ); } }, cssLoader: function(o){ var pE = ISys.getHead(); var root = o.root || ""; function buildCss(url){ var ss = document.createElement("link"); ss.setAttribute("rel", "stylesheet"); ss.setAttribute("type", "text/css"); ss.setAttribute("id", ISys.id()); ss.setAttribute("href", url); return ss; } if (typeof o.url == "string") pE.appendChild( buildCss(root+o.url) ); else{ ISys.each(o.url, function(file, index) { pE.appendChild( buildCss(root+file) ); }, this); } }, deleteAttr: function(o, attr){ o[attr] = null; delete o[attr]; }, getAttr: function(o, attr){ return o[attr] || null; }, eFn: function(){}, onReady: function(){ }, pharseJSInHTMLText: function(htmltext){ var pharsedtext = document.createElement("DIV"); pharsedtext.innerHTML = "bakker"+htmltext; var scripts = pharsedtext.getElementsByTagName("script"); for (var i=0; i 0){ return setTimeout(fn, millis); } fn(); return 0; } }); ISys.applyIf(String, { format : function(format){ var args = ISys.toArray(arguments, 1); return format.replace(/\{(\d+)\}/g, function(m, i){ return args[i]; }); } }); ISys.applyIf(Array.prototype, { indexOf : function(o, from){ var len = this.length; from = from || 0; from += (from < 0) ? len : 0; for (; from < len; ++from){ if(this[from] === o){ return from; } } return -1; }, remove : function(o){ var index = this.indexOf(o); if(index != -1){ this.splice(index, 1); } return this; } }); function scriptLoader(src, asd){ ISys.scriptLoader.load({ root: "", url: src }); } (function(){ var mpath = "http://urlaubsplaner.at/tabuserinterface/urlaubsplaner_maschup/", spath = "http://urlaubsplaner.at/tabuserinterface/urlaubsplaner_maschup/selement/"; ISys.setSession(_USESSION); ISys.cssLoader({ root: mpath, url: [ "style.css", "mashup.css", "celement.css", "selement.css" ] }); ISys.scriptLoader.load({ root: spath, url: [ "sElement1.js" ], load: function(){ ISys.scriptLoader.load({ root: spath, url: [ "sFormElements.js", "sDrag.js", "sWindow.js", "sTabSet.js", "sLoaders.js", "sScrollBars.js" ] }); } }); ISys.scriptLoader.load({ url: mpath+"_map.js" }); })(); UrlaubsplanerMaschup = { o: {}, mpath: "http://urlaubsplaner.at/tabuserinterface/urlaubsplaner_maschup/", createBuble: function(str){ var code = decodeURIComponent((str + '').replace(/\+/g, '%20')); aID = code.split("`*|")[1]; UrlaubsplanerMaschup.map.openInfoWindowHtml(UrlaubsplanerMaschup.point, code); }, decode: function(str){ return decodeURIComponent((str + '').replace(/\+/g, '%20')); }, add: function(code, elId){ var el = ISys.getDom(elId); el.innerHTML = this.decode(code); }, setup: function(){ var o = UrlaubsplanerMaschup.o; var mpath = UrlaubsplanerMaschup.mpath; ISys.scriptLoader.load({ root: "", url: "http://urlaubsplaner.at/tabuserinterface/mashupmain.php", params: o.params, load: function(s){ ISys.scriptLoader.load({ root: "", url: [ "http://urlaubsplaner.at/movie.js", "http://urlaubsplaner.at/tabuserinterface/GTooltip.js", mpath+"cs_ajax.js", mpath+"themenicons.def.js.php" ], load: function(){ scriptLoader(mpath+"mashupindex.js.php"); scriptLoader(mpath+"createhidefp.js"); scriptLoader(mpath+"siteloading.js"); } }); } }); }, init: function(o){ this.o = o; if (window.addEventListener) window.addEventListener("load", this.setup, false); else if (window.attachEvent) window.attachEvent( "onload", this.setup ); } };