$(document).ready(function() { switch (siteCode) { case "CA": try { var d = "/directdownload-dk.asp"; if ($("#container-1").length > 0) { $("#container-1 > ul").tabs({ fx: { opacity: "toggle"} }); $("#container-1").attr("class", "show") } } catch (e) { } try { if ($("#Table_DL > a").length > 0) { setTimeout(function() { $("#Table_DL > .autoPadDiv > a").tooltip({ delay: 0, showURL: false }) }, 666) } } catch (e) { } try { if ($(".footertext").length > 0) { } } catch (e) { } try { if ($(".cta").length > 0) { } } catch (e) { } try { if ($("#calogoflash").length > 0) { var c = new SWFObject("/images/flash/ca/ca_logoflash.swf", "CALogo", "158", "160", "8", "#000000"); c.addParam("wmode", "transparent"); c.addVariable("homelink", "/"); c.write("calogoflash") } } catch (e) { } try { if ($("#free500").length > 0) { var b = new SWFObject("/images/flash/ca/downloadbutton_dk.swf", "BonusFree", "350", "350", "8", "#000000"); b.addVariable("downlink", d); b.addVariable("gclid", gclid); b.addParam("wmode", "transparent"); switch (currency) { case "GBP": b.addVariable("siteCurr", "gbp"); break; case "EURO": b.addVariable("siteCurr", "eur"); break; default: b.addVariable("siteCurr", "usd"); break } b.write("free500") } } catch (e) { } try { if ($("#camovie").length > 0) { var a = new SWFObject("/images/flash/ca/ca_movie_dk.swf", "CAMovieObj", "325", "250", "8", "#000000"); a.addVariable("downlink", d); a.addVariable("gclid", gclid); a.addParam("wmode", "transparent"); a.write("camovie") } } catch (e) { } break; default: if (siteCode == "CC") { try { if ($("div#bottleman").length > 0) { setTimeout(function() { $("div#bottleman").show(); $("#bottleman").cycle({ fx: "scrollRight", next: "#bottleman", timeout: 0, easing: "backinout" }) }, 666) } } catch (e) { } } try { if ($("#Table_DL > a").length > 0) { setTimeout(function() { $("#Table_DL > a").tooltip({ delay: 0, showURL: false }) }, 666) } } catch (e) { } break } try { if ($(".rssarea").length > 0) { setTimeout(function() { rssTicker(".rssarea .headline") }, 666) } } catch (e) { } try { if ($("#videoLayer").length > 0) { setTimeout(function() { createplayer() }, 666) } } catch (e) { } try { if (($("input[name=progressive55]").length > 0) || ($("input[name^=progressive]").length > 0)) { $.ajax({ type: "GET", url: "http://www.tickerassist.co.uk/ProgressiveTickers/WebServiceProgressiveTickerScript.asmx/renderScript?form=json", success: function() { setTimeout(function() { if ($("input[name^=progressive]").length > 0) { counter = $("input[name^=progressive]").length; switch (counter) { case 16: try { ScrollTotals(currency); ShowCounters(currency) } catch (f) { } break; default: if ($("input[name=progressive55]").length > 0) { try { ScrollTotals(currency) } catch (f) { } } else { try { thisCounter = $("input[name^=progressive]").attr("name").replace("progressive", ""); ScrollCounters(thisCounter, currency) } catch (f) { } } break } } }, 2000) }, dataType: "script", cache: false }) } } catch (e) { } try { if ($("div#contact").length > 0) { setTimeout(function() { $("div#contact").show(); $("div#contact marquee").marquee() }, 666) } } catch (e) { } try { if ($("div#s2").length > 0) { setTimeout(function() { $("div#s2").show(); $("#s2").cycle({ fx: "scrollDown", easing: "backinout", timeout: 1000, delay: -500 }) }, 666) } } catch (e) { } try { if ($("div#s3").length > 0) { setTimeout(function() { $("div#s3").show(); $("#s3").cycle({ fx: "scrollDown", timeout: 250, delay: -250 }) }, 666) } } catch (e) { } try { $("a.download").click(function() { tb_download_init(this) }) } catch (e) { } }); function tb_download_init(d) { var h = d.rev; var e = "Download vores 100% virusfri gratis Kasino software"; var c; if (h.indexOf("gclid") == -1) { c = "?TB_iframe=true&height=160&width=440&modal=false" } else { c = "&TB_iframe=true&height=160&width=440&modal=false" } var b = h + c || null; var f = h || false; tb_show(e, b, f); d.blur(); return true };