var testmaster = ''; var testtarget = ''; var catid="0"; var err = "0"; var c = "''"; var attempt=1; var loaded=0; var ebaydomain = "nodomain"; /*------------------Get the eBay Item ID----------------*/ //Old Item View if(location.href.indexOf('cgi.ebay') != -1 || location.href.indexOf('cgi.sandbox.ebay') != -1 || location.href.indexOf('www.ebay') != -1){ ebaydomain = (location.hostname); //Previous Version of detecting Item ID before eBay changes //if (window.document.forms[1]){ //if(document.all){ //if (window.document.forms[1].item.value){ //itemid = window.document.forms[1].item.value; //} //} //else if (window.document.forms[1].item){ //itemid = window.document.forms[1].item.value; //} //} //New version of detecting item ID var str = location.href; var patt1 = /\b\d{9,19}\b/; itemid = (str.match(patt1)); } //New Item View - Iframe if(location.href.indexOf('.ebaydesc.') != -1 ) { ebaydomain = (location.hostname); if (ebaydomain=='vi.raptor.ebaydesc.com') { ebaydomain='.ebay.com'; } var curr_ul = location.href; var patt1= /&item=([0-9]+)&/; itemid = matched = (curr_ul.match(patt1)[1]); } var marketplace = "eb"; c = "http://global.frooition.com/freedom/ebay_global/js/freedom_template_promo.php?clientref="+ client +"&itemid="+ itemid +"&storename="+ storename +"&ebaydomain="+ ebaydomain +""; var scriptsloaded = "Y"; //Shared Scripts used by all marketplaces //Tabs var ns4 = (document.layers); var ie4 = (document.all && !document.getElementById); var ie5 = (document.all && document.getElementById); var ns6 = (!document.all && document.getElementById); function show(id) { checkseo() if (err == "1"){return;} hide() if(ie5 || ns6){ //document.getElementById(id).style.display = "inline"; document.getElementById(id).style.display = "block"; } } function hide(){ if(ie5 || ns6){ document.getElementById('tab1').style.display = "none"; document.getElementById('tab2').style.display = "none"; document.getElementById('tab3').style.display = "none"; document.getElementById('tab4').style.display = "none"; document.getElementById('tab5').style.display = "none"; } } function loadthumbs() { var thumb; for (x=0; x'); if(thumb.className === "hide") { index = thumb.className = thumb.className.indexOf("my.") === -1 ? "exhosted" : "cbhosted"; } } else { thumb.style.display = "none"; } } } //Image Resizer, Show and Hide Images var largeImagesize = 470; var fullsizeimage = 618; var fullimagecount = 0; function fullimage_layout() { if (fullimagecount < myPix.length){ if (myPix[fullimagecount] !=""){ replaceImage = new Image(); replaceImage.onload = fullnext; replaceImage.src = myPix[fullimagecount]; } } } function fullnext() { checkwidth = replaceImage.width; checkheight = replaceImage.height; hoRatioNelson = (checkwidth/checkheight); if (replaceImage.width > fullsizeimage){ replaceImage.setAttribute('width',fullsizeimage); replaceImage.setAttribute('height',(fullsizeimage/hoRatioNelson)); } parentDiv = document.getElementById('full_image_layout'); parentDiv.appendChild(replaceImage); fullimagecount++; fullimage_layout(); } function resizeimage(imagenum) { imageurl=myPix[imagenum]; document.getElementById('fullsize').style.display = "none"; hideimg(); if (imageurl !='') { //Show the Preloader var imageloader = document.createElement('img'); imageloader.setAttribute('id','large_image'); imageloader.setAttribute('name','large_image'); imageloader.setAttribute('src','http://freedom.frooition.com/files/img/ajax-loader2.gif'); oldnode = document.getElementById('large_image'); parentDiv = oldnode.parentNode; parentDiv.replaceChild(imageloader,oldnode); replaceImage = new Image(); replaceImage.onload = next; replaceImage.src = imageurl; } } function next() { checkwidth = replaceImage.width; checkheight = replaceImage.height; hoRatioNelson = (checkwidth/checkheight); if (hoRatioNelson > 1) { resizeAxelF = replaceImage.width; } else { resizeAxelF = replaceImage.height; } /*------------------Fix height and width 20.1.10----------------*/ if(typeof maxfroowidth != "undefined") { resizeAxelF = replaceImage.width; } if(typeof maxfrooheight != "undefined") { resizeAxelF = replaceImage.height; } /*------------------End height and width 20.1.10----------------*/ if (resizeAxelF > largeImagesize){ resizeAxelF = largeImagesize; document.getElementById('fullsize').style.display = "inline"; } replaceImage.setAttribute('id','large_image'); replaceImage.setAttribute('name','large_image'); /*------------------Fix height and width 20.1.10----------------*/ if (hoRatioNelson > 1 || typeof maxfroowidth != "undefined") { replaceImage.setAttribute('height',(resizeAxelF/hoRatioNelson)); replaceImage.setAttribute('width',resizeAxelF); /*------------------End height and width 20.1.10----------------*/ } else { replaceImage.setAttribute('height',resizeAxelF); replaceImage.setAttribute('width',(resizeAxelF*hoRatioNelson)); } oldnode = document.getElementById('large_image'); parentDiv = oldnode.parentNode; parentDiv.replaceChild(replaceImage,oldnode); if (imageurl !='') { var fullsizeImage = document.createElement('img') fullsizeImage.setAttribute('src', imageurl); if (fullsizeImage.width > fullsizeimage){ fullsizeImage.setAttribute('width',fullsizeimage); /*------------------Fix to scale height 01.07.10----------------*/ fullsizeImage.setAttribute('height',(fullsizeimage/hoRatioNelson)); /*------------------End fix to scale height 01.07.10----------------*/ } fullsizeImage.setAttribute('id','enlargedImage'); fullsizeImage.setAttribute('name','enlargedImage'); oldnode = document.getElementById('enlargedImage'); parentDiv = oldnode.parentNode; parentDiv.replaceChild(fullsizeImage,oldnode); } } var ns4 = (document.layers); var ie4 = (document.all && !document.getElementById); var ie5 = (document.all && document.getElementById); var ns6 = (!document.all && document.getElementById); function showimg(id){ hideimg() if(ie5 || ns6){ document.getElementById(id).style.display = "block"; } } function hideimg(){ if(ie5 || ns6){ document.getElementById('imageID').style.display = "none"; } } //Shared Function function checkseo() { if (typeof chkfroodiv === 'undefined') { var bcheck = 0 if(navigator.userAgent.indexOf("Firefox")!=-1){ bcheck = 1; } if (navigator.appVersion.indexOf("MSIE")!=-1){ bcheck = 1; } if (document.getElementById('seo')){ var hasInnerText = (document.getElementById('seo').innerText != undefined) ? true : false; if(!hasInnerText){ var copyright = document.getElementById('seo').textContent; } else { var copyright = document.getElementById('seo').innerText; } if (copyright.indexOf("www.frooition.com")<1 && copyright.indexOf("www.froo.com")<1){ if (bcheck == 1){ myThumbs = "0"; myPix = "0"; document.getElementById('background').style.display = "none"; err = "1"; } } } else { myThumbs = "0"; myPix = "0"; document.getElementById('background').style.display = "none"; err = "1" } } }var servertime = '1468420967';