// SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
var adRect='';json_parse=(function(){var at,ch,escapee={'"':'"','\\':'\\','/':'/',b:'\b',f:'\f',n:'\n',r:'\r',t:'\t'},text,error=function(m){throw{name:'SyntaxError',message:m,at:at,text:text};},next=function(c){if(c&&c!==ch){error("Expected '"+c+"' instead of '"+ch+"'");}
ch=text.charAt(at);at+=1;return ch;},number=function(){var number,string='';if(ch==='-'){string='-';next('-');}
while(ch>='0'&&ch<='9'){string+=ch;next();}
if(ch==='.'){string+='.';while(next()&&ch>='0'&&ch<='9'){string+=ch;}}
if(ch==='e'||ch==='E'){string+=ch;next();if(ch==='-'||ch==='+'){string+=ch;next();}
while(ch>='0'&&ch<='9'){string+=ch;next();}}
number=+string;if(isNaN(number)){error("Bad number");}else{return number;}},string=function(){var hex,i,string='',uffff;if(ch==='"'){while(next()){if(ch==='"'){next();return string;}else if(ch==='\\'){next();if(ch==='u'){uffff=0;for(i=0;i<4;i+=1){hex=parseInt(next(),16);if(!isFinite(hex)){break;}
uffff=uffff*16+hex;}
string+=String.fromCharCode(uffff);}else if(typeof escapee[ch]==='string'){string+=escapee[ch];}else{break;}}else{string+=ch;}}}
error("Bad string");},white=function(){while(ch&&ch<=' '){next();}},word=function(){switch(ch){case't':next('t');next('r');next('u');next('e');return true;case'f':next('f');next('a');next('l');next('s');next('e');return false;case'n':next('n');next('u');next('l');next('l');return null;}
error("Unexpected '"+ch+"'");},value,array=function(){var array=[];if(ch==='['){next('[');white();if(ch===']'){next(']');return array;}
while(ch){array.push(value());white();if(ch===']'){next(']');return array;}
next(',');white();}}
error("Bad array");},object=function(){var key,object={};if(ch==='{'){next('{');white();if(ch==='}'){next('}');return object;}
while(ch){key=string();white();next(':');if(Object.hasOwnProperty.call(object,key)){error('Duplicate key "'+key+'"');}
object[key]=value();white();if(ch==='}'){next('}');return object;}
next(',');white();}}
error("Bad object");};value=function(){white();switch(ch){case'{':return object();case'[':return array();case'"':return string();case'-':return number();default:return ch>='0'&&ch<='9'?number():word();}};return function(source,reviver){var result;text=source;at=0;ch=' ';result=value();white();if(ch){error("Syntax error");}
return typeof reviver==='function'?(function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}
return reviver.call(holder,key,value);}({'':result},'')):result;};}());var mobileClients=['android','iphone','midp','240x320','blackberry','netfront','nokia','panasonic','portalmmm','sharp','sie-','sonyericsson','symbian','windows ce','benq','mda','mot-','opera mini','philips','pocket pc','sagem','samsung','sda','sgh-','vodafone','xda'];function isMobileClient(userAgent){try{userAgent=userAgent.toLowerCase();for(var i=0;i<mobileClients.length;i++){if(userAgent.indexOf(mobileClients[i])!=-1){return true;}}}
catch(err){}
return false;}
function isBrowserMobileClient(){return isMobileClient(navigator.userAgent);}
function redirectMobile(){if(!document.URL.match("home")){try{if(isBrowserMobileClient()){document.location.href='http://m.blick.ch';}}
catch(err){}}}
function openWin(myWin,width,height){var popup=open(myWin,'_blank','scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no,width='+width+',height='+height);popup.focus();}
function openWinFull(myWin,target){var popup=open(myWin,target,'scrollbars=yes,resizable=yes,status=yes,toolbar=yes,menubar=yes,location=yes,width='+screen.availWidth+',height='+screen.availHeight);popup.focus();}
function toggleTabs(item,tabs,pos){for(i=0;i<tabs;i++){$('toggle'+item+i).className='';}
$('toggle'+item+pos).className='active';}
function skipTabs(skip){if(skip=='next'){skipStart++;if(skipStart==9){skipStart=0}}
else if(skip=='back'){if(skipStart==0){skipStart=9}skipStart--;}
for(i=0;i<3;i++){$('toggleregion'+i+'a').className=regionTabs[skipStart+i];if(regionTabs[skipStart+i]==regionActive){$('toggleregion'+i).className='active'}
else{$('toggleregion'+i).className=''}}}
function showStatus(sMsg){window.status=sMsg;return true;}
function ajaxUpdate(div,path,args,request,category){ajaxLoading(div);var ajax=new Ajax.Updater(div,path,{method:request,evalScripts:true,postBody:'ajax=1&'+args});if(category!='none'){newStats(WEMF_section,null,category);}
return false;}
function ajaxLoading(div){$(div).innerHTML='<div class="loading">Es wird geladen...</div>';}
function radioValue(rObj){for(var i=0;i<rObj.length;i++){if(rObj[i].checked){return rObj[i].value;}}
return'0';}
function toggleAnswer(pos){var dl=document.getElementsByTagName('dd')[pos].childNodes[1];var dtA=document.getElementsByTagName('dt')[pos].childNodes[0];if(dl.style.display=='none'){dl.style.display='block';dtA.className='linkComment-close';}
else{dl.style.display='none';dtA.className='linkComment';}}
function trim(s){return s.replace(/^\s+|\s+$/,'');}
function validateEmail(fld){var error='';var tfld=trim(fld.value);var emailFilter=/^[^@]+@[^@.]+\.[^@]*\w\w$/;var illegalChars=/[\(\)\<\>\,\;\:\\\"\[\]]/;if(fld.value==''){fld.style.background='Yellow';error='Bitte geben Sie Ihre E-Mail-Adresse ein.<br />';}
else if(!emailFilter.test(tfld)){fld.style.background='Yellow';error='Bitte geben Sie eine gültige E-Mail-Adresse ein.<br />';}
else if(fld.value.match(illegalChars)){fld.style.background='Yellow';error='Bitte geben Sie eine gültige E-Mail-Adresse ein.<br />';}
else{fld.style.background='White';}
return error;}
var urlAjaxRequ='/bch/nofrawo/ajax_requests/';function sendTfrate(iStar,ctId){var RatingId="tfrate"+ctId;ajaxLoading(RatingId);var urlRate=urlAjaxRequ+'tfrate_rating.hbs';var parsRate='ajax=1&stars='+iStar+'&ctId='+ctId;var myAjax=new Ajax.Request(urlRate,{Method:'post',parameters:parsRate,onComplete:displTfrated});}
function displTfrated(originalRequest){var jsonHBVers=originalRequest.responseText;var json=jsonHBVers.replace(/<!-- Generated by.*/g,"");var obj=json_parse(json);var RespError=obj.RespSet.RateError;var RespCtId=obj.RespSet.RateCtId;var RespHeader=obj.RespSet.RateHeader;var RatingId='tfrate'+RespCtId;if(RespError=='false'){$(RatingId).innerHTML=RespHeader;}}
function sendComment(ctId){var cookieString=document.cookie.split(';');var userdata='';var sub='';for(i=0;i<cookieString.length;i++){sub=cookieString[i].split('=');if(sub[0]==' ubs_data'){userdata=cookieString[i].substr(10,cookieString[i].length);userdata=userdata.split('%7C');userdata[0]=userdata[0].replace('+',' ');userdata[1]=userdata[1].replace('+',' ');userdata[2]=userdata[2].replace('%40','@');}}
var commentId='comment'+ctId;var error='';if(userdata!=''&&userdata[0]!=''){var urlComment=urlAjaxRequ+'comment.hbs';var parsComment='ajax=1&ctId='+ctId+'&un='+userdata[0]+'&ul='+userdata[1]+'&uc='+$(commentId).getElementsByTagName('form')[0].uc.value+'&ue='+userdata[2];ajaxLoading(commentId);var myAjax=new Ajax.Request(urlComment,{Method:'post',parameters:parsComment,onComplete:displCommented});}}
function validateField(fld,txt,defaultVal){var error='';var illegalChars=/[\(\)\<\>\,\;\:\\\"\[\]]/;if(fld.value==''){fld.style.background='Yellow';error=txt+'<br />';}
else if(fld.value.match(illegalChars)){fld.style.background='Yellow';error=txt+'<br />';}
else if(fld.value==defaultVal){fld.style.background='Yellow';error=txt+'<br />';}
else{fld.style.background='White';}
return error;}
function reduceToMaxChar(strLen,fldId){str=document.getElementById(fldId).value;if(str.length>strLen)str=str.substring(0,strLen);document.getElementById(fldId).value=str;}
function displCommented(originalRequest){var jsonHBVers=originalRequest.responseText;var json=jsonHBVers.replace(/<!-- Generated by.*/g,"");var obj=json_parse(json);var RespCtId=obj.RespSet.CtId;var RespHeader=obj.RespSet.CommentHeader;var commentId='comment'+RespCtId;$(commentId).innerHTML=RespHeader;}
function sendRate(iStar,ctId,ctSname){if(getaCookie('rating')==''){setaCookie('rating','()');}
if(getaCookie('rating')!=''){var urlRate=urlAjaxRequ+'rating.hbs';var parsRate='ajax=1&stars='+iStar+'&ctId='+ctId+'&ctSname='+ctSname;var myAjax=new Ajax.Request(urlRate,{Method:'post',parameters:parsRate,onComplete:displRated});}}
function displRated(originalRequest){var jsonHBVers=originalRequest.responseText;var json=jsonHBVers.replace(/<!-- Generated by.*/g,"");var obj=json_parse(json);var RespError=obj.RespSet.RateError;var RespVoted=obj.RespSet.RateAvg;var RespVotedOld=obj.RespSet.RateAvgOld;var RespCtId=obj.RespSet.RateCtId;var RespCtSname=obj.RespSet.RateCtSname;var RespHeader=obj.RespSet.RateHeader;if(RespError=='false'){var RatingUlId='star-rating'+RespCtId+RespCtSname;var RatingUl=$(RatingUlId);new Effect.Fade(RatingUl,{duration:0.5});new Effect.Appear(RatingUl,{duration:1,from:0,to:1,delay:0.5});Element.removeClassName(RatingUlId,RespVotedOld+'star');RatingUl.addClassName(RespVoted+'star');RatedAverage=RespVoted;var RatingTextId='rating-text'+RespCtId+RespCtSname;$(RatingTextId).innerHTML=RespHeader;}}
function newStats(caller,category,tab){getomni(category,caller,tab);}
function getaCookie(cookieName){if(document.cookie.length>0){cookieStart=document.cookie.indexOf(cookieName+'=');if(cookieStart!=-1){cookieStart=cookieStart+cookieName.length+1;cookieEnd=document.cookie.indexOf(';',cookieStart);if(cookieEnd==-1){cookieEnd=document.cookie.length}
return unescape(document.cookie.substring(cookieStart,cookieEnd));}}
return'';}
function setaCookie(cookieName,cookieValue,expireDays){var expireDate=new Date();expireDate.setDate(expireDate.getDate()+expireDays);document.cookie=cookieName+'='+escape(cookieValue)+((expireDays==null)?'':';expires='+expireDate.toGMTString())+';path=/;domain=.blick.ch;';}
function swfInnerHtml(div,width,height,flashUrl){$(div).innerHTML='<object type="application/x-shockwave-flash" data="'+flashUrl+'" width="'+width+'" height="'+height+'"><param name="movie" value="'+flashUrl+'"></object>';}
function addEvent(elm,evType,fn,useCapture){if(elm.addEventListener){elm.addEventListener(evType,fn,useCapture);return true;}
else if(elm.attachEvent){var r=elm.attachEvent('on'+evType,fn);return r;}
else{elm['on'+evType]=fn;}}
function toggleBoxTabs(divid,active,count,id,init){var i=1;for(i=1;i<=count;i++){if(i==active){$(divid+i).style.display='block';$('toggle'+id+(i-1)).className='active';}
else{$(divid+i).style.display='none';$('toggle'+id+(i-1)).className='inactive';}}
if(!init){newStats(WEMF_section,null,divid+active);}}