
if(typeof QQ==="undefined"){var QQ={};}
Array.prototype.contains=function(element){for(var i=0;i<this.length;i++){if(this[i]==element){return true;}}
return false;}
String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");}
function confirmAction(text){var confirmed=confirm(text);if(confirmed)
return true;else
return false;}
function doWithAllNodesIn(elementName,fn){var sourceNode=getFirstChild(obj(elementName));while(sourceNode!=null){var node=sourceNode;while(node.nodeType!=1){node=node.nextSibling;if(node==null)break;}
if(node==null)break;sourceNode=sourceNode.nextSibling;eval(fn);}}
function doWithAllNodes(attribute,value,fn){var nodes=objs(attribute,value);var nodesLength=nodes.length;for(var i=0;i<nodesLength;i++){var node=nodes[i];eval(fn);}}
function getFirstChild(element){var x;try{x=element.firstChild;}catch(e){}
if(x!=null){while(x.nodeType!=1){x=x.nextSibling;if(x==null)break;}
return x;}else{return null;}}
function obj(id){return document.getElementById(id);}
function objs(attribute,value){if(attribute==undefined)attribute="class";var objs=new Array();var providedTags=new Array("span","div","a","p","img","input","form","li","ul");for(var tagIndex in providedTags){var tags=document.getElementsByTagName(providedTags[tagIndex]);var tagsLength=tags.length;for(var i=0;i<tagsLength;i++){try{if(attribute!="class"&&tags[i].getAttribute(attribute).lastIndexOf(value)!=-1)objs.push(tags[i]);else if(tags[i].className.lastIndexOf(value)!=-1)objs.push(tags[i]);}catch(e){}}}
return objs;}
function popUp(page,parameters,setFocus){var win=window.open(page,"_blank",parameters);if(setFocus===undefined)
win.focus();}
function tooltip(show,text,event,className,offsetX,offsetY){if(show){var tooltip=document.createElement("div");tooltip.id="QQ_Tooltip";tooltip.innerHTML=text;if(className!=undefined)tooltip.className=className;if(offsetX===undefined)offsetX=20;if(offsetY===undefined)offsetY=-5;tooltip.style.position="absolute";tooltip.style.left=(event.clientX+offsetX)+QQ.Browser.getScrollPosition('x')+"px";tooltip.style.top=(event.clientY+offsetY)+QQ.Browser.getScrollPosition('y')+"px";document.body.appendChild(tooltip);}else{try{document.body.removeChild(obj("QQ_Tooltip"));}catch(e){}}}
if(typeof QQ==="undefined"){var QQ={};}
QQ.Element=function(){return{getObject:function(id){if(obj(id)!=null)
return obj(id);else
return id;},toggle:function(elementID,on){var id;if(obj(elementID)!=null){id=obj(elementID);}
else{id=elementID;}
if(on=="true"||on==1){try{id.style.display="block";}
catch(e){alert(e);}}
else if(on=="false"||on==0){try{id.style.display="none";}
catch(e){alert(e);}}else{if(id.style.display=="none"){id.style.display="block";}
else{id.style.display="none";}}},focus:function(id,selectText){try{obj(id).focus();if(selectText===true)obj(id).select();}catch(e){}},getEventObject:function(evt){if(evt.srcElement!==undefined)
return event.srcElement;return evt.target;},getSize:function(id){var object=this.getObject(id);var Size={};Size.width=object.scrollWidth;Size.height=object.scrollHeight;return Size;},getWidth:function(id){return this.getSize(id).width;},getHeight:function(id){return this.getSize(id).height;},getPosition:function(id){var object=this.getObject(id);var leftOffset=object.offsetLeft;var topOffset=object.offsetTop;var parent=object.offsetParent;while(parent!=document.body&&parent!=null){leftOffset+=parent.offsetLeft;topOffset+=parent.offsetTop;parent=parent.offsetParent;}
var Position={};Position.x=leftOffset;Position.y=topOffset;return Position;},getX:function(id){return this.getPosition(id).x;},getY:function(id){return this.getPosition(id).y;}};}();if(typeof QQ==="undefined"){var QQ={};}
QQ.Browser=function(){return{getInnerSize:function(parameter){var width;var height;if(typeof(window.innerWidth)=='number'){width=window.innerWidth;height=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){width=document.documentElement.clientWidth;height=document.documentElement.clientHeight;}
if(parameter==0)return width;return height;},getScrollPosition:function(parameter){if(parameter=="x"){if(window.pageXOffset!==undefined)return window.pageXOffset;if(document.documentElement!==undefined)return document.documentElement.scrollLeft;return document.body.scrollLeft;}else{if(window.pageYOffset!==undefined)return window.pageYOffset;if(document.documentElement!==undefined)return document.documentElement.scrollTop;return document.body.scrollTop;}},getAgent:function(){if(navigator.userAgent.indexOf('Opera')!=-1)return'Opera';if(navigator.userAgent.indexOf('MSIE')!=-1)return'IE';if(navigator.userAgent.indexOf('Firefox')!=-1)return'Firefox';if(navigator.userAgent.indexOf('Safari')!=-1)return'Safari';},isOpera:function(){if(this.getAgent()==='Opera')return true;return false;},isIE:function(){if(this.getAgent()==='IE')return true;return false;},isFF:function(){if(this.getAgent()==='Firefox')return true;return false;},isSafari:function(){if(this.getAgent()==='Safari')return true;return false;},xMouse:function(e){return this.getMousePosition(e).x;},yMouse:function(e){return this.getMousePosition(e).y;},getMousePosition:function(e){var Position={};if(!e)var e=window.event;if(e.pageX||e.pageY){Position.x=e.pageX;Position.y=e.pageY;}else if(e.clientX||e.clientY){Position.x=e.clientX;Position.y=e.clientY;if(this.isIE()){Position.x+=document.body.scrollLeft;Position.y+=document.body.scrollTop;}}
return Position;}};}();if(typeof QQ==="undefined"){var QQ={};}
QQ.Event=function(){return{addEvent:function(obj,eventType,fn){if(obj===undefined||obj===null){return false};if(obj.addEventListener){try{obj.addEventListener(eventType,fn,false);}catch(e){}}else if(obj.attachEvent){obj["e"+eventType+fn]=fn;obj[eventType+fn]=function(){obj["e"+eventType+fn](window.event);}
obj.attachEvent("on"+eventType,obj[eventType+fn]);}else{obj["on"+eventType]=fn;return true;}},addEvents:function(attribute,value,eventType,fn){var objects=objs(attribute,value);for(var i=0;i<objects.length;++i){addEvent(objects[i],eventType,fn)}},removeEvent:function(obj,eventType,fn){if(obj.removeEventListener){obj.removeEventListener(eventType,fn,false);}else if(obj.detachEvent){try{obj.detachEvent("on"+eventType,obj[eventType+fn]);obj[eventType+fn]=null;obj["e"+eventType+fn]=null;}catch(e){}}}};}();if(typeof QQ==="undefined"){var QQ={};}
QQ.Form=function(){return{getSelectedOption:function(selectID){var optionsLength=obj(selectID).options.length;var value;var text;for(var i=0;i<optionsLength;i++){if(obj(selectID).options[i].selected){value=obj(selectID).options[i].value;text=obj(selectID).options[i].text;}}
return{value:value,text:text}},selectOption:function(selID,opt,attribute){var sel=QQ.Element.getObject(selID);var ol=sel.options.length;if(attribute===undefined)attribute="value";if(attribute=="value"){for(var i=0;i<ol;++i){if(sel.options[i].value==opt){sel.options[i].selected=true;break;}}}else{for(var i=0;i<ol;++i){if(sel.options[i].text==opt){sel.options[i].selected=true;break;}}}},getSelectedRadioButton:function(groupName){var radioButtons=objs("name",groupName);var checkedRadioButton=null;for(var i=0;i<radioButtons.length;i++){if(radioButtons[i].checked){checkedRadioButton=radioButtons[i];}}
return checkedRadioButton;}}}();if(typeof QQ==="undefined"){var QQ={};}
QQ.Math=function(){return{getDegrees:function(x,y){var ratio=y/Math.sqrt(x*x+y*y);var angle=(Math.asin(ratio)*180/Math.PI+360)%360;if(x>=0&&y>=0){angle=90-angle;}else if(x>=0&&y<=0){angle=450-angle;}else if(x<=0&&y<=0){angle-=90;}else if(x<=0&&y>=0){angle+=270;}
return angle;},round:function(num,precision){if(precision===undefined)precision=0;var t=Math.pow(10,precision);return Math.ceil(num*t)/t;}};}();if(typeof QQ==="undefined"){var QQ={};}
QQ.SearchSuggest=function(){var selectedEntryIndex=-1;var selectedEntryText="";var lastResultLength=0;var inputBoxID="";var suggestTimeOut=null;function setSearchString(searchString){if(searchString.indexOf("qqSearchSuggestName")>-1){searchString=searchString.replace(/[\s\S]*?qqSearchSuggestName["]?>([\s\S]*?)<\/[\s\S]*/gi,"$1");}
obj(QQ.SearchSuggest.inputBoxID).value=searchString;}
function submitForm(){obj(QQ.SearchSuggest.inputBoxID).parentNode.submit();}
function setActiveStyle(element,fontColor,backgroundColor){element.style.backgroundColor=backgroundColor;element.style.fontColor=fontColor
element.style.cursor="pointer";}
function setInactiveStyle(element,fontColor,backgroundColor){element.style.backgroundColor=backgroundColor;element.style.fontColor=fontColor}
function hideSuggestBox(event){if(event!==undefined){if(event.keyCode==13){}
if(event.keyCode==9||event.keyCode==13){obj(QQ.SearchSuggest.suggestBoxID).style.display="none";}}
else{obj(QQ.SearchSuggest.suggestBoxID).style.display="none";}}
function mouseLeaveSuggestBox(event){if(event!==undefined){var tg=(window.event)?event.srcElement:event.target;if(tg.id!=QQ.SearchSuggest.suggestBoxID)
return;var reltg=(event.relatedTarget)?event.relatedTarget:event.toElement;while(reltg!=tg&&reltg.nodeName!='BODY'){reltg=reltg.parentNode}
if(reltg==tg)
return;obj(QQ.SearchSuggest.suggestBoxID).style.display="none";}}
function updateSuggestBox(event,req){var suggestDiv=obj(QQ.SearchSuggest.suggestBoxID);var listLength=suggestDiv.childNodes.length;var divNode=suggestDiv.firstChild;for(var j=0;j<listLength;++j){var tmpNode=divNode;divNode=divNode.nextSibling;suggestDiv.removeChild(tmpNode);}
var suggestResults=req.responseText.split(QQ.SearchSuggest.separator);if(lastResultLength!=suggestResults.length){selectedEntryIndex=-1;selectedEntryText="";}
suggestDiv.style.width=QQ.SearchSuggest.width+"px";if(suggestResults.length>5){suggestDiv.style.height=QQ.SearchSuggest.maxHeight+"px";}
else{suggestDiv.style.height=suggestResults.length*QQ.SearchSuggest.entryHeight+"px";}
if(req.responseText.length>0){suggestDiv.style.display="block";}
else{hideSuggestBox();}
if(QQ.SearchSuggest.styleInformation.length>0){suggestDiv.style.position="absolute";suggestDiv.style.border="1px solid black";suggestDiv.style.backgroundColor="#ffffff";fontNormal=QQ.SearchSuggest.styleInformation[0];backgroundNormal=QQ.SearchSuggest.styleInformation[1];fontHighlight=QQ.SearchSuggest.styleInformation[2];backgroundHighlight=QQ.SearchSuggest.styleInformation[3];}
var l=suggestResults.length;for(var i=0;i<l;++i){var suggestEntry=document.createElement("div");suggestEntry.id="QQ_SearchSuggest_Entry"+i;suggestEntry.innerHTML=suggestResults[i];suggestEntry.className="deselected";var o={searchResult:suggestResults[i],handleEvent:function(){setSearchString(this.searchResult);hideSuggestBox();submitForm();}}
QQ.Event.addEvent(suggestEntry,"click",o);if(QQ.SearchSuggest.styleInformation.length>0){QQ.Event.addEvent(suggestEntry,"mouseover",function(){setActiveStyle(this,fontHighlight,backgroundHighlight);});QQ.Event.addEvent(suggestEntry,"mouseout",function(){setInactiveStyle(this,fontNormal,backgroundNormal);});}
else{QQ.Event.addEvent(suggestEntry,"mouseover",function(e){this.className="selected";selectedEntryIndex=(1*this.id.replace("QQ_SearchSuggest_Entry",""));setSearchString(obj("QQ_SearchSuggest_Entry"+selectedEntryIndex).innerHTML);markSelection();});QQ.Event.addEvent(suggestEntry,"mouseout",function(){this.className="deselected";selectedEntryIndex=(1*this.id.replace("QQ_SearchSuggest_Entry",""));setSearchString(obj("QQ_SearchSuggest_Entry"+selectedEntryIndex).innerHTML);markSelection();});}
suggestDiv.appendChild(suggestEntry);selectedEntryText=suggestResults[i];}
lastResultLength=suggestResults.length;}
function scrollList(event){var suggestDiv=obj(QQ.SearchSuggest.suggestBoxID);if(event.keyCode==38&&selectedEntryIndex>0){selectedEntryIndex--;if(selectedEntryIndex*QQ.SearchSuggest.entryHeight<=(suggestDiv.scrollTop+28))
suggestDiv.scrollTop-=QQ.SearchSuggest.entryHeight;}
else if(event.keyCode==40&&selectedEntryIndex<lastResultLength-1){selectedEntryIndex++;if(selectedEntryIndex*QQ.SearchSuggest.entryHeight>=(parseInt(suggestDiv.style.height.substr(0,suggestDiv.style.height.length-2))+suggestDiv.scrollTop+8)){suggestDiv.scrollTop+=QQ.SearchSuggest.entryHeight;}}
setSearchString(obj("QQ_SearchSuggest_Entry"+selectedEntryIndex).innerHTML);markSelection();}
function markSelection(){for(var i=0;i<lastResultLength;++i){if(i==selectedEntryIndex){if(QQ.SearchSuggest.styleInformation.length>0){setActiveStyle(obj("QQ_SearchSuggest_Entry"+i),fontHighlight,backgroundHighlight);}
else{obj("QQ_SearchSuggest_Entry"+i).className="selected";}
selectedEntryText=obj("QQ_SearchSuggest_Entry"+i).innerHTML;}
else{if(QQ.SearchSuggest.styleInformation.length>0){setInactiveStyle(obj("QQ_SearchSuggest_Entry"+i),fontColor,backgroundColor)}
else{obj("QQ_SearchSuggest_Entry"+i).className="deselected";}}}}
function searchSuggestDelayed(event){if(event.keyCode==38||event.keyCode==40){scrollList(event);}
else if(suggestTimeOut==null){suggestTimeOut=setTimeout(function(){searchSuggest(event);},QQ.SearchSuggest.delay);}}
function searchSuggest(event){var req=QQ.Ajax.getRequestObject();var searchBox=obj(QQ.SearchSuggest.inputBoxID);var inputText=searchBox.value;if((req.readyState==4||req.readyState==0)&&inputText.length>1&&inputText.indexOf("  ")==-1){req.open("GET",QQ.SearchSuggest.url+inputText,true);req.onreadystatechange=function handleSearchSuggest(){switch(req.readyState){case 4:updateSuggestBox(event,req);break;default:return false;}}
req.send(null);}else{hideSuggestBox();}
suggestTimeOut=null;}
return{inputBox:null,inputBoxID:"",suggestBoxID:"",url:null,width:400,maxHeight:150,entryHeight:50,separator:"#",styleInformation:[],delay:500,init:function(inputBox,inputBoxID,suggestBoxID,url,options){this.inputBox=inputBox;this.inputBoxID=inputBoxID;this.suggestBoxID=suggestBoxID;this.url=url;if(options!==undefined){if(options.width!==undefined){this.width=options.width;}
if(options.maxHeight!==undefined){this.maxHeight=options.maxHeight;}
if(options.entryHeight!==undefined){this.entryHeight=options.entryHeight;}
if(options.separator!==undefined){this.separator=options.separator;}
if(options.delay!==undefined){this.delay=options.delay;}
if(options.styleInformation!==undefined){this.styleInformation=options.styleInformation;}}
inputBox.setAttribute("id",inputBoxID);inputBox.setAttribute("autocomplete","off");obj(suggestBoxID).style.position="absolute";obj(suggestBoxID).style.left=QQ.Element.getX(inputBox)+"px";obj(suggestBoxID).style.top=QQ.Element.getY(inputBox)+QQ.Element.getHeight(inputBox)+2+"px";QQ.Event.addEvent(inputBox,"keydown",hideSuggestBox);QQ.Event.addEvent(inputBox,"keyup",searchSuggestDelayed);QQ.Event.addEvent(obj(suggestBoxID),"mouseout",mouseLeaveSuggestBox);}}}();if(typeof QQ==="undefined"){var QQ={};}
QQ.String=function(){return{br2nl:function(str){return str.replace(/<br>/g,"\r\n").replace(/<BR>/g,"\r\n");},nl2br:function(str){return str.replace(/\r\n/g,"<br>").replace(/\r/g,"<br>").replace(/\n/g,"<br>");},trim:function(str){return str.replace(/^\s+/,'').replace(/\s+$/,'');},urlEncode:function(str){return escape(str).replace(/\+/g,'%2B').replace(/%20/g,'+').replace(/\*/g,'%2A').replace(/\//g,'%2F').replace(/@/g,'%40');},evalJSON:function(jsonString){return eval("("+jsonString+")");}};}();if(typeof QQ==="undefined"){var QQ={};}
QQ.Ajax=function(){return{update:function(path,divID,settings){var addresponse;if(settings!==undefined)addresponse=settings.additionalResponseFunction;else settings={};function response(req){if(obj(divID)!=null){obj(divID).innerHTML=req.responseText;}else alert(divID+"not found");if(addresponse!==undefined)addresponse();}
settings.responseFunction=response;this.request(path,settings);},request:function(path,settings){if(settings===undefined)settings={}
var method=settings.method;var data=settings.data;var responseFunction=settings.responseFunction;var asynchronous=settings.asynchronous;var progressCallback=settings.progressCallback;if(method===undefined)method="get";if(data===undefined)data="";if(asynchronous===undefined)asynchronous=true;var req=this.getRequestObject();if(progressCallback!==undefined)req.onprogress=progressCallback;if(data==undefined)data="";if(method==undefined)method="get";if(method=="get")req.open("get",path+data,asynchronous);else req.open("post",path,asynchronous);req.onreadystatechange=function(){if(req.readyState==4&&responseFunction!==undefined)responseFunction(req);}
if(method=="get")req.send(null);else{req.setRequestHeader("Pragma","no-cache");req.setRequestHeader("Cache-Control","must-revalidate");req.setRequestHeader("If-Modified-Since",document.lastModified);req.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");req.setRequestHeader("Content-length",data.length);req.send(data);}},getRequestObject:function(){var req=null;try{req=new XMLHttpRequest();}catch(ms){try{req=new ActiveXObject("Msxml2.XMLHTTP");}catch(nonms){try{req=new ActiveXObject("Microsoft.XMLHTTP");}catch(failed){req=null;}}}
return req;}};}();if(typeof QQ==="undefined"){var QQ={};}
QQ.Animator=function(){return{fade:function(objectID,settings){if(settings===undefined)settings={}
var object=obj(objectID);var startAlpha=settings.startAlpha;var endAlpha=settings.endAlpha;var interval=settings.interval;var duration=settings.duration;var callback=settings.callback;if(startAlpha===undefined)startAlpha=0;if(endAlpha===undefined)endAlpha=100;if(interval===undefined)interval=10;if(duration===undefined)duration=100;var fadeType=1;if(startAlpha>endAlpha)fadeType=-1;var steps=duration/interval;var currentStep=1;if(startAlpha>1)startAlpha=startAlpha/100;if(endAlpha>1)endAlpha=endAlpha/100;var stepAlpha=QQ.Math.round((endAlpha-startAlpha)/steps,4);object.style.opacity=startAlpha;var fadeInterval=setInterval(fadeObject,interval);function fadeObject(){object.style.opacity=startAlpha+currentStep*stepAlpha;if(Math.abs(currentStep)>=steps){clearInterval(fadeInterval);if(callback!==undefined)callback();}
++currentStep;}},move:function(objectID,settings){if(settings===undefined)settings={}
var object=obj(objectID);var startX=settings.startX;var startY=settings.startY;var endX=settings.endX;var endY=settings.endY;var interval=settings.interval;var duration=settings.duration;var callback=settings.callback;if(startX===undefined)startX=parseInt(object.style.left);if(startY===undefined)startY=parseInt(object.style.top);if(interval===undefined)interval=10;if(duration===undefined)duration=100;var steps=duration/interval;var currentStep=1;object.style.position="absolute";object.style.left=startX+"px";object.style.top=startY+"px";var stepX=(endX-startX)/steps;var stepY=(endY-startY)/steps;var moveInterval=setInterval(moveObject,interval);function moveObject(){object.style.left=(startX+currentStep*stepX)+"px";object.style.top=(startY+currentStep*stepY)+"px";if(currentStep>=steps){clearInterval(moveInterval);if(callback!==undefined)callback();}
++currentStep;}}};}();if(typeof QQ==="undefined"){var QQ={};}
QQ.Validator=function(){return{emailRegExp:/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,validateInput:function(settings){var value=settings.value;var errorFunction=settings.errorFunction;var successFunction=settings.successFunction;var path=settings.path;var regExp=settings.regExp;if(regExp!==undefined){if(value.search(regExp)==-1){if(errorFunction!==undefined)errorFunction();return false;}}
if(path!==undefined){function serverValidationCheck(req){if(req.responseText==1){if(successFunction!==undefined)successFunction();return true;}else{if(errorFunction!==undefined)errorFunction();return false;}}
QQ.Ajax.request(path,{data:"value="+value,method:"post",responseFunction:serverValidationCheck});}else{if(successFunction!==undefined)successFunction();return true;}}};}();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,_b){if(!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"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(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",_7);this.setAttribute("doExpressInstall",false);var _d=(_9)?_9:window.location;this.setAttribute("xiRedirectUrl",_d);this.setAttribute("redirectUrl","");if(_a){this.setAttribute("redirectUrl",_a);}};deconcept.SWFObject.prototype={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.push(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");}
_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";_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");}
_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";_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{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(_27){this.major=_27[0]!=null?parseInt(_27[0]):0;this.minor=_27[1]!=null?parseInt(_27[1]):0;this.rev=_27[2]!=null?parseInt(_27[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(_29){var q=document.location.search||document.location.hash;if(q){var _2b=q.substring(1).split("&");for(var i=0;i<_2b.length;i++){if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){return _2b[i].substring((_2b[i].indexOf("=")+1));}}}
return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return;}
var _2d=document.getElementsByTagName("OBJECT");for(var i=0;i<_2d.length;i++){_2d[i].style.display="none";for(var x in _2d[i]){if(typeof _2d[i][x]=="function"){_2d[i][x]=function(){};}}}};deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};if(typeof window.onunload=="function"){var _30=window.onunload;window.onunload=function(){deconcept.SWFObjectUtil.cleanupSWFs();_30();};}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;}};if(typeof window.onbeforeunload=="function"){var oldBeforeUnload=window.onbeforeunload;window.onbeforeunload=function(){deconcept.SWFObjectUtil.prepUnload();oldBeforeUnload();};}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload;}
if(Array.prototype.push==null){Array.prototype.push=function(_31){this[this.length]=_31;return this.length;};}
var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var BASE="/";var AJAX_REQUEST_BASE=BASE;function popupPoster(postername,movieTitle,width,height){var relation=width/height;if(width>600){width=600;}
if(navigator.userAgent.indexOf("Firefox")>-1){height=(width/relation)+40;}else if(navigator.userAgent.indexOf("Opera")>-1){height=(width/relation)+45;width+=10;}
PosterWindow=window.open(postername,movieTitle,"width=140,height=206,resizable=yes,status=no,left=100,top=100");PosterWindow.resizeTo(width+28,height+35);PosterWindow.focus();}
function popupAddThisFeed(){var addThisWindow=window.open("http://www.addthis.com/feed.php?pub=cinefreaks&h1=http%3A%2F%2Fcinefreaks.com%2FgetRSS%2F&t1=","Cinefreaks Feed","width=650,height=600,resizable=yes,status=no,left=100,top=100");addThisWindow.focus();}
function showNotice(notice,area){obj(area).innerHTML=notice;QQ.Element.toggle(area,true);}
function addView(id,resource){QQ.Ajax.request(AJAX_REQUEST_BASE+'statistics/add'+resource+'View/id/'+id);}
function submitQuizAnswer(category){var inputs=objs("class","answer");var answer;for(var i=0;i<inputs.length;++i){if(inputs[i].checked){answer=inputs[i].value;break;}}
QQ.Ajax.request(AJAX_REQUEST_BASE+"news/answerDailyQuestion",{method:"post",data:"answer="+answer,responseFunction:dailyQuestionCallback});}
function dailyQuestionCallback(req){obj("dailyQuizQuestion").innerHTML=req.responseText;}
function filterPreviews(){var month=QQ.Form.getSelectedOption("month").value;var genre=QQ.Form.getSelectedOption("genre").value;var country=QQ.Form.getSelectedOption("country").value;window.location=BASE+"filterPreviews/month/"+month+"/genre/"+genre+"/country/"+country;}
function filterPreviewsByWeek(){var page=QQ.Form.getSelectedOption("pageNumber").value;window.location=BASE+"previews/page/"+page;}
function jumpToCinema(){var cLocation=window.location.href;var parts=cLocation.split("#");window.location=parts[0]+"#"+QQ.Form.getSelectedOption("cinema").value;}
function jumpToCity(){window.location=BASE+"showtimes/cinemas/"+QQ.String.urlEncode(obj("city").value);}
function jumpToCityMap(){window.location=BASE+"showtimes/map/"+obj("city").value;}
function jumpToDate(cinema){if(cinema){window.location=BASE+"showtimes/cinemas/"+obj("city").value+"/"+obj("date").value+"#"+QQ.Form.getSelectedOption("cinema").value;}else{window.location=BASE+"showtimes/cinemas/"+obj("city").value+"/"+obj("date").value;}}
function showCinemas(idString){if(map===undefined)return;map.clearOverlays();var ids=idString.split(",");for(var i=0;i<ids.length;i++){map.addOverlay(cinemaPoints[ids[i]]);}}
function sortReviews(sorting){var letter=QQ.Form.getSelectedOption("letter").value;var genre=QQ.Form.getSelectedOption("genre").value;var studio=QQ.Form.getSelectedOption("studio").value;var country=QQ.Form.getSelectedOption("country").value;window.location=BASE+"movies/sortBy"+sorting+"/letter/"+letter+"/genre/"+genre+"/studio/"+studio+"/country/"+country;}
function filterReviews(){var checkedRadioButton=QQ.Form.getSelectedRadioButton("sorting");sortReviews(checkedRadioButton.value);}
var lights=true;function switchLights(){if(lights){QQ.Element.toggle('shadow');QQ.Animator.fade('shadow',{startAlpha:0,endAlpha:80});obj('bulb').className='s bulbOff';obj('bulbText').innerHTML='Licht anschalten';obj('bulbText').style.color='#999';}else{var callback=function(){QQ.Element.toggle('shadow');};QQ.Animator.fade('shadow',{startAlpha:80,endAlpha:0,callback:callback});obj('bulb').className='s bulbOn';obj('bulbText').innerHTML='Licht ausschalten';obj('bulbText').style.color='#fff';}
lights=!lights;}
function loadVideo(){var locationArray=window.location.href.split('#');var videoIDArray=locationArray[1].split('-');window.document.webTVPlayerNavigation.loadVideo(videoIDArray[0]);}
function loadPlayer(type,video,title,videoID){var so=null;if(type=="qq"){so=new SWFObject(BASE+"application/frontend/swf/mediaPlayer.swf","previewPictureShow","660","404","9","#000");so.addParam("scale","noscale");so.addParam("quality","best");so.addVariable("closeButton","0");so.addVariable("playBarColor","457DDF");so.addVariable("loadBarColor","205BB5");so.addVariable("title",title);so.addVariable("forceToSize",true);so.addVariable("media",QQ.String.urlEncode(video));so.addVariable("start","1");}else if(type=="yt"){so=new SWFObject("http://www.youtube.com/v/"+video+"&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999","previewPictureShow","504","404","9","#000");}else if(type=="google"){so=new SWFObject("http://video.google.com/googleplayer.swf?docid="+video+"&hl=en&fs=true","previewPictureShow","660","404","9","#000");}
so.addParam("quality","best");so.addParam("wmode","transparent");so.addParam("allowFullScreen","true");so.addParam("salign","lt");so.write("webTVPlayer_swf");var currentLocation=window.location.href;var locationStringArray=currentLocation.split("#");window.location=locationStringArray[0]+"#"+videoID+"-"+title;}
function toggleYouTubeBox(){QQ.Element.toggle('moreVideosContainer');if(obj('videoToggleText').innerHTML=='mehr'){obj('videoToggleText').innerHTML="weniger";obj("youTubeArrow").className="s arrowUp";}
else{obj('videoToggleText').innerHTML='mehr';obj('youTubeArrow').className="s arrowDown";window.location="#youTubeVideos";}}
function toggleImageBox(){QQ.Element.toggle('moreImagesContainer');if(obj("imagesToggleText").innerHTML=="mehr"){obj("imagesToggleText").innerHTML="weniger";obj("moreImagesArrow").className="s arrowUp";}
else{obj("imagesToggleText").innerHTML="mehr";obj("moreImagesArrow").className="s arrowDown";window.location="#gallery";}}
function sortCastnCrew(sorting){var job=QQ.Form.getSelectedOption("job").value;var letter=QQ.Form.getSelectedOption("letter").value;window.location=BASE+"cast/sortBy"+sorting+"/job/"+job+"/letter/"+letter;}
function filterCastnCrew(){var checkedRadioButton=QQ.Form.getSelectedRadioButton("sorting");sortCastnCrew(checkedRadioButton.value);}
function searchConnection(soureType){var sourceID=obj("sourceID").value;var destination=obj("destination").value;obj("connectionResults").innerHTML="Suche Verbindung...";QQ.Element.toggle('searchConnectionOK',false);QQ.Ajax.request(AJAX_REQUEST_BASE+"search/searchConnection/",{method:"post",data:"sourceID="+sourceID+"&destination="+destination+"&sourceType="+soureType,responseFunction:searchConnectionCallback});}
function searchConnectionCallback(req){obj("connectionResults").innerHTML=req.responseText;QQ.Element.toggle('searchConnectionOK',true);}
function download(file){QQ.Ajax.request(AJAX_REQUEST_BASE+"downloads/countDownload",{method:"post",data:"file="+file});file=file.replace(/__/,".");var win=window.open(BASE+"downloads/files/"+file,"download counter","width=1,height=1,left=0,top=0,scrollbars=no,resizable=no");}
function changeFlag(){var image;var country=QQ.Form.getSelectedOption("countryChoose").text;if(country=="Deutschland"){image="germanyFlag";}else if(country=="Österreich"){image="austriaFlag";}else if(country=="Schweiz"){image="switzerlandFlag";}else if(country=="Italien"){image="italyFlag";}else if(country=="Frankreich"){image="franceFlag";}
obj("flagImage").src="images/design/"+image+".png"}
function errorMsg(){alert("Das Plugin kann nur für Mozilla oder Netscape 6 installiert werden.");}
function addEngine(name,ext,cat,type){if(navigator.userAgent.indexOf('Firefox/2')!=-1){window.external.AddSearchProvider("http://www.cinefreaks.com/xml/"+name+".xml");}else{if((typeof window.sidebar=="object")&&(typeof window.sidebar.addSearchEngine=="function")){window.sidebar.addSearchEngine("http://www.cinefreaks.com/downloads/"+name+".src","http://www.cinefreaks.com/pictures/design/"+name+"."+ext,name,cat);}else{alert("Das Plugin kann nur für Mozilla oder Netscape 6 installiert werden.");}}}
var lastSearch="";function cfSearch(e){if((e===undefined||e.keyCode==13)&&lastSearch!=obj("searchBox").value){var searchString=obj("searchBox").value;lastSearch=searchString;if(searchString!="")window.location=BASE+"search/"+QQ.String.urlEncode(searchString)+"/";}}
function fxSetUserRating(rating){obj("fxUserRating").value=rating;}
function emailError(){obj('emailInput').style.color='red';}
function emailSuccess(){obj('emailInput').style.color='black';}
function validateEmail(e){if(e.keyCode!=13){QQ.Validator.validateInput({regExp:QQ.Validator.emailRegExp,value:obj("emailInput").value,successFunction:emailSuccess,errorFunction:emailError});}}