/*! Main JS */	
/* console: keine JS-Fehler, wenn IE ohne Entwicklerwerkzeug oder FF ohne Firebug trotz console-Kommandos im Sourcecode*/
//if(!window.console){var console={dir:function(){},info:function(){},warn:function(){},error:function(){},time:function(){},timeEnd:function(){},trace:function(){},group:function(){},log:function(){}};}
														
// JQuery URL Parser - BEGIN
// Written by Mark Perkins, mark@allmarkedup.com
// License: http://unlicense.org/ (i.e. do what you want with it!)
jQuery.url=function()
{var segments={};var parsed={};var options={url:window.location,strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var parseUri=function()
{str=decodeURI(options.url);var m=options.parser[options.strictMode?"strict":"loose"].exec(str);var uri={};var i=14;while(i--){uri[options.key[i]]=m[i]||"";}
uri[options.q.name]={};uri[options.key[12]].replace(options.q.parser,function($0,$1,$2){if($1){uri[options.q.name][$1]=$2;}});return uri;};var key=function(key)
{if(jQuery.isEmptyObject(parsed))
{setUp();}
if(key=="base")
{if(parsed.port!==null&&parsed.port!=="")
{return parsed.protocol+"://"+parsed.host+":"+parsed.port+"/";}
else
{return parsed.protocol+"://"+parsed.host+"/";}}
return(parsed[key]==="")?null:parsed[key];};var param=function(item)
{if(jQuery.isEmptyObject(parsed))
{setUp();}
return(parsed.queryKey[item]===null)?null:parsed.queryKey[item];};var setUp=function()
{parsed=parseUri();getSegments();};var getSegments=function()
{var p=parsed.path;segments=[];segments=parsed.path.length==1?{}:(p.charAt(p.length-1)=="/"?p.substring(1,p.length-1):path=p.substring(1)).split("/");};return{setMode:function(mode)
{options.strictMode=mode=="strict"?true:false;return this;},setUrl:function(newUri)
{options.url=newUri===undefined?window.location:newUri;setUp();return this;},segment:function(pos)
{if(jQuery.isEmptyObject(parsed))
{setUp();}
if(pos===undefined)
{return segments.length;}
return(segments[pos]===""||segments[pos]===undefined)?null:segments[pos];},attr:key,param:param};}();
// JQuery URL Parser - END

/**
 * jQuery.query - Query String Modification and Creation for jQuery
 * Written by Blair Mitchelmore (blair DOT mitchelmore AT gmail DOT com)
 * Licensed under the WTFPL (http://sam.zoy.org/wtfpl/).
 * Date: 2009/8/13
 *
 * @author Blair Mitchelmore
 * @version 2.1.7
 *
 **/
 
new function(settings) { 
  // Various Settings
  var $separator = settings.separator || '&';
  var $spaces = settings.spaces === false ? false : true;
  var $suffix = settings.suffix === false ? '' : '[]';
  var $prefix = settings.prefix === false ? false : true;
  var $hash = $prefix ? settings.hash === true ? "#" : "?" : "";
  var $numbers = settings.numbers === false ? false : true;
  
  jQuery.query = new function() {
    var is = function(o, t) {
      return o != undefined && o !== null && (!!t ? o.constructor == t : true);
    };
    var parse = function(path) {
      var m, rx = /\[([^[]*)\]/g, match = /^([^[]+)(\[.*\])?$/.exec(path), base = match[1], tokens = [];
      while (m = rx.exec(match[2])) tokens.push(m[1]);
      return [base, tokens];
    };
    var set = function(target, tokens, value) {
      var o, token = tokens.shift();
      if (typeof target != 'object') target = null;
      if (token === "") {
        if (!target) target = [];
        if (is(target, Array)) {
          target.push(tokens.length == 0 ? value : set(null, tokens.slice(0), value));
        } else if (is(target, Object)) {
          var i = 0;
          while (target[i++] != null);
          target[--i] = tokens.length == 0 ? value : set(target[i], tokens.slice(0), value);
        } else {
          target = [];
          target.push(tokens.length == 0 ? value : set(null, tokens.slice(0), value));
        }
      } else if (token && token.match(/^\s*[0-9]+\s*$/)) {
        var index = parseInt(token, 10);
        if (!target) target = [];
        target[index] = tokens.length == 0 ? value : set(target[index], tokens.slice(0), value);
      } else if (token) {
        var index = token.replace(/^\s*|\s*$/g, "");
        if (!target) target = {};
        if (is(target, Array)) {
          var temp = {};
          for (var i = 0; i < target.length; ++i) {
            temp[i] = target[i];
          }
          target = temp;
        }
        target[index] = tokens.length == 0 ? value : set(target[index], tokens.slice(0), value);
      } else {
        return value;
      }
      return target;
    };
    
    var queryObject = function(a) {
      var self = this;
      self.keys = {};
      
      if (a.queryObject) {
        jQuery.each(a.get(), function(key, val) {
          self.SET(key, val);
        });
      } else {
        jQuery.each(arguments, function() {
          var q = "" + this;
          q = q.replace(/^[?#]/,''); // remove any leading ? || #
          q = q.replace(/[;&]$/,''); // remove any trailing & || ;
          if ($spaces) q = q.replace(/[+]/g,' '); // replace +'s with spaces
          
          jQuery.each(q.split(/[&;]/), function(){
            var key = decodeURIComponent(this.split('=')[0] || "");
            var val = decodeURIComponent(this.split('=')[1] || "");
            
            if (!key) return;
            
            if ($numbers) {
              if (/^[+-]?[0-9]+\.[0-9]*$/.test(val)) // simple float regex
                val = parseFloat(val);
              else if (/^[+-]?[0-9]+$/.test(val)) // simple int regex
                val = parseInt(val, 10);
            }
            
            val = (!val && val !== 0) ? true : val;
            
            if (val !== false && val !== true && typeof val != 'number')
              val = val;
            
            self.SET(key, val);
          });
        });
      }
      return self;
    };
    
    queryObject.prototype = {
      queryObject: true,
      has: function(key, type) {
        var value = this.get(key);
        return is(value, type);
      },
      GET: function(key) {
        if (!is(key)) return this.keys;
        var parsed = parse(key), base = parsed[0], tokens = parsed[1];
        var target = this.keys[base];
        while (target != null && tokens.length != 0) {
          target = target[tokens.shift()];
        }
        return typeof target == 'number' ? target : target || "";
      },
      get: function(key) {
        var target = this.GET(key);
        if (is(target, Object))
          return jQuery.extend(true, {}, target);
        else if (is(target, Array))
          return target.slice(0);
        return target;
      },
      SET: function(key, val) {
        var value = !is(val) ? null : val;
        var parsed = parse(key), base = parsed[0], tokens = parsed[1];
        var target = this.keys[base];
        this.keys[base] = set(target, tokens.slice(0), value);
        return this;
      },
      set: function(key, val) {
        return this.copy().SET(key, val);
      },
      REMOVE: function(key) {
        return this.SET(key, null).COMPACT();
      },
      remove: function(key) {
        return this.copy().REMOVE(key);
      },
      EMPTY: function() {
        var self = this;
        jQuery.each(self.keys, function(key, value) {
          delete self.keys[key];
        });
        return self;
      },
      load: function(url) {
        var hash = url.replace(/^.*?[#](.+?)(?:\?.+)?$/, "$1");
        var search = url.replace(/^.*?[?](.+?)(?:#.+)?$/, "$1");
        return new queryObject(url.length == search.length ? '' : search, url.length == hash.length ? '' : hash);
      },
      empty: function() {
        return this.copy().EMPTY();
      },
      copy: function() {
        return new queryObject(this);
      },
      COMPACT: function() {
        function build(orig) {
          var obj = typeof orig == "object" ? is(orig, Array) ? [] : {} : orig;
          if (typeof orig == 'object') {
            function add(o, key, value) {
              if (is(o, Array))
                o.push(value);
              else
                o[key] = value;
            }
            jQuery.each(orig, function(key, value) {
              if (!is(value)) return true;
              add(obj, key, build(value));
            });
          }
          return obj;
        }
        this.keys = build(this.keys);
        return this;
      },
      compact: function() {
        return this.copy().COMPACT();
      },
      toString: function() {
        var i = 0, queryString = [], chunks = [], self = this;
        var encode = function(str) {
          str = str + "";
          if ($spaces) str = str.replace(/ /g, "+");
          return encodeURIComponent(str);
        };
        var addFields = function(arr, key, value) {
          if (!is(value) || value === false) return;
          var o = [encode(key)];
          if (value !== true) {
            o.push("=");
            o.push(encode(value));
          }
          arr.push(o.join(""));
        };
        var build = function(obj, base) {
          var newKey = function(key) {
            return !base || base == "" ? [key].join("") : [base, "[", key, "]"].join("");
          };
          jQuery.each(obj, function(key, value) {
            if (typeof value == 'object') 
              build(value, newKey(key));
            else
              addFields(chunks, newKey(key), value);
          });
        };
        
        build(this.keys);
        
        if (chunks.length > 0) queryString.push($hash);
        queryString.push(chunks.join($separator));
        
        return queryString.join("");
      }
    };
    
    return new queryObject(location.search, location.hash);
  };
}(jQuery.query || {}); // Pass in jQuery.query as settings object
/* */



var oVar = setGlobalVar();


$(document).ready(function () {
   $('a.popup_details_fix').attr({name:oVar['source']}).popupWindow({height:500,width:980,scrollbars:1,resizable:1,centerScreen:1});
   loadSWTS();
});

// setGlobalVar
function setGlobalVar(GlobalVars){var hGlobalVars=new Object();if(jQuery.url.attr("file")==null){var sFile='index.html';}else{var sFile='';}
if (jQuery.url.param("lp")==null){var setParamLandingPage = '';}else{var setParamLandingPage = '/LP/'+jQuery.url.param("lp");}
hGlobalVars['paramLandingPage']=setParamLandingPage;hGlobalVars['protocol']=jQuery.url.attr("protocol");hGlobalVars['host']=jQuery.url.attr("host");hGlobalVars['path']=jQuery.url.attr("path");hGlobalVars['file']=jQuery.url.attr("file");hGlobalVars['file_index']=sFile;hGlobalVars['source']=jQuery.url.attr("source");hGlobalVars['details_js_loaded']=false;hGlobalVars['details_query']='';hGlobalVars['anchor']=jQuery.url.attr("anchor");hGlobalVars['scrollTo']='';return(hGlobalVars);}

// PopUp
(function($){$.fn.popupWindow=function(instanceSettings){return this.each(function(){$(this).click(function(){$.fn.popupWindow.defaultSettings={centerBrowser:0,centerScreen:0,height:500,left:0,location:0,menubar:0,resizable:0,scrollbars:0,status:0,width:500,windowName:null,windowURL:null,top:0,toolbar:0};settings=$.extend({},$.fn.popupWindow.defaultSettings,instanceSettings||{});var windowFeatures='height='+settings.height+',width='+settings.width+',toolbar='+settings.toolbar+',scrollbars='+settings.scrollbars+',status='+settings.status+',resizable='+settings.resizable+',location='+settings.location+',menuBar='+settings.menubar;settings.windowName=this.name||settings.windowName;settings.windowURL=this.href||settings.windowURL;var centeredY,centeredX;if(settings.centerBrowser){if($.browser.msie){centeredY=(window.screenTop-120)+((((document.documentElement.clientHeight+120)/2)-(settings.height/2)));centeredX=window.screenLeft+((((document.body.offsetWidth+20)/2)-(settings.width/2)));}else{centeredY=window.screenY+(((window.outerHeight/2)-(settings.height/2)));centeredX=window.screenX+(((window.outerWidth/2)-(settings.width/2)));}
oWindow=window.open(settings.windowURL,"",windowFeatures+',left='+centeredX+',top='+centeredY)
oWindow.name=settings.windowName;oWindow.focus();}else if(settings.centerScreen){centeredY=(screen.height-settings.height)/2;centeredX=(screen.width-settings.width)/2;oWindow=window.open(settings.windowURL,"",windowFeatures+',left='+centeredX+',top='+centeredY)
oWindow.name=settings.windowName;oWindow.focus();}else{oWindow=window.open(settings.windowURL,"",windowFeatures+',left='+settings.left+',top='+settings.top)
oWindow.name=settings.windowName;oWindow.focus();}
return false;});});};})(jQuery);

//jQuery SWFObject v1.1.1 MIT/GPL @jon_neal
//http://jquery.thewikies.com/swfobject
(function(f,h,i){function k(a,c){var b=(a[0]||0)-(c[0]||0);return b>0||!b&&a.length>0&&k(a.slice(1),c.slice(1))}function l(a){if(typeof a!=g)return a;var c=[],b="";for(var d in a){b=typeof a[d]==g?l(a[d]):[d,m?encodeURI(a[d]):a[d]].join("=");c.push(b)}return c.join("&")}function n(a){var c=[];for(var b in a)a[b]&&c.push([b,'="',a[b],'"'].join(""));return c.join(" ")}function o(a){var c=[];for(var b in a)c.push(['<param name="',b,'" value="',l(a[b]),'" />'].join(""));return c.join("")}var g="object",m=true;try{var j=i.description||function(){return(new i("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}()}catch(p){j="Unavailable"}var e=j.match(/\d+/g)||[0];f[h]={available:e[0]>0,activeX:i&&!i.name,version:{original:j,array:e,string:e.join("."),major:parseInt(e[0],10)||0,minor:parseInt(e[1],10)||0,release:parseInt(e[2],10)||0},hasVersion:function(a){a=/string|number/.test(typeof a)?a.toString().split("."):/object/.test(typeof a)?[a.major,a.minor]:a||[0,0];return k(e,a)},encodeParams:true,expressInstall:"expressInstall.swf",expressInstallIsActive:false,create:function(a){if(!a.swf||this.expressInstallIsActive||!this.available&&!a.hasVersionFail)return false;if(!this.hasVersion(a.hasVersion||1)){this.expressInstallIsActive=true;if(typeof a.hasVersionFail=="function")if(!a.hasVersionFail.apply(a))return false;a={swf:a.expressInstall||this.expressInstall,height:137,width:214,flashvars:{MMredirectURL:location.href,MMplayerType:this.activeX?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}}attrs={data:a.swf,type:"application/x-shockwave-flash",id:a.id||"flash_"+Math.floor(Math.random()*999999999),width:a.width||320,height:a.height||180,style:a.style||""};m=typeof a.useEncode!=="undefined"?a.useEncode:this.encodeParams;a.movie=a.swf;a.wmode=a.wmode||"opaque";delete a.fallback;delete a.hasVersion;delete a.hasVersionFail;delete a.height;delete a.id;delete a.swf;delete a.useEncode;delete a.width;var c=document.createElement("div");c.innerHTML=["<object ",n(attrs),">",o(a),"</object>"].join("");return c.firstChild}};f.fn[h]=function(a){var c=this.find(g).andSelf().filter(g);/string|object/.test(typeof a)&&this.each(function(){var b=f(this),d;a=typeof a==g?a:{swf:a};a.fallback=this;if(d=f[h].create(a)){b.children().remove();b.html(d)}});typeof a=="function"&&c.each(function(){var b=this;b.jsInteractionTimeoutMs=b.jsInteractionTimeoutMs||0;if(b.jsInteractionTimeoutMs<660)b.clientWidth||b.clientHeight?a.call(b):setTimeout(function(){f(b)[h](a)},b.jsInteractionTimeoutMs+66)});return c}})(jQuery,"flash",navigator.plugins["Shockwave Flash"]||window.ActiveXObject);

// StratoWebTrackingSystem - BEGIN
function loadSWTS() {
var sGetDomain=jQuery.url.attr("host");var aDomains=new Array();aDomains[0]='strato-alojamiento.es';aDomains[1]='www.strato-alojamiento.es';var iDomains_max=aDomains.length;for(var iLauf=0;iLauf<iDomains_max;iLauf++){if(aDomains[iLauf]!=sGetDomain){}else{$.ajax({type:"GET",url:'/_assets_es/js/swts.js',cache:false,async:false,success:function(){if(navigator.cookieEnabled&&(document.cookie.indexOf("SWTSdisable")==-1)){try{var swtsTracker=Swts.getTracker("/swts/",1);swtsTracker.trackPageView();swtsTracker.enableLinkTracking();}catch(err){}}}});}}}
// StratoWebTrackingSystem - END

//flash > tabify_bridge  - BEGIN: Wird aus Flash aufgerufen, um Tabs zu klicken (param: "#beispiel")
function lightbox_showtab(welches) {
	// Ist rueckwaerts-kompatibel mit der alten version. Deshalb pruefen auf "-tab" im parameter der funktion
	if(welches.substr((welches.length-4),4) == "-tab") {
		var activate_tab = welches.substr(0,(welches.length-4));
	} else {
		var activate_tab = welches;
	}
	$("a[href$="+activate_tab+"]").trigger("click");
}
//flash > tabify_bridge  - END

// Resize - BEGIN
$(function() {
	var pageWidth = $('#page').width();

	function setBeltLR(beltlr) {
		$('#belt_center').css({left:beltlr, right:beltlr});
		$('#belt_shade1').css({left:beltlr, right:beltlr});
		$('#belt_shade2').css({left:beltlr, right:beltlr});
	}

	$(window).resize(function() {
		var width = $(window).width();
		if(width > pageWidth + 324) {
			$('#inner_bg').css({left:-162, right:-162});
			setBeltLR(7);
		}
		else if(width > pageWidth) {
			var leftright = Math.round((width - pageWidth)/-2);
			if(leftright > -162) {
				$('#inner_bg').css({left:leftright, right:leftright});
			}
			if(leftright > -162) {
				var beltlr = leftright + 155;
				if(beltlr < 0) {
					beltlr = Math.abs(beltlr);
					setBeltLR(beltlr);
				}
			}
		}
	}).resize();
});
// Resize - END


// showSimple - BEGIN
function showSimple(iNumber){if(!iNumber||iNumber!=parseInt(iNumber)){return;}
var iLauf=0;while(++iLauf>0&&window.document.getElementById('showSimple_'+iLauf)){if(iNumber==iLauf){window.document.getElementById('showSimple_'+iLauf).style.display="block";}else{window.document.getElementById('showSimple_'+iLauf).style.display="none";}}}
// showSimple - END


// FAQ Textdrop
document.small_error1_top=-200;document.small_error1_left=-200;function openInNewWindow(_url){var url=_url;window.opener.location.href=url;window.close();}
function showArea(iNumber){if(!iNumber||iNumber!=parseInt(iNumber)){return;}
var iLauf=0;while(++iLauf>0&&window.document.getElementById('show_'+iLauf+'_3')){if(iNumber==iLauf){window.document.getElementById('show_'+iLauf+'_1').style.display="none";window.document.getElementById('show_'+iLauf+'_2').style.display="block";window.document.getElementById('show_'+iLauf+'_3').style.display="block";}else{window.document.getElementById('show_'+iLauf+'_1').style.display="block";window.document.getElementById('show_'+iLauf+'_2').style.display="none";window.document.getElementById('show_'+iLauf+'_3').style.display="none";}}}
function hideArea(iNumber){if(!iNumber||iNumber!=parseInt(iNumber)){return;}
var iLauf=0;while(++iLauf>0&&window.document.getElementById('show_'+iLauf+'_3')){if(iNumber==iLauf){window.document.getElementById('show_'+iLauf+'_1').style.display="block";window.document.getElementById('show_'+iLauf+'_2').style.display="none";window.document.getElementById('show_'+iLauf+'_3').style.display="none";}else{window.document.getElementById('show_'+iLauf+'_1').style.display="block";window.document.getElementById('show_'+iLauf+'_2').style.display="none";window.document.getElementById('show_'+iLauf+'_3').style.display="none";}}}
function showSimple(iNumber){if(!iNumber||iNumber!=parseInt(iNumber)){return;}
var iLauf=0;while(++iLauf>0&&window.document.getElementById('showSimple_'+iLauf)){if(iNumber==iLauf){window.document.getElementById('showSimple_'+iLauf).style.display="block";}else{window.document.getElementById('showSimple_'+iLauf).style.display="none";}}}
function toggleFaqEntry(obj){if(obj.className=="active")
obj.className="";else{for(i=0;i<obj.parentNode.childNodes.length;i++){obj.parentNode.childNodes[i].className="";}
obj.className="active";}}
function openFaqEntry(){document.getElementById(location.href.substring(location.href.lastIndexOf("#")+1,location.href.length)).className="active";}
function popup(url,breite,hoehe,scrol,resize){var links=screen.width-breite;var hoch=screen.height-hoehe;var popleft=links/2;var poptop=hoch/2;obj=open(url,"popup","width="+breite+",height="+hoehe+",top="+poptop+",left="+popleft+",resizable="+resize+",directories=no,scrollbars="+scrol+",menubar=no,location=no,toolbar=no")
obj.window.focus()}
function openPop(URLStr,winWidthStr,winHeightStr){var winWidth=winWidthStr;var winHeight=winHeightStr;winWidthPos=(screen.availWidth/2)-(winWidth/2);winHeightPos=(screen.availHeight/2)-(winHeight/2);popWin=open(URLStr,'popUpWin','toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no,width='+winWidth+'px'+',height='+winHeight+'px'+',left='+winWidthPos+', top='+winHeightPos+',screenX='+winWidthPos+',screenY='+winHeightPos+'');}
var winpop;function popup2(url,winBreite,winHoehe,posLinks,posTop,linkfield,options,winname){var screenBreite=(screen.availWidth)?screen.availWidth:800;var screenHoehe=(screen.availHeight)?screen.availHeight:600;if((winBreite!=null)&&(winBreite<=100))winBreite=100;if((winBreite==null)||(winBreite<100)||(winBreite>screenBreite))winBreite=screenBreite-100;if((winHoehe!=null)&&(winHoehe<=100))winHoehe=100;if((winHoehe==null)||(winHoehe<100)||(winHoehe>screenHoehe-120))winHoehe=screenHoehe-120;if((posLinks==null)||(posLinks<0)||(screenBreite<posLinks+winBreite))posLinks=(screenBreite-winBreite)/2;if((posTop==null)||(posTop<0)||(screenHoehe<posTop+winHoehe))posTop=(screenHoehe-winHoehe)/2-20;if(posTop<0)posTop=0;if(winpop&&(winpop.closed!=true))winpop.close();if(!options)options='toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1';if(!winname)winname='w';winpop=window.open(escapeZoomURL(url),winname,options+',width='+winBreite+',height='+winHoehe+',left='+posLinks+',top='+posTop);if(linkfield)winpop.w=linkfield;winpop.focus();return false;}
function change_Cnt(iStep,iCnt){var iLauf=1;while(window.document.getElementById('step'+iLauf)){if(iLauf==iStep){window.document.getElementById('cnt'+iLauf).style.display='block';window.document.getElementById('step'+iLauf).className="activ";}else{window.document.getElementById('cnt'+iLauf).style.display='none';window.document.getElementById('step'+iLauf).className="passiv";}
iLauf++;}}
function change_cnt_4steps(iStep,iCnt,google_video){var iLauf=1;while(window.document.getElementById('step'+iLauf)){if(iLauf==iStep){if(google_video){var flashvars=false;var params={wmode:"transparent",allowscriptaccess:"sameDomain",menu:true};var attributes=false;swfobject.embedSWF("/imperia/md/content/strato_es/flash/google/google_video.swf","cnt_google_video","512","356","8.0.0","expressInstall.swf",flashvars,params,attributes);window.document.getElementById('cnt'+iLauf).style.display='block';window.document.getElementById('step'+iLauf).className="activ";}else{window.document.getElementById('cnt'+iLauf).style.display='block';window.document.getElementById('step'+iLauf).className="activ";swfobject.embedSWF("ie_no_sound.swf","cnt_google_video","512","356","8.0.0","expressInstall.swf",flashvars,params,attributes);}}else{window.document.getElementById('cnt'+iLauf).style.display='none';window.document.getElementById('step'+iLauf).className="passiv";}
iLauf++;}}
var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion()
{var version;var axo;var e;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version=axo.GetVariable("$version");}catch(e){}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version="WIN 6,0,21,0";axo.AllowScriptAccess="always";version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version="WIN 3,0,18,0";}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");version="WIN 2,0,0,11";}catch(e){version=-1;}}
return version;}
function GetSwfVer(){var flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");var versionMajor=tempArrayMajor[0];var versionMinor=tempArrayMajor[1];var versionRevision=descArray[3];if(versionRevision==""){versionRevision=descArray[4];}
if(versionRevision[0]=="d"){versionRevision=versionRevision.substring(1);}else if(versionRevision[0]=="r"){versionRevision=versionRevision.substring(1);if(versionRevision.indexOf("d")>0){versionRevision=versionRevision.substring(0,versionRevision.indexOf("d"));}}
var flashVer=versionMajor+"."+versionMinor+"."+versionRevision;}}
else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1)flashVer=4;else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1)flashVer=3;else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1)flashVer=2;else if(isIE&&isWin&&!isOpera){flashVer=ControlVersion();}
return flashVer;}
function DetectFlashVer(reqMajorVer,reqMinorVer,reqRevision)
{versionStr=GetSwfVer();if(versionStr==-1){return false;}else if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",");}else{versionArray=versionStr.split(".");}
var versionMajor=versionArray[0];var versionMinor=versionArray[1];var versionRevision=versionArray[2];if(versionMajor>parseFloat(reqMajorVer)){return true;}else if(versionMajor==parseFloat(reqMajorVer)){if(versionMinor>parseFloat(reqMinorVer))
return true;else if(versionMinor==parseFloat(reqMinorVer)){if(versionRevision>=parseFloat(reqRevision))
return true;}}
return false;}}
function globalPopup(url,name,params){var sizeX=0;var sizeY=0;var winX=screen.availWidth;var winY=screen.availHeight;var tmpArray=params.split(',');for(var i=0;i<tmpArray.length;i++){if(tmpArray[i].indexOf('width')!=-1){var tmpArray2=tmpArray[i].split('=');sizeX=tmpArray2[1];}
if(tmpArray[i].indexOf('height')!=-1){var tmpArray2=tmpArray[i].split('=');sizeY=tmpArray2[1];}}
var centerX=Math.round(winX/2-sizeX/2);var centerY=Math.round(winY/2-sizeY/2);params+=',left='+centerX+',top='+centerY;var pWindow=open(url,name,params).focus();}
// default.js OLD - END


// designContentTab - BEGIN
function designContentTab(){
	var classTab = "ContentTab";
	var existTab = $('table.'+classTab).length;
	
	if (existTab >=1) {
	 var contentTab = $('table.'+classTab);
	 var headBorderL = contentTab.find('thead tr th:first-child');
	 var headBorderR = contentTab.find('thead tr th:last-child');
	 var headBorderPreR = contentTab.find('thead tr th:last-child').prev();
	 var tdBorderL = contentTab.find('tr td:first-child');
	 var tdBorderR = contentTab.find('tr td:last-child');
	 var trBorderLast = contentTab.find('tr:last td');
	 var tdRadiusBottomR = contentTab.find('tr:last td:last-child');
	 var tdRadiusBottomL = contentTab.find('tr:last td:first-child');
	 var thRadiusTopR = contentTab.find('thead tr th:last-child');
	 var thRadiusTopL = contentTab.find('thead tr th:first-child');

	 contentTab.wrap('<div class="ContentTabShadow">');
	 var boxTabShadow =  $('div.ContentTabShadow');
	 
     boxTabShadow.each(
		function() {
    	  var oTable = $(this).find('table.'+classTab);
		  // ermitteln des Spalten-Highlights
		  var oHighlight=oTable.attr('class').match(/^(.*)(highlight_col_)(\S*)\s*(.*)$/);
		  if (oHighlight!=null){
		     var iHighlightCol=oHighlight[3];
		     var aTRs =  oTable.find('tr');
		     aTRs.find('td:nth('+iHighlightCol+')').each(
		        function() {$(this).addClass('tdHighlight');
		     });
		  }
          var widthTab = $(this).find('table.'+classTab).width();	
		  $(this).css({width: widthTab});	
		}
     );
	 
	 headBorderL.addClass('headBorderOut');
	 headBorderR.addClass('headBorderOut');
	 headBorderPreR.addClass('headBorderSimple'); 
	 tdBorderL.addClass('tdBorderSimple');
	 tdBorderR.addClass('tdBorderSimple');
	 trBorderLast.addClass('trBorderSimple');
	 tdRadiusBottomR.addClass('tdRadiusBottomR');
	 tdRadiusBottomL.addClass('tdRadiusBottomL');
	 thRadiusTopR.addClass('thRadiusTopR');
	 thRadiusTopL.addClass('thRadiusTopL');
    }
}	
// designContentTab - END

function closePopup() {
	$('#popup_page').find('#ClosePopup').click( function() {
		window.close();
	}).attr({'title': 'Fenster schliessen'});
};//closePopup	
