Array.prototype.contains = function(x) { for (var i = 0; i < this.length; i++) { if (this[i] == x) return true; } return false; } String.prototype.ci_capp_trim = function () { return this.replace(/^\s*(\S*(\s+\S+)*)\s*$/, "$1"); }; String.prototype.ci_capp_removeDoubleQuotes = function () { return this.replace(/"/g,""); }; String.prototype.ci_capp_getDomain = function () { var dm = this; if(dm.indexOf("//") > -1) { dm = dm.substring(dm.indexOf("//") + 2); } if(dm.indexOf("www.") == 0) { dm = dm.substring(4); } return (dm.lastIndexOf("/") > -1 ? dm.substring(0,dm.lastIndexOf("/")) : dm); } String.prototype.ci_capp_getUrl = function () { var url = this; if(url.indexOf("?") > -1) { url = url.substring(0,url.indexOf("?")); } return url; } String.prototype.ci_capp_getNumericValue = function () { if( this == null ) return 0; var numVal = ""; for( var i=0; i= '0' && this.charAt(i) <= '9') ) { numVal += this.charAt(i); } } return numVal; } var ci_capf_keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"abcdefghijklmnopqrstuvwxyz"+"0123456789+/="; function ci_capf_decode64(inp){if(inp.length==0)return "";var out="";var chr1,chr2,chr3="";var enc1,enc2,enc3,enc4="";var i=0;var base64test=/[^A-Za-z0-9\+\/\=]/g;if(base64test.exec(inp)){return "";}inp=inp.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=ci_capf_keyStr.indexOf(inp.charAt(i++));enc2=ci_capf_keyStr.indexOf(inp.charAt(i++));enc3=ci_capf_keyStr.indexOf(inp.charAt(i++));enc4=ci_capf_keyStr.indexOf(inp.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;out=out+String.fromCharCode(chr1);if(enc3!=64){out=out+String.fromCharCode(chr2);}if(enc4!=64){out=out+String.fromCharCode(chr3);}chr1=chr2=chr3="";enc1=enc2=enc3=enc4="";}while(i -1 ? "WinNT" : "unknown" ); this.deviceInstall = null; this.installIter = -1; this.maxInstallIter = 100; this.bannerUI = null; this.dashBoard = null; this.printQueue = null; this.printing = false; this.scrolling = false; this.renderOtl = true; this.clientX = 0; this.clientY = 0; this.clientWin = ""; this.zoomWin = false; this.scriptCnt = 0; this.bannerShown = false; this.imgZipCodeUrl = "http://print1.coupons.com/Couponweb/ZipCodeHandler.ashx?dt=3354859120847022"; this.altBannerShown = false; this.altCodeShown = (altCode == "1"); this.bannerCouponIx = new Array(); this.lastEvent = null; this.allowCustomUI = acstm; this.adsCustomizationLevel = 0; this.otlBckg = otlbckg; this.allCpnsImg = allcpnsimg; this.allCpnsDisabledImg = allcpnsdisabledimg; this.scrollCpnsImg = scrollcpnsimg; this.byCpnsImg = bycpnsimg; this.quickPrintImgWINNT = qprtimgwinnt; this.quickPrintImg = qprtimg; this.offerSummaryTxtFont = osumtxtfnt; this.brandTxtFont = btxtfnt; this.offerTxtFont = otxtfnt; this.printActionTxtFont = patxtfnt; this.allCouponsTxt = acpnstxt; this.allCouponsTxtFont = acpnsfnt; this.scrollLeftCouponsTxt = scrlcpnstxt; this.scrollRightCouponsTxt = scrrcpnstxt; this.scrollCouponsTxtFont = scrcpnsfnt; this.byCouponsTxt = bycpnstxt; this.byCouponsTxtFont = bycpnsfnt; this.printTrackUrl = prttrackurl; this.couponsWebsiteRedirectTrackUrl = cpnswebredirtrackurl; var cDmn = window.location.toString().ci_capp_getDomain(); if( cDmn.indexOf("/") > -1 ) { cDmn = cDmn.substring(0,cDmn.indexOf("/")); } if( cDmn.indexOf(".") > -1 && cDmn.indexOf(".") < cDmn.lastIndexOf(".") && cDmn.indexOf(".",cDmn.indexOf(".")+1) < cDmn.lastIndexOf(".") ) { this.isIPDomain = true; for( var i=0; i= '0' && cDmn.charAt(i) <= '9') || cDmn.charAt(i) == '.') ) { this.isIPDomain = false; break; } } } else { this.isIPDomain = false; } this.colorMap = new Object({"aliceblue":"#f0f8ff","antiquewhite":"#faebd7","aqua":"#00ffff" ,"aquamarine":"#7fffd4","azure":"#f0ffff","beige":"#f5f5dc","bisque":"#ffe4c4","black":"#000000" ,"blanchedalmond":"#ffebcd","blue":"#0000ff","blueviolet":"#8a2be2","brown":"#a52a2a" ,"burlywood":"#deb887","cadetblue":"#5f9ea0","chartreuse":"#7fff00","chocolate":"#d2691e" ,"coral":"#ff7f50","cornflowerblue":"#6495ed","cornsilk":"#fff8dc","crimson":"#dc143c" ,"cyan":"#00ffff","darkblue":"#00008b","darkcyan":"#008b8b","darkgoldenrod":"#b8860b" ,"darkgray":"#a9a9a9","darkgrey":"#a9a9a9","darkgreen":"#006400","darkkhaki":"#bdb76b" ,"darkmagenta":"#8b008b","darkolivegreen":"#556b2f","darkorange":"#ff8c00","darkorchid":"#9932cc" ,"darkred":"#8b0000","darksalmon":"#e9967a","darkseagreen":"#8fbc8f","darkslateblue":"#483d8b" ,"darkslategray":"#2f4f4f","darkslategrey":"#2f4f4f","darkturquoise":"#00ced1","darkviolet":"#9400d3" ,"deeppink":"#ff1493","deepskyblue":"#00bfff","dimgray":"#696969","dimgrey":"#696969" ,"dodgerblue":"#1e90ff","firebrick":"#b22222","floralwhite":"#fffaf0","forestgreen":"#228b22" ,"fuchsia":"#ff00ff","gainsboro":"#dcdcdc","ghostwhite":"#f8f8ff","gold":"#ffd700" ,"goldenrod":"#daa520","gray":"#808080","grey":"#808080","green":"#008000","greenyellow":"#adff2f" ,"honeydew":"#f0fff0","hotpink":"#ff69b4","indianred":" #cd5c5c","indigo":" #4b0082","ivory":"#fffff0" ,"khaki":"#f0e68c","lavender":"#e6e6fa","lavenderblush":"#fff0f5","lawngreen":"#7cfc00" ,"lemonchiffon":"#fffacd","lightblue":"#add8e6","lightcoral":"#f08080","lightcyan":"#e0ffff" ,"lightgoldenrodyellow":"#fafad2","lightgray":"#d3d3d3","lightgrey":"#d3d3d3","lightgreen":"#90ee90" ,"lightpink":"#ffb6c1","lightsalmon":"#ffa07a","lightseagreen":"#20b2aa","lightskyblue":"#87cefa" ,"lightslategray":"#778899","lightslategrey":"#778899","lightsteelblue":"#b0c4de","lightyellow":"#ffffe0" ,"lime":"#00ff00","limegreen":"#32cd32","linen":"#faf0e6","magenta":"#ff00ff","maroon":"#800000" ,"mediumaquamarine":"#66cdaa","mediumblue":"#0000cd","mediumorchid":"#ba55d3","mediumpurple":"#9370d8" ,"mediumseagreen":"#3cb371","mediumslateblue":"#7b68ee","mediumspringgreen":"#00fa9a" ,"mediumturquoise":"#48d1cc","mediumvioletred":"#c71585","midnightblue":"#191970","mintcream":"#f5fffa" ,"mistyrose":"#ffe4e1","moccasin":"#ffe4b5","navajowhite":"#ffdead","navy":"#000080","oldlace":"#fdf5e6" ,"olive":"#808000","olivedrab":"#6b8e23","orange":"#ffa500","orangered":"#ff4500","orchid":"#da70d6" ,"palegoldenrod":"#eee8aa","palegreen":"#98fb98","paleturquoise":"#afeeee","palevioletred":"#d87093" ,"papayawhip":"#ffefd5","peachpuff":"#ffdab9","peru":"#cd853f","pink":"#ffc0cb","plum":"#dda0dd" ,"powderblue":"#b0e0e6","purple":"#800080","red":"#ff0000","rosybrown":"#bc8f8f","royalblue":"#4169e1" ,"saddlebrown":"#8b4513","salmon":"#fa8072","sandybrown":"#f4a460","seagreen":"#2e8b57" ,"seashell":"#fff5ee","sienna":"#a0522d","silver":"#c0c0c0","skyblue":"#87ceeb","slateblue":"#6a5acd" ,"slategray":"#708090","slategrey":"#708090","snow":"#fffafa","springgreen":"#00ff7f","steelblue":"#4682b4" ,"tan":"#d2b48c","teal":"#008080","thistle":"#d8bfd8","tomato":"#ff6347","turquoise":"#40e0d0" ,"violet":"#ee82ee","wheat":"#f5deb3","white":"#ffffff","whitesmoke":"#f5f5f5","yellow":"#ffff00" ,"yellowgreen":"#9acd32"}); // -------------------------------------------------- this.GetColor = function(c) { if( c == null ) { return "#ffffff"; } c = c.toString().ci_capp_trim().toLowerCase(); if( this.colorMap[c] != null ) { return this.colorMap[c]; } if( c.length != 7 ) { return "#ffffff"; } if( c.charAt(0) != '#' ) { return "#ffffff"; } for( var i=1; i<7; i++ ) { if( ! ((c.charAt(i) >= '0' && c.charAt(i) <= '9') || ((c.charAt(i) >= 'a' && c.charAt(i) <= 'f')))) return "#ffffff"; } return c; } // -------------------------------------------------- this.GetHexValue = function(i) { var hexMap = new Object({0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9" ,10:"a",11:"b",12:"c",13:"d",14:"e",15:"f"}); return hexMap[Math.floor(i/16)] + hexMap[(i%16)]; } // -------------------------------------------------- this.GetColorDeviation = function(bc,fc) { var deviation = 0; for( var i=1; i<7; i+=2 ) { var bcVal = parseInt(bc.substr(i,2),16); var fcVal = parseInt(fc.substr(i,2),16); deviation += Math.abs(fcVal - bcVal); } return deviation; } // -------------------------------------------------- this.GetContrast = function(bc,fc) { var contrastDev = 150; var totalDev = this.GetColorDeviation(bc,fc); if( totalDev >= contrastDev ) { return fc; } var devAdj = Math.ceil((contrastDev - totalDev)/3); for( var i=1; i<7; i+=2 ) { var bcVal = parseInt(bc.substr(i,2),16); var fcVal = parseInt(fc.substr(i,2),16); if( fcVal - bcVal > 0 && fcVal + devAdj <= 255 ) { fcVal += devAdj; } else if( fcVal - bcVal < 0 && fcVal - devAdj >= 0 ) { fcVal -= devAdj; } else if( bcVal + devAdj <= 255 ) { fcVal = bcVal + devAdj; } else if( bcVal - devAdj >= 0 ) { fcVal = bcVal - devAdj; } fc = fc.substr(0,i) + this.GetHexValue(fcVal) + fc.substr(i+2); } return fc; } // -------------------------------------------------- this.SetColors = function(brdColor,bckColor,osumColor,btxtColor,otxtColor,prtActColor) { this.borderColor = this.GetColor(brdColor); this.backgroundColor = this.GetColor(bckColor); this.offerSummaryColor = this.GetContrast(this.backgroundColor,this.GetColor(osumColor)); this.brandTextColor = this.GetContrast(this.backgroundColor,this.GetColor(btxtColor)); this.offerTextColor = this.GetContrast(this.backgroundColor,this.GetColor(otxtColor)); this.printActionColor = this.GetContrast(this.backgroundColor,this.GetColor(prtActColor)); } this.SetColors(brdColor,bckColor,osumColor,btxtColor,otxtColor,prtActColor); this.GetUserCode = function() { return ci_cap_iUserCode; } this.SetUserCode = function(userCode) { ci_cap_iUserCode = userCode.toString().ci_capp_getNumericValue(); } this.GetPrinterStatus = function() { return ci_cap_iPrinterStatus; } this.SetPrinterStatus = function(printerStatus) { ci_cap_iPrinterStatus = printerStatus; } this.GetPrintState = function() { return ci_cap_iPrintState; } this.SetPrintState = function(state) { ci_cap_iPrintState = state; } this.GetPrintStateCode = function() { return ci_cap_iPrintStateCode; } this.SetPrintStateCode = function(code) {ci_cap_iPrintStateCode = code; } this.GetHwnd = function() { return ci_cap_iHwnd; } this.SetHwnd = function(hwnd) { ci_cap_iHwnd = hwnd; } // -------------------------------------------------- this.CreateElement = function(type,id,attrib) { var elem = document.createElement(type); elem.id = id; elem.setAttribute("class","ci_ccss"); elem.style.height = "0px"; elem.style.width = "0px"; elem.style.position = "absolute"; elem.style.top = "-100px"; elem.style.border = "0px"; for( var i=0; i= 0 ) { // track install success if( this.clientWin == "install" ) { this.TrackAction(4); } this.GetToken(null,this.id,this.sid,this.bid,null); } else if( this.printQueue != null ) { this.GetToken(null,this.id,this.sid,this.bid,null); } else if( this.bid.length == 0 || this.sid.length == 0 ) { // do not proceed if setup script is invalid this.RenderAltBanner("error"); } else { this.LoadScript(this.id,this.sid,this.bannerType,(this.setup ? 1 : 0),this.bid,this.format); setTimeout("if( !ci_capf_Device_"+this.id+".bannerShown ) { ci_capf_Device_"+this.id+".RenderAltBanner('timeout'); }",6000); } } // -------------------------------------------------- this.InitiateCheckInstall = function() { if( this.installIter <= 0 ) { this.CheckInstall(0); } } // -------------------------------------------------- this.LoadScript = function(oId,oSid,oBtyp,oStp,oBid,oFmt) { if( this.isIPDomain ) { this.RenderAltBanner("unsupported"); return; } else if( this.altBannerShown || 6000 <= 1) { return; } else if( typeof(ci_cap_iUserCode) == "undefined" || this.GetUserCode() == "-999" ) { setTimeout("ci_capf_Device_"+this.id+".LoadScript(\""+this.id+"\",\""+this.sid+"\",\""+this.bannerType+"\",\""+(this.setup ? 1 : 0)+"\",\""+this.bid+"\",\""+this.format+"\");",300); } else if( this.altCodeShown ) { this.TrackAction(10); setTimeout("ci_capf_Device_"+ci_cap_iDateInit+".UpdateInventory("+this.sid+");",500); } else if( this.id != ci_cap_iDateInit ) { setTimeout("ci_capf_Device_"+ci_cap_iDateInit+".LoadScript(\""+this.id+"\",\""+this.sid+"\",\""+this.bannerType+"\",\""+(this.setup ? 1 : 0)+"\",\""+this.bid+"\",\""+this.format+"\");",100); } else { this.scriptCnt++; var cUrl = window.location.toString().ci_capp_getUrl(); this.CreateElement("script","CouponClickScript"+"_"+this.id+"_"+this.scriptCnt,new Array({name:"language",value:"JavaScript"} ,{name:"src",value:ci_cap_clickUrl+"CouponClick.aspx?fmt="+oFmt+"&btyp="+oBtyp+"&did="+oId+"&sid="+oSid+"&bid="+oBid+""+"&stp="+oStp+"&mac="+this.GetUserCode()+">c="+( oId == this.id ? "1" : "0")+(cUrl.length < 900 ? "&dmn="+window.location.toString().ci_capp_getDomain() : "")+"&curl="+cUrl})); } } // -------------------------------------------------- this.TrackAction = function(typ) { if( this.setup ) { return; } var cId = ""; if( typ == 1 || typ == 7 || typ == 8 ) { for( var i=0; i 0 ? "," + ci_CouponClickCoupons[this.bannerCouponIx[i]].id : ci_CouponClickCoupons[this.bannerCouponIx[i]].id); } } var userCode = this.GetUserCode(); var trackQuery = "http://bcstsupport.coupons.com/UpdateStatus.ashx"; trackQuery += "?typ=" + ( typeof(typ) == "undefined" || typ == null ? 13 : typ ); trackQuery += "&sid=" + ( typeof(this.sid) == "undefined" || this.sid == null ? 0 : this.sid ); trackQuery += "&bid=" + ( typeof(this.bid) == "undefined" || this.bid == null ? 0 : this.bid ); trackQuery += "&chnl=" + ( typeof(this.channelId) == "undefined" || this.channelId == null ? 0 : this.channelId ); trackQuery += "&mac=" + ( typeof(userCode) == "undefined" || userCode == null || userCode.length == 0 || userCode == "-999" || userCode == "999" || userCode == -999 || userCode == 999 ? 0 : userCode ); trackQuery += "&msk=" + ( typeof(ci_cap_mac) == "undefined" || ci_cap_mac == null ? "" : ci_cap_mac ); trackQuery += "&fmt=" + ( typeof(this.format) == "undefined" || this.format == null ? "" : this.format ); trackQuery += "&dmn=" + window.location.toString().ci_capp_getDomain(); trackQuery += "&cId=" + cId; trackQuery = trackQuery.toString().ci_capp_removeDoubleQuotes(); if( document.getElementById('ci_capf_Device_'+this.id+'_tracking') != null ) { document.getElementById('ci_capf_Device_'+this.id+'_tracking').innerHTML = '' +( typ == 7 && this.printTrackUrl.length > 0 ? '' : '') +( typ == 2 && this.couponsWebsiteRedirectTrackUrl.length > 0 ? '' : ''); } else { this.scriptCnt++; this.CreateElement("img","TrackingImg"+"_"+this.id+"_"+this.scriptCnt,new Array({visibility:"hidden",display:"none",position:"absolute",left:"-2000px",top:"-2000px"} ,{name:"src",value:trackQuery})); if( typ == 7 && this.printTrackUrl.length > 0 ) { this.scriptCnt++; this.CreateElement("img","TrackingImg"+"_"+this.id+"_"+this.scriptCnt,new Array({visibility:"hidden",display:"none",position:"absolute",left:"-2000px",top:"-2000px"} ,{name:"src",value:this.printTrackUrl})); } else if( typ == 2 && this.couponsWebsiteRedirectTrackUrl.length > 0 ) { this.scriptCnt++; this.CreateElement("img","TrackingImg"+"_"+this.id+"_"+this.scriptCnt,new Array({visibility:"hidden",display:"none",position:"absolute",left:"-2000px",top:"-2000px"} ,{name:"src",value:this.couponsWebsiteRedirectTrackUrl})); } } // zip code handler image if( this.id == ci_cap_iDateInit && this.imgZipCodeUrl.length > 0 ) { if( document.getElementById('ci_capf_Device_'+this.id+'_tracking') != null ) { document.getElementById('ci_capf_Device_'+this.id+'_tracking').innerHTML = ''; } else { this.scriptCnt++; this.CreateElement("img","TrackingImg"+"_"+this.id+"_"+this.scriptCnt,new Array({visibility:"hidden",display:"none",position:"absolute",left:"-2000px",top:"-2000px"} ,{name:"src",value:this.imgZipCodeUrl})); } this.imgZipCodeUrl = ""; } } // -------------------------------------------------- this.RenderAltBanner = function(scenario) { if( this.setup || this.altBannerShown || this.altCodeShown ) { return; } this.altBannerShown = true; if( typeof(ci_cap_domain_banned) != "undefined" && ci_cap_domain_banned ) { // ignore banned websites return; } if( scenario == "timeout" ) { this.TrackAction(12); } else if( scenario == "error" ) { this.TrackAction(13); } else if( scenario == "unsupported" ) { this.TrackAction(14); } else { this.TrackAction(9); } if(typeof(cbCapAltBanner) != "undefined") { setTimeout("cbCapAltBanner('ci_CouponClickAd_"+this.id+"','"+this.formatX+"','"+this.formatY+"')",1); } else { document.getElementById("ci_CouponClickAd_"+this.id).innerHTML = '' +'' + '' + ''; } } // -------------------------------------------------- this.CloseWin = function() { for( var i=0; i 10 ? 10 : ehgth-shght); } if(swdth < ewdth) { swdth += (ewdth-swdth > 15 ? 15 : ewdth-swdth); } if(swdth < ewdth || shght < ehgth) { setTimeout("ci_capf_Device_"+this.id+".ZoomWin("+shght+","+swdth+","+ehgth+","+ewdth+");",5); } else { insDiv.style.height = ehgth + "px"; insDiv.style.width = ewdth + "px"; this.zoomWin = false; if( document.getElementById("ci_loadingImg") != null ) { document.getElementById("ci_loadingImg").style.visibility = "visible"; } } } // -------------------------------------------------- this.RenderWin = function(win,e,html,wdth,hght) { if( this.id == this.GetHwnd() && this.clientWin == win ) { return }; for( var i=0; i winSize[1] ? this.clientY - ((e.clientY + hght)-winSize[1]): this.clientY) + scrollPos[1] - ieAdjY - 20; if( winSize[0] < this.clientX ) { winSize[0] = this.clientX + wdth; } this.clientX = (e != null && e.clientX + wdth > winSize[0] ? this.clientX - ((e.clientX + wdth)-winSize[0]): this.clientX) + scrollPos[0] - ieAdjX - 20; } divWin.style.top = (this.clientY < 0 ? 0 : this.clientY) + "px"; divWin.style.left = (this.clientX < 0 ? 0 : this.clientX) + "px"; divWin.innerHTML = html; setTimeout("ci_capf_Device_"+this.id+".ZoomWin(0,0,"+hght+","+wdth+");",100); } // -------------------------------------------------- this.GetWinSize = function() { var sizeOfX = 0, sizeOfY = 0; if( typeof( window.innerWidth ) == 'number' ) { // Firefox compliant sizeOfX = window.innerWidth; sizeOfY = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { // IE 6+ in 'standards compliant mode' sizeOfX = document.documentElement.clientWidth; sizeOfY = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { // IE 6 compatible sizeOfX = document.body.clientWidth; sizeOfY = document.body.clientHeight; } return [ sizeOfX-25, sizeOfY-25 ]; } // -------------------------------------------------- this.GetScrollXY = function() { var scrOfX = 0, scrOfY = 0; if( typeof( window.pageYOffset ) == 'number' ) { // Firefox compliant scrOfY = window.pageYOffset; scrOfX = window.pageXOffset; } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { // DOM compliant scrOfY = document.body.scrollTop; scrOfX = document.body.scrollLeft; } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) { // IE6 standards compliant mode scrOfY = document.documentElement.scrollTop; scrOfX = document.documentElement.scrollLeft; } return [ scrOfX, scrOfY ]; } // -------------------------------------------------- this.RenderUnsupportedPrinterBanner = function(e) { var html = this.bannerUI.GetUnsupportedPrinterBannerHtml(); this.RenderWin("unsupportedPrinter",e,html,431,331); } // -------------------------------------------------- this.RenderDashBoardLoading = function(e) { if( this.setup || this.printing ) return; var html = this.bannerUI.GetDashBoardLoadingHtml(); this.RenderWin("dashBoard",e,html,431,331); if( document.getElementById("DashBoardScript") == null ) { // get the dashboard setTimeout("ci_capf_Device_"+ci_cap_iDateInit+".GetDashboard(\""+this.id+"\",\""+this.bid+"\",\"RenderDashBoard();\");",1000); } else { this.RenderDashBoard(); } this.TrackAction(11); } // -------------------------------------------------- this.GetDashboard = function(oId,oBid,cbf) { if( document.getElementById("DashBoardScript") != null ) { return; } var scId = ""; if( typeof(ci_CouponClickCouponsServed) == "undefined" || ci_CouponClickCouponsServed == false ) { for( var i=0; i 0 ? "," + ci_CouponClickCoupons[i].id : ci_CouponClickCoupons[i].id); } } this.CreateElement("script","DashBoardScript",new Array({name:"language",value:"JavaScript"} ,{name:"src",value:ci_cap_clickUrl+"GetDashBoard.aspx?did="+oId+"&sid="+this.sid+"&bid="+oBid+""+"&mac="+this.GetUserCode()+"&scid="+scId+"&cbf="+cbf+"&dmn="+window.location.toString().ci_capp_getDomain()})); } // -------------------------------------------------- this.RenderDashBoard = function() { if( this.zoomWin || typeof(ci_capf_DeviceDashboard) == "undefined" ) { setTimeout("ci_capf_Device_"+this.id+".RenderDashBoard();",500); } else if( document.getElementById("ci_CouponClickWinShell") != null ) { if( this.dashBoard == null ) { this.dashBoard = new ci_capf_DeviceDashboard(this.id,this.sid,this.bid,this.browser,this.osVersion); } document.getElementById("ci_CouponClickWinShell").innerHTML = this.dashBoard.GetDashBoardHtml(); } } // -------------------------------------------------- this.RenderPrintImg = function() { if( this.printing ) { return; } this.printing = true; this.bannerUI.RenderPrintImg(); } // -------------------------------------------------- this.ScrollCoupons = function(dPtr) { if( this.setup || this.printing || this.scrolling || this.altBannerShown || typeof(ci_CouponClickCoupons) == "undefined" || !this.bannerShown || this.bannerCouponIx == null || this.bannerCouponIx.length == 0 ) return; if( document.getElementById("DashBoardScript") == null && (typeof(ci_CouponClickCouponsServed) == "undefined" || ci_CouponClickCouponsServed == false) ) { // get the dashboard setTimeout("ci_capf_Device_"+ci_cap_iDateInit+".GetDashboard(\""+this.id+"\",\""+this.bid+"\",\"ConfirmScroll();\");",100); } var offset = this.bannerCouponIx[this.bannerCouponIx.length-1]; // initial or subsequent impression var scrollCpnsIx = new Array(); var nCpns = ( this.format == "120x600" || this.format == "728x90" || (this.format == "300x250" && this.bannerType == 2) || (this.format == "160x600" && this.bannerType == 2) ? 3 : (this.format == "468x60" || this.format == "160x600" || this.format == "300x250" || (this.format == "120x240" && this.bannerType == 2) ? 2 : 1) ); if( dPtr > 0 ) { scrollCpnsIx = this.InsertCouponIxAfterOffset(offset+1,scrollCpnsIx,nCpns); } else { scrollCpnsIx = this.InsertCouponIxBeforeOffset(offset-nCpns,scrollCpnsIx,nCpns); } for( var i=0; i < this.bannerCouponIx.length; i++ ) { ci_CouponClickCoupons[this.bannerCouponIx[i]].shown = false; } this.bannerCouponIx = scrollCpnsIx; if( this.bannerCouponIx.length < nCpns && dPtr > 0 ) { offset = 0; this.bannerCouponIx = this.InsertCouponIxAfterOffset(offset,scrollCpnsIx,nCpns); } else if( this.bannerCouponIx.length < nCpns && dPtr == 0 ) { offset = ci_CouponClickCoupons.length -1; this.bannerCouponIx = this.InsertCouponIxBeforeOffset(offset,scrollCpnsIx,nCpns); } if( this.bannerCouponIx.length == nCpns ) { this.scrolling = true; eval("ci_capf_Device_"+this.id+".bannerUI = new ci_capf_BannerUI_"+this.format+"_"+this.bannerType+"(this.id,this.sid,this.bid,this.browser,this.osVersion,this.setup,this.bannerType," +"this.allowCustomUI,this.adsCustomizationLevel,this.otlBckg,this.allCpnsImg,this.allCpnsDisabledImg,this.scrollCpnsImg,this.byCpnsImg," +"this.quickPrintImgWINNT,this.quickPrintImg,this.offerSummaryTxtFont,this.brandTxtFont," +"this.offerTxtFont,this.printActionTxtFont,this.allCouponsTxt,this.allCouponsTxtFont," +"this.scrollLeftCouponsTxt,this.scrollRightCouponsTxt,this.scrollCouponsTxtFont,this.byCouponsTxt,this.byCouponsTxtFont," +"this.format,this.formatX,this.formatY,this.borderColor,this.backgroundColor," +"this.offerSummaryColor,this.brandTextColor,this.offerTextColor,this.printActionColor,this.bannerCouponIx,this.renderOtl);"); this.bannerUI.RenderOutline(); // track impressions this.TrackAction(8); setTimeout("ci_capf_Device_"+this.id+".bannerUI.RenderCoupons();",100); } } // -------------------------------------------------- this.InsertCouponIxAfterOffset = function(offset,ixArray,nCpns) { for( var i=offset; ixArray.length < nCpns && i < ci_CouponClickCoupons.length; i++ ) { if( i >= 0 && !ci_CouponClickCoupons[i].shown && !ci_CouponClickCoupons[i].printed ) { ci_CouponClickCoupons[i].shown = true; ixArray.push(i); } } return ixArray; } // -------------------------------------------------- this.InsertCouponIxBeforeOffset = function(offset,ixArray,nCpns) { for( var i=offset; ixArray.length < nCpns && i >= 0; i-- ) { if( i < ci_CouponClickCoupons.length && !ci_CouponClickCoupons[i].shown && !ci_CouponClickCoupons[i].printed ) { ci_CouponClickCoupons[i].shown = true; ixArray.splice(0,0,i); } } return ixArray; } // -------------------------------------------------- this.ConfirmScroll = function() { // dummy func } // -------------------------------------------------- this.ShowBanner = function(rtry) { if( rtry < 16 && typeof(ci_CouponClickCoupons) == "undefined" ) { setTimeout("ci_capf_Device_"+this.id+".ShowBanner("+(rtry+1)+");",300); } else if( this.altBannerShown ) { return; } else { // initial or subsequent impression var actType = (this.bannerShown ? 8 : 1); this.bannerShown = true; this.printing = false; this.bannerCouponIx = new Array(); var nCpns = ( this.format == "120x600" || this.format == "728x90" || (this.format == "300x250" && this.bannerType == 2) || (this.format == "160x600" && this.bannerType == 2) ? 3 : (this.format == "468x60" || this.format == "160x600" || this.format == "300x250" || (this.format == "120x240" && this.bannerType == 2) ? 2 : 1) ); if( typeof(ci_CouponClickCoupons) != "undefined" ) { for( var i=0; this.bannerCouponIx.length < nCpns && i 0 ? "," + ci_CouponClickCoupons[cIx].id : ci_CouponClickCoupons[cIx].id); ci_CouponClickCoupons[cIx].printed = true; } } if( cId.length > 0 ) { return "&cid="+cId+"&scid="; } for( var i=0; i 0 ? "," + ci_CouponClickCoupons[this.bannerCouponIx[i]].id : ci_CouponClickCoupons[this.bannerCouponIx[i]].id); } // get more coupons ? var scId = ""; if( typeof(ci_CouponClickCouponsServed) == "undefined" ) { for( var i=0; i 0 ? "," + ci_CouponClickCoupons[i].id : ci_CouponClickCoupons[i].id); } } return "&cid="+cId+"&scid="+scId; } } // ================================================= function ci_capf_Device_Unsupported(id,stp,btyp,sid,bid,acstm,otlbckg,allcpnsimg,allcpnsdisabledimg,scrollcpnsimg,bycpnsimg,qprtimgwinnt,qprtimg,osumtxtfnt,btxtfnt, otxtfnt,patxtfnt,acpnstxt,acpnsfnt,scrlcpnstxt,scrrcpnstxt,scrcpnsfnt,bycpnstxt,bycpnsfnt,prttrackurl,cpnswebredirtrackurl, fmtX,fmtY,altCode,brdColor,bckColor,osumColor,btxtColor,otxtColor,prtActColor) { ci_capf_Device.call(this,id,stp,btyp,sid,bid,acstm,otlbckg,allcpnsimg,allcpnsdisabledimg,scrollcpnsimg,bycpnsimg,qprtimgwinnt,qprtimg,osumtxtfnt,btxtfnt, otxtfnt,patxtfnt,acpnstxt,acpnsfnt,scrlcpnstxt,scrrcpnstxt,scrcpnsfnt,bycpnstxt,bycpnsfnt,prttrackurl,cpnswebredirtrackurl, fmtX,fmtY,altCode,brdColor,bckColor,osumColor,btxtColor,otxtColor,prtActColor); this.browser = "unsupported"; setTimeout("ci_capf_Device_"+this.id+".RenderAltBanner('unsupported');",500); } // ================================================= function ci_capf_BrowserVer(agt,brw,ver) { return ( agt.indexOf(brw) > -1 && agt.indexOf(brw) < agt.length-(brw.length+1) && ( ( agt.substr(agt.indexOf(brw)+brw.length+1,1) >= ver && agt.substr(agt.indexOf(brw)+brw.length+1,1) <= '9' ) || ( agt.substr(agt.indexOf(brw)+brw.length+1,1) >= '1' && agt.substr(agt.indexOf(brw)+brw.length+1,1) <= '9' && agt.indexOf(brw) < agt.length-(brw.length+2) && agt.substr(agt.indexOf(brw)+brw.length+2,1) >= '1' && agt.substr(agt.indexOf(brw)+brw.length+2,1) <= '9' ) )) } // ================================================= function ci_capf_InsertTopElement(type,id) { var parentElem = document.getElementById("ci_CouponClickElem"); while(parentElem.offsetParent) { parentElem=parentElem.offsetParent; } ci_capf_InsertElement(parentElem,type,id); } // ================================================= function ci_capf_InsertWinsAfterBodyElement() { if( document.getElementsByTagName("body") ) { var bObjs = document.getElementsByTagName("body"); for( var i=0; i 0) { var ci_cap_altAdCode = ci_capf_decode64(ci_cap_altAdCode); var ci_cap_fltCode = new Array(); while(ci_cap_altAdCode.indexOf(" -1) { var sScriptIx = ci_cap_altAdCode.indexOf(" 0 ) { ci_cap_fltCode.push(ci_cap_altAdCode.substring(0,sScriptIx)); ci_cap_altAdCode = ci_cap_altAdCode.substring(ci_cap_altAdCode.indexOf("")); if( eTagIx == -1 ) { // unfinished script tag break; } if( ci_cap_altAdCode.charAt(eTagIx-1) == '/' ) { // self contained script tag ci_cap_fltCode.push(ci_cap_altAdCode.substring(0,eTagIx+1)); ci_cap_altAdCode = ci_cap_altAdCode.substring(eTagIx+1); continue; } eTagIx = ci_cap_altAdCode.indexOf("",eTagIx+1); if( eTagIx == -1 ) { // unfinished script tag break; } // normal script tag ci_cap_fltCode.push(ci_cap_altAdCode.substring(0,eTagIx+1)); ci_cap_altAdCode = ci_cap_altAdCode.substring(eTagIx+1); } // push the rest of the alt code ci_cap_fltCode.push(ci_cap_altAdCode); for( var ci_cap_fltCodeIx = 0; ci_cap_fltCodeIx < ci_cap_fltCode.length; ci_cap_fltCodeIx++ ) { if( ci_cap_fltCode[ci_cap_fltCodeIx].length > 0 ) { document.write(ci_cap_fltCode[ci_cap_fltCodeIx]); } } } var ci_cap_iPrinterStatus=1,ci_cap_iPrintState=0,ci_cap_iPrintStateCode=1,ci_cap_iHwnd=0,ci_cap_vBrxObjMimeType="",ci_cap_allowCustomUI=true; if( typeof(ci_cap_iDate) != "undefined" ) { ci_cap_iDate++; } else { var ci_cap_iDate = (new Date()).getTime().toString(); var ci_cap_iDateInit = ci_cap_iDate; } var ci_cap_bannerFmt = (typeof(ci_cap_format) == "undefined" || ci_cap_format.toString().toLowerCase().indexOf("x") == -1 ? "120x600" : ci_cap_format.toString().toLowerCase().ci_capp_trim().ci_capp_removeDoubleQuotes()); var ci_cap_bannerFmt_x = (ci_cap_bannerFmt.substring(0,ci_cap_bannerFmt.indexOf("x"))).ci_capp_trim(); var ci_cap_bannerFmt_y = (ci_cap_bannerFmt.substring(ci_cap_bannerFmt.indexOf("x")+1)).ci_capp_trim() ci_cap_bannerFmt = (ci_cap_bannerFmt_x+"x"+ci_cap_bannerFmt_y); if( ci_cap_bannerFmt != "120x240" && ci_cap_bannerFmt != "120x600" && ci_cap_bannerFmt != "160x600" && ci_cap_bannerFmt != "180x150" && ci_cap_bannerFmt != "468x60" && ci_cap_bannerFmt != "300x250" && ci_cap_bannerFmt != "728x90" ) { ci_cap_bannerFmt = "120x600"; ci_cap_bannerFmt_x = "120"; ci_cap_bannerFmt_y = "600"; } if( typeof(ci_cap_dmAds) == "undefined" ) { var ci_cap_dmAds = new Array(); } if( ci_cap_dmAds.length <= 6 || (typeof(ci_cap_setup) != "undefined" && ci_cap_setup == true)) { ci_cap_dmAds.push(ci_cap_iDate); } if( typeof(ci_cap_iUserCode) == "undefined" ) { var ci_cap_iUserCode="-999"; } document.write(""); if( document.getElementById("ci_CouponClickElem") == null ) { document.write("
"); document.write(""); document.write("
"); } document.write("
"); var ci_cap_conStr = '('+ci_cap_iDate +','+(typeof(ci_cap_setup) != "undefined" && ci_cap_setup == true ? "true" : "false") +','+(typeof(ci_cap_bannerType) != "undefined" && ci_cap_bannerType == "2" ? "2" : "1") +',"'+(typeof(ci_cap_scriptId) == "undefined" || ci_cap_scriptId == null ? "0" : ci_cap_scriptId.toString().ci_capp_trim().ci_capp_removeDoubleQuotes())+'"' +',"'+(typeof(ci_cap_bid) == "undefined" || ci_cap_bid == null ? "" : ci_cap_bid.toString().ci_capp_trim().ci_capp_removeDoubleQuotes())+'"' +',"'+(ci_cap_allowCustomUI == true ? "true" : "false")+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_otlBckg) != "undefined" && ci_cap_otlBckg != null ? ci_cap_otlBckg.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : '#96979B')+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_allCpnsImg) != "undefined" && ci_cap_allCpnsImg != null ? ci_cap_allCpnsImg.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : ci_cap_clickImageUrl+'allCpnsMsg/'+ci_cap_bannerFmt+'.jpg')+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_allCpnsDisabledImg) != "undefined" && ci_cap_allCpnsDisabledImg != null ? ci_cap_allCpnsDisabledImg.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : ci_cap_clickImageUrl+'allCpnsMsg/'+ci_cap_bannerFmt+'_disabled.jpg')+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_scrollCpnsImg) != "undefined" && ci_cap_scrollCpnsImg != null ? ci_cap_scrollCpnsImg.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : ci_cap_clickImageUrl+'scrollCpns/'+ci_cap_bannerFmt+'.jpg')+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_byCpnsImg) != "undefined" && ci_cap_byCpnsImg != null ? ci_cap_byCpnsImg.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : ci_cap_clickImageUrl+'byCpns/'+ci_cap_bannerFmt+'.jpg')+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_quickPrintImgWINNT) != "undefined" && ci_cap_quickPrintImgWINNT != null ? ci_cap_quickPrintImgWINNT.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : ci_cap_clickImageUrl+'quickPrint/'+ci_cap_bannerFmt+'.gif')+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_quickPrintImg) != "undefined" && ci_cap_quickPrintImg != null ? ci_cap_quickPrintImg.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : ci_cap_clickImageUrl+'quickPrint/'+ci_cap_bannerFmt+'.png')+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_offerSummaryTxtFont) != "undefined" && ci_cap_offerSummaryTxtFont != null ? ci_cap_offerSummaryTxtFont.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : "")+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_brandTxtFont) != "undefined" && ci_cap_brandTxtFont != null ? ci_cap_brandTxtFont.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : "")+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_offerTxtFont) != "undefined" && ci_cap_offerTxtFont != null ? ci_cap_offerTxtFont.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : "")+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_printActionTxtFont) != "undefined" && ci_cap_printActionTxtFont != null ? ci_cap_printActionTxtFont.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : "font-family: Verdana, Tahoma, Arial, Times New Roman; font-weight: bold;")+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_allCpnsTxt) != "undefined" && ci_cap_allCpnsTxt != null ? ci_cap_allCpnsTxt.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : "see all coupons ►")+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_allCpnsFont) != "undefined" && ci_cap_allCpnsFont != null ? ci_cap_allCpnsFont.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : "font-family: Verdana, Tahoma, Times New Roman; font-weight: bold;")+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_scrollLeftCpnsTxt) != "undefined" && ci_cap_scrollLeftCpnsTxt != null ? ci_cap_scrollLeftCpnsTxt.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : "◄ scroll c")+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_scrollRightCpnsTxt) != "undefined" && ci_cap_scrollRightCpnsTxt != null ? ci_cap_scrollRightCpnsTxt.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : "oupons ►")+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_scrollCpnsFont) != "undefined" && ci_cap_scrollCpnsFont != null ? ci_cap_scrollCpnsFont.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : "font-family: Verdana, Tahoma, Times New Roman; font-weight: bold;")+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_byCpnsTxt) != "undefined" && ci_cap_byCpnsTxt != null ? ci_cap_byCpnsTxt.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : "by COUPONS.COM")+'"' +',"'+(ci_cap_allowCustomUI && typeof(ci_cap_byCpnsFont) != "undefined" && ci_cap_byCpnsFont != null ? ci_cap_byCpnsFont.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : "font-family: Verdana, Tahoma, Times New Roman; font-weight: bold;")+'"' +',"'+(typeof(ci_cap_printTrackUrl) != "undefined" && ci_cap_printTrackUrl != null ? ci_cap_printTrackUrl.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : "")+'"' +',"'+(typeof(ci_cap_couponsWebsiteRedirectTrackUrl) != "undefined" && ci_cap_couponsWebsiteRedirectTrackUrl != null ? ci_cap_couponsWebsiteRedirectTrackUrl.toString().ci_capp_trim().ci_capp_removeDoubleQuotes() : "")+'"' +',"'+ci_cap_bannerFmt_x+'","'+ci_cap_bannerFmt_y+'","'+(ci_cap_altAdCode.length > 0 ? 1 : 0)+'"' +',"'+(typeof(ci_cap_borderColor) == "undefined" || ci_cap_borderColor == null ? "#000000" : ci_cap_borderColor.toString().ci_capp_trim().ci_capp_removeDoubleQuotes())+'"' +',"'+(typeof(ci_cap_backgroundColor) == "undefined" || ci_cap_backgroundColor == null ? "#198CCB" : ci_cap_backgroundColor.toString().ci_capp_trim().ci_capp_removeDoubleQuotes())+'"' +',"'+(typeof(ci_cap_offerSummaryColor) == "undefined" || ci_cap_offerSummaryColor == null ? "#ffffff" : ci_cap_offerSummaryColor.toString().ci_capp_trim().ci_capp_removeDoubleQuotes())+'"' +',"'+(typeof(ci_cap_brandTextColor) == "undefined" || ci_cap_brandTextColor == null ? "#FBF14D" : ci_cap_brandTextColor.toString().ci_capp_trim().ci_capp_removeDoubleQuotes())+'"' +',"'+(typeof(ci_cap_offerTextColor) == "undefined" || ci_cap_offerTextColor == null ? "#ffffff" : ci_cap_offerTextColor.toString().ci_capp_trim().ci_capp_removeDoubleQuotes())+'"' +',"'+(typeof(ci_cap_printActionColor) == "undefined" || ci_cap_printActionColor == null ? "#0000ff" : ci_cap_printActionColor.toString().ci_capp_trim().ci_capp_removeDoubleQuotes())+'"' +');'; if( document.body != null && navigator != null && navigator.userAgent != null && ci_capf_BrowserVer(navigator.userAgent.toLowerCase(),"msie",6) && typeof(ci_capf_Device_IE) != "undefined" && (ci_cap_dmAds.length <= 6 || (typeof(ci_cap_setup) != "undefined" && ci_cap_setup == true))) { document.write(""); try { if( document.getElementById("ci_brxpdf1") == null ) { var isPMinst = new ActiveXObject("cpbrkpie.Coupon6Ctrl.1"); if (isPMinst != null) { document.write(''); } } } catch (e) { } if( ci_cap_dmAds.length == 1 ) { var ci_capf_PrevonLoad = null; if( typeof(window.onload) == 'function' ) { ci_capf_PrevonLoad = window.onload; window.onload = function(){ci_capf_PrevonLoad(); ci_capf_InsertWinsAfterBodyElement(); return false;} } else { window.onload = function(){ci_capf_InsertWinsAfterBodyElement(); return false;} } } setTimeout("ci_capf_Device_"+ci_cap_iDate+" = new ci_capf_Device_IE"+ci_cap_conStr,1); } else if( document.body != null && navigator != null && navigator.userAgent != null && navigator.userAgent.toLowerCase().indexOf("windows nt 4") == -1 && navigator.userAgent.toLowerCase().indexOf("windows") > -1 && ci_capf_BrowserVer(navigator.userAgent.toLowerCase(),"firefox",1) && typeof(ci_capf_Device_Mozilla) != "undefined" && (ci_cap_dmAds.length <= 6 || (typeof(ci_cap_setup) != "undefined" && ci_cap_setup == true))) { ci_capf_InsertTopElement("div","ci_WinContainer_"+ci_cap_iDate); setTimeout("ci_capf_Device_"+ci_cap_iDate+" = new ci_capf_Device_Mozilla"+ci_cap_conStr,1); } else if( document.body != null && navigator != null && navigator.userAgent != null && navigator.userAgent.toLowerCase().indexOf("windows") == -1 && ci_capf_BrowserVer(navigator.userAgent.toLowerCase(),"safari",2) && typeof(ci_capf_Device_Safari) != "undefined" && (ci_cap_dmAds.length <= 6 || (typeof(ci_cap_setup) != "undefined" && ci_cap_setup == true))) { ci_capf_InsertTopElement("div","ci_WinContainer_"+ci_cap_iDate); setTimeout("ci_capf_Device_"+ci_cap_iDate+" = new ci_capf_Device_Safari"+ci_cap_conStr,1); } else { // unsupported browser setTimeout("ci_capf_Device_"+ci_cap_iDate+" = new ci_capf_Device_Unsupported"+ci_cap_conStr,1); } var ci_cap_setup=null; var ci_cap_bannerType=null; var ci_cap_borderColor=null; var ci_cap_backgroundColor=null; var ci_cap_offerSummaryColor=null; var ci_cap_brandTextColor=null; var ci_cap_offerTextColor=null; var ci_cap_otlBckg=null; var ci_cap_allCpnsImg=null; var ci_cap_allCpnsDisabledImg=null; var ci_cap_scrollCpnsImg=null; var ci_cap_byCpnsImg=null; var ci_cap_quickPrintImgWINNT=null; var ci_cap_quickPrintImg=null; var ci_cap_offerSummaryTxtFont=null; var ci_cap_brandTxtFont=null; var ci_cap_offerTxtFont = null; var ci_cap_printActionTxtFont = null; var ci_cap_allCpnsTxt=null; var ci_cap_allCpnsFont=null; var ci_cap_scrollLeftCpnsTxt=null; var ci_cap_scrollRightCpnsTxt=null; var ci_cap_scrollCpnsFont=null; var ci_cap_byCpnsTxt=null; var ci_cap_byCpnsFont=null;