// 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

var oVar = setGlobalVar();

$(document).ready(function(){
addClickable();
$('a.popup_details_fix').attr({name:oVar['source']}).popupWindow({height:500,width:940,scrollbars:1,resizable:1,centerScreen:1});$('a.popup_fix').popupWindow({height:500,width:700,scrollbars:1,resizable:1,centerScreen:1});$('a.popup_video_rz').popupWindow({height:480,width:760,scrollbars:0,resizable:1,centerScreen:1});$('a.popup_video_multiserver_demo').popupWindow({height:510,width:760,scrollbars:0,resizable:1,centerScreen:1});$('a.popup_impressum').popupWindow({height:500,width:440,scrollbars:0,resizable:1,centerScreen:1});
addTrack();
loadSWTS();
}); 

// setGlobalVar
function setGlobalVar(GlobalVars){var hGlobalVars=new Object();if(jQuery.url.attr("file")==null){var sFile='index.html';}else{var sFile='';}
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");return(hGlobalVars);}

// popup2
function oeffnefenster (url) {
 fenster = window.open(url, "fenster1", "width=860,height=370,status=no,scrollbars=no,resizable=no,location=no");
 fenster.focus();
}

// 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 - BEGIN
// 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);
// jQuery SWFObject - END
// default.js - BEGIN
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";}
// default.js - END

// StratoWebTrackingSystem - BEGIN
function loadSWTS(){var sGetDomain=jQuery.url.attr("host");var aDomains=new Array();aDomains[0]='strato-pro.de';aDomains[1]='www.strato-pro.de';var iDomains_max=aDomains.length;for(var iLauf=0;iLauf<iDomains_max;iLauf++){if(aDomains[iLauf]!=sGetDomain){}else{$.ajax({type:"GET",url:'/imperia/md/content/strato_pro/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

// Klickboxen - BEGIN
function addClickable(){var aGetClickable=$('.jq_clickable');aGetClickable.each(function(){var oGetBox=$(this);var oGetHref=oGetBox.find('a.jq_click_ref');var sGetUrl=oGetHref.attr("href");var sGetClass=oGetHref.attr("class");var aGetPopUp=sGetClass.match(/^(.*)(popup_)(\S*)\s*(.*)$/);var sSetTitle='Mehr zu -> '+oGetBox.find('.jq_click_title').text();var bCheckUrlAbsolut=sGetUrl.indexOf("http");var fGetBoxWidth=oGetBox.width();var fGetBoxHeight=oGetBox.height();var oAnchorLayer=$("<a></a>").addClass('jq_anchor_layer');var oEffectLayer=$("<span></span>").addClass('jq_effect_layer');var iSetLayerBorder=1;var iDiffHoverBorder=iSetLayerBorder*2;var fLayerHoverWidth=fGetBoxWidth-iDiffHoverBorder;var fLayerHoverHeight=fGetBoxHeight-iDiffHoverBorder;oAnchorLayer.css({'height':fGetBoxHeight+'px','width':fGetBoxWidth+'px'}).appendTo(oGetBox);oEffectLayer.css({'height':fGetBoxHeight+'px','width':fGetBoxWidth+'px'}).appendTo(oAnchorLayer).mouseover(function(){oEffectLayer.css({'height':fLayerHoverHeight+'px','width':fLayerHoverWidth+'px','border-width':iSetLayerBorder+'px','border-style':'solid','cursor':'pointer'}).addClass('hover_on');}).mouseleave(function(){oEffectLayer.css({'height':fGetBoxHeight+'px','width':fGetBoxWidth+'px','border-width':'0px'}).removeClass('hover_on');});oAnchorLayer.attr('title',sSetTitle);if(aGetPopUp){var sSetPopUpClass=aGetPopUp[2]+aGetPopUp[3];}
if(bCheckUrlAbsolut!=-1){if(aGetPopUp){oAnchorLayer.attr({href:sGetUrl}).addClass(sSetPopUpClass);}
else{oAnchorLayer.attr({href:sGetUrl,'target':'_blank'});}}
else{if(aGetPopUp){oAnchorLayer.attr({href:sGetUrl}).addClass(sSetPopUpClass);}
else{oAnchorLayer.attr({href:sGetUrl});}};});}
// Klickboxen - END

// AddTrack - BEGIN
function addTrack(){var oLocation=jQuery.url.attr("source");var bExistQuery=oLocation.indexOf("?");var iGetParam=jQuery.url.param("sc");var oUrlSetParam=oLocation+"?sc=1900900301";var oUrlAddParam=oLocation+"&sc=1900900301";var aAllLinks=$("a");if(bExistQuery==-1){window.location=oUrlSetParam;}
if((!iGetParam)&&(bExistQuery!=-1)){window.location=oUrlAddParam;}
if((iGetParam)&&(bExistQuery!=-1)){aAllLinks.each(function(){var oGetHref=$(this).attr("href");if(!oGetHref){}else{if(oGetHref.indexOf("#")!=-1){return(iGetParam);}
var bExistAddParam=oGetHref.indexOf("&sc=");var bExistUrl=oGetHref.indexOf("strato");var bExistLinkQuery=oGetHref.indexOf("?");var bExistLinkQueryParam=oGetHref.indexOf("?sc=");var bExistLinkJS=oGetHref.indexOf("javascript:");var sAddParam=oGetHref+'&sc='+iGetParam;var sSetParam=oGetHref+'?sc='+iGetParam;if((bExistAddParam==-1)&&(bExistUrl!=-1)&&(bExistLinkQuery!=-1)&&(bExistLinkQueryParam==-1)&&(bExistLinkJS==-1)){$(this).attr('href',sAddParam);}
if((bExistAddParam==-1)&&(bExistLinkQuery==-1)&&(bExistLinkQueryParam==-1)&&(bExistLinkJS==-1)){$(this).attr('href',sSetParam);}}});}
return(iGetParam);}
// AddTrack - END

// Auslesen eines Parameters aus der URL
function urlparameter(anfrage){anfrage=anfrage+"=";if(window.location.search!=""){var request=window.location.search;if((request!="")&&(request.indexOf(anfrage)>-1)){var trennung=request.split(anfrage);trennung=trennung[1].split("&");return(trennung[0]);}}}

// ClickEventFunktion
function divgoto(ziel){var iScId=addTrack();if(iScId){if(ziel.indexOf("?")!=-1){window.document.location.href=ziel+"&sc="+iScId;}
else{window.document.location.href=ziel+"?sc="+iScId;}}else{window.document.location.href=ziel;}}
