var isEKStore=false; var IMAGE_SERVER = "http://pics.ebaystatic.com/aw/pics/"; var altPayPal= "This seller accepts PayPal"; var altPbpEligible = "PayPal Buyer Protection Program "; var textFreeShip = "Shipping : Free"; var textShipCost = "Shipping :"; var textShipCalc = "Shipping calculator available"; var isJSPayPal= "false"; var isJSShipCost= "false"; var isJSTrackKeyword=false; var isJSTrackCategory=false; var THUMB_PATH = "http://thumbs.ebaystatic.com/pict/"; var isEnding = false; var theDate = new Date(); var eBayDate = new Date(theDate.getTime() + theDate.getTimezoneOffset() * 60000); var eBayTimeOffset = 25200000; var errorCode = 0; var _sniplet = ""; var priceLabel = "Price"; var productLabel = "Product"; var pictureLabel = "Picture"; var timeLabel = "Time Left"; var bidsLabel = "Bids"; var headerColor = "#FFFFCC"; var borderColor = "#FFCC00"; var titleColor = "#FFCE63"; var titleFontColor = "#000000"; var fontSize = "-1"; var fontFace = "Arial"; var fontColor = "#000000"; var textBgColor = "#FFFFFF"; var endColor = "#FF0000"; var lnkcolor = "#0000FF"; var trackingProvider = "http://www.qksrv.net/click-1604427-10381315?loc="; var linkTarget = "_blank"; var viHref = "http://cgi.ebay.com/ws/eBayISAPI.dll%3FViewItem%26item%3D"; var theWorldsMarketplace = "The World's Online Marketplace(TM)"; var searchLabel = 'Search'; var logoAltText = 'eBay Marketplace Logo'; var theDisclaimer = "disclaimer"; var ebayHome = "http://pages.ebay.com/"; var disclaimerDomain = "http://pages.ebay.com/"; //var ebayHomeLogoSm = "http://pics.ebaystatic.com/aw/pics/editorkit/help/MrktPlcLogoStrspnt_85x35.gif"; //var ebayHomeLogoMd = "http://pics.ebaystatic.com/aw/pics/editorkit/help/MrktPlcLogoStrspnt_108x45.gif"; //var ebayHomeLogoLg = "http://pics.ebaystatic.com/aw/pics/editorkit/help/MrktPlcLogoLtrspnt_144x59.gif"; var ebayHomeLogoSm = "http://pics.ebaystatic.com/aw/pics/api/MrktPlcLogoStrspnt_83x35.gif"; var ebayHomeLogoMd = "http://pics.ebaystatic.com/aw/pics/api/MrktPlcLogoStrspnt_108x45.gif"; var ebayHomeLogoLg = "http://pics.ebaystatic.com/aw/pics/api/MrktPlcLogoLtrspnt_144x59.gif"; var searchLink = "http://search.ebay.com/ws/search/SaleSearch?fsoo=1&fsop=1&fts=1&ht=0&saprchi=250&saprclo=2&satitle=Britney+Spears"; var tableWidth = 340; var tableHeight = 0; var isJSEnableFlexibleHeader=true; var isJSEbayFlexibleHeader=true; var logoSize=2; var dLabel = "d" + " "; var hLabel = "h" + " "; var mLabel = "m" + " "; var sLabel = "s"; var itemCount = 2078; var varItemCount = itemCount; var searchLinkString = "'View all ' + varItemCount + ' items on eBay'"; var ekTitle = 'Britney Spears Items on Ebay'; //var ekTitleFontSize = "3"; //var ekTitleFontFace = "Arial, Helvetica, sans-serif"; var ekTitleFontSize = "-1"; var ekTitleFontFace = "Arial"; var isPrvdMediaPlex= false; var isPrvdCJ= true; var trackingID= "1604427"; var adsServed=false; var t = new Date(); var cacheBuster = escape(t.toGMTString()); var sid = ""; var ekWidth = "340"; var ekQuery = "Britney Spears"; var ekSearchURL_Base ="http://search.ebay.com"; var ekSearchURL_Full ="http://search.ebay.com/search/search.dll"; //var ekSearchURL_Base ="http://search.qa.ebay.com"; //var ekSearchURL_Full ="http://search.qa.ebay.com/search/search.dll"; var siteID ="0"; var binIcon = ""; var nnIcon = ""; function Localize(pStr) { return pStr; } function _alert(str) { // alert(str); } //#EK Keyword function _appendKC(link) { if (isJSTrackKeyword) { link+="&kw="+textTrackKeyword; } if (isJSTrackCategory) { link+="&cat="+textTrackCategory; } return link; } function _setImageSize(imgObject, imgHeight, imgWidth) { imgObject.resized=true; imgObject.height=imgHeight; imgObject.width=imgWidth; return; } function _checkLogo(imgObject, minHeight, maxHeight, minWidth, maxWidth) { var imgHeight=imgObject.height; var imgWidth=imgObject.width; if (imgHeight>maxHeight) { var tmpWidth=Math.round(1.0*maxHeight*imgWidth/imgHeight); if (tmpWidth>maxWidth) return _setImageSize(imgObject, Math.round(1.0*maxWidth*imgHeight/imgWidth), maxWidth); if (tmpWidthmaxWidth) { var tmpHeight=Math.round(1.0*maxWidth*imgHeight/imgWidth); return _setImageSize(imgObject, tmpHeight>minHeight?tmpHeight:minHeight, maxWidth); } if (imgWidthmaxHeight) return _setImageSize(imgObject, maxHeight, minWidth); return _setImageSize(imgObject, tmpHeight, minWidth); } } //$EK Keyword function _genLink(href, caption) { var link = ""; if (isPrvdMediaPlex) { if (adsServed) { link = "" + caption + ""; link += "\" style=\"color:"+lnkcolor+"\">" + caption + ""; _alert(link); return link; } function _genItemLink(itemId, title) { var link = ""; if (isEKStore) { link = "" + title + ""; return link; } if (isPrvdMediaPlex) { if (adsServed) { link = "" + title + ""; } else { link = "" + title + ""; } link += "\" style=\"color:"+lnkcolor+"\">" + title + ""; _alert(link); return link; } function _getPaypalInfo(pbpEligible, ppEligible) { var str =""; if(isJSPayPal == 'true'){ if(pbpEligible == 'true'){ str += ''; //str += ''; } else { if( ppEligible == 'true'){ str += ''; } } } return str; } function _getShipPrice(price,shipPrice,shippingType){ var strShip =""; if(isJSShipCost =='true'){ if ( shippingType == '0' ) { strShip += '' + price + ''; } else if ( shippingType == '2' ) { strShip += '' + price + ''; } else if(shippingType == '3'){ strShip += '' + price + ''; } else { //NOT_SPECIFIED == 0; FLAT_RATE == 1; CALCULATED_RATE == 2 // By depending on shippingFee to be 0 or 1; we do not care whether // BE sets shippingType to 0 or 1. // We will detect free shipping by checking if shippingFee is null. if ( shipPrice != '') { strShip += '' + price + ''; } else { strShip += '' + price + ''; } } }else{ strShip += price ; } return strShip; } function _docWrite(str) { _sniplet += str; if (fooStr) alert(str); } var fooStr = false; function _getSniplet() { _eBaySniplet(); return _sniplet; } function _write(str) { _docWrite('' + str + ''); } function _writeWithColor(str, textColor) { _docWrite('' + str + ''); } function _spacer(w, h) { return ''; } function _cleanTitle(str) { var title = new String(str); return title.replace(/\*/g, """); } function _rowDiv(colSpan) { _docWrite('
' + _spacer("100%", 2) + '
'); _docWrite('
' + _spacer("100%", 1) + '
'); _docWrite('
' + _spacer("100%", 2) + '
'); } function _tracking() { //alert("isPrvdMediaPlex" + isPrvdMediaPlex + " adsServed: " + adsServed); var str = ""; if (isPrvdMediaPlex) { if (adsServed) { str = ''; } else { str = ''; } } return str; } function _header() { var imgHeight = 45; //#EK Keyword if (isJSEnableFlexibleHeader) { //$EK Keyword _docWrite('

'); _docWrite('
'); _docWrite('' + _spacer(1, 1) + _tracking() + ''); _docWrite(' | '+ _spacer((tableWidth - 2), 1) + ''); _docWrite(' | ' + _spacer(1, 1) + ''); //#EK Keyword if (!isJSEbayFlexibleHeader) { _docWrite('
'); _docWrite(_genLink(ebayHome, '')); } else { //$EK Keyword if(logoSize==3) { _docWrite('
'); _docWrite(_genLink(ebayHome, '')); } else if(logoSize==2) { _docWrite('
'); _docWrite(_genLink(ebayHome, '')); } else { _docWrite('
'); _docWrite(_genLink(ebayHome, '')); } //#EK Keyword } } //$EK Keyword _docWrite('

'); _docWrite('

'); _docWrite('
'); _docWrite('' + _spacer(1, 1) + ''); _docWrite(' | '); _docWrite(''+ _spacer(5, 1)); _docWrite(''+ekTitle+''); _docWrite(''); _docWrite(' | ' + _spacer(1, 1) + ''); _docWrite('

'); _docWrite('

'); _docWrite('
'); _docWrite('' + _spacer(1, 1) + ''); _docWrite(' | ' + _spacer(5, 1) + ''); _docWrite(' | '); /* _docWrite(' '); _docWrite('
'); _docWrite('' + _spacer(1, 1) + ''); _docWrite(' | '); _docWrite(''); _docWrite(''+ekTitle+''); _docWrite(''); _docWrite(' | ' + _spacer(1, 1) + ''); _docWrite('
'); */ _docWrite(' '); } function _footer(disClaimerHelper) { _docWrite(' '); _docWrite(''); _docWrite(' | ' + _spacer(5, 1) + ''); _docWrite(' | ' + _spacer(1, 1) + ''); _docWrite('
'); disClaimerHelper(); _docWrite('
'); _docWrite('' + _spacer(1, 1) + ''); _docWrite(' | ' + _spacer("100%", 1) + ''); _docWrite(' | ' + _spacer(1, 1) + ''); _docWrite('
'); _docWrite('' + _spacer("100%", 1) + ''); _docWrite('
'); _docWrite('

'); } function _disclaimer(colSpan, disclaimer) { _docWrite('
' + _spacer(1, 1) + ''); _docWrite(''); _docWrite('

'); if (errorCode > 0) { //_docWrite('' + errorCode + ''); } else { _docWrite(' | ' + _spacer(10, 1) + ' | '); if (itemCount > 0) { _write(_genLink(escape(searchLink), eval(searchLinkString) )); } else { _write(_spacer(1, 1)); } _docWrite(''); if (disclaimer && itemCount > 0) { _docWrite(' | '); _write(_genLink(escape(disclaimerDomain + "help/community/editorkitlegal.html"), '' + theDisclaimer + '')); _docWrite(''); } _docWrite(' | ' + _spacer(10, 1) + ''); } _docWrite('

'); _docWrite(''); _docWrite('' + _spacer(1, 1) + '
'); } function _worldMarketPlaceLink() { itemCount = 0; _docWrite("
" + _spacer(5,5) + "

"); _docWrite(_genLink(ebayHome, theWorldsMarketplace)); _docWrite("

"); } function strTrim() { // Match space at the beginning and end of a string and replace it with // empty strings. return this.replace(/^\s+/, '').replace(/\s+$/, ''); } String.prototype.trim = strTrim; //#EK Keyword function _nullSearch(formObj) { var trackingSearchLink=trackingProvider; var queryString=formObj.satitle.value; var nullQuery=encodeURIComponent(queryString); var nullSearchLink=encodeURIComponent(ekSearchURL_Full+"?satitle="+queryString); if (isPrvdMediaPlex) { if (adsServed) trackingSearchLink+="mpt="+cacheBuster+"&mpro="+nullSearchLink; else trackingSearchLink+="loc="+nullSearchLink; } else trackingSearchLink+=nullSearchLink; if (isPrvdCJ&&(sid!=null&&sid!="")) trackingSearchLink+="&SID="+sid; if (isJSTrackKeyword) trackingSearchLink+="&kw="+nullQuery; if (isJSTrackCategory) trackingSearchLink+="&cat="+textTrackCategory; formObj.action='javascript: document.location="'+encodeURIComponent(trackingSearchLink)+'"'; return true; } //$EK Keyword function _ShowSearchBox() { itemCount = 0; _docWrite('
' + _spacer(8,5) + '

'); //#EK Keyword var trackingProviderReal=isPrvdMediaPlex?trackingProvider.slice(0, -2):trackingProvider; _docWrite(''); //$EK Keyword _docWrite(''+_spacer(8,8)+''); _docWrite("

"); } function _padNumber(theNumber) { if (theNumber < 10) return "0" + theNumber; return theNumber; } function _getTimeLeft(itemDate) { isEnding = false; //reset global for font color var offSetTime = itemDate.getTime() + eBayTimeOffset; //offset for pst. //var offSetTime = itemDate.getTime() ; var diffTime = offSetTime - eBayDate.getTime(); var seconds = Math.floor(diffTime / 1000) % 60; var minutes = Math.floor(diffTime / (60 * 1000)) % 60; var hours = Math.floor(diffTime / (60 * 60 * 1000)) % 24; var days = Math.floor(diffTime / (24 * 60 * 60 * 1000)); if (diffTime < 3600000 /* msec */) isEnding = true; // set global for font color var timeLeft = _spacer(8, 1); if (days > 0) { timeLeft = timeLeft + days + dLabel + _padNumber(hours) + hLabel + _padNumber(minutes) + mLabel; } else if (hours > 0) { timeLeft = timeLeft + hours + hLabel + _padNumber(minutes) + mLabel; } else if (minutes > 0) { timeLeft = timeLeft + minutes + mLabel; } else { timeLeft = timeLeft + "<01" + mLabel; } return timeLeft; } function _genImg(imgInfo,itemId) { var str = ""; str += _spacer(5,1); if (imgInfo == 2) { //display Item image str += ''; } else if (imgInfo == 1) { // display camera icon str += ''; } else { // display spacer image str += ''; } str += _spacer(5,1); if (imgInfo > 0) { return _genItemLink(itemId,str); } else { return str; } } // display type 5 function _labels5() { _docWrite('
'); _write(pictureLabel); _docWrite(''); _write(productLabel); _docWrite(''); _write(priceLabel); _docWrite('
'); _rowDiv(3); } function _item5(itemId, title, price, shipPrice,shippingType, imgInfo,pbpEligible,ppEligible) { _docWrite('
'); _docWrite(''); _docWrite(_genImg(imgInfo,itemId)); _docWrite(''); _docWrite(''); _write(_genItemLink(itemId, _cleanTitle(title))); _write(_getPaypalInfo(pbpEligible,ppEligible)); _docWrite(''); _write(_getShipPrice(price, shipPrice,shippingType)); _docWrite('
'); _rowDiv(3); } function _disclaimer5() { _disclaimer(5, true); } function _eBaySniplet() { _alert("style 5"); _header(); _labels5(); _item5("7316815012", "Britney Spears modern ART Ltd Edition photo print cds -", "$6.71","","-1", 2,"true","true" ); _item5("6388025321", "Britney Spears - Britney in Hawaii: Live and More DVD ", "$6.00","","-1", 2,"","true" ); _item5("4719631191", "CD GROOVE STATION 6 Moby TLC Britney Spears MINT SEALED", "$9.99","","-1", 1,"true","true" ); _item5("7316822828", "Britney Spears and Madonna Modern ART print kiss cds -", "$6.71","","-1", 2,"true","true" ); _item5("4719633135", "Britney Spears Greatest Hits My Prerogative CD", "$4.26","","-1", 2,"","true" ); _item5("6526851664", "BRITNEY SPEARS HAND SIGNED PHOTO w/COA", "$21.14","","-1", 2,"true","true" ); _item5("5573864426", "BRITNEY SPEARS FASHION DOLL ", "$3.00","","-1", 1,"true","true" ); _item5("4718748672", "Britney Spears - In The Zone (New Mint CD)", "$8.61","","-1", 1,"true","true" ); _item5("7509197782", "BRITNEY SPEARS' ACTUAL OWNED & WORN ABERCROMBIE SHORTS", "$20.52","","-1", 2,"","true" ); _item5("4719635060", "Greatest Hits:My Prerogative BRITNEY SPEARS 2-CD Lmtd.", "$8.99","","-1", 1,"true","true" ); _item5("4720769670", "Stronger - Britney Spears (DJ Remix CD) [Maxi Single] ", "$9.05","","-1", 2,"","true" ); _item5("4543332587", "Britney Spears 1999 Book Lots of Pix+Info NEW!", "$6.95","","-1", 1,"","true" ); _item5("5573865561", "BRITNEY SPEARS FASHION DOLL ", "$3.00","","-1", 1,"true","true" ); _item5("5573388152", "Britney Spears (Curious) perfume *4ML Sample* DECANT", "$7.99","","-1", 2,"","true" ); _item5("7508737510", "BRITNEY SPEARS Worn Swatch Jeans Worn Outfit", "$2.99","","-1", 1,"true","true" ); _item5("4373551611", "NEW Britney Spears Curious 6.8 ozshower gel- HUGE", "$11.86","","-1", 1,"true","true" ); _item5("4719637969", "BRITNEY SPEARS TOXIC 12" JIVE 3 MIXES DANCE CLUB REMIX", "$8.95","","-1", 1,"true","true" ); _item5("5573866295", "BRITNEY SPEARS FASHION DOLL ", "$3.00","","-1", 1,"true","true" ); _item5("7508233669", "BRITNEY SPEARS SIGNED HOT 8X10 AUTOGRAPH HOT WOW #10", "$6.99","","-1", 1,"true","true" ); _item5("5573867875", "BRITNEY SPEARS FASHION DOLL ", "$3.00","","-1", 1,"true","true" ); _item5("6170895923", "Britney Spears Candid 4x6 Photo Set FREE Shipping", "$5.00","","-1", 1,"","" ); _item5("6170895978", "Britney Spears 4x6 Photo Set FREE SHIPPING", "$5.00","","-1", 1,"","" ); _item5("7508235746", "Britney Spears Onyx Hotel Pins (Toxic, My Perogative)", "$3.50","","-1", 2,"true","true" ); _item5("7508236013", "BRITNEY SPEARS Worn Dress 3 card Set-Pepsi Super Bowl", "$14.99","","-1", 2,"true","true" ); _item5("4721385083", "BRITNEY SPEARS ~ RARE 2 CD h", "$5.95","","-1", 1,"","" ); _item5("7508236213", "A LARGE PLAYING CARD FROM BRITNEY SPEARS ", "$50.00","","-1", 0,"","true" ); _item5("5573395401", "BRAND NEW SET OF BRITNEY SPEARS CURIOUS IN GIFT BOX", "$25.01","","-1", 2,"","true" ); _item5("4720779493", "In The Zone - Britney Spears (CD 2003) NEW", "$3.99","","-1", 2,"true","true" ); _item5("4718764950", "Britney Spears (baby one more time)", "$3.45","","-1", 1,"true","true" ); _item5("4721394172", "BEST OF BRITNEY SPEARS ..KARAOKE CDG N.R.", "$5.99","","-1", 1,"true","true" ); _item5("4721394181", "BEST OF BRITNEY SPEARS & JEWEL KARAOKE CDG N.R.", "$5.99","","-1", 1,"true","true" ); _item5("6956174645", "BRITNEY SPEARS", "$3.99","","-1", 1,"true","true" ); _item5("7315430786", "BRITNEY SPEARS ORIGINAL ART SKETCH DRAWING CELEBRITY ", "$9.99","","-1", 2,"true","true" ); _item5("4719653546", "NIB Britney Spears oops I Did it Again Barbie Doll ", "$9.99","","-1", 2,"true","true" ); _item5("7508244746", " (20) BRITNEY SPEARS Got Milk ? POSTERS", "$19.95","","-1", 1,"true","true" ); _item5("4719654343", "NIB Britney Spears oops I Did it Again Barbie Doll ", "$9.99","","-1", 2,"true","true" ); _item5("6170908822", "BRITNEY SPEARS #369 *NICE RACK, CLOSE UP* NEW! 8X10", "$2.99","","-1", 1,"true","true" ); _item5("4719655543", "NIB Britney Spears Lucky oops I Did it Again Barbie ", "$9.99","","-1", 2,"true","true" ); _item5("7508246330", "Britney Spears #11 8x10 - INCREDIBLE CLOSE UP!", "$6.95","","-1", 2,"true","true" ); _item5("7508246575", "Britney Spears #15 8x10 - HOTTEST B&W EVER!!", "$7.95","","-1", 1,"true","true" ); _item5("7508246644", "Britney Spears #17 8x10 - Absolutely Stunning!!", "$7.95","","-1", 1,"true","true" ); _item5("7508246835", "Britney Spears #8 8x10 - OH MY..SKIMPY TOP ON!", "$6.95","","-1", 2,"true","true" ); _item5("7508761797", "Britney Spears IN THE ZONE small promo poster !! New", "$6.71","","-1", 1,"true","true" ); _item5("7508246972", "Britney Spears & Natalie Portman #1 8x10", "$6.95","","-1", 2,"true","true" ); _item5("6386828949", "Britney Spears Ashlee Simpson Hilary Duff Duran DVD", "$9.99","","-1", 1,"true","true" ); _item5("7508762112", "BRITNEY SPEARS HAND SIGNED AUTOGRAPH PHOTO / COA", "$24.95","","-1", 2,"true","true" ); _item5("6956177204", "Britney Spears - BAZAAR - August 2001 - Near Mint ", "$2.00","","-1", 2,"","" ); _item5("4719599756", "Britney spears:Limited E My Prerogative Digipak Limited", "$4.99","","-1", 1,"true","true" ); _item5("4719599858", "britney spears My Prerogative G HITS Digipak Limited", "$4.99","","-1", 1,"true","true" ); _item5("6386830289", "(25) Britney Spears Locker Poster Coupons", "$2.95","","-1", 1,"true","true" ); _footer(_disclaimer5); } document.write(_getSniplet());