/*
 * QXL common JS top
 * Design codename 'Banana'
 * (without jQuery, with Overlays.min.js)
 * v.2.59
 */
qxlSite={host_main:"www.qxl.dk",host_sellers:"auktioner.qxl.dk",host_static:"pics.qxlstatic.dk",host_beta:"www.dk.betaqxl.com",host_dev:"www.dk.devqxl.com",segment_buy:"pris",segment_erotic:"erotik",segment_cars:"biler-mc-udstyr",special_links:["nye-auktioner","slutter-snart","mest-populaere","fra-1-krone"]};qV={href:location.href.toLowerCase(),host:location.hostname.toLowerCase(),path:(location.pathname+location.search+location.hash).toLowerCase(),segm:location.pathname.toLowerCase().match(/\/[^\/\#\?\&]*/)[0].substring(1)};qxlVars={lower_href:qV.href,lower_host:qV.host,lower_path:qV.path,lower_first_segment:qV.segm,base_href:location.protocol+"//"+location.hostname+"/",static_domain:"https://"+qxlSite.host_static,is_http:(location.protocol=="http:"),is_https:(location.protocol=="https:"),is_prod:((qV.host==qxlSite.host_main)||(qV.host==qxlSite.host_sellers)),is_beta:(qV.host==qxlSite.host_beta),is_dev:(qV.host==qxlSite.host_dev),is_search:(qV.path.indexOf("/search/search.asp")==0)||(qV.path.indexOf("/carsandbikes/search.aspx")==0),is_special_search:($.inArray(decodeURIComponent(unescape(qV.segm)),qxlSite.special_links)>-1),is_seller_listing:(qV.host==qxlSite.host_sellers),is_cars:((decodeURIComponent(unescape(qV.path)).indexOf(qxlSite.segment_buy+"/"+qxlSite.segment_cars)==1)||(qV.href.indexOf("viewitem_cb.aspx")>-1)||(qV.path.indexOf("/carsandbikes/search.aspx")==0)),is_myqxl:(qV.segm=="mypages"),is_category_top:(qV.path=="/"+qxlSite.segment_buy+"/"),is_category_index:(qV.href.indexOf("/c/cn")>-1),is_category_listing:((qV.href.indexOf("/l/cn")>-1)||(qV.href.indexOf("/b/cn")>-1)),is_itempage:((qV.href.indexOf("/v/an")>-1)||(qV.href.indexOf("/w/an")>-1)||(qV.href.indexOf("viewitem.aspx")>-1)||(qV.href.indexOf("viewitem_cb.aspx")>-1)),is_sellingformpage1:((qV.path.indexOf("/form/addobj.asp")==0)||(qV.path.indexOf("/form/addobj_noc.asp")==0)),is_sellingformpage2:((qV.path.indexOf("/form/addobj_step2.asp")==0)||(qV.path.indexOf("/form/addobj_step2_dk.asp")==0)),is_sellingformpage3:((qV.path.indexOf("/accdb/addobj_step2.asp")==0)||(qV.path.indexOf("/accdb/addobj_step2_dk.asp")==0)),is_erotic_category:(decodeURIComponent(unescape(qV.path)).indexOf(qxlSite.segment_buy+"/"+qxlSite.segment_erotic)==1),is_erotic_search:(qV.href.indexOf("catalog=4")>-1),categoryID:1,categoryPath:"/"+qxlSite.segment_buy+"/",categoryIDPath:[1],categoryKeywords:"qxl",search_term:false};qxlVars.is_www=(qxlVars.is_prod||qxlVars.is_beta||qxlVars.is_dev);qxlVars.is_homepage=((location.pathname=="/")&&qxlVars.is_www);qxlVars.is_category=(qxlVars.is_category_index||qxlVars.is_category_listing);qxlVars.is_listing=(qxlVars.is_search||qxlVars.is_category_listing||qxlVars.is_special_search);qxlVars.is_erotic=(qxlVars.is_erotic_category||qxlVars.is_erotic_search);if(qxlVars.is_seller_listing){qxlVars.base_href=location.protocol+"//"+qxlSite.host_main+"/"}qxlVars.is_biler=qxlVars.is_cars;function trace(a){try{console.log(a)}catch(b){}}function isResolved(b){var a=(b.indexOf("<<")==-1);if(!a){trace("Unresolved special tag: "+b)}return a}function get_current_user(){function c(d){if(typeof(Qxl)!=="undefined"&&typeof(Qxl.Functions)!=="undefined"&&typeof(Qxl.Functions.ReadCookie)=="function"){return Qxl.Functions.ReadCookie(d)}else{if(typeof(window.GetCookie)=="function"){return window.GetCookie(d)}else{return false}}}function a(d){if((!d)||(d=="null")){return false}else{return d}}var b=a(c("QXLRicardo_Nick"));b=b?b:a(c("QXLRicardo%5FNick"));return b}qxlVars.current_user=get_current_user();var qxlBanners={display:true,segment:"default",cat1:null};var _gaq=_gaq||[];_gaq.push(["_setAccount","UA-4347806-2"]);_gaq.push(["_setDomainName",".qxl.dk"]);_gaq.push(["_trackPageview"]);function gaTrackPage(b){try{trace("track page: "+b);_gaq.push(["_trackPageview",b])}catch(a){}}function trackEventNow(a,b,c){_gaq.push(["_trackEvent",a,b,c])}function trackClickNow(a,b){_gaq.push(["_trackEvent",a,"click",b])}var mpq=[];mpq.push(["init","04f29c59e163a2187bfe469d4397147a"]);var mpm_fn=function(a){return function(){if(!mpm.disabled){mpq.push($.merge([a],arguments))}}};var mpm={disabled:(!qxlVars.is_prod),track:mpm_fn("track"),track_funnel:mpm_fn("track_funnel"),track_links:mpm_fn("track_links"),register:mpm_fn("register"),register_once:mpm_fn("register_once"),register_funnel:mpm_fn("register_funnel"),identify:mpm_fn("identify")};mpm.disabled=true;var _agTrack=_agTrack||[];_agTrack.push({cid:"46ODY"});var pp_gemius_identifier=new String("0huQ.a7yo2VmBcyFlnHSd2YlHQHBojtCo1HdSNBRVwn.C7");function it_closeOverlays(){var d=it_getElementsByClass("overlayctrl");for(var c in d){d[c].style.display="none"}document.getElementById("overlay").style.display="none"}function it_getWindowSize(){var b=[0,0];if(window.innerWidth){b[0]=window.innerWidth;b[1]=window.innerHeight}else{if(document.documentElement&&document.documentElement.clientWidth){b[0]=document.documentElement.clientWidth;b[1]=document.documentElement.clientHeight}else{if(document.body){b[0]=document.body.clientWidth;b[1]=document.body.clientHeight}}}return b}function it_getTotalSize(){var b=[0,0];b[0]=document.documentElement.scrollWidth;b[1]=document.documentElement.scrollHeight;if(document.documentElement.clientHeight>b[1]){b[0]=document.documentElement.clientWidth;b[1]=document.documentElement.clientHeight}if(document.body.scrollHeight>b[1]){b[0]=document.body.scrollWidth;b[1]=document.body.scrollHeight}return b}function Overlay(l,k,i){var p=document.getElementById(k).parentNode,j=document.getElementById("overlay");if(!l){p.style.display="none";if(j!=null){j.style.display="none"}}else{$(document).scrollTop(0);p.style.display="";j.style.display="";var o=it_getWindowSize()[1],n=p.clientHeight;if(o>n){p.style.paddingTop=Math.round((o-n)/3)+"px"}if(i===undefined){i=40}j.style.filter="alpha(opacity="+i+")";i=i/100;j.style.opacity=i;j.style.MozOpacity=i;j.style.KhtmlOpacity=i;var m=it_getTotalSize();j.style.width=m[0]+"px";j.style.height=m[1]+"px"}return false};
