function setDrop(){
//document.myForm.navi.selectedIndex=0;
}
if($('left-nav')){
$('left-nav').observe("click", polo.seoClickObserver);
}
function trimString (str) {
while (str.charAt(0) == ' ')
str = str.substring(1);
while (str.charAt(str.length - 1) == ' ')
str = str.substring(0, str.length - 1);
return str;
}
function emailCheck(type) // not sure if anybody uses this, but just in case i'm leaving it functional
{
var email = trimString(document.emailForm.emailAddress.value);
if (!validEmail(email))
{
alert('Please enter a valid e-mail address.');
return false;
}
if(type == 1)
{
document.emailForm.submit();
}
}
function validEmail(email)
{
var vAtSym = email.indexOf('@')
var vPeriod = email.lastIndexOf('.')
var vSpace = email.indexOf(' ')
var vLength = email.length - 1 // Array is from 0 to length-1
if (vAtSym < 1 || // '@' cannot be in first position
vPeriod <= vAtSym + 1 || // Must be atleast one valid char btwn '@' and '.'
vPeriod == vLength || // Must be atleast one valid char after '.'
vSpace != -1) // No empty spaces permitted
{
return false;
}
return true;
}
function showCustomPopUp(thisUrl,thisName,theseParams)
{
remote = open(thisUrl, thisName, theseParams);
}
// verisign POP-UP WINDOW
function popUp(url)
{
sealWin=/*window.open*/(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450');
self.name = "mainWin";
}
function jump(url)
{
if (url != "" && url != null)
{
self.location.href = url;
}
}
var fromSizeChanged = 0;
var pixelSpacing = " ";
var VerticalpixelSpacing = "
";
function getEnlargeUrl() {
return "productId=10784876";
}
function getPopupUrl() {
var temp = getEnlargeUrl();
return temp;
}
/* Dynamically fill the color dropdown based on the selection. */
function updateSelector(selector,items) {
var options = selector.options;
var selectedItem = selector.options[selector.selectedIndex].text;
for (var i = 0; i < Math.min(items.length, options.length); i++) {
options[i].value = items[i].id;
options[i].text = items[i].de;
}
/* Append options if needed: */
for (var i = Math.min(items.length, options.length); i < items.length; i++) {
var newOpt = document.createElement("OPTION");
newOpt.value = items[i].id;
newOpt.text = items[i].de;
selector.add(newOpt);
}
/* Truncate selector if needed: */
selector.length = items.length;
/* reset the color drop down to the first color */
options[0].selected = true;
syncFields(selector);
}
/*
Traverse through the itemMap array to get the colors based on productId
and build a new array with color ids and descriptions
*/
function getStringColors(pidSku) {
var pidSkuArray = pidSku.split("|");
if(pidSkuArray.length >= 2) {
productId = pidSkuArray[0];
colorId = pidSkuArray[1];
}
var strSizes = new Array();
var j = 0;
for(var i = 0; i < itemMap.length; i++) {
if(itemMap[i].pid == productId && itemMap[i].cId == colorId) {
strSizes[j] = itemMap[i].pid+"|"+itemMap[i].sku;
j++;
strSizes[j] = itemMap[i].sDesc;
j++;
}
}
return strSizes;
}
/* Populate color array to pass to updateSelector function */
function populateColors(sel_element1, sel_element2) {
var val = sel_element1.options[sel_element1.selectedIndex].value;
var items = new Array();
var htmlString = "";
var colorArray = new Array();
var selGenColor = "";
var foundFirstSwatch = false;
thisProdShot = window.document.prodShot_0;
colorField = document.orderForm.colors_0;
var myArray = new Array();
colorArray = getColorData(val);
var counter = 0;
var genericColorAvailable = false;
/* Variables to load the video on page load if itemvideo/flash is attached to the first swatch. */
var itemVideoCounter = 0;
var itemVideoAtchToFirstSwatch = false;
/* Enter this only if generic colors data is available for the product. */
if(genColorsAvailable) {
for (var i = 0; i < colorArray.length; i++) {
for(var t=0;t" ;
htmlString = htmlString + " ";
htmlString = htmlString + pixelSpacing;
altVideo = true;
prodFO.addVariable("assetRef", orderedImageMap_0[i].flash);
prodFO.write("imageDiv");
} else if (colorArray[i].flash != undefined && colorArray[i].flash !="") {
htmlString = htmlString + "" ;
htmlString = htmlString + " ";
htmlString = htmlString + pixelSpacing;
} else {
htmlString = htmlString + "" ;
htmlString = htmlString + " ";
htmlString = htmlString + pixelSpacing;
}
counter++;
if(!foundFirstSwatch) {
foundFirstSwatch = true;
selSwatchReg = colorArray[i].reg;
selSwatchEnh = colorArray[i].enh;
selSwatchCid = colorArray[i].cId;
}
/* Counter for itemvideo playing on load of the page. */
itemVideoCounter++;
}
}
}
}
}
}
}
/* Enter this loop if there was no generic color data(genColorsAvailable) for the product or if the selected size did
not return any colors (genericColorAvailable) mapped to the color filter applied. */
if(!genColorsAvailable || !genericColorAvailable) {
for (var i = 0; i < colorArray.length; i++) {
var colorArrayObj = colorArray[i];
if(colorArrayObj != undefined) {
if(i == 0) {
if (colorArrayObj.enh != '' && colorArrayObj.reg != '' && colorArrayObj.cId != '') {
swapImages[안내]태그제한으로등록되지않습니다-xxOnClick(colorArrayObj.reg, colorArrayObj.enh, colorArrayObj.cId, "","");
}
for(var j=0; j" ;
htmlString = htmlString + " ";
htmlString = htmlString + pixelSpacing;
altVideo = true;
prodFO.addVariable("assetRef", orderedImageMap_0[i].flash);
prodFO.write("imageDiv");
} else if(colorArray[i].flash != undefined && colorArray[i].flash !="") {
htmlString = htmlString + "" ;
htmlString = htmlString + " ";
htmlString = htmlString + pixelSpacing;
} else {
htmlString = htmlString + "" ;
htmlString = htmlString + " ";
htmlString = htmlString + pixelSpacing;
}
counter++;
if(!foundFirstSwatch) {
foundFirstSwatch = true;
selSwatchReg = colorArray[i].reg;
selSwatchEnh = colorArray[i].enh;
selSwatchCid = colorArray[i].cId;
}
/* Counter for itemvideo playing on load of the page. */
itemVideoCounter++;
}
}
}
}
updateSelector(sel_element2,items);
fromSizeChanged = 1;
document.getElementById("swatches").innerHTML = htmlString;
/* Reset the main image with the first swatch that is the result after applying filters. */
if(!itemVideoAtchToFirstSwatch) {
fromSizeChanged = 1;
swapImages[안내]태그제한으로등록되지않습니다-xxOnClick(selSwatchReg,selSwatchEnh,selSwatchCid,'');
fromSizeChanged = 0;
}
/* Dont reset the main image, since video is already playing. Only re-calculate the SIZE drop down.*/
else {
fromSizeChanged = 1;
swapItemVideoOnPageLoad(selSwatchCid);
}
/* Resets NARROW BY drop down to All Colors */
if(document.orderForm.narrowByColor != undefined)
{
document.orderForm.narrowByColor.options[0].selected = true;
}
}
/* CODE ADDED SORT/FILTER (Retains the first swatch images.)*/
var selSwatchReg = "";
var selSwatchEnh = "";
var selSwatchCid = "";
function loadSwatches_slicedByColorSize()
{
var htmlString = "";
/* CODE ADDED SORT/FILTER (Holds the size and color that comes from family page.) */
var selGenColor = "";
var selGenSize = "";
var foundFirstSwatch = false;
var j=0;
var orderedImageMap_filtered = new Array();
var sortedArray = new Array();
var genColorNotFound = true;
var orderedImageMap_inStock = new Array();
var arrayOfcid = new Array();
var cidCounter = 0;
/* Get only those colors that are in stock.*/
for(var i = 0; i < itemMap.length; i++) {
var flag = checkContains(arrayOfcid,itemMap[i].cId);
if(flag) {
arrayOfcid[cidCounter++] = itemMap[i].cId;
orderedImageMap_inStock[j] = imageMap_0[itemMap[i].cId];
j++;
}
}
orderedImageMap_inStock.sort(resortColors);
/*orderedImageMap_0 displays the swatches in the order they come from catman */
/* When filters are applied and generic color data exists for the product. */
if((selGenSize != "" || selGenColor != "") && genColorsAvailable) {
/* These 2 variables decide when to show the "Click to see full assortment of colors." */
var counterUnFiltered = 0;
var counterFiltered = 0;
var foundGenSize = false;
var colorDropDownCounter = 0;
var myArrayOfColors = new Array();
var arrayCounter=0;
/* Variables to load the video on page load if itemvideo/flash is attached to the first swatch. */
var itemVideoAtchToFirstSwatch = false;
var itemVideoCounter =0;
/* Reset the COLOR drop down. */
var colorList = document.forms['orderForm'].colors_0;
if(colorList) {
for(var x=0;x 0 && orderedImageMap_inStock[i].genColor.length > 0 ) {
for(var m=0;m";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_inStock[i].flash != undefined && orderedImageMap_inStock[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_inStock[i].flash != undefined && orderedImageMap_inStock[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_inStock[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_inStock[i].flash != undefined && orderedImageMap_inStock[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
checkToSee = checkToSee + "Click to see full assortment of colors. ";
document.getElementById("clicktosee").innerHTML = checkToSee;
}
}
/* when someone applies a color/size or both filters but there is no generic colors available for the product. */
/* No need to reset the NARROW BY drop down, since generic colors are not supported. */
else if((selGenSize != "" || selGenColor != "") && !genColorsAvailable) {
var counterUnFiltered = 0;
var counterFiltered = 0;
var foundGenSize = false;
var colorDropDownCounter = 0;
var myArrayOfColors = new Array();
var arrayCounter=0;
/* Variables to load the video on page load if itemvideo/flash is attached to the first swatch. */
var itemVideoAtchToFirstSwatch = false;
var itemVideoCounter =0;
/* Reset the COLOR drop down */
var colorList = document.forms['orderForm'].colors_0;
if(colorList) {
for(var x=0;x";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_inStock[i].flash != undefined && orderedImageMap_inStock[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
checkToSee = checkToSee + "Click to see full assortment of colors. ";
document.getElementById("clicktosee").innerHTML = checkToSee;
}
}
/* When no filters are applied. */
else {
var itemVideoCounter = 0;
var myArrayOfColors = new Array();
var arrayCounter=0;
for(var i=0;i";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
htmlString = htmlString + "" ;
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* build the color drop down list dynamically */
colorList.options[counter++] = new Option(orderedImageMap_0[i].name,orderedImageMap_0[i].cId);
/* build the swatches */
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "" ;
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* build the color drop down list dynamically */
if(colorList && colorList.options) {
colorList.options[counter++] = new Option(orderedImageMap_0[i].name,orderedImageMap_0[i].cId);
}
/* build the swatches */
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + " 0 && orderedImageMap_0[i].sizeDesc.length > 0) {
for(var t=0;t";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
}
/* Counter for itemvideo playing on load of the page. */
itemVideoCounter++;
}//flag loop
}
}
}
}
}
}
}
}
/* Color takes precedence in products sliced by color. So, when you apply color and filter and that combination
does not exist, then show only colors that are mapped to the color filter applied. Ignore the size. */
if(!foundSizeHere && foundColorHere) {
counterUnFiltered = 0;
counterFiltered = 0;
for(var i=0;i 0 && orderedImageMap_0[i].sizeDesc.length > 0) {
for(var t=0;t";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
}
/* Counter for itemvideo playing on load of the page. */
itemVideoCounter++;
}//flag loop
}
}
}
}
}
}
/* If you didnt find the generic color, then show all colors of the size selected. */
else if(!foundColorHere) {
counterUnFiltered = 0;
counterFiltered = 0;
for(var i=0;i";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
}
/* Counter for itemvideo playing on load of the page. */
itemVideoCounter++;
}//flag loop
}
}
}
}
/* When both color and size filter dont exist, show all colors of the product. */
if(!foundSizeHere) {
counterUnFiltered = 0;
counterFiltered = 0;
for(var i=0;i";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
}
/* Counter for itemvideo playing on load of the page. */
itemVideoCounter++;
}//flag loop
}
}
}
}
/* when only size filter is applied */
else if(selGenSize != "") {
var foundSizeHere = false;
var narrowByList = document.forms['orderForm'].narrowByColor;
var narrowByColorArray = new Array();
var narrowByCounter = 0;
if(narrowByList != undefined) {
for(var x=0;x";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
}
/* Build the NARROW BY drop down and show only those generic colors that are mapped to the colors
available in tha size filtered. */
if(narrowByList != undefined) {
for(var h=0;h";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
}
/* Build the NARROW BY drop down and show only those generic colors that are mapped to the colors
available in tha size filtered. */
if(narrowByList != undefined) {
for(var h=0;h";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
}
/* Counter for itemvideo playing on load of the page. */
itemVideoCounter++;
}//flag loop
}
}
}
}
if(!foundColorHere) {
counterUnFiltered = 0;
counterFiltered = 0;
for(var i=0;i";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
}
/* Counter for itemvideo playing on load of the page. */
itemVideoCounter++;
}//flag loop
}
}
}
/* Reset the main image with the first swatch that is the result after applying filters. */
if(!itemVideoAtchToFirstSwatch) {
swapImage[안내]태그제한으로등록되지않습니다-xxOnLoad(selSwatchReg,selSwatchEnh,selSwatchCid);
}
/* Dont reset the main image, since video is already playing. Only re-calculate the SIZE drop down.*/
else {
swapItemVideoOnPageLoad(selSwatchCid);
}
/* Show "Click to see full assortment of colors." only when the number of colors output after applying a filters
is more than the number of colors before applying the filter. */
if(counterFiltered < counterUnFiltered) {
var checkToSee = "Different colors may be available. ";
checkToSee = checkToSee + " ";
checkToSee = checkToSee + "Click to see full assortment of colors. ";
document.getElementById("clicktosee").innerHTML = checkToSee;
}
}
/* when someone applies a color/size or both filters but there is no generic colors available for the product. */
/* No need to reset the NARROW BY drop down, since generic colors are not supported. */
else if((selGenSize != "" || selGenColor != "") && !genColorsAvailable) {
var counterUnFiltered = 0;
var counterFiltered = 0;
var foundGenSize = false;
var itemVideoAtchToFirstSwatch = false;
var itemVideoCounter =0;
/* The COLOR drop down */
var colorList = document.forms['orderForm'].colors_0;
if(colorList) {
for(var x=0;x";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
}
/* Counter for itemvideo playing on load of the page. */
itemVideoCounter++;
}//flag loop
}
}
}
}
}
/* Enter this loop when the size filtered on is not available. Show all colors for the product. */
if(!foundGenSize) {
counterUnFiltered = 0;
counterFiltered = 0;
for(var i=0;i";
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
}
/* Counter for itemvideo playing on load of the page. */
itemVideoCounter
}//flag loop
}
}
}
/* Reset the main image with the first swatch that is the result after applying filters. */
if(!itemVideoAtchToFirstSwatch) {
swapImage[안내]태그제한으로등록되지않습니다-xxOnLoad(selSwatchReg,selSwatchEnh,selSwatchCid);
}
/* Dont reset the main image, since video is already playing. Only re-calculate the SIZE drop down.*/
else {
swapItemVideoOnPageLoad(selSwatchCid);
}
/* Show "Click to see full assortment of colors." only when the number of colors output after applying a filters
is more than the number of colors before applying the filter. */
if(counterFiltered < counterUnFiltered) {
var checkToSee = "Different colors may be available. ";
checkToSee = checkToSee + " ";
checkToSee = checkToSee + "Click to see full assortment of colors. ";
document.getElementById("clicktosee").innerHTML = checkToSee;
}
}
/* Enter this loop for shopbysize and when no filters applied. */
else {
var itemVideoCounter = 0;
//Added for PS 75539
var colorList = document.forms['orderForm'].colors_0;
if(colorList) {
for(var x=0;x";
mouseEvents = mouseEvents + " ";
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page.*/
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
htmlString = htmlString + "" ;
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
}
if(!foundFirstSwatch) {
foundFirstSwatch = true;
selSwatchReg = orderedImageMap_0[i].reg;
selSwatchEnh = orderedImageMap_0[i].enh;
selSwatchCid = orderedImageMap_0[i].cId;
}
/* Counter for itemvideo playing on load of the page. */
itemVideoCounter++;
}
}
}
}
}
if(!sizeFound) {
for(var t=0;t" ;
mouseEvents = mouseEvents + " ";
mouseEvents = mouseEvents + pixelSpacing;
/* If the first swatch has itemvideo/flash attached to it, then play the video [안내]태그제한으로등록되지않습니다-xxonload of the page. */
if(itemVideoCounter == 0 && orderedImageMap_0[i].flash != undefined && orderedImageMap_0[i].flash != "") {
itemVideoAtchToFirstSwatch = true;
htmlString = htmlString + "";
}
if(!foundFirstSwatch) {
foundFirstSwatch = true;
selSwatchReg = orderedImageMap_0[i].reg;
selSwatchEnh = orderedImageMap_0[i].enh;
selSwatchCid = orderedImageMap_0[i].cId;
}
/* Counter for itemvideo playing on load of the page. */
itemVideoCounter++;
}
}
}
}
}
}
}
}
document.getElementById("colorSwatches").innerHTML = htmlString;
/* Reset the main image with the first swatch that is the result after applying filters. */
if(!itemVideoAtchToFirstSwatch) {
swapImages[안내]태그제한으로등록되지않습니다-xxOnClick(selSwatchReg, selSwatchEnh, selSwatchCid);
}
/* Dont reset the main image, since video is already playing. Only re-calculate the SIZE drop down.*/
else {
swapItemVideoOnPageLoad(selSwatchCid);
}
}
function getColorData(sizeId) {
var colorObjArray = new Array();
var j=0;
var sortedArray = new Array();
if(sizeId != undefined && sizeId != "") {
for(var i = 0; i < itemMap.length; i++) {
if(itemMap[i].pid == 10784876 && itemMap[i].sId == sizeId) {
colorObjArray[j] = imageMap_0[itemMap[i].cId];
j++;
}
}
} else {
colorObjArray = orderedImageMap_0;
}
colorObjArray.sort(resortColors);
return colorObjArray;
}
// CODE ADDED SORT/FILTER
function getColorDataGenericColor(genericColor) {
var colorObjArray = new Array();
var genCol = genericColor.options[genericColor.selectedIndex].value;
var j=0;
var sortedArray = new Array();
for(var i = 0; i < itemMap.length; i++) {
if(itemMap[i].pid == 10784876 && itemMap[i].sId == sizeId && imageMap_0.genColor == genCol || genCol == "All Colors") {
colorObjArray[j] = imageMap_0[itemMap[i].cId];
j++;
}
}
colorObjArray.sort(resortColors);
return colorObjArray;
}
function resortColors(a, b) {
if (a == b) {
return 0;
} else if (a == null) {
return 1;
} else if (b == null) {
return -1;
}
return (a.dispSeq - b.dispSeq);
}
/* Populate color array to pass to updateSelector function */
function populateSizes(sel_element1, sel_element2) {
var val = sel_element1.options[sel_element1.selectedIndex].value;
var items = new Array();
/* If user sets color dropdown back to "Color" reset the prod_ dropdown */
if(val == '') {
var selectOneArray = new Array("10784876","Select Size");
items[items.length] = new Object();
items[items.length-1].id = selectOneArray[0];
items[items.length-1].de = selectOneArray[1];
updateSelector(sel_element2,items);
return;
}
/* If color was selected, fill colorArray */
if(val != "-1") {
var selectOneArray = new Array("10784876","Select Size");
items[items.length] = new Object();
items[items.length-1].id = selectOneArray[0];
items[items.length-1].de = selectOneArray[1];
var colorArray = getStringColors(val);
for (var i = 0; i < colorArray.length; i++) {
items[items.length] = new Object();
items[items.length-1].id = colorArray[i];
items[items.length-1].de = colorArray[++i];
}
updateSelector(sel_element2,items);
}
}
function setSize() {
if ("".length > 0) {
var optionSize = document.orderForm.prod_0.options;
if(optionSize == null) {
optionSize = document.orderForm.sizes_0.options;
}
if (optionSize !=null && optionSize.length > 0) {
for (var sj = 0 ; sj -1) {
var arrayOfSizeAndText1 = "".split("|");
var sizeIds="";
var sizeCds="";
if (arrayOfSizeAndText1.length == 2) {
sizeIds = arrayOfSizeAndText1[1];
sizeCds = arrayOfSizeAndText1[0];
}
var sizeText = optionSize[sj].text;
var sizeValue = optionSize[sj].value;
var sizeValueArray = sizeValue.split("|");
var sizeValueCd="";
if (sizeValueArray.length == 3) {
sizeValueCd = sizeValueArray[2];
} else {
sizeValueCd = sizeValue;
}
if(sizeValueCd != "" && sizeCds.indexOf(sizeValueCd) > -1) {
optionSize[sj].selected = true;
break;
}
}
}
}
}
}
var currentItemZoomURL = "http://s7ondemand7.scene7.com/s7ondemand/zoom/flashb_zoom.jsp?company=PoloGSI&windowtitle=RalphLauren.com&zoomwidth=330&zoomheight=350&vc=skin%3dPoloGSI/SWFs/poloInlineZoomSkin2.swf&sku=s7-310458_lifestyle";
/* The Scene7 zoom URL for the current item if applicable */
var persistantSwapimagesREGPath = null;
var persistantSwapimagesENHPath = null;
var persistantSwapimagescolorId = null;
var persistantSwapimagesTHUMBPath = null;
var altVideo = false;
var genColorsAvailable = false; //SORT FILTERS
/* Make the "zoom" icon appear or disappear, depending on whether a scene7 embedded view is available in Scene7Map */
function setZoomIcon(colorId) {
var zoomicon = document.getElementById("zoomIcon");
setZoomIconByURL(Scene7Map["c" + colorId])
}
/* Make the "zoom" icon appear or disappear, depending on whether currentItemZoomURL is set */
function setZoomIconByURL(izURL) {
var zoomicon = document.getElementById("zoomIcon");
if (izURL != null){
zoomicon.style.visibility = "visible";
zoomicon.style.display = "block";
} else {
zoomicon.style.visibility = "hidden";
zoomicon.style.display = "none";
}
}
/* CODE ADDED SORT/FILTER */
function swapImage[안내]태그제한으로등록되지않습니다-xxOnLoad(REGPath,ENHPath,colorId) {
var selcolor = '';
var selsize = '';
if(selcolor != '' || selsize != '') {
swapImages[안내]태그제한으로등록되지않습니다-xxOnClick(REGPath,ENHPath,colorId);
}
/* The SIZE drop down is defaulted here to a filtered size if available for products sliced by color only. */
var sizeField = document.orderForm.prod_0;
if(sizeField && selsize != "") {
for(var i=0; i";
}
persistantSwapimagesREGPath = REGPath;
persistantSwapimagesENHPath = ENHPath;
persistantSwapimagescolorId = colorId;
persistantSwapimagesTHUMBPath = THUMBPath;
swapImages(REGPath, ENHPath, colorId, THUMBPath, true);
/* Hide the zoom iframe and show the regular image
(clicking on an image while in zoomed mode causes it to go back to regular mode) */
var zoomframe = document.getElementById("zoomFrame");
var imagediv = document.getElementById("imageDiv");
var zoomdiv = document.getElementById("zoomDiv");
imagediv.style.display = "block";
imagediv.style.visibility = "visible";
zoomdiv.style.display = "none";
zoomdiv.style.visibility = "hidden";
currentItemZoomURL = Scene7Map["c" + colorId];
setZoomIcon(colorId);
altVideo = false;
//alert('fromSizeChanged : ' + fromSizeChanged);
}
function swapImages(REGPath,ENHPath,colorId,THUMBPath,bChangeDropdown) {
thisProdShot = window.document.prodShot_0;
if (REGPath != "") {
thisProdShot.src = REGPath;
}
thisEnh = document.orderForm.enh_0;
if (thisEnh && ENHPath != "") {
thisEnh.value = ENHPath;
}
thisThumb = document.orderForm.thumb_0;
if (thisThumb && THUMBPath != "") {
thisThumb.value = THUMBPath;
}
if( (bChangeDropdown == null) || (bChangeDropdown == true) ) {
changeDropdown(colorId);
}
}
function syncFields(thisField) {
var dropName = thisField.name.split("_");
if (dropName != null && dropName.length > 1 && dropName[1] != null) {
imageCounterField = eval('document.orderForm.imageIndex_'+dropName[1]);
}
}
function swapImageDropdown(dropDown,prodIndex) {
//fromSizeChanged =1;
if(altVideo) {
document.getElementById("imageDiv").innerHTML = " ";
altVideo = false;
}
thisProdShot = eval('window.document.prodShot_'+prodIndex);
//thisImageMap = eval('imageMap_'+prodIndex);
thisImageMap = orderedImageMap_0;
/* PIDS that are sliced by both color and size */
thisEnh = eval('document.orderForm.enh_'+prodIndex);
if (thisImageMap) {
var selectedItem = dropDown.options[dropDown.selectedIndex].text;
if (selectedItem.indexOf("- SALE") >= 0) {
selectedItem = selectedItem.substring(0, selectedItem.indexOf("- SALE") - 1);
}
for(var i = 0; i < thisImageMap.length; i++) {
if (thisImageMap[i].name == selectedItem) {
/* Play video if one available when you select a color from the drop down. */
if(thisImageMap[i].flash != undefined && thisImageMap[i].flash != '') {
altVideo = true;
prodFO.addVariable("assetRef", thisImageMap[i].flash);
prodFO.write("imageDiv");
}
else if (thisImageMap[i].reg != undefined && thisImageMap[i].reg != '') {
thisProdShot.src = thisImageMap[i].reg;
}
if (thisEnh && thisImageMap[i].enh != '') {
thisEnh.value = thisImageMap[i].enh;
}
persistantSwapimagesREGPath = thisImageMap[i].reg;
persistantSwapimagesENHPath = thisImageMap[i].enh;
break;
}
}
}
}
function changeDropdown(colorId) {
colorField = document.orderForm.colors_0;
sizeField = document.orderForm.prod_0;
var dropDownIndex = 0;
for(var i = 0; i < colorArrayId.length; i++) {
if (colorId == colorArrayId[i]) {
dropDownIndex = i;
break;
}
}
if (colorField && colorField.options != null && colorField.options.length > 0) {
colorField.options[dropDownIndex].selected = true;
} else if (sizeField && sizeField.options != null && sizeField.options.length > 0) {
sizeField.options[dropDownIndex].selected = true;
}
if (colorField && sizeField) {
populateSizes(colorField, sizeField);
}
}
function showEnhanced(prodIndex) {
omniImpl('Enlargeimage');
remote = open( "/contentPopup/index.jsp?" + getPopupUrl(), "largeImage", "width=805,height=617,left=0,top=0" );
}
function showEmbeddedZoom() {
if (currentItemZoomURL != null) {
/*
Hide the zoom iframe and show the regular image
clicking on an image while in zoomed mode causes it to go back to regular mode)
*/
var zoomframe = document.getElementById("zoomFrame");
var imagediv = document.getElementById("imageDiv");
var zoomdiv = document.getElementById("zoomDiv");
imagediv.style.display = "none";
imagediv.style.visibility = "hidden";
zoomdiv.style.display = "block";
zoomdiv.style.visibility = "visible";
zoomframe.src = currentItemZoomURL;
} else {
showEnhanced('0');
}
}
/* ps 45775 start of code for optional message box */
function setGiftMessage(formObject) {
var tempMsgStr = "";
if (formObject.messageA && formObject.messageA.value != "") {
tempMsgStr = formObject.messageA.value + "\n";
}
if (formObject.messageB && formObject.messageB.value != "") {
tempMsgStr += formObject.messageB.value + "\n";
}
if (formObject.messageC && formObject.messageC.value != "") {
tempMsgStr += formObject.messageC.value + "\n";
}
if (formObject.messageD && formObject.messageD.value != "") {
tempMsgStr += formObject.messageD.value;
}
formObject.message.value = tempMsgStr;
}
function verifyFields(submitProcess) {
if (submitProcess == "no") {
return false;
}
/* get sku from item map based on selected values */
colorField = document.orderForm.colors_0;
sizeField = document.orderForm.sizes_0;
/* multicolor2 PIDS */
var hasSelectedColor = true;
var hasSelectedSize = true;
/* Code added for PS 45775 */
prodField = document.orderForm.prod_0;
if (!colorField && sizeField && sizeField.type == "hidden") {
hasSelectedSize = true;
} else if (prodField && prodField.type == "select-one" && prodField.selectedIndex == 0) {
hasSelectedSize = false;
}
/* load newCartProductArray in expressShop.js to show up currently added products in minicart */
if (hasSelectedColor && hasSelectedSize){
for (i=0; i < document.orderForm.elements.length; i++) {
qtyField = document.orderForm.elements[i];
nameStr = qtyField.name;
if (nameStr.match("qty")) {
var qtyArray = qtyField.name.split("_");
prodIndex = qtyArray[1];
prodField = eval('document.orderForm.prod_'+prodIndex);
if(prodField != null && prodField != '' && prodField.value != null && prodField.value != '') {
//alert("prodField.value::"+prodField.value);
prodSplit = prodField.value.split("|");
if(prodSplit.length >= 2 && prodSplit[0] != null && prodSplit[0] != '' && prodSplit[1] != null && prodSplit[1] != '') {
loadNewCartProducts(prodSplit[0],prodSplit[1]);
}
}
}
}
if (submitProcess == "wishlist") {
document.orderForm.showMy.value = "wishlist";
document.orderForm.wlName.value = "wlName";
} else {
document.orderForm.showMy.value = "";
document.orderForm.wlName.value = "";
}
//document.orderForm.submit();
if(!(submitProcess == "wishlist")) {
document.getElementById('selectSizeMinicart').style.visibility = 'hidden';
document.getElementById('selectSizeMinicart').style.display = 'none';
toggleVisibility('selectSize','hidden','hidden','hidden','20');
toggleVisibility('cartMessages','hidden','hidden','hidden','0');
ajaxAddToCart(document.orderForm);
} else {
document.orderForm.submit();
}
} else if (!hasSelectedSize) {
if(!hasSelectedSize){
document.getElementById('showCartMessages').style.visibility = 'hidden';
document.getElementById('showCartMessages').style.display = 'none';
document.getElementById('selectSizeMinicart').style.visibility = 'visible';
document.getElementById('selectSizeMinicart').style.display = 'block';
document.getElementById('cartMessages').style.visibility = 'hidden';
document.getElementById('cartMessages').style.display = 'none';
}
}
}
function toggleVisibility(id, NNtype, IEtype, WC3type, height) {
if (document.getElementById) {
eval("document.getElementById(id).style.visibility = \"" + WC3type + "\"");
document.getElementById(id).style.height = height;
} else {
if (document.layers) {
document.layers[id].visibility = NNtype;
document.layers[id].height = height;
} else {
if (document.all) {
eval("document.all." + id + ".style.visibility = \"" + IEtype + "\"");
eval("document.all." + id + ".style.height = " + height);
}
}
}
}
function showRLstyleGuide(pid) {
showCustomPopUp( '/contentPopup/index.jsp?' + getPopupUrl() + '&showStyleGuide', 'largeImage', 'width=805,height=617,left=0,top=0');
}
itemMap = new Array();
Scene7Map = new Array();
var imageObj = null;
/* Fill the itemMap xxJavaScript Array with sku information */
itemMap[0] = { pid: '10784876',sku: 8806068,sDesc: "X-SMALL",sId: "100690",cDesc: "Spectator Navy",cId: "1111630",avail: "IN_STOCK",price: "$54.00",jdaStyle: "74213"};
/* Fill the itemMap xxJavaScript Array with sku information */
itemMap[1] = { pid: '10784876',sku: 8806069,sDesc: "SMALL",sId: "100105",cDesc: "Spectator Navy",cId: "1111630",avail: "IN_STOCK",price: "$54.00",jdaStyle: "74213"};
/* Fill the itemMap xxJavaScript Array with sku information */
itemMap[2] = { pid: '10784876',sku: 8806070,sDesc: "MEDIUM",sId: "100047",cDesc: "Spectator Navy",cId: "1111630",avail: "IN_STOCK",price: "$54.00",jdaStyle: "74213"};
/* Fill the itemMap xxJavaScript Array with sku information */
itemMap[3] = { pid: '10784876',sku: 8806071,sDesc: "LARGE",sId: "100044",cDesc: "Spectator Navy",cId: "1111630",avail: "IN_STOCK",price: "$54.00",jdaStyle: "74213"};
/* Fill the itemMap xxJavaScript Array with sku information */
itemMap[4] = { pid: '10784876',sku: 8806072,sDesc: "X-LARGE",sId: "100606",cDesc: "Spectator Navy",cId: "1111630",avail: "IN_STOCK",price: "$54.00",jdaStyle: "74213"};
genColorsAvailable = true;
var colorArrayId = new Array();
imageMap_0 = new Array();
orderedImageMap_0 = new Array();
holder0 = new Array();
holder0[0] = "Blue";
sizeHolder0 = new Array();
sizeHolder0[0] = "X-SMALL";
sizeHolder0[1] = "SMALL";
sizeHolder0[2] = "MEDIUM";
sizeHolder0[3] = "LARGE";
sizeHolder0[4] = "X-LARGE";
imageObj = new Object();
imageObj.cId="1111630";
imageObj.genColor=holder0;//sort/filters
imageObj.name="Spectator Navy";
imageObj.sizeDesc=sizeHolder0;//sort/filters
imageObj.swatch="http://www.ralphlauren.com/graphics/product_images/pPOLO2-8806068_swatch_t50.gif";
imageObj.dispSeq=0;
imageObj.enh="http://www.ralphlauren.com/graphics/product_images/pPOLO2-8806068_lifestyle_dt.jpg";
imageObj.reg="http://www.ralphlauren.com/graphics/product_images/pPOLO2-8806068_standard_v360x480.jpg";
imageMap_0[imageObj.cId]=imageObj;
orderedImageMap_0[0]=imageObj;
Scene7Map["c1111630"] = "http://s7ondemand7.scene7.com/s7ondemand/zoom/flashb_zoom.jsp?company=PoloGSI&windowtitle=RalphLauren.com&zoomwidth=330&zoomheight=350&vc=skin%3dPoloGSI/SWFs/poloInlineZoomSkin2.swf&sku=s7-310458_lifestyle";
persistantSwapimagesREGPath = "http://www.ralphlauren.com/graphics/product_images/pPOLO2-8806068_standard_v360x480.jpg";
persistantSwapimagesENHPath = "http://www.ralphlauren.com/graphics/product_images/pPOLO2-8806068_lifestyle_dt.jpg";
persistantSwapimagesTHUMBPath = "http://www.ralphlauren.com/graphics/product_images/pPOLO2-8806068_lifestyle_t85.jpg";
/* errMessage Code added under PMO 83769 */
function errMessage()
{
if (document.orderForm.errorMsg.value == "1")
{
document.orderForm.errorMsg.value = "0";
document.getElementById("cartMessages").style.display="none";
toggleVisibility('cartMessages','hidden','hidden','hidden','0');
}
}
function loadItemVideos(ENHPath,FLASHPath,colorId,bChangeDropdown) {
if( (bChangeDropdown == null) || (bChangeDropdown == "") || (bChangeDropdown == true) ) {
changeDropdown(colorId);
}
thisEnh = document.orderForm.enh_0;
if (thisEnh && ENHPath != "") {
thisEnh.value = ENHPath;
}
/*thisThumb = document.orderForm.thumb_0;
if (thisThumb && THUMBPath != "") {
thisThumb.value = THUMBPath;
}*/
altVideo = true;
prodFO.addVariable("assetRef", FLASHPath);
prodFO.write("imageDiv");
}
function loadVideos(REGPath, flash) {
altVideo = true;
prodFO.addVariable("assetRef", flash);
prodFO.write("imageDiv");
}
var prodFO = new FlashObject("http://www.ralphlauren.com/graphics/media/polo/itemAssetHolder.swf", "prodShot_0",330 , 350, "6", "#ffffff");
prodFO.addParam("quality", "high");
prodFO.addParam("allowScriptAccess", "always");
prodFO.addVariable("index", 0);
prodFO.addVariable("noContainers",1);
prodFO.addVariable("link", escape("xxjavascript:showEnhanced('0');"));
prodFO.addVariable("play", true);
prodFO.addVariable("FlashStaticCont", "http://www.ralphlauren.com");
prodFO.addVariable("FlashDynamicCont", "http://www.ralphlauren.com");
prodFO.addVariable("FlashBulkCont", "http://www.ralphlauren.com");
jQuery(document).ready(function() {
jQuery('.regImage').each(function(){
if(jQuery(this).attr('tooltipText') != "" && jQuery(this).attr('alt') != ""){
jQuery(this).attr('tooltipText', jQuery(this).attr('alt'));
}
jQuery(this).tipsy({title: 'tooltipText',fade:true,gravity: 'sw', html:true});
jQuery(this).removeAttr('title');
jQuery(this).removeAttr('alt');
});
jQuery('.altViewImage').each(function(){
jQuery(this).removeAttr('title');
jQuery(this).removeAttr('alt');
});
});
// CSS helper functions
var mouseover = new Image();
var dt_active = new Image();
var sg_active = new Image();
var tv_active = new Image();
var pm_active = new Image();
var gd_active = new Image();
var dt_inactive = new Image();
var sg_inactive = new Image();
var tv_inactive = new Image();
var pm_inactive = new Image();
var gd_inactive = new Image();
dt_active.src = "../graphics/category_images/polo_guide_details_on.gif";
sg_active.src = "../images/RLStyleGuide_On.gif";
tv_active.src = "../images/tab_rltv_on.gif";
pm_active.src = "../images/tab_rlmagazine_on.gif";
gd_active.src = "../graphics/category_images/polo_guidetotab_1000042_on.gif";
dt_inactive.src = "../graphics/category_images/polo_guide_details_off.gif";
sg_inactive.src = "../images/RLStyleGuide_Off.gif";
tv_inactive.src = "../images/tab_rltv.gif";
pm_inactive.src = "../images/tab_rlmagazine.gif";
gd_inactive.src = "../graphics/category_images/polo_guidetotab_1000042_off.gif";
CSS = {
// Adds a class to an element.
AddClass: function (e, c) {
if (!e.className.match(new RegExp("\\b" + c + "\\b", "i")))
e.className += (e.className ? " " : "") + c;
},
// Removes a class from an element.
RemoveClass: function (e, c) {
e.className = e.className.replace(new RegExp(" \\b" + c + "\\b|\\b" + c + "\\b ?", "gi"), "");
}
};
// Functions for handling tabs.
Tabs = {
// Changes to the tab with the specified ID.
GoTo: function (contentId, skipReplace) {
// This variable will be true if a tab for the specified
// content ID was found.
var foundTab = false;
// Get the TOC element.
var toc = document.getElementById("toc");
if (toc) {
var lis = toc.getElementsByTagName("li");
for (var j = 0; j < lis.length; j++) {
var li = lis[j];
// Give the current tab link the class "current" and
// remove the class from any other TOC links.
var anchors = li.getElementsByTagName("a");
for (var k = 0; k < anchors.length; k++) {
if (anchors[k].hash == "#" + contentId) {
CSS.RemoveClass(li, "notcurrent");
CSS.AddClass(li, "current");
if(anchors[k].hash == "#Page_1") {
eval("document['picture1'].src = sg_active.src");
} else if(anchors[k].hash == "#Page_2") {
eval("document['picture2'].src = tv_active.src");
} else if(anchors[k].hash == "#Page_3") {
eval("document['picture3'].src = pm_active.src");
} else if(anchors[k].hash == "#Page_0") {
eval("document['picture0'].src = dt_active.src");
} else if(anchors[k].hash == "#Page_4") {
omniEngagementImpressionForBrandName();
eval("document['picture4'].src = gd_active.src");
}
foundTab = true;
break;
} else {
CSS.RemoveClass(li, "current");
CSS.AddClass(li,"notcurrent");
if(anchors[k].hash == "#Page_1") {
eval("document['picture1'].src = sg_inactive.src");
} else if(anchors[k].hash == "#Page_2") {
eval("document['picture2'].src = tv_inactive.src");
} else if(anchors[k].hash == "#Page_3") {
eval("document['picture3'].src = pm_inactive.src");
} else if(anchors[k].hash == "#Page_0") {
eval("document['picture0'].src = dt_inactive.src");
} else if(anchors[k].hash == "#Page_4") {
eval("document['picture4'].src = gd_inactive.src");
}
}
}
}
}
// Show the content with the specified ID.
var divsToHide = [];
var divs = document.getElementsByTagName("div");
for (var i = 0; i < divs.length; i++) {
var div = divs[i];
if (div.className.match(/\bcontent\b/i)) {
if (div.id == "_" + contentId)
div.style.display = "block";
else
divsToHide.push(div);
}
}
// Hide the other content boxes.
for (var i = 0; i < divsToHide.length; i++)
divsToHide[i].style.display = "none";
// Change the address bar.
if (!skipReplace) window.location.replace("#" + contentId);
},
[안내]태그제한으로등록되지않습니다-xxOnClickHandler: function (e) {
// Stop the event (to stop it from scrolling or
// making an entry in the history).
if (!e) e = window.event;
if (e.preventDefault) e.preventDefault(); else e.returnValue = false;
// Get the name of the anchor of the link that was clicked.
Tabs.GoTo(this.hash.substring(1));
},
Init: function () {
if (!document.getElementsByTagName) return;
var toc = document.getElementById("toc");
if (toc) {
// Attach an [안내]태그제한으로등록되지않습니다-xxonclick event to all the anchor links on the page.
var anchors = toc.getElementsByTagName("a");
for (var i = 0; i < anchors.length; i++) {
var a = anchors[i];
if (a.hash) a.[안내]태그제한으로등록되지않습니다-xxonclick = Tabs.[안내]태그제한으로등록되지않습니다-xxOnClickHandler;
}
}
var contentId;
if (window.location.hash) contentId = window.location.hash.substring(1);
var toccontent = document.getElementById("toccontent");
if(toccontent) {
var divs = toccontent.getElementsByTagName("div");
for (var i = 0; i < divs.length; i++) {
var div = divs[i];
if (div.className.match(/\bcontent\b/i)) {
if (!contentId) contentId = div.id;
div.id = "_" + div.id;
}
}
if (contentId) Tabs.GoTo(contentId, true);
}
}
};
// Hook up the [안내]태그제한으로등록되지않습니다-xxOnLoad event to the tab initialization function.
window.[안내]태그제한으로등록되지않습니다-xxonload = Tabs.Init;
// Hide the content while waiting for the [안내]태그제한으로등록되지않습니다-xxonload event to trigger.
var contentId = window.location.hash;
if (document.createStyleSheet) {
var style = document.createStyleSheet();
style.addRule("div.content", "display: none;");
style.addRule("div" + contentId, "display: block;");
} else {
var head = document.getElementsByTagName("head")[0];
if (head) {
var style = document.createElement("style");
style.setAttribute("type", "text/css");
style.appendChild(document.createTextNode("div.content { display: none; }"));
style.appendChild(document.createTextNode("div" + contentId + " { display: block; }"));
head.appendChild(style);
}
}
function showStyleGuide() {
omniCustomLink('StyleGuide','StyleGuide');
remote = open( '/contentPopup/index.jsp?' + getPopupUrl() + '&showStyleGuide', 'largeImage', 'width=805,height=617,left=0,top=0');
}
function resizeDescription(action) {
var longDescDiv = document.getElementById('longDescDiv');
var padDescDiv = document.getElementById('padDescDiv');
if(action == 'showDesc') { //if it's already open, close it
longDescDiv.style.visibility = 'hidden';
longDescDiv.style.display = 'none';
padDescDiv.style.visibility = 'visible';
padDescDiv.style.display = 'block';
omniCustomLink('Expandcopy','Expandcopy');
}
else if(action == 'hideDesc') { //if it's closed, open it
padDescDiv.style.visibility = 'hidden';
padDescDiv.style.display = 'none';
longDescDiv.style.visibility = 'visible';
longDescDiv.style.display = 'block';
omniCustomLink('Collapsecopy','Collapsecopy');
}
}
function omniEngagementImpressionForBrandName(){
omniEngagementImpressions('event44', 'Product Feature: RL Guide to Ralph Lauren Golf');
}
Finished with chic tie stripes at the collar and bold golden buttons, the Jean polo is the epitome of preppy athletic style in breathable cotton jersey.
MORE DETAILS
Finished with chic tie stripes at the collar and bold golden buttons, the Jean polo is the epitome of preppy athletic style in breathable cotton jersey.
Four-button placket with "Ralph Lauren"-embossed gold buttons.
Straight point collar, trimmed with striped silk lining underneath.
Ribbed armbands. Even vented hem with interior grosgrain taping.
Our embroidered pony accents the left chest.
100% cotton. Machine washable. Imported.
CLOSE
document.getElementById('padDescDiv').style.visibility = 'hidden';
document.getElementById('padDescDiv').style.display = 'none';
ERROR. Please select a size.
Item(s) added to your Wish List
ERROR. Please select a size.
Item(s) added to your Shopping Bag
document.getElementById('showWishlistMessage').style.visibility = 'hidden';
document.getElementById('showWishlistMessage').style.display = 'none';
비밀글 해당 댓글은 작성자와 운영자만 볼 수 있습니다.11.07.08 00:29