var CW_RESPONSE_CODE_SUCCESS = 0;
var CW_OP_GET_VOTES = 1;
var CW_OP_DO_VOTE = 2;

var CW_GLOSSARY_TABLE_WIDTH = 811;
var CW_GLOSSARY_TABLE_HEIGHT = 673;

var CW_COMPARE_TABLE_WIDTH = 856;
var CW_COMPARE_TABLE_HEIGHT = 589;

 
var cwLikeCount = 0;
var cwIsFirstLoad = true;
var cwEntries = null;

/*Compare cookware properties*/

var CW_PRODUCT_NAME = 0;
var CW_IMAGE_URL = 1;
var CW_REGISTER_PRICE = 2;
var CW_SALE_PRICE = 3;
var CW_RATING = 4;
var CW_MATERIALS = 5;
var CW_COOKWARE_TYPE = 6;
var CW_OTHERFEATURE = 7;
var CW_WEB_ID = 8;
var CW_SHOP_URL = 9;
var CW_PRODUCT_LABEL = 10;
var CW_PRODUCT_URL = 11;

var cwCompareEntries = new Array();

var cwCompareProductTitle = null;
var cwCompareProductDescription = null;
var cwCompareProductWebURL = null;

var cwEntry_id1 = 0,cwEntry_id2 = 0,cwEntry_id3 = 0;

var cwisIE = ((navigator.appVersion.indexOf("MSIE") != -1) ? true : false);



var myCallbackSwf= 
{
    onOpCancelled: function()
    {
        //closePage();
    },
    onOpCompleted: function(code, msg, opcode, retval1, retval2) 
    {
        if(code == CW_RESPONSE_CODE_SUCCESS)
        {
            if(opcode == CW_OP_GET_VOTES)
            {
                if(retval1)
                {
                    cwLikeCount = retval1;
                }               
            }
            else if(opcode == CW_OP_DO_VOTE)
            {
                if(retval1)
                {
                    cwLikeCount = retval1;
                }              
            }
        }
        else if(showAlerts)
        {
            alert("error while getting voting details response code = " + code + " response msg = " + msg + " opcode = " + opcode);
        }
    },
    PercentLoaded : function() {return 100;}
};

function doEntryLoad(entry_id1, entry_id2, entry_id3, sharingTitle, sharingDescription, sharingWebURL)
{ 

    var cwbaseUrl = hostUrl[campaignidSA] + "/mc/templates/macys/guide/xml.jsp?jsonresponse=1&campaign_id="+campaignidSA+"&channel_id=1&entry_id=";
    var afterLoad = function(result)
    {  
        var jsonObject = JSON.parse(result); 
        
        cwEntries = jsonObject.root.bn_c;

        cwEntry_id1 = entry_id1;
        cwEntry_id2 = entry_id2;
        cwEntry_id3 = entry_id3;

        cwCompareEntries=new Array(3);
        for (k=0; k <3; k++)
        {
            cwCompareEntries[k]=new Array(12) ;
        }
        
        cwCompareProductTitle = sharingTitle;
        cwCompareProductDescription = sharingDescription;
        cwCompareProductWebURL = sharingWebURL;

        if(showAlerts)
        {
            alert("entry id1:"+(entry_id1)+"  entry id2:"+(entry_id2)+"  entry_id3:"+(entry_id3)+" sharingTitle:"+sharingTitle+" sharingDescription:"+(sharingDescription)+" sharingWebURL:"+(sharingWebURL));
        }

        if(cwEntries)
        {
            var entryLength =  cwEntries.length;
            var j = -1;
         
            for(var i = 0; i < entryLength; i++)
            {

                if(entry_id1 == cwEntries[i].entry_id)
                {
                    j = 0;
                }
                else if(entry_id2 == cwEntries[i].entry_id)
                {
                    j = 1;
                }
                else if(entry_id3 == cwEntries[i].entry_id)
                {
                    j = 2;                
                }

                if(j != -1)
                {
                    cwCompareEntries[j][CW_PRODUCT_NAME] = cwEntries[i].entry_entryprops.pfeed_name;
                    cwCompareEntries[j][CW_IMAGE_URL] = cwEntries[i].entry_entryprops.pfeed_imageurl;
                    cwCompareEntries[j][CW_REGISTER_PRICE] = cwEntries[i].entry_entryprops.pfeed_retailprice;
                    cwCompareEntries[j][CW_SALE_PRICE] = cwEntries[i].entry_entryprops.pfeed_saleprice;
                    cwCompareEntries[j][CW_RATING] = cwEntries[i].entry_entryprops.pfeed_bvavgrating;
                    cwCompareEntries[j][CW_MATERIALS] = cwEntries[i].entry_entryprops.pfeed_cwmaterial;
                    cwCompareEntries[j][CW_COOKWARE_TYPE] = cwEntries[i].entry_entryprops.pfeed_cwtype;
                    cwCompareEntries[j][CW_OTHERFEATURE] = cwEntries[i].entry_entryprops.pfeed_cwfeatures;
                    cwCompareEntries[j][CW_WEB_ID] = cwEntries[i].entry_entryprops.pfeed_id;
                    cwCompareEntries[j][CW_SHOP_URL] = cwEntries[i].entry_entryprops.pfeed_url;       
                    cwCompareEntries[j][CW_PRODUCT_LABEL] = cwEntries[i].entry_label1;   
                    cwCompareEntries[j][CW_PRODUCT_URL] = cwEntries[i].entry_itemurl1;   
                }
             
            }
        }     

        doCompareCookwareComponent(cwCompareEntries, cwCompareProductTitle, cwCompareProductDescription, cwCompareProductWebURL);
      
    };

    var errcallback = function()
    {
        if(showAlerts)
        {
            alert("error while connecting......" + (cwbaseUrl));
        }
    };

    if(entry_id1)
    {
        cwbaseUrl =  cwbaseUrl+entry_id1+(entry_id2?",":(entry_id3?",":""));
    }

    if(entry_id2)
    {
        cwbaseUrl =  cwbaseUrl+entry_id2+(entry_id3?",":"");
    }

    if(entry_id3)
    {
        cwbaseUrl =  cwbaseUrl+entry_id3;
    }
    jx.load(cwbaseUrl, afterLoad, "application/x-www-form-urlencoded", "GET", errcallback);
}

function doCompareCookwareComponent(cwCompareEntries, cwCompareProductTitle, cwCompareProductDescription, cwCompareProductWebURL)
{
     createHTMLForCompareCookwareComponent(cwCompareEntries[0][CW_PRODUCT_NAME], cwCompareEntries[1][CW_PRODUCT_NAME], cwCompareEntries[2][CW_PRODUCT_NAME],
                cwCompareEntries[0][CW_IMAGE_URL], cwCompareEntries[1][CW_IMAGE_URL], cwCompareEntries[2][CW_IMAGE_URL],
                cwCompareEntries[0][CW_REGISTER_PRICE], cwCompareEntries[1][CW_REGISTER_PRICE], cwCompareEntries[2][CW_REGISTER_PRICE],
                cwCompareEntries[0][CW_SALE_PRICE], cwCompareEntries[1][CW_SALE_PRICE], cwCompareEntries[2][CW_SALE_PRICE],
                cwCompareEntries[0][CW_RATING], cwCompareEntries[1][CW_RATING], cwCompareEntries[2][CW_RATING],
                cwCompareEntries[0][CW_MATERIALS], cwCompareEntries[1][CW_MATERIALS], cwCompareEntries[2][CW_MATERIALS],
                cwCompareEntries[0][CW_COOKWARE_TYPE], cwCompareEntries[1][CW_COOKWARE_TYPE], cwCompareEntries[2][CW_COOKWARE_TYPE], 
                cwCompareEntries[0][CW_OTHERFEATURE], cwCompareEntries[1][CW_OTHERFEATURE], cwCompareEntries[2][CW_OTHERFEATURE], 
                cwCompareEntries[0][CW_WEB_ID], cwCompareEntries[1][CW_WEB_ID], cwCompareEntries[2][CW_WEB_ID], 
                cwCompareEntries[0][CW_SHOP_URL], cwCompareEntries[1][CW_SHOP_URL], cwCompareEntries[2][CW_SHOP_URL], 
                cwCompareEntries[0][CW_PRODUCT_LABEL], cwCompareEntries[1][CW_PRODUCT_LABEL], cwCompareEntries[2][CW_PRODUCT_LABEL],
                cwCompareEntries[0][CW_PRODUCT_URL], cwCompareEntries[1][CW_PRODUCT_URL], cwCompareEntries[2][CW_PRODUCT_URL],
                cwCompareProductTitle, cwCompareProductDescription, cwCompareProductWebURL);

}




// TODO: change entry_fileurl to entry_cdnfileurl
/*recipe image and product image both currently taken from entry_fileurl*/

function cookwareComponents()
{ 
    platformRegisterPageView('ca-so-cf-glossary.components', 'ca-so-cf-glossary'); 
    
    var cookwareData =  (
        '<table id="id_mainTable1" class="cwMainTableWidth '+(cwisIE ? ' ': ' pagebreak')+' cwBorder1 " cellspacing="0" cellpadding="0">' +
            '<tr>'+
                '<td>'+
                    '<font class="cwTitleHead pagebreak cwFontStyleCenturyGothicHeading">glossary</font><br/> '+
                '</td>'+
            '</tr>'+
            
            '<tr>'+
                '<td valign="top">'+
                    '<div class="cwImageDivWidth">'+
                        '<table cellspacing="0" cellpadding="0">'+
                            '<tr>'+
                                '<td class="cwImageProps">'+
                                    '<img class="cwTagImageWidth cwTagImageHeight cwlCursorHand" alt="" id="cwMetDeselButton" src="'+VERSION_DIR+'img/materials_button_desel.jpg" onclick="showGlossary();"></img>' +                    
                                '</td>'+                       
                                '<td class="cwImageProps">'+
                                    '<img class="cwTagImageWidth2 cwTagImageHeight cwlCursorHand" alt="" id="cwCookWareSelButton" src="'+VERSION_DIR+'img/cookware_button_sel.jpg" onclick="cookwareComponents();"></img>' +                                     
                                '</td>'+
                                '<td class="cwImageProps cwPrintImagePadding cwPrintImageHeight">'+
                                    '<a href="javascript:window.print()"><img class="displayitem cwlCursorHand" alt="" id="cwPrintButton" src="'+VERSION_DIR+'img/link_print_button.jpg" border="none"></img>' +                                                        
                                ' </td>'+
                            '</tr>'+
                        '</table>'+
                    '</div>'+
                '</td> '+                  
            '</tr>'+
             
            '<tr>'+
                '<td>'+
                    '<div id="cwDivContainerCookwareComponent" class="cwContentHeight cwContentWidth cwScrollY">'+
                        '<table cellspacing="0" cellpadding="0">'+
                            '<tr class="cwTitleRowHeight">'+
                                 '<a id="top"/>'+
                                '<td class="cwSubTitleFont cwSubTitlePadding">COOKWARE COMPONENTS</td> '+
                            '</tr>'+
                        '</table>'+
                        
                        '<table cellpadding="0px" cellspacing="0px"> '+
                            '<tr class="displayitem">'+
                                '<td>'+
                                '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwLinkXPadding  cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'CASSEROLE\',\'cwDivContainerCookwareComponent\');return false;">CASSEROLE</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'CHEFS PAN\',\'cwDivContainerCookwareComponent\');return false;">CHEF\'S PAN</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'EVERYDAY PAN\',\'cwDivContainerCookwareComponent\');return false;">EVERYDAY PAN</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'FRY/OMELETTE PAN\',\'cwDivContainerCookwareComponent\');return false;">FRY/OMELETTE PAN</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'GRIDDLE\',\'cwDivContainerCookwareComponent\');return false;">GRIDDLE</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+
                            
                            '<tr class="displayitem">'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                      '<tr>'+
                                            '<td class="cwLinkXPadding  cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'GRILL PAN\',\'cwDivContainerCookwareComponent\');return false;">GRILL PAN</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'INDUCTION BURNER\',\'cwDivContainerCookwareComponent\');return false;">INDUCTION BURNER</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'MULTI-POT\',\'cwDivContainerCookwareComponent\');return false;">MULTI-POT</a><br/>'+
                                            '</td>'+
                                            '<td class="cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'PANINI PAN\',\'cwDivContainerCookwareComponent\');return false;">PANINI PAN</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'PRESSURE COOKER\',\'cwDivContainerCookwareComponent\');return false;">PRESSURE COOKER</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                               ' </td>'+
                            '</tr>'+
                            
                            '<tr class="displayitem">'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwLinkXPadding  cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'ROASTER\',\'cwDivContainerCookwareComponent\');return false;">ROASTER</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'ROASTING RACK\',\'cwDivContainerCookwareComponent\');return false;">ROASTING RACK</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'SAUCEPAN\',\'cwDivContainerCookwareComponent\');return false;">SAUCEPAN</a><br/>'+
                                            '</td>'+
                                                '<td class=" cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                    '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'SAUCIER\',\'cwDivContainerCookwareComponent\');return false;">SAUCIER</a><br/>'+
                                            '</td>'+        
                                             '</td>'+
                                                '<td class=" cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                    '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'SAUTE PAN\',\'cwDivContainerCookwareComponent\');return false;">SAUTE\' PAN</a><br/>'+
                                            '</td>'+    
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr> '+        
                            
                             '<tr class="displayitem">'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwLinkXPadding  cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'SAUTEUSE\',\'cwDivContainerCookwareComponent\');return false;">SAUTEUSE</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'STOCK POT\',\'cwDivContainerCookwareComponent\');return false;">STOCK POT</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'WINDSOR PAN\',\'cwDivContainerCookwareComponent\');return false;">WINDSOR PAN</a><br/>'+
                                            '</td>'+
                                                '<td class=" cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                    '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'WOK/STIR FRY\',\'cwDivContainerCookwareComponent\');return false;">WOK/STIR FRY</a><br/>'+
                                            '</td>'+                                                     
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+        
                            
                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwContentTopPadding cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="CASSEROLE"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Casserole</font><br/>  '+
                                                '<font class="cwFontStyleVerdanaNormal">From the French for "stew pan", a casserole is a large, deep dish that is designed to go from the hot oven or stovetop directly to the dinner table. Many casseroles are made of earthenware, glass or cast iron for higher heat resistance.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                   ' </table>'+
                                '</td>'+
                            '</tr>'+
                            
                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="CHEFS PAN"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Chef\'s Pan</font><br/>  '+
                                                '<font class="cwFontStyleVerdanaNormal">A close relative of the saucier, the versatile chef\'s pan has a rounded bottom for easy stirring and can double as a saucepan or skillet.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                       ' </tr>'+
                                   '</table>'+
                                '</td>'+
                            '</tr>'+
                            
                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="EVERYDAY PAN"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Everyday Pan</font><br/>  '+
                                                '<font class="cwFontStyleVerdanaNormal">Similar to a sauteuse, but with gently sloping sides. Just as its name implies, this all-purpose pan can do just about anything; use it in the oven or on the stovetop to sear, brown, saute\' or prepare specialty dishes like the Spanish favorite, paella.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                   ' </table>'+
                                '</td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="FRY/OMELETTE PAN"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Fry/Omelette Pan</font><br/>  '+
                                                '<font class="cwFontStyleVerdanaNormal">Also called a skillet, this flat pan has gently sloping sides, a long handle and no lid. It\'s typically used for frying, searing and browning foods, making it one of the most versatile household pans.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="GRIDDLE"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Griddle</font><br/>  '+
                                                '<font class="cwFontStyleVerdanaNormal">A breakfast mainstay, these flat, customarily rimless pans are designed to cook food like eggs or pancakes with a minimal amount of fat or oil. To make cooking more convenient, some griddles have a nonstick cooking surface.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                               ' </td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="GRILL PAN"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Grill Pan</font><br/>   '+
                                               ' <font class="cwFontStyleVerdanaNormal">Much like a griddle with one main difference: grill pans have raised ridges to give vegetables, meat and fish the hallmark lines associated with grilling. The ridges also keep food above collected oil and fat for healthier cooking.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                   ' <table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                           ' <td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="INDUCTION BURNER"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Induction Burner</font><br/>  '+
                                                '<font class="cwFontStyleVerdanaNormal">For use exclusively with cookware made of a magnetically based material, this special ceramic cooktop features induction energy coils directly beneath the surface. Because it uses molecular movement as its power source, induction is one of the safest, most energy efficient cooking methods available, heating cookware rapidly while the burner stays cool to the touch.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="MULTI-POT"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Multi-Pot</font><br/>   '+
                                                '<font class="cwFontStyleVerdanaNormal">Essentially, a stock pot with inserts for straining and other cooking tasks. Use the pot on its own to simmer soups and stews, or take advantage of pasta inserts and steamer baskets to extend the utility of this multifaceted tool.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                           ' </td>'+
                                       ' </tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+

                           '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                       ' <tr>'+
                                            '<td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="PANINI PAN"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Panini Pan</font><br/> '+
                                                '<font class="cwFontStyleVerdanaNormal">Similar to a grill pan, but with a heavy, weighted lid or press-often made of cast iron-used to maximize contact between the food and the cooking surface.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+

                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                               ' <a id="PRESSURE COOKER"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Pressure Cooker</font><br/>  '+
                                                '<font class="cwFontStyleVerdanaNormal">This special, energy-efficient cooking pot features a locking, airtight lid and valve system to regulate internal pressure. This style of cooking is perfect for quickly preparing foods that would normally be slow-cooked with moist heat-for instance, soups, stews and tough meats.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                   ' </table>'+
                              '  </td>'+
                            '</tr>'+


                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="ROASTER"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Roaster</font><br/>   '+
                                                '<font class="cwFontStyleVerdanaNormal">Usually associated with large poultry and meat, deep, rectangular roasting pans are used to cook foods by surrounding them with hot air in the oven. Sturdy handles on each side ensure easy transport to and from the oven.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                       ' </tr>'+
                                    '</table>'+
                               ' </td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                           ' <td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="ROASTING RACK"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Roasting Rack</font><br/>  '+
                                                '<font class="cwFontStyleVerdanaNormal">Often included with a roasting pan, this slightly raised rack usually made of stainless steel elevates meat above the pan to allow juices to collect at the bottom for easy basting, while creating adequate air circulation for even cooking and browning. Roasting racks can be flat, V-shaped or adjustable.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                           ' </tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                       ' <tr>'+
                                            '<td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="SAUCEPAN"/>'+
                                               ' <font class="cwFontStyleVerdanaBlack">Saucepan</font><br/> '+
                                                '<font class="cwFontStyleVerdanaNormal">A culinary workhorse, saucepans can cook everything from complex sauces to frozen corn right out of the bag. The classic design features straight sides, a round base and perfectly flat bottom. Choose a nonstick saucepan for rice, oatmeal and other sticky ingredients.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                               ' <a id="SAUCIER"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Saucier</font><br/> '+
                                                '<font class="cwFontStyleVerdanaNormal">Another variation on the saucepan, the saucier has a wide top, shorter sides and a rounded bottom, making it easier to stir foods like pudding, gravy or risotto which might otherwise get stuck in the corners of straight-sided saucepans.</font><br/>'+
                                               ' <a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                       ' <tr>'+
                                            '<td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="SAUTE PAN"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Saute\' Pan</font><br/>   '+
                                                '<font class="cwFontStyleVerdanaNormal">This wide pan features a large cooking surface and straight or subtly curved sides, slightly higher than those of a fry pan. On heavier models, a long handle is often supplemented by an opposing helper handle for easier lifting. As the name suggests, the saute\' pan\'s main function is to efficiently brown and cook meats and a variety of other foods.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                           ' </tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="SAUTEUSE"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Sauteuse</font><br/>   '+
                                                '<font class="cwFontStyleVerdanaNormal">A round, deep-sided covered pan that can be used on the stovetop for saute\'ing or braising, as well as in the oven for baking a casserole. Designed to transition flawlessly from cooktop to table service, a sauteuse is equipped with two helper handles for easy transport.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                   ' </table>'+
                                '</td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="STOCK POT"/>'+
                                               ' <font class="cwFontStyleVerdanaBlack">Stock Pot</font><br/>   '+
                                                '<font class="cwFontStyleVerdanaNormal">Tall and narrow, stock pots are high-capacity cooking vessels that allow minimal evaporation during long periods of simmering. They\'re perfect for preparing large quantities of chicken, beef and vegetable stock, or cooking pasta and corn on the cob.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+
                            
                            '<tr>'+
                                '<td>'+
                                   ' <table cellspacing="0" cellpadding="0">'+
                                       ' <tr>'+
                                            '<td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                               ' <a id="WINDSOR PAN"/>'+
                                               ' <font class="cwFontStyleVerdanaBlack">Windsor Pan</font><br/>   '+
                                                '<font class="cwFontStyleVerdanaNormal">A slightly modified saucepan, the Windsor pan has flared sides for faster reductions. It\'s great for sauces, but not as versatile as the traditional saucepan.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+

                           ' <tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwPaddingSubHeader cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                               ' <a id="WOK/STIR FRY"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Wok/Stir Fry</font><br/>   '+
                                               ' <font class="cwFontStyleVerdanaNormal">An integral part of Asian cuisine, this round-bottomed pan is designed to toss ingredients and is perfect for stir frying, steaming, braising, stewing and deep frying-always over high heat. Woks are often accompanied by a ring-shaped stand to hold them steady on gas stovetops, but are also available with flat bottoms for use on electric stoves.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerCookwareComponent\');return false;">back to top</a><br/>'+
                                               '</td>'+
                                        '</tr>'+
                                    '</table>'+                                   
                                '</td>'+
                            '</tr>'+
                         '</table> '+                        
                    '</div>'+ 
                    
                    '<table cellspacing="0" cellpadding="0">'+
                        '<tr class="cwTitleRowHeight displayitem">'+                                
                            '<td class ="cwCloseImagePadding">'+
                             '<img class= "cwCloseImageWidth cwCloseImageHeight cwlCursorHand" id="cwidCloseButton" src="'+VERSION_DIR+'img/link_close_button.jpg" onclick="closePage();"></img>'+
                             '</td> '+
                        '</tr>'+
                    '</table>'+                    
                '</td>'+                 
            '</tr>'+
        '</table>'); 
   
    var callback = function(result)
    {
    };

    var errCB = function()
    {
    };

 
    platformShowPopup(cookwareData, CW_GLOSSARY_TABLE_WIDTH, CW_GLOSSARY_TABLE_HEIGHT, false, false, createDelegate(platformOnCancelled, this, [1, "platformShowPopup"]));
 
}
function shopNow(anchor, url)
{
    anchor.href=url;
    return true;
}

function showGlossary()
{ 

    platformRegisterPageView('ca-so-cf-glossary.material', 'ca-so-cf-glossary'); 
    
    var cookwareData =  ( 
        '<table id="id_mainTable" class="cwMainTableWidth '+(cwisIE ? ' ': ' pagebreak')+' cwBorder1 " cellspacing="0" cellpadding="0">' +
            '<tr>'+
                '<td>'+
                    '<font class="cwTitleHead pagebreak cwFontStyleCenturyGothicHeading">glossary</font><br/> '+
                '</td>'+
            '</tr>'+
            
             '<tr>'+
                '<td valign="top">'+
                    '<div class="cwImageDivWidth">'+
                        '<table cellspacing="0" cellpadding="0">'+
                         '<tr>'+
                            '<td class="cwImageProps">'+
                                '<img class="cwTagImageWidth cwTagImageHeight cwlCursorHand" alt="" id="cwMetSelButton" src="'+VERSION_DIR+'img/materials_button_sel.jpg" onclick="showGlossary();"></img>' +                    
                            '</td>'+                      
                           '<td class="cwImageProps">'+
                                '<img class=" cwTagImageWidth2 cwTagImageHeight cwlCursorHand" alt="" id="cwCookDeselButton" src="'+VERSION_DIR+'img/cookware_button_desel.jpg" onclick="cookwareComponents();"></img>' +                                     
                            '</td>'+
                            '<td class="cwImageProps cwPrintImageHeight cwPrintImagePadding">'+
                                '<a href="javascript:window.print()"><img class="displayitem cwlCursorHand" alt="" id="cwPrintButton" src="'+VERSION_DIR+'img/link_print_button.jpg" border="none"></img>' +                                                        
                           ' </td>'+
                          '</tr>'+
                        '</table>'+
                    '</div>'+
                '</td> '+                  
            '</tr>'+
            
            '<tr>'+
                '<td>'+
                    '<div id="cwDivContainerComponent" class="cwContentHeight cwContentWidth cwScrollY">'+
                        '<table cellspacing="0" cellpadding="0">'+
                            '<tr class="cwTitleRowHeight">'+
                                 '<a id="top"/>'+
                                '<td class="cwSubTitleFont cwSubTitlePadding">MATERIALS</td> '+
                            '</tr>'+
                        '</table>'+
                        
                        '<table cellpadding="0px" cellspacing="0px"> '+
                            '<tr class="displayitem">'+
                                '<td>'+
                                '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwLinkXPadding  cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'18/10 Stainless Steel\',\'cwDivContainerComponent\');return false;">18/10 STAINLESS STEEL</a><br/>'+
                                            '</td>'+
                                            '<td class="cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'Cast Iron\',\'cwDivContainerComponent\');return false;">CAST IRON</a><br/>'+
                                            '</td>'+
                                            '<td class="cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'Clad\',\'cwDivContainerComponent\');return false;">CLAD</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'Copper Core\',\'cwDivContainerComponent\');return false;">COPPER CORE</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'Core\',\'cwDivContainerComponent\');return false;">CORE</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+
                            
                            '<tr class="displayitem">'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                      '<tr>'+
                                            '<td class="cwLinkXPadding  cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'Exterior\',\'cwDivContainerComponent\');return false;">EXTERIOR</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'Hard Anodized\',\'cwDivContainerComponent\');return false;">HARD ANODIZED</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'Induction Cooking\',\'cwDivContainerComponent\');return false;">INDUCTION COOKING</a><br/>'+
                                            '</td>'+
                                            '<td class="cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'Interior\',\'cwDivContainerComponent\');return false;">INTERIOR</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'Nonstick\',\'cwDivContainerComponent\');return false;">NONSTICK</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                               ' </td>'+
                            '</tr>'+
                            
                            '<tr class="displayitem">'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class="cwLinkXPadding  cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'Ply\',\'cwDivContainerComponent\');return false;">PLY</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'Riveted Handle\',\'cwDivContainerComponent\');return false;">RIVETED HANDLE</a><br/>'+
                                            '</td>'+
                                            '<td class=" cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'Silicone\',\'cwDivContainerComponent\');return false;">SILICONE</a><br/>'+
                                            '</td>'+
                                                '<td class=" cwLinkTopPadding cwLinkWidth" valign="top">'+
                                                    '<a class="cwFontStyleVerdanaLink" href="#" onclick="platformAnchorJump(\'Thermal Conductivity\',\'cwDivContainerComponent\');return false;">THERMAL CONDUCTIVITY</a><br/>'+
                                            '</td>'+                                         
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr> '+     
                            
                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class=" cwContentTopPadding cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="18/10 Stainless Steel"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">18/10 Stainless Steel</font><br/>  '+
                                                '<font class="cwFontStyleVerdanaNormal">These mysterious numbers actually refer to the percentages of chromium and nickel in the metallic makeup of stainless steel. The first number refers to the percentage of chromium, added for durability and greater resistance to corrosion. The second number refers to the percentage of nickel, used to provide a more polished, silver sheen. Cookware that is designated as 18/10 is 18% chromium and 10% nickel, the highest quality stainless steel available.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                   ' </table>'+
                                '</td>'+
                            '</tr>'+
                            
                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class=" cwPaddingSubHeader cwContentLineHeight " valign="top">'+
                                                '<a id="Cast Iron"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Cast Iron</font><br/>  '+
                                                '<font class="cwFontStyleVerdanaNormal">A strong, heavy metal with the ability to heat up and cool down slowly, allowing it to retain heat better than any other cooking material. Cast iron is sometimes finished in colorful enamels, not only for aesthetic purposes, but to prevent rust and allow for more through cleaning.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                       ' </tr>'+
                                   '</table>'+
                                '</td>'+
                            '</tr>'+
                            
                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class=" cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="Clad"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Clad</font><br/>  '+
                                                '<font class="cwFontStyleVerdanaNormal">When one metal is bonded to another, especially for the purpose of providing cookware with a protective coating.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                   ' </table>'+
                                '</td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class=" cwPaddingSubHeader cwContentLineHeight "valign="top">'+
                                                '<a id="Copper Core"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Copper Core</font><br/>  '+
                                                '<font class="cwFontStyleVerdanaNormal">When a layer of copper is sandwiched between layers of aluminum or stainless steel. Since it\'s a better heat conductor than both stainless steel and aluminum, the addition of copper is a common method for enhancing cooking performance.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class=" cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="Core"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Core</font><br/>  '+
                                                '<font class="cwFontStyleVerdanaNormal">The middle layer of the cookware. This part of the pot or pan serves as the primary heat conductor.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                               ' </td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class=" cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="Exterior"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Exterior</font><br/>   '+
                                               ' <font class="cwFontStyleVerdanaNormal">The outside of the cookware. This is the part of the pot or pan that sits directly on the stovetop or burner.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                   ' <table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                           ' <td class=" cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="Hard Anodized"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Hard Anodized</font><br/>  '+
                                                '<font class="cwFontStyleVerdanaNormal">Aluminum treated with a special electrolytic process that forms a dark coating of aluminum oxide on the surface of the metal. Far stronger than untreated aluminum, hard-anodized cookware exhibits greater resilience and conductivity.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class=" cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="Induction Cooking"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Induction Cooking</font><br/>   '+
                                                '<font class="cwFontStyleVerdanaNormal">A technology by which cookware is heated using magnetic energy. Induction cooking requires cookware made of a magnetic-based material and a distinct stovetop with induction energy coils directly beneath the surface.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerComponent\');return false;">back to top</a><br/>'+
                                           ' </td>'+
                                       ' </tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+

                           ' <tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                       ' <tr>'+
                                            '<td class=" cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="Interior"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Interior</font><br/> '+
                                                '<font class="cwFontStyleVerdanaNormal">The inner surface of the cookware. this is the part of the pot or pan where food is cooked.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class=" cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                               ' <a id="Nonstick"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Nonstick</font><br/>  '+
                                                '<font class="cwFontStyleVerdanaNormal">Cookware treated with one of three bases: silicone, ceramic, or fluorocarbon (PTFE). Cooking surfaces treated with a nonstick coating allow food to be easily removed without the aid of oil or fats.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                   ' </table>'+
                              '  </td>'+
                            '</tr>'+


                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class=" cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="Ply"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Ply</font><br/>   '+
                                                '<font class="cwFontStyleVerdanaNormal">A layer of metal used to create the body of a cookware component. The more layers of metal, the higher the ply; the higher the ply, the better the quality.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                       ' </tr>'+
                                    '</table>'+
                               ' </td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                           ' <td class=" cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                                '<a id="Riveted Handle"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Riveted Handle </font><br/>  '+
                                                '<font class="cwFontStyleVerdanaNormal">Handles attached to the cookware body with rivets, or metal pins that pass through holes in two or more plates, holding them firmly together. Riveted handles can withstand far more stress than welded ones.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                           ' </tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                       ' <tr>'+
                                            '<td class=" cwPaddingSubHeader cwContentLineHeight"  valign="top">'+
                                                '<a id="Silicone"/>'+
                                               ' <font class="cwFontStyleVerdanaBlack">Silicone</font><br/> '+
                                                '<font class="cwFontStyleVerdanaNormal">Light and flexible, this rubbery material is able to withstand temperatures up to 675 degrees. Since it\'s a poor heat conductor, silicone is often used to keep cookware handles cool to the touch.</font><br/>'+
                                                '<a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerComponent\');return false;">back to top</a><br/>'+
                                            '</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+

                            '<tr>'+
                                '<td>'+
                                    '<table cellspacing="0" cellpadding="0">'+
                                        '<tr>'+
                                            '<td class=" cwPaddingSubHeader cwContentLineHeight" valign="top">'+
                                               ' <a id="Thermal Conductivity"/>'+
                                                '<font class="cwFontStyleVerdanaBlack">Thermal Conductivity </font><br/> '+
                                                '<font class="cwFontStyleVerdanaNormal">The transfer of heat from a source, such as the stovetop or oven, to the metal of the cookware. Cooper and aluminum tend to be the best conductors of heat.</font><br/>'+
                                               ' <a class="displayitem cwFontStyleVerdanaNormal" href="#" onclick="platformScrollToTop(\'cwDivContainerComponent\');return false;">back to top</a><br/>'+
                                              '</td>'+
                                        '</tr>'+
                                    '</table>'+                                   
                                '</td>'+
                            '</tr>'+
                         '</table> '+                        
                    '</div>'+ 
                    
                    '<table cellspacing="0" cellpadding="0">'+
                        '<tr class="cwTitleRowHeight displayitem">'+                                
                            '<td class ="cwCloseImagePadding">'+
                             '<img class= "cwCloseImageWidth cwCloseImageHeight cwlCursorHand" id="cwidCloseButton" src="'+VERSION_DIR+'img/link_close_button.jpg" onclick="closePage();"></img>'+
                             '</td> '+
                        '</tr>'+
                    '</table>'+                    
                '</td>'+                 
            '</tr>'+
        '</table>'); 
                           

    var callback = function(result)
    {
    };

    var errCB = function()
    {
    };

    if(cwIsFirstLoad)
    {
         cwIsFirstLoad = false;    
         platformShowPopup(cookwareData, CW_GLOSSARY_TABLE_WIDTH, CW_GLOSSARY_TABLE_HEIGHT, false, true, callback, errCB);
    }
    else
    {
        platformShowPopup(cookwareData, CW_GLOSSARY_TABLE_WIDTH, CW_GLOSSARY_TABLE_HEIGHT, false, false, createDelegate(platformOnCancelled, this, [1, "platformShowPopup"]));
    }
    
                                                  

}

function createHTMLForCompareCookwareComponent(productName1, productName2, productName3,
    image1, image2, image3,
    registerPrice1, registerPrice2, registerPrice3,
    salePrice1, salePrice2, salePrice3,
    rating1, rating2, rating3,
    material1, material2, material3,
    cookwareType1, cookwareType2, cookwareType3, 
    otherfeatures1, otherfeatures2, otherfeatures3, 
    webID1, webID2, webID3, 
    shopUrl1, shopUrl2, shopUrl3, 
    productUrlName1, productUrlName2, productUrlName3, 
    productUrl1, productUrl2, productUrl3, 
    sharingTitle, sharingDescription, sharingWebURL)
{ 


    platformRegisterPageView('ca-so-cf-compare', 'ca-so-cookware-finder'); 
    
    
    /*Rating image name conversition*/
    var ratingsImage =  new Array(3);
    if(rating1)
    {
        if(showAlerts)
        {
            alert("rating1: "+rating1);
        }
   
        if((rating1.split(".")).length > 1)
        {
            rating1 = ((Number(rating1)).toFixed(1)).toString();          
            if(rating1.substring(rating1.indexOf(".")) == ".0")
            {
                rating1 = rating1.substring(0,rating1.indexOf("."));           
            }
        }

        var ratingOneMod = (parseFloat(rating1)) % 1;
        var ratingOne = (((ratingOneMod > 0.5) ? ((rating1 > 1 ? (parseInt(rating1) + 1) : 1)) : ((ratingOneMod < 0.5) ? (rating1 >= 1 ? (parseInt(rating1)) : 0) : rating1))).toString();
        ratingsImage[0] =  ((ratingOne.split(".")).length > 1) ? ratingOne.replace(/\./g, '') : (ratingOne + "0");       
    }
    if(rating2)
    {
        if(showAlerts)
        {
            alert("rating2: "+rating2);
        }
     
        if((rating2.split(".")).length > 1)
        {
            rating2 = ((Number(rating2)).toFixed(1)).toString();
            if(rating2.substring(rating2.indexOf(".")) == ".0")
            {
                rating2 = rating2.substring(0,rating2.indexOf("."));           
            }
        }
        var ratingTwoMod = (parseFloat(rating2)) % 1;
        var ratingTwo = (((ratingTwoMod > 0.5) ? ((rating2 > 1 ? (parseInt(rating2) + 1) : 1)) : ((ratingTwoMod < 0.5) ? (rating2 >= 1 ? (parseInt(rating2)) : 0): rating2))).toString();
        ratingsImage[1] =  ((ratingTwo.split(".")).length > 1) ? ratingTwo.replace(/\./g, '') : (ratingTwo + "0");

    }
    if(rating3)
    {
        if(showAlerts)
        {
            alert("rating3: "+rating3);
        }
        if((rating3.split(".")).length > 1)
        {
            rating3 = ((Number(rating3)).toFixed(1)).toString();
            if(rating3.substring(rating3.indexOf(".")) == ".0")
            {
                rating3 = rating3.substring(0,rating3.indexOf("."));           
            }
        }
        var ratingThreeMod = (parseFloat(rating3)) % 1;
        var ratingThree = (((ratingThreeMod > 0.5) ? ((rating3 > 1 ? (parseInt(rating3) + 1) : 1)) : ((ratingThreeMod < 0.5) ? (rating3 >= 1 ? (parseInt(rating3)) : 0) : rating3))).toString();
        ratingsImage[2] =  ((ratingThree.split(".")).length > 1) ? ratingThree.replace(/\./g, '') : (ratingThree + "0");     

    }

    var cwShareEntriesTitle = ((sharingTitle) ? sharingTitle : defaultTitle);
    var cwShareEntriesDescription =  ((sharingDescription) ? sharingDescription : defaultDescription);
    var cwShareEntriesIconURL =((image1) ? image1 : "");
    var cwShareEntriesWebURL = ((sharingWebURL) ? sharingWebURL : defaultWebURL);

    
    productUrl1 = (productUrl1 && (typeof productUrl1 != "undefined")) ? productUrl1 : "";
    productUrl2 = (productUrl2 && (typeof productUrl2 != "undefined")) ? productUrl2 : "";
    productUrl3 = (productUrl3 && (typeof productUrl3 != "undefined")) ? productUrl3 : "";

    productUrlName1 = (productUrlName1 && (typeof productUrlName1 != "undefined")) ? productUrlName1 : "";
    productUrlName2 = (productUrlName2 && (typeof productUrlName2 != "undefined")) ? productUrlName2 : "";
    productUrlName3 = (productUrlName3 && (typeof productUrlName3 != "undefined")) ? productUrlName3 : "";

    var cwmailWebUrl = "<img src="+((image1) ? image1 : "")+"></img><br/><br/><a href="+appendEmailCoreMetricsUrl(productUrl1)+">"+productUrlName1+"</a><br/><br/><img src="+((image2) ? image2 : "")+"><br/><br/><a href="+appendEmailCoreMetricsUrl(productUrl2)+">"+productUrlName2+"</a><br/><br/>" + ((productUrlName3) ? "<img src="+((image3) ? image3 : "")+"><br/><br/><a href="+appendEmailCoreMetricsUrl(productUrl3)+">"+productUrlName3+"</a>" : "");    


    var cookwareData =  ( 
         ' <div class="cwtable4  '+(cwisIE ? ' ': 'pagebreak')+'">'+
              '<table id="Table_01" cellpadding="0" cellspacing="0" class="pledgetable6 cwBorder1">'+
                '<tr>'+
                    '<td>'+
                       '<table id="Table_02" cellpadding="0" cellspacing="0">'+
                            '<tr>'+
                                '<td class="cwtitlefont cwtable1 topPadding14 sharetdwidth">compare cookware</td>'+
                                '<td id="sharecontrol" class="displayitem cwShareIt topPadding20">');
                                    cookwareData += shareItControlElmts('<img class= "cwlCursorHand" src="'+VERSION_DIR+'img/link_share_button.jpg" border="none"></img>',cwShareEntriesTitle, cwShareEntriesDescription, cwShareEntriesIconURL, cwShareEntriesWebURL, defaultWebURL);    
                                    cookwareData += ( '</td>'+
                                '<td>'+                                                        
                                    '<img class= "displayitem alignRight rightPadding10 cwlCursorHand topPadding15" id="cwEmailButton" src="'+VERSION_DIR+'img/link_email_button.jpg" onclick=\'showEmailExSkipCm(myCallbackSwf, "'+sanitizeStr(cwShareEntriesTitle)+'", "'+sanitizeStr(cwShareEntriesDescription)+'", "'+cwShareEntriesIconURL+'","'+sanitizeStr(cwmailWebUrl)+'","'+maileridCompareEmail[campaignidSA]+'");return false;\'></img>'+                                  
                                '</td>'+  
                                '<td class="topPadding15">'+
                                    '<a href="javascript:window.print()"><img class= "displayitem alignRight rightPadding20 cwlCursorHand" id="cwPrintButton" src="'+VERSION_DIR+'img/link_print_button.jpg" border="none"></img>'+                                  
                                '</td>'+  
                            '</tr>'+
                        '</table>'+
                    '</td>'+
                '</tr>'+
                
                '<tr>'+
                    '<td class="leftPadding30">'+
                      '<div class="cwtable5 cwScrollY">'+
                        '<table id="Table_01" border="0" cellpadding="0" cellspacing="0" class="cwtable2 '+(cwisIE ? ' cwtableIE2': '')+'">'+
                            '<tr>'+
                                '<td class="cwtdwidth1 cwsubtitlefont">Product name</td>'+
                                '<td class="cwtdwidthborder2 cwsubtitlefont">'+
                                     '<table>'+
                                        '<tr>'+
                                           '<td  class="cwtdwidth2a cwsubtitlefontProductName alignLeft">'+(productName1 ? productName1 : "")+'</td>'+
                                        '</tr>'+
                                     '</table>'+                                   
                                '</td>'+
                                '<td class="cwtdwidthborder3 cwsubtitlefont">'+
                                    '<table>'+
                                        '<tr>'+
                                            '<td class="cwtdwidth3a alignLeft cwsubtitlefontProductName">'+(productName2 ? productName2 : "")+'</td>'+
                                        '</tr>'+
                                    '</table>'+   
                                '</td>'+
                                '<td class="cwtdwidthborder2 cwsubtitlefont">'+
                                   '<table>'+
                                        '<tr>'+
                                            '<td class="cwtdwidth4a alignLeft cwsubtitlefontProductName">'+(productName3 ? productName3 : "")+'</td>'+
                                        '</tr>'+
                                    '</table>'+   
                                '</td>'+
                            '</tr>'+
                            
                            '<tr>'+
                                '<td class="cwtdwidth1 cwtdHeight1a cwsubtitlefont">'+ 
                                 '<table>'+
                                        '<tr>'+
                                            '<td></td>'+
                                        '</tr>'+
                                    '</table>'+   
                                '</td>'+
                                '<td class="cwtdwidth2"><img class="cwImagesProps alignMiddle" alt="" src='+(image1 ? image1 : "")+'></img></td>'+
                                '<td class="cwtdwidth3"><img class="cwImagesProps alignMiddle" alt="" src='+(image2 ? image2 : "")+'></img></td>'+
                                '<td class="cwtdwidth4"><img class="cwImagesProps alignMiddle" alt="" src='+(image3 ? image3 : "")+'></img></td>'+                                              
                            '</tr>'+
                            '<tr>'+
                                '<td class="cwtdwidth9 cwsubtitlefont">price</td>'+
                                '<td class="cwtdwidth10 cwsubtitlefont">'+
                                    '<table>'+
                                        '<tr>'+
                                           '<td class=" cwpricefont1 cwtdwidthpadding10">'+((registerPrice1 && registerPrice1 >= 0)? ("$" + registerPrice1) : "")+'</td>'+
                                        '</tr>'+
                                        '<tr>'+
                                            '<td class="cwpricefont2 cwtdwidthpadding10">'+((salePrice1 && salePrice1 >= 0)? ("$" + salePrice1) : "")+'</td>'+
                                        '</tr>'+
                                   ' </table>'+
                               ' </td>'+
                                '<td class="cwtdwidth10a cwsubtitlefont">'+
                                    '<table>'+
                                        '<tr>'+
                                            '<td class="cwpricefont1 cwtdwidthpadding10">'+((registerPrice2 && registerPrice2 >= 0)? ("$" + registerPrice2) : "")+'</td>'+
                                        '</tr>'+
                                       '<tr>'+
                                           '<td class="cwpricefont2 cwtdwidthpadding10">'+((salePrice2 && salePrice2 >= 0)? ("$" + salePrice2) : "")+'</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                                '<td class="cwtdwidth10a cwsubtitlefont">'+
                                    '<table>'+
                                        '<tr>'+
                                           '<td class="cwpricefont1 cwtdwidthpadding10">'+((registerPrice3 && registerPrice3 >= 0)? ("$" + registerPrice3) : "")+'</td>'+
                                        '</tr>'+
                                       ' <tr>'+
                                            '<td class="cwpricefont2 cwtdwidthpadding10">'+((salePrice3 && salePrice3 >= 0)? ("$" + salePrice3) : "")+'</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>'+
                            '</tr>'+
                            '<tr>'+
                            '<td class="cwtdwidth11 cwsubtitlefont">customer rating</td>');
                            
                            if(rating1 && rating1.length > 0 && (ratingsImage[0] >= 0))
                            {
                                cookwareData += ('<td class="cwtdwidth12">'+
                                    '<table>'+
                                       ' <tr>'+
                                            '<td class="cwtdHeight12 cwtdwidthpadding12  '+(cwisIE ? '': 'topPadding5')+'"><img alt="" class ="cwRatingImagesProps" src="'+VERSION_DIR+'img/star_'+(ratingsImage[0] ? ratingsImage[0] : "")+'.png"></img></td>'+
                                            '<td class="cwtdHeight12 cwsubtitlefont cwsubtitlefontprintRating">'+ rating1 +' out of 5</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>');
                            }
                            else
                            {
                                cookwareData += ('<td class="cwtdwidth12">'+
                                        '<table>'+
                                            '<tr>'+
                                               '<td></td>'+
                                            '</tr>'+
                                         '</table>'+                                        
                                        '</td>');
                            }
                            if(rating2 && rating2.length > 0 && (ratingsImage[1] >= 0))
                            {
                                cookwareData += ('<td class="cwtdwidth12a">'+
                                    '<table>'+
                                        '<tr>'+
                                            '<td class="cwtdHeight12 cwtdwidthpadding12  '+(cwisIE ? '': 'topPadding5')+'"><img alt="" class ="cwRatingImagesProps" src="'+VERSION_DIR+'img/star_'+(ratingsImage[1] ? ratingsImage[1] : "")+'.png"></img></td>'+
                                            '<td class="cwtdHeight12 cwsubtitlefont cwsubtitlefontprintRating">'+rating2+' out of 5</td>'+
                                        '</tr>'+
                                    '</table>'+
                               ' </td>');
                            }
                            else
                            {
                                cookwareData += ('<td class="cwtdwidth12a">'+
                                        '<table>'+
                                            '<tr>'+
                                               '<td></td>'+
                                            '</tr>'+
                                         '</table>'+                                        
                                        '</td>');
                            }
                            if(rating3 && rating3.length > 0 && (ratingsImage[2] >= 0))
                            {
                                cookwareData += ('<td class="cwtdwidth12a">'+
                                    '<table>'+
                                        '<tr>'+
                                            '<td class="cwtdHeight12 cwtdwidthpadding12  '+(cwisIE ? '': 'topPadding5')+'"><img  alt="" class ="cwRatingImagesProps" src="'+VERSION_DIR+'img/star_'+(ratingsImage[2] ? ratingsImage[2] : "")+'.png"></img></td>'+
                                            '<td class="cwtdHeight12 cwsubtitlefont cwsubtitlefontprintRating">'+rating3+' out of 5</td>'+
                                        '</tr>'+
                                    '</table>'+
                                '</td>');
                            }
                            else
                            {
                                cookwareData += ('<td class="cwtdwidth12a">'+
                                        '<table>'+
                                            '<tr>'+
                                               '<td></td>'+
                                            '</tr>'+
                                         '</table>'+                                        
                                        '</td>');
                            }

                           cookwareData += ( '</tr>'+
                            
                            '<tr>'+
                                '<td class="cwtdwidth13 cwsubtitlefont">material</td>'+
                                '<td class="cwtdwidth13a cwpricefont1">'+
                                    '<table>'+
                                        '<tr>'+
                                           '<td>'+(material1 ? material1 : "")+'</td>'+
                                        '</tr>'+
                                     '</table>'+    
                                '</td>'+
                                '<td class="cwtdwidth13b cwpricefont1">'+
                                   '<table>'+
                                        '<tr>'+
                                           '<td>'+(material2 ? material2 : "")+'</td>'+
                                        '</tr>'+
                                     '</table>'+ 
                                '</td>'+
                                '<td class="cwtdwidth13b cwpricefont1">'+
                                   '<table>'+
                                        '<tr>'+
                                           '<td>'+(material3 ? material3 : "")+'</td>'+
                                        '</tr>'+
                                     '</table>'+ 
                                '</td>'+
                            '</tr>'+
                            
                            '<tr>'+
                                '<td class="cwtdwidth13 cwsubtitlefont">cookware type</td>'+
                                '<td class="cwtdwidth13a cwpricefont1">'+
                                   '<table>'+
                                        '<tr>'+
                                           '<td>'+(cookwareType1 ? cookwareType1 : "")+'</td>'+
                                        '</tr>'+
                                     '</table>'+ 
                                '</td>'+
                                '<td class="cwtdwidth13b cwpricefont1">'+
                                     '<table>'+
                                        '<tr>'+
                                           '<td>'+(cookwareType2 ? cookwareType2 : "")+'</td>'+
                                        '</tr>'+
                                     '</table>'+ 
                                '</td>'+
                                '<td class="cwtdwidth13b cwpricefont1">'+
                                     '<table>'+
                                        '<tr>'+
                                           '<td>'+(cookwareType3 ? cookwareType3 : "")+'</td>'+
                                        '</tr>'+
                                     '</table>'+
                                '</td>'+
                            '</tr>'+
                            
                            '<tr>'+
                                '<td class="cwtdwidth13 cwsubtitlefont">other feature</td>'+
                                '<td class="cwtdwidth13a cwpricefont1">'+
                                  '<table>'+
                                        '<tr>'+
                                           '<td>'+(otherfeatures1 ? otherfeatures1 : "")+'</td>'+
                                        '</tr>'+
                                     '</table>'+
                                '</td>'+
                                '<td class="cwtdwidth13b cwpricefont1">'+
                                     '<table>'+
                                        '<tr>'+
                                           '<td>'+(otherfeatures2 ? otherfeatures2 : "")+'</td>'+
                                        '</tr>'+
                                     '</table>'+
                                '</td>'+
                               ' <td class="cwtdwidth13b cwpricefont1">'+
                                    '<table>'+
                                        '<tr>'+
                                           '<td>'+(otherfeatures3 ? otherfeatures3 : "")+'</td>'+
                                        '</tr>'+
                                     '</table>'+
                               '</td>'+
                            '</tr>'+
                            
                            '<tr>'+
                               ' <td class="cwtdwidth13 cwsubtitlefont">web ID</td>'+
                                '<td class="cwtdwidth13a cwpricefont1">'+
                                     '<table>'+
                                        '<tr>'+
                                           '<td>'+(webID1 ? webID1 : "")+'</td>'+
                                        '</tr>'+
                                     '</table>'+
                                '</td>'+
                                '<td class="cwtdwidth13b cwpricefont1">'+
                                     '<table>'+
                                        '<tr>'+
                                           '<td>'+(webID2 ? webID2 : "")+'</td>'+
                                        '</tr>'+
                                     '</table>'+
                                '</td>'+
                                '<td class="cwtdwidth13b cwpricefont1">'+
                                     '<table>'+
                                        '<tr>'+
                                           '<td>'+(webID3 ? webID3 : "")+'</td>'+
                                        '</tr>'+
                                     '</table>'+
                                '</td>'+
                            '</tr>'+
                            
                            '<tr>'+
                                '<td class="cwtdwidth14">'+
                                  '<table>'+
                                        '<tr>'+
                                            '<td></td>'+
                                        '</tr>'+
                                    '</table>'+   
                                    '</td>');
                           
                                if(shopUrl1 && shopUrl1.length > 0)
                                {
                                    cookwareData += ( '<td class="leftPadding35 cwtdwidth14a"><a class="cwsubtitlefontShop" href="javascript:false" target="blank" border="none" onclick="shopNow(this, \''+(shopUrl1)+'\');return true;">shop now</a></td>');
                                }
                                else
                                {
                                    cookwareData += ('<td class="cwtdwidth14a">'+
                                        '<table>'+
                                            '<tr>'+
                                               '<td></td>'+
                                            '</tr>'+
                                         '</table>'+                                        
                                        '</td>');
                                }
                                if(shopUrl2 && shopUrl2.length > 0)
                                {
                                    cookwareData += ( '<td class="leftPadding35 cwtdwidth14b"><a class="cwsubtitlefontShop" href="javascript:false" target="blank" border="none" onclick="shopNow(this, \''+(shopUrl2)+'\');return true;">shop now</a></td>');
                                }
                                else
                                {
                                    cookwareData += ('<td class="cwtdwidth14a">'+
                                        '<table>'+
                                            '<tr>'+
                                               '<td></td>'+
                                            '</tr>'+
                                         '</table>'+                                        
                                        '</td>');
                                }
                                if(shopUrl3 && shopUrl3.length > 0)
                                {
                                    cookwareData += ('<td class="leftPadding35 cwtdwidth14b"><a class="cwsubtitlefontShop" href="javascript:false" target="blank" border="none" onclick="shopNow(this, \''+(shopUrl3)+'\');return true;">shop now</a></td>');
                                }
                                else
                                {
                                    cookwareData += ('<td class="cwtdwidth14a">'+
                                        '<table>'+
                                            '<tr>'+
                                               '<td></td>'+
                                            '</tr>'+
                                         '</table>'+                                        
                                        '</td>');
                                }
                                
                                cookwareData += ( '</tr>'+
                        '</table>'+
                        '</div>'+
                    '</td>'+
                  
                '</tr>'+

                '<tr class="displayitem">'+                                
                    '<td class ="cwCloseCompareCookWareImagePadding">'+
                        '<img class= "bottomPadding10 cwCloseImageWidth cwCloseImageHeight cwlCursorHand" id="cwidCloseButton" src="'+VERSION_DIR+'img/link_close_button.jpg" onclick="closePage();"></img>'+
                    '</td> '+
                '</tr>'+

            '</table>'+
        ' </div>' ) ; 

    var callback = function(result)
    {
    };

    var errCB = function()
    {
    };
    platformShowPopup(cookwareData, CW_COMPARE_TABLE_WIDTH, CW_COMPARE_TABLE_HEIGHT, false, true, callback, errCB);
        

     
}

function showCompare(entry_id1, entry_id2, entry_id3, sharingTitle, sharingDescription, sharingWebURL)
{ 
        if(showAlerts)
        {
            alert("calling show compare");
        }

        if(!(entry_id1 || entry_id2 || entry_id3))
        {
            if(showAlerts)
            {
                alert("empty entry id");
            }
            cwEntry_id1 = 0;
            cwEntry_id2 = 0;
            cwEntry_id3 = 0;
            cwCompareEntries=new Array(3);
            for (k=0; k <3; k++)
            {
                cwCompareEntries[k]=new Array(12) ;
            }
            doCompareCookwareComponent(cwCompareEntries, sharingTitle, sharingDescription, sharingWebURL);            
            
        }
        else if(cwEntry_id1 == entry_id1 && cwEntry_id2 == entry_id2 && cwEntry_id3 == entry_id3)
        {
            if(showAlerts)
            {
                alert("id already available");
            }
            doCompareCookwareComponent(cwCompareEntries, sharingTitle, sharingDescription, sharingWebURL);                        
        }
        else if(entry_id1 || entry_id2 || entry_id3)     
        {
            if(showAlerts)
            {
                alert("new id");
            }
            var loadingAnimation = ('<table id="header" class=" displayitem pledgetable6 cwBorder1" cellspacing="0" cellpadding="0" valign="top" >'+ 
                                                    '<tr>'+
                                                        '<td width="856px" height="550px" align="center" valign="middle"><img  border="none" align="center" src="'+VERSION_DIR+'img/loading_anim.gif"></img>'+
                                                        '</td>'+
                                                    '</tr>' +
                                                    '<tr>'+
                                                        '<td>'+
                                                            '<table cellspacing="0" cellpadding="0">'+ 
                                                                '<tr class="displayitem">'+                                
                                                                    '<td class ="cwCloseCompareCookWareImagePadding">'+
                                                                        '<img class= "bottomPadding10 cwCloseImageWidth cwCloseImageHeight cwlCursorHand" id="cwidCloseButton" src="'+VERSION_DIR+'img/link_close_button.jpg" onclick="closePage();"></img>'+
                                                                    '</td> '+
                                                                '</tr>'+
                                                            '</table>'+
                                                        '</td>'+
                                                    '</tr>'+                                      
                                                '</table>');

            platformShowPopup(loadingAnimation, CW_COMPARE_TABLE_WIDTH, CW_COMPARE_TABLE_HEIGHT, false, false, createDelegate(platformOnCancelled, this, [1, "platformShowPopup"]));

            doEntryLoad(entry_id1, entry_id2, entry_id3, sharingTitle, sharingDescription, sharingWebURL);
        }
       
}

function closePage()
{
    if(showAlerts)
    {
        alert("closePage called");
    }
    cwIsFirstLoad = true;
    platformOnCancelled(1, "showGlossary");
}

function appendEmailCoreMetricsUrl(productUrl)
{
    // from getCmWebUrl in socialactions.js
    return (productUrl + (productUrl.indexOf('?') != -1 ? "&" : "?") + "cm_mmc=FrPS-_-em-_-n-_-n"); 
}

