function UseAlternativeBestSellersOverlay() { return (document.getElementById('bestSellDetBoxB') ? true : false); } function DisplayBestSellerRank(rank) { var useAltOverlay = UseAlternativeBestSellersOverlay(); var bestSellDetBoxMain = document.getElementById(useAltOverlay ? 'bestSellDetBoxMain' : 'bestSellDetBox'); var bestSellDetBox = document.getElementById(useAltOverlay ? 'bestSellDetBoxB' : 'bestSellDetBox'); if( bestSellDetBox && bestSellDetBoxMain ) { bestSellDetBox.innerHTML = GetBestSellerDivHTML(rank); bestSellDetBoxMain.style.visibility = "visible"; if( document.getElementById('rotator') ) { HideRotator(); } } } function getScrollXY() { var scrOfX = 0, scrOfY = 0; if( typeof( window.pageYOffset ) == 'number' ) { //Netscape 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 ]; } function DelayedRestoreBestSellerRank(event) { var bestPromos = document.getElementById('bestPromos'); if( bestPromos ) { offsetXY = getScrollXY(); var mouseX = (event.pageX ? event.pageX : (window.event.clientX + offsetXY[0])); var mouseY = (event.pageY ? event.pageY : (window.event.clientY + offsetXY[1])); if( !IsInsideElement(bestPromos, mouseX, mouseY) ) RestoreBestSellerRank(); // no delay } } function RestoreBestSellerRank() { var useAltOverlay = UseAlternativeBestSellersOverlay(); var bestSellDetBoxMain = document.getElementById(useAltOverlay ? 'bestSellDetBoxMain' : 'bestSellDetBox'); if( bestSellDetBoxMain ) { bestSellDetBoxMain.style.visibility = "hidden"; if( document.getElementById('rotator') ) { ShowRotator(); } } } function IsInsideElement(obj, x, y) { oTop = GetElementAbsoluteTop(obj); oLeft = GetElementAbsoluteLeft(obj); oBottom = oTop + obj.offsetHeight; oRight = oLeft + obj.offsetWidth; return (x > oLeft && x < oRight && y > oTop && y < oBottom); } function GetElementAbsoluteLeft(o) { // Get an object left position from the upper left viewport corner oLeft = o.offsetLeft; // Get left position from the parent object while(o.offsetParent!=null) { // Parse the parent hierarchy up to the document element oParent = o.offsetParent; // Get parent object reference oLeft += oParent.offsetLeft; // Add parent left position o = oParent; } return oLeft; // Return left postion } function GetElementAbsoluteTop(o) { // Get an object top position from the upper left viewport corner oTop = o.offsetTop; // Get top position from the parent object while(o.offsetParent!=null) { // Parse the parent hierarchy up to the document element oParent = o.offsetParent; // Get parent object reference oTop += oParent.offsetTop; // Add parent top position o = oParent; } return oTop; // Return top position } function GetRatingBoxString(type, rate) { return '\ \ \ '+type+' Rating \ '; } function GetBestSellerDivHTML(rank) { var bsinfo = new Array(); switch(rank) { case 1: bsinfo['prId'] = '34782'; bsinfo['pgId'] = '100'; bsinfo['pfId'] = '1564'; bsinfo['name'] = 'Samsung Eternity'; bsinfo['prFriendlyURL'] = 'samsung-eternity-att'; bsinfo['reviewFriendlyURL'] = '/samsung-eternity-user-reviews'; bsinfo['desc'] = 'Sophisticated and stylish, Samsung抯 Eternity?is the perfect choice for those who crave a full touch experience plus the ... '; bsinfo['bulletPoints'] = '
  • Beautiful touch screen
  • Integrated 3.0 Megapixel Camera '; bsinfo['carrier_corpId'] = '596'; bsinfo['carrierName'] = 'AT&T'; bsinfo['carrierLogoImgURL'] = '/img/corpLogos/plSm596.gif'; bsinfo['prodImgURL'] = '/img/prod/cell-phones/att/samsung/34782_hbs.gif'; bsinfo['user_rate'] = '4.25'; bsinfo['expert_rate'] = '0'; bsinfo['price'] = 'FREE'; bsinfo['prRetailPrice'] = '$399.99'; bsinfo['promoSpotPriceDisplay'] = '\

    Product Price: $399.99

    \

    Your Price: FREE

    \ '; break; case 2: bsinfo['prId'] = '32869'; bsinfo['pgId'] = '100'; bsinfo['pfId'] = '1303'; bsinfo['name'] = 'T-Mobile Wing'; bsinfo['prFriendlyURL'] = 'tmobile-wing'; bsinfo['reviewFriendlyURL'] = '/htc-wing-user-reviews'; bsinfo['desc'] = 'The Wing is a full-featured Pocket PC, combined with a powerful mobile phone, which puts all the productivity you need in ... '; bsinfo['bulletPoints'] = '
  • Microsoft Windows Mobile 6.0 OS
  • Bluetooth 2.0 Wireless technology '; bsinfo['carrier_corpId'] = '543'; bsinfo['carrierName'] = 'T-Mobile'; bsinfo['carrierLogoImgURL'] = '/img/corpLogos/plSm543.gif'; bsinfo['prodImgURL'] = '/img/prod/cell-phones/t-mobile/htc/32869_hbs.jpg'; bsinfo['user_rate'] = '4'; bsinfo['expert_rate'] = '0'; bsinfo['price'] = 'FREE'; bsinfo['prRetailPrice'] = '$544.99'; bsinfo['promoSpotPriceDisplay'] = '\

    Product Price: $544.99

    \

    Your Price: FREE

    \ '; break; case 3: bsinfo['prId'] = '34411'; bsinfo['pgId'] = '100'; bsinfo['pfId'] = '1496'; bsinfo['name'] = 'LG Dare'; bsinfo['prFriendlyURL'] = 'lg-dare-verizon-wireless'; bsinfo['reviewFriendlyURL'] = '/lg-dare-user-reviews'; bsinfo['desc'] = 'Take the Dare! This new handset will surpass your expectations with a large 3-inch touch screen that recognizes your ... '; bsinfo['bulletPoints'] = '
  • 3\" Touch Screen
  • Virtual QWERTY Keypad '; bsinfo['carrier_corpId'] = '660'; bsinfo['carrierName'] = 'Verizon Wireless'; bsinfo['carrierLogoImgURL'] = '/img/corpLogos/plSm660.gif'; bsinfo['prodImgURL'] = '/img/prod/cell-phones/verizonwireless/lg/34411_hbs.gif'; bsinfo['user_rate'] = '4.14'; bsinfo['expert_rate'] = '4.5'; bsinfo['price'] = 'FREE'; bsinfo['prRetailPrice'] = '$429.99'; bsinfo['promoSpotPriceDisplay'] = '\

    Product Price: $429.99

    \

    Your Price: FREE

    \ '; break; case 4: bsinfo['prId'] = '35057'; bsinfo['pgId'] = '100'; bsinfo['pfId'] = '1503'; bsinfo['name'] = 'Samsung Instinct - Black'; bsinfo['prFriendlyURL'] = 'samsung-instinct-black-sprint'; bsinfo['reviewFriendlyURL'] = '/samsung-instinct-user-reviews'; bsinfo['desc'] = 'There are touchscreens, and then there抯 the Samsung Instinct? The Instinct is the touchscreen that keeps you in touch ... '; bsinfo['bulletPoints'] = '
  • Touchscreen with tactile feedback
  • Turn-by-turn GPS and Live Search '; bsinfo['carrier_corpId'] = '545'; bsinfo['carrierName'] = 'Sprint'; bsinfo['carrierLogoImgURL'] = '/img/corpLogos/plSm545.gif'; bsinfo['prodImgURL'] = '/img/prod/cell-phones/sprint/samsung/35057_hbs.gif'; bsinfo['user_rate'] = '4.35'; bsinfo['expert_rate'] = '0'; bsinfo['price'] = 'FREE'; bsinfo['prRetailPrice'] = '$499.99'; bsinfo['promoSpotPriceDisplay'] = '\

    Product Price: $499.99

    \

    Your Price: FREE

    \ '; break; case 5: bsinfo['prId'] = '35213'; bsinfo['pgId'] = '100'; bsinfo['pfId'] = '1598'; bsinfo['name'] = 'Samsung Impression'; bsinfo['prFriendlyURL'] = 'samsung-impression-att'; bsinfo['reviewFriendlyURL'] = '/samsung-impression-user-reviews'; bsinfo['desc'] = 'A great choice for those looking for the latest in multimedia and messaging, the Samsung Impression for AT&T offers one of ... '; bsinfo['bulletPoints'] = '
  • Advanced 3.2-inch touchscreen with slide out qwerty keyboard makes using the Impression fast, easy and fun
  • Customizable Widget Bar for faster access to frequently used applications. '; bsinfo['carrier_corpId'] = '596'; bsinfo['carrierName'] = 'AT&T'; bsinfo['carrierLogoImgURL'] = '/img/corpLogos/plSm596.gif'; bsinfo['prodImgURL'] = '/img/prod/cell-phones/att/samsung/35213_hbs.gif'; bsinfo['user_rate'] = '5'; bsinfo['expert_rate'] = '0'; bsinfo['price'] = 'FREE'; bsinfo['prRetailPrice'] = '$399.99'; bsinfo['promoSpotPriceDisplay'] = '\

    Product Price: $399.99

    \

    Your Price: FREE

    \ '; break; case 6: bsinfo['prId'] = '34449'; bsinfo['pgId'] = '100'; bsinfo['pfId'] = '1392'; bsinfo['name'] = 'BlackBerry?Curve?8320 Sunset'; bsinfo['prFriendlyURL'] = 'blackberry-curve-8320-sunset-tmobile'; bsinfo['reviewFriendlyURL'] = '/blackberry-8320-user-reviews'; bsinfo['desc'] = 'The BlackBerry Curve is the smallest, lightest BlackBerry ever with a QWERTY keyboard. It features a liquid silver finish ... '; bsinfo['bulletPoints'] = '
  • Smallest QWERTY Blackberry Ever
  • Access to BES and BIS email '; bsinfo['carrier_corpId'] = '543'; bsinfo['carrierName'] = 'T-Mobile'; bsinfo['carrierLogoImgURL'] = '/img/corpLogos/plSm543.gif'; bsinfo['prodImgURL'] = '/img/prod/cell-phones/t-mobile/blackberry/34449_hbs.gif'; bsinfo['user_rate'] = '4.47'; bsinfo['expert_rate'] = '4'; bsinfo['price'] = 'FREE'; bsinfo['prRetailPrice'] = '$474.99'; bsinfo['promoSpotPriceDisplay'] = '\

    Product Price: $474.99

    \

    Your Price: FREE

    \ '; break; case 7: bsinfo['prId'] = '34716'; bsinfo['pgId'] = '100'; bsinfo['pfId'] = '1408'; bsinfo['name'] = 'LG Voyager?in Titanium'; bsinfo['prFriendlyURL'] = 'lg-voyager-in-titanium-verizon-wireless'; bsinfo['reviewFriendlyURL'] = '/lg-vx10000-user-reviews'; bsinfo['desc'] = 'The new Voyager in Titanium has kept all of the amazing features from the original Voyager, and now includes Visual ... '; bsinfo['bulletPoints'] = '
  • Touch Screen
  • Full QWERTY Keyboard '; bsinfo['carrier_corpId'] = '660'; bsinfo['carrierName'] = 'Verizon Wireless'; bsinfo['carrierLogoImgURL'] = '/img/corpLogos/plSm660.gif'; bsinfo['prodImgURL'] = '/img/prod/cell-phones/verizonwireless/lg/34716_hbs.gif'; bsinfo['user_rate'] = '4.23'; bsinfo['expert_rate'] = '4'; bsinfo['price'] = 'FREE'; bsinfo['prRetailPrice'] = '$399.99'; bsinfo['promoSpotPriceDisplay'] = '\

    Product Price: $399.99

    \

    Your Price: FREE

    \ '; break; case 8: bsinfo['prId'] = '34634'; bsinfo['pgId'] = '100'; bsinfo['pfId'] = '1511'; bsinfo['name'] = 'Samsung Rant - Black'; bsinfo['prFriendlyURL'] = 'samsung-rant-black-sprint'; bsinfo['reviewFriendlyURL'] = '/samsung-sph-m540-rant-user-reviews'; bsinfo['desc'] = 'The Samsung Rant features a messaging-centric form factor in two great colors. This sideways slider hides a full qwerty ... '; bsinfo['bulletPoints'] = '
  • Sprint One Click
  • 2.0MP Camera/camcorder '; bsinfo['carrier_corpId'] = '545'; bsinfo['carrierName'] = 'Sprint'; bsinfo['carrierLogoImgURL'] = '/img/corpLogos/plSm545.gif'; bsinfo['prodImgURL'] = '/img/prod/cell-phones/sprint/samsung/34634_hbs.gif'; bsinfo['user_rate'] = '4.4'; bsinfo['expert_rate'] = '0'; bsinfo['price'] = 'You make $50.00'; bsinfo['prRetailPrice'] = '$399.99'; bsinfo['promoSpotPriceDisplay'] = '\

    Product Price: $399.99

    \

    Your Price: You make $50.00

    \ '; break; case 9: bsinfo['prId'] = '35216'; bsinfo['pgId'] = '100'; bsinfo['pfId'] = '1599'; bsinfo['name'] = 'LG Xenon Blue'; bsinfo['prFriendlyURL'] = 'lg-xenon-blue-att'; bsinfo['reviewFriendlyURL'] = '/lg-xenon-user-reviews'; bsinfo['desc'] = 'Do you like the sleek style of touch screen phones, but aren抰 completely sold on their functionality? Then we suggest the ... '; bsinfo['bulletPoints'] = '
  • Touch screen with vibration feedback
  • Slide out qwerty keyboard '; bsinfo['carrier_corpId'] = '596'; bsinfo['carrierName'] = 'AT&T'; bsinfo['carrierLogoImgURL'] = '/img/corpLogos/plSm596.gif'; bsinfo['prodImgURL'] = '/img/prod/cell-phones/att/lg/35216_hbs.gif'; bsinfo['user_rate'] = '4.75'; bsinfo['expert_rate'] = '0'; bsinfo['price'] = 'FREE'; bsinfo['prRetailPrice'] = '$349.99'; bsinfo['promoSpotPriceDisplay'] = '\

    Product Price: $349.99

    \

    Your Price: FREE

    \ '; break; case 10: bsinfo['prId'] = '34781'; bsinfo['pgId'] = '100'; bsinfo['pfId'] = '1563'; bsinfo['name'] = 'Samsung Behold Espresso'; bsinfo['prFriendlyURL'] = 'samsung-behold-espresso-tmobile'; bsinfo['reviewFriendlyURL'] = '/samsung-behold-user-reviews'; bsinfo['desc'] = 'This is the cell phone designed for capturing those special moments in life. The Samsung Behold features a 5MP camera, ... '; bsinfo['bulletPoints'] = '
  • Capacitive Touchscreen Display
  • 3G Capable for speed optimization '; bsinfo['carrier_corpId'] = '543'; bsinfo['carrierName'] = 'T-Mobile'; bsinfo['carrierLogoImgURL'] = '/img/corpLogos/plSm543.gif'; bsinfo['prodImgURL'] = '/img/prod/cell-phones/t-mobile/samsung/34781_hbs.gif'; bsinfo['user_rate'] = '4.19'; bsinfo['expert_rate'] = '3.8'; bsinfo['price'] = 'Too Low to Show'; bsinfo['prRetailPrice'] = '$499.99'; bsinfo['promoSpotPriceDisplay'] = '\

    Too Low to Show
    \ Click to See Price

    \ '; break; default: break; } var useAltOverlay = UseAlternativeBestSellersOverlay(); var userRating = ''; var expertRating = ''; var carrierLogo = ''; var prodDetailURL = '/product/product.htm?prId='+bsinfo['prId']; if(bsinfo['prFriendlyURL']) { prodDetailURL = bsinfo['prFriendlyURL']; //alert(prodDetailURL); } var prodImg = ''; var reviewURL = '/reviews/review.htm?pfId='+bsinfo['pfId']+'&rNav=2'; if(bsinfo['reviewFriendlyURL']) { reviewURL = bsinfo['reviewFriendlyURL']; } if( bsinfo['user_rate'] > 0 ) { var ratebox = GetRatingBoxString('User', bsinfo['user_rate']); if( useAltOverlay ) { userRating = '\

    \ ' + ratebox + '\ User Rating '+bsinfo['user_rate']+'\

    '; } else { userRating = '\ \

    User Rating
    '+bsinfo['user_rate']+'

    \ ' + ratebox + '\
    '; } } if( bsinfo['expert_rate'] > 0 ) { var ratebox = GetRatingBoxString('Expert', bsinfo['expert_rate']); if( useAltOverlay ) { expertRating = '\

    \ '+ ratebox + '\ Expert Rating '+bsinfo['expert_rate']+'\

    '; } else { expertRating = '\ \

    Expert Rating
    '+bsinfo['expert_rate']+'

    \ ' + ratebox + '\
    '; } } if( bsinfo['carrierLogoImgURL'] ) { carrierLogo = ''+bsinfo['carrierName']+''; } if( useAltOverlay ) { return '\
    \ '+ prodImg + '
    \ '+ carrierLogo +'\
    \
    \

    '+ bsinfo['name']+'

    \ '+ userRating +'\ '+ expertRating +'\

    '+ bsinfo['desc']+'

    \ \
    \ '+ bsinfo['promoSpotPriceDisplay'] +'\
    \ \
    \
    \
    \ More Information\ '; } else { return '\
    \ '+ prodImg + '
    \ \
    \
    \

    '+ bsinfo['name']+'

    \

    '+ bsinfo['desc']+'

    \ \
    \ '+ bsinfo['promoSpotPriceDisplay'] +'\
    \
    \
    \ '+ carrierLogo +'\ '+ userRating +'\ '+ expertRating +'\
    \ \
    \
    \ '; } }