
var st_assets="cdn.shoptogether.com/Clients/Eastbay";var st_javascript="files.shoptog.com/Clients/ShopFootLocker/Eastbay"
var st_sitename="Eastbay";var st_sitedns="www.eastbay.com";var st_sitekey="eastbay";var st_shopserver="sts.1.shoptog.com";var st_crowdserver="crowd.shoptogether.com";var st_coremetrics_host="rpt.eastbay.com";var st_coremetrics_clientid="90100129";var st_coremetrics_production_on=true;var st_coremetrics_tracking_on=true;var st_whatshot_random=100;var st_favicon="http://"+st_assets+"/eastbay.png"
var st_whatshot_url="http://www.eastbay.com/promotion/promoId:5004403/shop-together/?#cmxPromoInfo#shoptogether_topvieweditems";

if(top.location!=location){top.location.href=document.location.href;}
var ds_st_requestId='';var ds_st_userNameVal='';var ds_st_friendsBaseHeight=200;var ds_st_onlineFriends=0;var ds_st_ie=false;var ds_st_ie6=false;var ds_st_safari=false;var ds_st_ie8=false;if(getInternetExplorerVersion()>=8.0){ds_st_ie8=true;}
if(!ds_st_allowFixedDivs()){ds_st_ie6=true;ds_st_ie=true;}
if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ds_st_ie=true;}
function st_onOpenShopTogether(){}
function st_onJoin(){}
function st_onCloseShopTogether(){}
function getInternetExplorerVersion(){var rv=-1;if(navigator.appName=='Microsoft Internet Explorer'){var ua=navigator.userAgent;var re=new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");if(re.exec(ua)!=null)
rv=parseFloat(RegExp.$1);}
return rv;}
function ds_st_onExitUser(result){}
function ds_st_onExitToolbar(result){var obj={};ShopTogetherBridge.send('group.user.delete','ds_st_onExitUser',obj);}
function ds_st_exitToolbar(){var obj={};ShopTogetherBridge.send('group.exit','ds_st_onExitToolbar',obj);document.getElementById('shopbarexitlink').style.visibility='hidden';document.getElementById('shopbardiv').style.visibility='hidden';document.getElementById('ds_st_shoptogethertoobarstart').style.visibility='hidden';document.getElementById('ds_st_shoptogetherlogo').style.visibility='hidden';document.getElementById('ds_st_chat').style.visibility='hidden';document.getElementById('ds_st_onlinefriends').style.visibility='hidden';document.getElementById('ds_st_favorites').style.visibility='hidden';try{ST$("#ds_st_favorites_window").css("visibility","hidden");ST$("#ds_st_favorites_window").css("display","none");}catch(ex){}
try{ST$("#ds_st_chat_window").css("visibility","hidden");ST$("#ds_st_chat_window").css("display","none");}catch(ex){}
try{ST$("#ds_st_onlinefriends_window").css("visibility","hidden");ST$("#ds_st_onlinefriends_window").css("visibility","none");}catch(ex){}
try{}catch(ex){}
ds_st_show_openButton();ds_st_setCookie('ds_st_turnon','false');ds_st_setCookie('ds_st_connected','false');ds_st_setCookie('st_on','0');ds_st_setCookie('st_new','0');ds_st_setCookie('st_ping','0');ds_st_setCookie('st_group_mod',ds_st_getCookie('st_group_mod')+1);st_onCloseShopTogether();try{ShopTogetherCoremetrics.OnClose();}catch(e){}}
if(ds_st_ie){document.write("<link  rel=stylesheet href=\"http://files.shoptog.com/Clients/ShopFootLocker/ShopTogetherIE62uat.css\"></link>");}
document.write("<link  rel=stylesheet href=\"http://"+st_assets+"/version2/shoptogether.css\"></link>");document.write("<script language=\"javascript\" type=\"text/javascript\" src=\"http://"+st_javascript+"/CustomTogetherToolbar.js\"></script>");if(!ds_st_ie6){var ds_st_toolbar_logo="http://"+st_assets+"/version2/images/shoptogether_toolbar_logo.png";var ds_st_chat_icon="http://"+st_assets+"/version2/images/comment.png";var ds_st_chat_add_icon="http://"+st_assets+"/version2/images/add_comment.png";var ds_st_fav_icon="http://"+st_assets+"/version2/images/favorites.png";var ds_st_fav_add_icon="http://"+st_assets+"/version2/images/add_favorites.png";var ds_st_fav_small_icon="http://"+st_assets+"/version2/images/favorites_small.png";var ds_st_close_line_icon="http://"+st_assets+"/version2/images/close_line.png";var ds_st_close_arrow_icon="http://"+st_assets+"/version2/images/close_arrow_button.png";}else{var ds_st_toolbar_logo="http://"+st_assets+"/version2/images/ie6_shoptogether_toolbar_logo.gif";var ds_st_chat_icon="http://"+st_assets+"/version2/images/ie6_comment.gif";var ds_st_chat_add_icon="http://"+st_assets+"/version2/images/ie6_add_comment.gif";var ds_st_fav_icon="http://"+st_assets+"/version2/images/ie6_favorites.gif";var ds_st_fav_add_icon="http://"+st_assets+"/version2/images/ie6_add_favorites.gif";var ds_st_fav_small_icon="http://"+st_assets+"/version2/images/ie6_favorites_small.gif";var ds_st_close_line_icon="http://"+st_assets+"/version2/images/ie6_close_line.gif";var ds_st_close_arrow_icon="http://"+st_assets+"/version2/images/close_arrow_button.gif";}
function ds_st_InviteJoinLinksWindow(url){var html="<div style=\"position:absolute;top:0px;left:0px;width:400px;height:358px;background-color:white;border:solid;border-color:black;border-width:1px\">";html+="<div style=\"width:100%;height:20px;position:absolute;top:0px;left:0px;background-color:black\">";html+="<a style='cursor:pointer;' onclick=\"javascript:ST$.unblockUI();\" target=\"_blank\"><img src=\"http://"+st_assets+"/version2/images/link_close.png\" border=\"0\" style=\"position:absolute;right:3px;top:3px\"></a>";html+="</div>";html+="<div style=\"width:100%;height:338px;position:absolute;top:20px;left:0px;background-color:white\">";html+="<div onclick='ds_st_openHelp()' style='position:absolute;right:4px;top:2px;width:75px;cursor:pointer;font-size:11px;font-family:Arial'><u>What's This?</u></div>";html+="<a href=\"http://www.shoptogether.com\" target=\"_blank\"><img src=\"http://"+st_assets+"/version2/images/shoptogether_logo.png\" border=\"0\" style=\"position:absolute;left:15px;top:13px\"></a>";html+="<div>";html+="<div class=\"DS_ST_popupTitle\" style=\"left:0px;width:360px;position:absolute;top:55px;text-align:center;color:#808080;font-size:14px;font-weight:bold;\">Invite a friend to ShopTogether!</div>";html+="<div class=\"DS_ST_popupText\" style=\"left:0px;width:360px;position:absolute;top:80px;text-align:center\">Invite a friend to ShopTogether with you. Simply select one of the following options...</div>";html+="<div style=\"left:20px;width:360px;position:absolute;top:130px;height:50px;background-color:#cecece\">";html+="<a  href=\"javascript:ds_st_postToEmail('"+url+"');\"><img border=0 style=\"height:32px;width:32px;position:absolute;top:9px;left:25px\" src='http://"+st_assets+"/icons/email.png' title='Email' ></a>";html+="<a href=\"javascript:ds_st_postToFacebook('"+url+"');\"><img border=0 style=\"height:32px;width:32px;position:absolute;top:9px;left:65px\" src='http://"+st_assets+"/icons/facebook.png' title='Facebook'></a>";html+="<a href=\"javascript:ds_st_postToTwitter('"+url+"');\"><img border=0 style=\"height:32px;width:32px;position:absolute;top:9px;left:105px\" src='http://"+st_assets+"/icons/twitter.png' title='Twitter'></a>";html+="<a href=\"javascript:ds_st_postToGoogle('"+url+"');\"><img border=0 style=\"height:32px;width:32px;position:absolute;top:9px;left:145px\" src='http://"+st_assets+"/icons/google.png' title='Google'></a>";html+="<a href=\"javascript:ds_st_postToDelicious('"+url+"');\"><img border=0 style=\"height:32px;width:32px;position:absolute;top:9px;left:185px\" src='http://"+st_assets+"/icons/delicious.png' title='Delicious'></a>";html+="<a href=\"javascript:ds_st_postToTechnorati('"+url+"');\"><img border=0 style=\"height:32px;width:32px;position:absolute;top:9px;left:225px\" src='http://"+st_assets+"/icons/technorati.png' title='Technorati'></a>";html+="<a href=\"javascript:ds_st_postToYahoo('"+url+"');\"><img border=0 style=\"height:32px;width:32px;position:absolute;top:9px;left:265px\" src='http://"+st_assets+"/icons/yahoo.png' title='Yahoo'></a>";html+="<a href=\"javascript:ds_st_postToStumbleUpon('"+url+"');\"><img border=0 style=\"height:32px;width:32px;position:absolute;top:9px;left:305px\" src='http://"+st_assets+"/icons/stumbleupon.png' title='StumbleUpon'></a>";html+="</div>";html+="<div class=\"DS_ST_popupText\" style=\"position:absolute;bottom:100px;left:20px;\">or copy and paste the following link into an IM window.</div>";html+="<input type=text id='ds_st_invitejoinlink' style=\"width:230px;position:absolute;bottom:60px;left:80px;\"";html+=" value=\""+url+"\">";html+="</div>";html+="<div style=\"width:100%;height:40px;position:absolute;bottom:0px;left:0px;background-color:black\">";html+="<input onclick='javascript:ST$.unblockUI();' type=\"button\" value=\"Close Window\" class=\"DS_ST_popupmenuButton\" style=\"position:absolute;width:150px;top:8px;right:10px\">";html+="</div>";html+="</div>";ST$.blockUI({message:html,css:{top:(ST$(window).height()-400)/2+'px',left:(ST$(window).width()-400)/2+'px',border:'0',width:'375px',height:'358px'}});}
function ds_st_ShareJoinLinksWindow(url){var html="<div style=\"position:absolute;top:0px;left:0px;width:400px;height:358px;background-color:white;border:solid;border-color:black;border-width:1px\">";html+="<div style=\"width:100%;height:20px;position:absolute;top:0px;left:0px;background-color:black\">";html+="<a style='cursor:pointer;' onclick=\"javascript:ST$.unblockUI();\" target=\"_blank\"><img src=\"http://"+st_assets+"/version2/images/link_close.png\" border=\"0\" style=\"position:absolute;right:3px;top:3px\"></a>";html+="</div>";html+="<div style=\"width:100%;text-align:left;height:338px;position:absolute;top:20px;left:0px;background-color:white\">";html+="<div style=\"position:absolute;left:10px;top:30px\"><img src='"+ShopTogether.itemThumb+"'/></div>";html+="<div>";html+="<div onclick='ds_st_openHelp()' style='position:absolute;right:4px;top:2px;width:75px;cursor:pointer;font-size:11px;font-family:Arial'><u>What's This?</u></div>";html+="<div class=\"DS_ST_popupTitle\" style=\"left:50px;width:300px;position:absolute;top:20px;text-align:left;color:#808080;font-weight:bold;font-size:14px\">"+ShopTogether.itemName+"</div>";html+="<div class=\"DS_ST_popupText\" style=\"left:50px;width:300px;position:absolute;top:55px;text-align:left\">Share this product with a friend. You have the option of sharing through one of the sites below, or just copy and paste the link below into an email or chat window.</div>";html+="<div style=\"left:20px;width:360px;position:absolute;top:130px;height:50px;background-color:#cecece\">";html+="<a  href=\"javascript:ds_st_postToEmail('"+url+"');\"><img border=0 style=\"height:32px;width:32px;position:absolute;top:9px;left:25px\" src='http://"+st_assets+"/icons/email.png' title='Email' ></a>";html+="<a href=\"javascript:ds_st_postToFacebook('"+url+"');\"><img border=0 style=\"height:32px;width:32px;position:absolute;top:9px;left:65px\" src='http://"+st_assets+"/icons/facebook.png' title='Facebook'></a>";html+="<a href=\"javascript:ds_st_postToTwitter('"+url+"');\"><img border=0 style=\"height:32px;width:32px;position:absolute;top:9px;left:105px\" src='http://"+st_assets+"/icons/twitter.png' title='Twitter'></a>";html+="<a href=\"javascript:ds_st_postToGoogle('"+url+"');\"><img border=0 style=\"height:32px;width:32px;position:absolute;top:9px;left:145px\" src='http://"+st_assets+"/icons/google.png' title='Google'></a>";html+="<a href=\"javascript:ds_st_postToDelicious('"+url+"');\"><img border=0 style=\"height:32px;width:32px;position:absolute;top:9px;left:185px\" src='http://"+st_assets+"/icons/delicious.png' title='Delicious'></a>";html+="<a href=\"javascript:ds_st_postToTechnorati('"+url+"');\"><img border=0 style=\"height:32px;width:32px;position:absolute;top:9px;left:225px\" src='http://"+st_assets+"/icons/technorati.png' title='Technorati'></a>";html+="<a href=\"javascript:ds_st_postToYahoo('"+url+"');\"><img border=0 style=\"height:32px;width:32px;position:absolute;top:9px;left:265px\" src='http://"+st_assets+"/icons/yahoo.png' title='Yahoo'></a>";html+="<a href=\"javascript:ds_st_postToStumbleUpon('"+url+"');\"><img border=0 style=\"height:32px;width:32px;position:absolute;top:9px;left:305px\" src='http://"+st_assets+"/icons/stumbleupon.png' title='StumbleUpon'></a>";html+="</div>";html+="<input type=text id='ds_st_invitejoinlink' style=\"width:230px;position:absolute;bottom:120px;left:85px;\"";html+=" value=\""+url+"\">";html+="</div>";html+="<div style=\"width:100%;height:40px;position:absolute;bottom:0px;left:0px;background-color:black\">";html+="<input onclick='javascript:ST$.unblockUI();' type=\"button\" value=\"Close Window\" class=\"DS_ST_popupmenuButton\" style=\"position:absolute;width:150px;top:8px;right:10px\">";html+="</div>";html+="</div>";ST$.blockUI({message:html,css:{top:(ST$(window).height()-400)/2+'px',left:(ST$(window).width()-390)/2+'px',border:'0',width:'375px',height:'358px'}});}
function ds_st_openHelp(){if(st_sitekey=="footlocker"){document.location.href="http://www.footlocker.com/customerserv/help:shopTogether/";}else if(st_sitekey=="ccs"){document.location.href="http://shop.ccs.com/customerserv/help:shopTogether/";}else if(st_sitekey=="eastbay"){document.location.href="http://www.eastbay.com/customerserv/help:shopTogether/";}else if(st_sitekey=="ladyfootlocker"){document.location.href="http://www.ladyfootlocker.com/content/custserv/help--shopTogether/";}}
function ds_st_postToDelicious(surl){var url="http://del.icio.us/post?v=4&partner=footlocker.com&noui&jump=close";url+="&tags="+escape(ShopTogether.category);url+="&url="+escape(surl);url+="&title="+escape(ShopTogether.name);url+="&notes="+escape(ShopTogether.description);window.open(url);};function ds_st_setInviteLink(send_link){var obj={link:send_link};ShopTogetherBridge.send('user.link.format','onUserInviteLinkRequest',obj);}
function onUserInviteLinkRequest(result){ds_st_InviteJoinLinksWindow(result.LinkResult.link);ds_st_startPing();}
function ds_st_setShareLink(send_link){var obj={link:send_link};ShopTogetherBridge.send('user.link.format','onUserShareLinkRequest',obj);}
function onUserShareLinkRequest(result){ds_st_ShareJoinLinksWindow(result.LinkResult.link);ds_st_startPing();}
function ds_st_allowFixedDivs(){if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var ieversion=new Number(RegExp.$1)
if(ieversion>=7){return true;}else{return false;}}else{var bSaf=(navigator.userAgent.toLowerCase().indexOf('safari')!=-1);var bSaf12=(bSaf&&(navigator.productSub>20030107));if(bSaf||bSaf12){ds_st_safari=true;}
return true;}}
var ds_st_intervalId;function ds_st_onInitializeComplete(){ds_st_intervalId=setInterval("ds_st_isDomReady()",250);}
var ds_st_crowd_intervalId;function ds_st_onCrowdInitializeComplete(){ds_st_crowd_intervalId=setInterval("ds_st_isDomReadyForCrowd()",250);}
function ds_st_isDomReady(intervalId){if(ds_st_loadReady){clearInterval(ds_st_intervalId);ds_st_runLoad();}}
function ds_st_isDomReadyForCrowd(intervalId){if(ds_st_loadReady){clearInterval(ds_st_crowd_intervalId);}}
function ds_st_show_openButton(){ds_st_setCookie('st_toolbar_closed','true');var style="";if(ds_st_ie){style="font-family:Arial;cursor:pointer;width:40px;height:27px;position:absolute;bottom:0px;left:0px;background-color:#9d9d9d;";}else{style="font-family:Arial;cursor:pointer;width:40px;height:27px;position:fixed;bottom:0px;left:0px;background-color:#9d9d9d;";}
var producttoolhtml="<div title='Open Toolbar' onClick='javascript:ds_st_show_ToolbarAgain();'style='"+style+"' id='shopbarclosed'><font style='color:white;font-face:arial;font-size:8pt;position:absolute;left:4px;top:6px;'>Open</font></div>";ST$('body').append(producttoolhtml);}
function ds_st_show_ToolbarAgain(){ds_st_setCookie('st_toolbar_closed','false');ST$('#shopbarclosed').remove();if(document.getElementById('shopbardiv')){document.getElementById('shopbardiv').style.visibility='visible';document.getElementById('shopbarexitlink').style.visibility='visible';}else{ds_st_loadPage();}}
function ds_st_runLoad(){ds_st_requestId=ds_st_getRequestId();var queryString=window.top.location.search.substring(1);if(queryString.indexOf("st_debug")>-1){ds_st_debug=true;ds_st_setCookie("ds_st_debug","1");}
if(ds_st_getCookie("ds_st_debug")=="1"){ds_st_debug=true;}
ds_st_setCookie('st_new','1');if(ds_st_getCookie('st_toolbar_closed')!='true'){ds_st_loadPage();}else{if(ds_st_requestId!=''){ds_st_setCookie('st_toolbar_closed','false');ds_st_loadPage();}else{ds_st_show_openButton();}}
if(ds_st_requestId!=''){ShopTogetherCoremetrics.ClickThruShare();ds_st_setCookie('ds_st_contextId',ds_st_requestId);}else{if(!ds_st_getCookie('ds_st_contextId')){}}}
function ds_st_setWhatsHot(){try{var _itemType=1;if(ShopTogether.itemType=='product'||ShopTogether.itemType=='2'){_itemType=2;}
var _item={item_id:ShopTogether.itemId,item_type:_itemType,item_category:ShopTogether.itemCategory,item_name:ShopTogether.itemName,item_imageThumbnailURL:ShopTogether.itemThumb,item_imageLargeURL:ShopTogether.itemImage,item_URL:ShopTogether.itemLink,item_custom1:ShopTogether.itemPrice};if(_item.item_imageThumbnailURL==''){_item.item_imageThumbnailURL="http://"+st_assets+"/version2/images/default_logo.png";}
var randomnumber=Math.floor(Math.random()*st_whatshot_random)
if(randomnumber==0){ShopTogetherBridge.send('whatshot.load','ds_st_onWhatsHot',_item);}}catch(e){alert(e)}}
function ds_st_convertObjToJsonRequestParam(obj){var ret="{";for(var key in obj){if(ret=="{"){ret+='"'+key+'":"'+obj[key]+'"';}else{ret+=',"'+key+'":"'+obj[key]+'"';}}
ret+="}";return escape(ret);}
function ds_st_onWhatsHot(result){}
function ds_st_getContextId(result){ds_st_setCookie('ds_st_contextId',result.MemberProfileResult.profile.id)}
function ds_st_loadPage(){var _itemType=1;ds_st_setCookie("ds_st_turnon","true");if(ShopTogether.itemType=='product'||ShopTogether.itemType=='2'){_itemType=2;}
var _item={item_id:ShopTogether.itemId,item_type:_itemType,item_category:ShopTogether.itemCategory,item_name:ShopTogether.itemName,item_imageThumbnailURL:ShopTogether.itemThumb,item_imageLargeURL:ShopTogether.itemImage,item_URL:ShopTogether.itemLink,item_custom1:ShopTogether.itemPrice};if(_item.item_imageThumbnailURL==''){_item.item_imageThumbnailURL="http://"+st_assets+"/version2/images/default_logo.png";}
ds_st_writeToolbar(_item);ds_st_requestId=ds_st_getRequestId();var conId=ds_st_getConciergeId();if(conId!=''){ds_st_userNameVal=st_sitename;ShopTogetherBridge.send('user.profile.item.set','ds_st_onProfileItemSet',_item);}else{if(ds_st_requestId!=''){if(ds_st_getCookie('st_on')!='1'){ShopTogetherBridge.send('user.profile.item.set','ds_st_onProfileItemSet',_item);}else{ShopTogetherBridge.send('page.load','ds_st_onPageLoadResult',_item);}}else{if(ds_st_getCookie('st_on')=='1'){ShopTogetherBridge.send('page.load','ds_st_onPageLoadResult',_item);}else{if(ds_st_getCookie('st_ping')=='1'){ShopTogetherBridge.send('user.profile.item.set','ds_st_onProfileItemPingSet',_item);}}}}
ds_st_setWhatsHot();}
function ds_st_ie6PngFix(id){if(!ds_st_allowFixedDivs()&&(document.body.filters)){var img=document.getElementById(id);var imgName=img.src.toUpperCase()
var imgID=(img.id)?"id='"+img.id+"' ":""
var imgClass=(img.className)?"class='"+img.className+"' ":""
var imgTitle=(img.title)?"title='"+img.title+"' ":"title='"+img.alt+"' "
var imgStyle="display:inline-block;"+img.style.cssText
if(img.align=="left")imgStyle="float:left;"+imgStyle
if(img.align=="right")imgStyle="float:right;"+imgStyle
if(img.parentElement.href)imgStyle="cursor:hand;"+imgStyle
var strNewHTML="<span "+imgID+imgClass+imgTitle
+" style=\""+"width:"+img.width+"px; height:"+img.height+"px;"+imgStyle+";"
+"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
+"(src=\'"+img.src+"\', sizingMethod='scale');\"></span>"
img.outerHTML=strNewHTML}}
function ds_st_userFirstTime(){if(ds_st_requestId!=''){if(ds_st_getCookie('st_on')!='1'){return true;}}
return false;}
function ds_st_onProfileItemChangeSet(result){document.getElementById('ds_st_productimage').src=result.ItemResult.item.imageThumbnailURL;}
function ds_st_onProfileItemPingSet(result){ShopTogetherBridge.startPing('ds_st_onPingResult');}
function ds_st_setStatusOn(){ds_st_setCookie('st_on','1');var _itemType=1;if(ShopTogether.itemType=='product'){_itemType=2;}
var _item={item_id:ShopTogether.itemId,item_type:_itemType,item_category:ShopTogether.itemCategory,item_name:ShopTogether.itemName,item_imageThumbnailURL:ShopTogether.itemThumb,item_imageLargeURL:ShopTogether.itemImage,item_URL:ShopTogether.itemLink,item_custom1:ShopTogether.itemPrice};ShopTogetherBridge.send('page.load','ds_st_onPageLoadResult',_item);}
function ds_st_onProfileItemSet(result){var conId=ds_st_getConciergeId();if(conId!=''){var _params={group_foreignkey:conId,member_name:st_sitename};ShopTogetherBridge.send('group.join','ds_st_onGroupJoinResult',_params);}else{var _group={id:ds_st_requestId}
ShopTogetherBridge.send('user.group.connection.validate','ds_st_onConnectionUserGroupValidate',_group);}}
function ds_st_setShopTogetherActive(){document.getElementById('ds_st_shoptogethertoobarstart').style.visibility='visible';document.getElementById('ds_st_shoptogetherlogo').style.visibility='visible';document.getElementById('ds_st_chat').style.visibility='visible';document.getElementById('ds_st_onlinefriends').style.visibility='visible';document.getElementById('ds_st_favorites').style.visibility='visible';var producttoolhtml="<div id='ds_st_userproducttool' style='background-color:#b1b1b1;position:absolute;visibility:hidden;right:-20px;top:-20px;'>";producttoolhtml+="<a title='Send to Chat' style='cursor:pointer;' onclick=\"ds_st_addProductToChat(\'sent this item\');ds_st_chat_visible();\" ><img src='http://"+st_assets+"/version2/images/add_comment.png'></a>";producttoolhtml+="<a title='Add to Group Favorites' style='cursor:pointer;' onclick='ds_st_addCurrentProductToFavorites();ds_st_favorites_visible();'><img src='http://"+st_assets+"/version2/images/add_favorites.png'></a>";producttoolhtml+="</div>";ST$("#shopbardivproduct").append(producttoolhtml);ST$("#shopbardivproduct").hover(function(){document.getElementById("ds_st_userproducttool").style.visibility="visible";},function(){document.getElementById("ds_st_userproducttool").style.visibility="hidden";});ST$("#shopbardivframe").hover(function(){document.getElementById("ds_st_userproducttool").style.visibility="visible";},function(){document.getElementById("ds_st_userproducttool").style.visibility="hidden";});}
function ds_st_getConciergeId(){if(ds_st_urlVariable('concierge_connect')){return ds_st_urlVariable('concierge_connect');}
return'';}
function ds_st_getRequestId(){if(ds_st_urlVariable('share_facebook')){return ds_st_urlVariable('share_facebook');}
if(ds_st_urlVariable('share_im')){return ds_st_urlVariable('share_im');}
if(ds_st_urlVariable('share_twitter')){return ds_st_urlVariable('share_twitter');}
if(ds_st_urlVariable('share_email')){return ds_st_urlVariable('share_email');}
if(ds_st_urlVariable('share_myspace')){return ds_st_urlVariable('share_myspace');}
if(ds_st_urlVariable('share_other')){return ds_st_urlVariable('share_other');}
if(ds_st_urlVariable('invite_facebook')){return ds_st_urlVariable('invite_facebook');}
if(ds_st_urlVariable('invite_im')){return ds_st_urlVariable('invite_im');}
if(ds_st_urlVariable('invite_twitter')){return ds_st_urlVariable('invite_twitter');}
if(ds_st_urlVariable('invite_email')){return ds_st_urlVariable('invite_email');}
if(ds_st_urlVariable('invite_myspace')){return ds_st_urlVariable('invite_myspace');}
return'';}
function ds_st_onConnectionUserGroupValidate(request){if(String(request.ConnectionValidationResult.validation.valid)=='true'){var html="<div style=\"position:absolute;top:0px;left:0px;width:403px;height:403px;background-color:white;border:solid;border-color:black;border-width:1px\">";html+="<div style=\"width:100%;height:20px;position:absolute;top:0px;left:0px;background-color:black\">";html+="<a onclick=\"javascript:ST$.unblockUI();\" target=\"_blank\" style='cursor:pointer'><img src=\"http://"+st_assets+"/version2/images/link_close.png\" border=\"0\" style=\"position:absolute;right:3px;top:3px\"></a>";html+="</div>";html+="<div style=\"width:100%;height:338px;position:absolute;top:20px;left:0px;background-color:white\">";html+="<a href=\"http://www.shoptogether.com\" target=\"_blank\"><img src=\"http://"+st_assets+"/version2/images/shoptogether_logo.png\" border=\"0\" style=\"position:absolute;left:15px;top:13px\"></a>";html+="<div class=\"DS_ST_popupTitle\" style=\"width:360px;position:absolute;top:58px;left:0px;text-align:center\">Your friend is on this site right now!</div>";html+="<div class=\"DS_ST_popupText\" style=\"left:0px;width:360px;position:absolute;top:93px;text-align:center\">The friend who sent you the link to this site is currently shopping here. You can connect with them and ShopTogether:<br><br>";html+="Show your friend what you're looking at...<br>";html+="See what your friend is looking at...<br>";html+="Chat with your friend as you shop!</div>";html+="<div class=\"DS_ST_popupTitle\" style=\"left:0px;width:360px;position:absolute;top:202px;text-align:center\">Do you want to ShopTogether?</div>";html+="<div class=\"DS_ST_popupText\" style=\"left:0px;width:360px;position:absolute;top:237px;text-align:center\">Enter your name and click \"Yes\" below to get started.</div>";html+="<div class=\"DS_ST_popupInputText\" style=\"left:0px;width:360px;position:absolute;top:265px;left:66px;text-align:left\">First Name:</div>";html+="<input type=\"text\" id='ds_st_username' style=\"width:150px;position:absolute;top:265px;left:165px;\">";html+="<div class=\"DS_ST_popupText\" style=\"width:360px;position:absolute;top:300px;left:0px;text-align:center\">Please do not share any confidential or personal information when shopping with others.</div>";html+="</div>";html+="<div style=\"width:100%;height:40px;position:absolute;bottom:0px;left:0px;background-color:black\">";html+="<input onclick='javascript:ds_st_joinGroup();' type=\"button\" value=\"Yes\" class=\"DS_ST_popupmenuButton\" style=\"position:absolute;top:8px;right:107px\">";html+="<input onclick='javascript:ST$.unblockUI();' type=\"button\" value=\"No\" class=\"DS_ST_popupmenuButton\" style=\"position:absolute;top:8px;right:10px\">";html+="</div>";html+="</div>";ST$.blockUI({message:html,css:{top:(ST$(window).height()-400)/2+'px',left:(ST$(window).width()-400)/2+'px',border:'0',width:'402px',height:'402px'}});}}
function ds_st_joinGroup(){if(document.getElementById('ds_st_username').value!=''){var _params={group_foreignkey:ds_st_requestId,member_name:document.getElementById('ds_st_username').value};ShopTogetherBridge.send('group.join','ds_st_onGroupJoinResult',_params);ST$.unblockUI();}else{alert('Please enter a user name.');document.getElementById('ds_st_username').focus();}}
function ds_st_onGroupJoinResult(result){ds_st_makeToolbarVisible();ds_st_setStatusOn();if(result.GroupResult.group.members.MemberProfile.length>1){ds_st_chat_visible();}else{ds_st_userRequestGroupConnection();}
var conId=ds_st_getConciergeId();if(conId!=''){ds_st_writeChatLineLocal(st_sitename,'Hi! How can I help you today?');}
st_onJoin();try{ShopTogetherCoremetrics.JoinInvitee();}catch(e){}}
function ds_st_onRedirectToPage(result){document.location.href=document.location.href;}
function ds_st_onGroupJoinWithIdResult(result){try{ShopTogetherCoremetrics.JoinInviter();}catch(e){}
if(ds_st_ie){ds_st_setCookie('ds_st_connected','true');ds_st_setCookie('st_on','1');_params={variable_name:'chat_open',variable_value:'true'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);_params={variable_name:'favorites_open',variable_value:'false'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);_params={variable_name:'friends_open',variable_value:'true'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onRedirectToPage',_params);}else{ds_st_makeToolbarVisible();if(result.GroupResult.group.members!=null){ds_st_fillGroupMembers(result.GroupResult.group.members,result.GroupResult.header.userId,false);}
ds_st_setCookie('st_on','1');ds_st_setShopTogetherActive();ShopTogetherBridge.startPing('ds_st_onPingResult');st_onJoin();}}
function ds_st_userRequestGroupConnection(){var _params={member_id:ds_st_requestId};ShopTogetherBridge.send('user.request.group.connection','ds_st_onRequestGroupConnection',_params);_params={variable_name:'chat_open',variable_value:'false'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);_params={variable_name:'friends_open',variable_value:'false'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);_params={variable_name:'favorites_open',variable_value:'false'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);}
function ds_st_onSendDoNothing(result){}
function ds_st_onRequestGroupConnection(result){}
function setUserEmailLinkFormat(send_link){var obj={link:send_link};ShopTogetherBridge.send('user.link.format','onUserEmailLinkFormat',obj);}
function setUserEmailLinkInviteFormat(send_link){var obj={link:send_link};ShopTogetherBridge.send('user.link.format','onUserEmailLinkInviteFormat',obj);}
function onUserEmailLinkFormat(result){ds_st_startPing();document.location.href="mailto:?subject="+ShopTogether.itemName.replace(/&amp;reg;/g,'').replace(/&amp;#153;/g,'').replace(/&amp;amp;/g,' And')+" at "+st_sitename+"&body=I found this at "+st_sitename+" and thought you might like it.%0d%0d"+escape(result.LinkResult.link);}
function onUserEmailLinkInviteFormat(result){ds_st_startPing();document.location.href="mailto:?subject=Shop with me online at "+st_sitename+"&body=I'm shopping online right now at "+st_sitename+". Use this link to ShopTogether with me.%0d%0d"+escape(result.LinkResult.link);}
function ds_st_setInviteIM(send_link){var obj={link:send_link};ShopTogetherBridge.send('user.link.format','onUserInviteIMLinkFormat',obj);}
function onUserInviteIMLinkFormat(result){ds_st_startPing();ds_st_InviteJoinWindow(result.LinkResult.link,true);}
function ds_st_setJoinIM(send_link){var obj={link:send_link};ShopTogetherBridge.send('user.link.format','onUserJoinIMLinkFormat',obj);}
function onUserJoinIMLinkFormat(result){ds_st_startPing();ds_st_InviteJoinWindow(result.LinkResult.link,false);}
function ds_st_postToTwitter(surl){var url='http://twitter.com/home?status='+escape(ShopTogether.name+' '+surl);window.open(url);};function ds_st_redirectLink(url,url2){window.open('http://sts4.shoptogether.com/stdefault.aspx?header.clientLicense=EE.VV.130.133.153.QQ.129.206.195.137.139.160.VV.146&header.siteLicense=EE.VV.130.133.153.QQ.129.206.195.137.139.160.VV.146&op=redirect.foreignkey&root_link='+url+"&link="+url2);ds_st_startPing();}
function ds_st_redirectTwitterLink(url,url2,prefix){window.open('http://sts4.shoptogether.com/stdefault.aspx?header.clientLicense=EE.VV.130.133.153.QQ.129.206.195.137.139.160.VV.146&header.siteLicense=EE.VV.130.133.153.QQ.129.206.195.137.139.160.VV.146&op=redirect.twitter&root_link='+url+"&link="+url2+"&prefix="+prefix);ds_st_startPing();}
function ds_st_redirectMyspaceLink(name,description,url){window.open("http://sts4.shoptogether.com/stdefault.aspx?header.clientLicense=EE.VV.130.133.153.QQ.129.206.195.137.139.160.VV.146&header.siteLicense=EE.VV.130.133.153.QQ.129.206.195.137.139.160.VV.146&op=redirect.myspace&url="+escape(url)+"&name="+escape(name)+"&description="+description);ds_st_startPing();}
function ds_st_postToEmail(surl){var url="mailto:?subject=Shop with me online at "+st_sitename+"&body=I'm shopping online right now at "+st_sitename+". Use this link to ShopTogether with me.%0d%0d"+escape(surl);document.location.href=url;}
function ds_st_postToFacebook(surl){var url="http://www.facebook.com/sharer.php"
url+='?u='+escape(surl);url+='&t='+escape(ShopTogether.name);window.open(url);};function ds_st_postToGoogle(surl){var url="http://www.google.com/bookmarks/mark?op=edit&output=popup"
url+='&bkmk='+escape(surl);url+='&title='+escape(ShopTogether.name);window.open(url);};function ds_st_postToYahoo(surl){var url="http://myweb.yahoo.com/myresults/bookmarklet?ei=UTF"
url+='&u='+escape(surl);url+='&t='+escape(ShopTogether.name);window.open(url);};function ds_st_postToTechnorati(surl){var url="http://technorati.com/faves";url+='?add='+escape(surl);url+='&title='+escape(ShopTogether.name);window.open(url);};function ds_st_postToStumbleUpon(surl){var url="http://www.stumbleupon.com/submit";url+='?url='+escape(surl);url+='&title='+escape(ShopTogether.name);window.open(url);};function ds_st_startPing(){if(ds_st_getCookie('st_ping')!='1'){ds_st_setCookie('st_ping','1');var _item={item_id:ShopTogether.itemId,item_type:ShopTogether.itemType,item_category:ShopTogether.itemCategory,item_name:ShopTogether.itemName,item_imageThumbnailURL:ShopTogether.itemThumb,item_imageLargeURL:ShopTogether.itemImage,item_URL:ShopTogether.itemLink,item_custom1:ShopTogether.itemPrice};ShopTogetherBridge.send('user.profile.item.set','ds_st_onProfileItemPingSet',_item);}}
function ds_st_onPageLoadResult(result){ds_st_setShopTogetherActive();ds_st_userNameVal=result.SessionResult.session.user.profile.name;if(result.SessionResult.session.inbox.chat!=null){ds_st_fillChat(result.SessionResult.session.inbox);}
if(result.SessionResult.session.variables.items!=null){ds_st_setState(result.SessionResult.session.variables);}
if(result.SessionResult.session.group.members!=null){ds_st_fillGroupMembers(result.SessionResult.session.group.members,result.SessionResult.header.userId,true);}
if(result.SessionResult.session.group.favorites!=null){ds_st_fillFavorites(result.SessionResult.session.group);}
ShopTogetherBridge.startPing('ds_st_onPingResult');}
function moveScroll(){var objDiv=document.getElementById("ds_st_chat_window_display");objDiv.scrollTop=objDiv.scrollHeight;}
function ds_st_setState(cookies){if(cookies.items.Variable.length>0){variable=cookies.items.Variable;}else{variable=cookies.items;}
for(i in variable){var item=variable[i];if(String(item.value)=='true'){switch(String(item.name)){case'chat_open':document.getElementById('ds_st_chat_window').style.visibility='visible';document.getElementById('ds_st_chat_window').style.display='block';ds_st_specialButtonOn("#ds_st_chat");setTimeout("moveScroll()",500);break;case'favorites_open':document.getElementById('ds_st_favorites_window').style.visibility='visible';document.getElementById('ds_st_favorites_window').style.display='block';ds_st_specialButtonOn("#ds_st_favorites");break;case'friends_open':document.getElementById('ds_st_onlinefriends_window').style.visibility='visible';document.getElementById('ds_st_onlinefriends_window').style.display='block';break;}}}}
function ds_st_onPingResult(result){if(result.PingResult.ping.inbox.connectionrequests!=null){ds_st_checkRequests(result.PingResult.ping.inbox);}
if(result.PingResult.ping.group.members!=null){ds_st_fillGroupMembers(result.PingResult.ping.group.members,result.PingResult.header.userId,false);}
if(result.PingResult.ping.group.favorites!=null){ds_st_fillFavorites(result.PingResult.ping.group);}
if(result.PingResult.ping.group.removedFavorites!=null){ds_st_fillRemovedFavorites(result.PingResult.ping.group);}
if(result.PingResult.ping.inbox.chat!=null){ds_st_fillPingChat(result.PingResult.ping.inbox,result.PingResult.header.userId);}
ds_st_setCookie('st_ping','1');}
function ds_st_popupMenu(id){ST$("#ds_st_onlinefriends_"+String(id)).hover(function(){ST$("#ds_st_friendtool_"+String(id)).css("visibility","visible");},function(){ST$("#ds_st_friendtool_"+String(id)).css("visibility","hidden");});}
function ds_st_addFriendsToFavorite(_id,_type,_category,_name,_imageThumbnailURL,_imageLargeURL,_URL,_custom1){_name=unescape(_name);var _params={item_id:_id,item_type:_type,item_category:_category,item_name:_name,item_imageThumbnailURL:_imageThumbnailURL,item_imageLargeURL:_imageLargeURL,item_URL:_URL,item_custom1:_custom1};ShopTogetherBridge.send('group.favorites.add','ds_st_onSendDoNothing',_params);var _item={id:_id,type:_type,category:_category,name:_name,imageThumbnailURL:_imageThumbnailURL,imageLargeURL:_imageLargeURL,URL:_URL,custom1:_custom1};ds_st_writeFavorite(_item);ds_st_addFriendsToChat(_id,_type,_category,_name.replace("'","\'"),_imageThumbnailURL,_imageLargeURL,_URL,_custom1,"added a favorite");}
function ds_st_addFriendsToChat(_id,_type,_category,_name,_imageThumbnailURL,_imageLargeURL,_URL,_custom1,_message){_name=unescape(_name);_message=_message||'sent this item';var _params={message_text:_message,item_id:_id,item_type:_type,item_category:_category,item_name:_name,item_imageThumbnailURL:_imageThumbnailURL,item_imageLargeURL:_imageLargeURL,item_URL:_URL,item_custom1:_custom1};ShopTogetherBridge.send('group.chat.send','ds_st_onSendDoNothing',_params);var _item={id:_id,type:_type,category:_category,name:_name,imageThumbnailURL:_imageThumbnailURL,imageLargeURL:_imageLargeURL,URL:_URL,custom1:_custom1};ds_st_writeChatLineLocal(ds_st_userNameVal,_message,_item);}
function ds_st_writeMemberCell(_id,_name,url,imageThumbnailURL,_itemURL){var html="<img style='position:absolute;left:14px;top:5px;' id='ds_st_circle_"+String(_id)+"'    src='http://"+st_assets+"/version2/images/friend_circle2.png' height='80' width='80' border=0>";html+="<div style='text-align:center;position:absolute;left:27px;top:19px;width:53px;height:53px;'>";html+="<a href='"+_itemURL+"' border='0'><img id='ds_st_friendimage_"+String(_id)+"' src='"+imageThumbnailURL+"' height='53' border=0></a>";html+="</div>";html+="<div id='ds_st_friendtool_"+String(_id)+"' style='background-color:#b1b1b1;visibility:hidden;position:absolute;right:3px;top:2px;'>";html+="<a title='Send to Chat' style='cursor:pointer;' onclick=\"javascript:ds_st_addFriendsToChat("+url+");ds_st_chat_visible();\" ><img id='ds_st_friendtool_chat_"+String(_id)+"' src='http://"+st_assets+"/version2/images/add_comment.png'></a>";html+="<a title='Add to Group Favorites' style='cursor:pointer;' onclick=\"javascript:ds_st_addFriendsToFavorite("+url+");ds_st_favorites_visible();\"><img id='ds_st_friendtool_fav_"+String(_id)+"' src='http://"+st_assets+"/version2/images/add_favorites.png'></a>";html+="</div>";html+="<div style='padding-right:0px;font-size:10pt;background-color:#000000;color:#ffffff;text-align:center;position:absolute;top:86px;left:0;width:100%;'><b>"+_name+"</b></div>";html+="<input id='ds_st_onlinefriends_inner_"+String(_id)+"_status' type='hidden' value='online'/>";document.getElementById('ds_st_onlinefriends_'+String(_id)).innerHTML="";ST$("#ds_st_onlinefriends_"+String(_id)).append(html);ds_st_ie6PngFix('ds_st_friendimage_'+String(_id));ds_st_ie6PngFix('ds_st_circle_'+String(_id));ds_st_ie6PngFix('ds_st_friendtool_chat_'+String(_id));ds_st_ie6PngFix('ds_st_friendtool_fav_'+String(_id));}
function ds_st_writeOfflineMemberCell(_id,_name){var html="<img style='position:absolute;left:14px;top:5px;' id='ds_st_circle_"+String(_id)+"'    src='http://"+st_assets+"/version2/images/friend_circle2.png' height='80' width='80' border=0>";html+="<div style='text-align:center;position:absolute;left:27px;top:19px;width:53px;height:53px;'>";html+="<img id='ds_st_friendimage_"+String(_id)+"' src='http://"+st_assets+"/version2/images/not_connected.png' height='53' border=0>";html+="</div>";html+="<div style='padding-right:0px;font-size:10pt;background-color:#000000;color:#ffffff;text-align:center;position:absolute;top:86px;left:0;width:100%;'><b>"+_name+"</b></div>";html+="<input id='ds_st_onlinefriends_"+String(_id)+"_status' type='hidden' value='offline'/>";document.getElementById('ds_st_onlinefriends_'+String(_id)).innerHTML="";ST$("#ds_st_onlinefriends_"+String(_id)).append(html);ds_st_ie6PngFix('ds_st_friendimage_'+String(_id));ds_st_ie6PngFix('ds_st_circle_'+String(_id));}
function ds_st_createMemberCell(_id,count){htmldiv="<div id='ds_st_onlinefriends_"+String(_id)+"' style='position:absolute;bottom:"+String(count)+"px;left:0px;height:105px;text-align:center;padding-left:2px;padding-right:2px;width:101px;padding-top:5px;padding-bottom:5px;'></div>";ST$("#ds_st_onlinefriends_window").append(htmldiv);htmldiv="<div id='ds_st_onlinefriends_inner_"+String(_id)+"' style='position:absolute;top:0px;left:0px;height:0px;text-align:center;padding-left:2px;padding-right:2px;width:101px;padding-top:5px;padding-bottom:5px;'></div>";ST$("#ds_st_onlinefriends_window").append(htmldiv);ds_st_popupMenu(_id);}
var ds_st_globalPos=1;var ds_st_globalCount=0;var ds_st_connectedFriends=0;function ds_st_fillGroupMembers(members,userId,isLoad){if(members.MemberProfile.length>0){ds_st_fillMultiGroupMembers(members,userId,isLoad);}else{ds_st_fillSingleGroupMember(members,userId,isLoad);}}
function ds_st_fillSingleGroupMember(members,userId,isLoad){var count=ds_st_globalCount;var pos=ds_st_globalPos;var member=members.MemberProfile;var newitem=false;if(member.id!=userId&&((member.status==1&&isLoad==true)||isLoad==false)){var html='';var _item=member.item;if(!document.getElementById('ds_st_onlinefriends_'+String(member.id))){newitem=true;ds_st_createMemberCell(member.id,pos);count++;ds_st_globalCount++;ds_st_globalPos+=116;ds_st_connectedFriends++;if(!isLoad){ds_st_sendNewUserChatLine(member.name,"Just connected...");}}
var url="'"+String(_item.id)+"',";url+="'"+String(_item.type)+"',";url+="'"+String(_item.category)+"',";url+="'"+String(escape(_item.name))+"',";url+="'"+String(_item.imageThumbnailURL)+"',";url+="'"+String(_item.imageLargeURL)+"',";url+="'"+String(_item.URL)+"',";url+="'"+String(_item.custom1)+"'";if(member.status!='1'){ds_st_connectedFriends--;ds_st_writeOfflineMemberCell(String(member.id),String(member.name));}else{if(document.getElementById("ds_st_onlinefriends_"+String(member.id)+"_status")){if(document.getElementById("ds_st_onlinefriends_"+String(member.id)+"_status").value=="offline"){ds_st_connectedFriends++;}}
ds_st_writeMemberCell(String(member.id),String(member.name),url,_item.imageThumbnailURL,_item.URL);}
if(isLoad!=true&&newitem==true){ds_st_chat_visible();}
pos+=116}
if(count>0){var h=(count*116)+25;document.getElementById('ds_st_onlinefriends_window').style.height=String(h)+"px";}
document.getElementById('ds_st_onlinefriendslabel').innerHTML='<font color=white>Friends ('+String(ds_st_connectedFriends)+')</font>';}
function ds_st_fillMultiGroupMembers(members,userId,isLoad){memberList=members.MemberProfile;var count=ds_st_globalCount;var pos=ds_st_globalPos;var newitem=false;for(var i=0;i<memberList.length;i++){var member=memberList[i];if(member.id!=userId&&((member.status==1&&isLoad==true)||isLoad==false)){var html='';var _item=member.item;if(!document.getElementById('ds_st_onlinefriends_'+String(member.id))){newitem=true;ds_st_createMemberCell(member.id,pos);count++;ds_st_globalCount++;ds_st_connectedFriends++;ds_st_globalPos+=116;if(!isLoad){ds_st_sendNewUserChatLine(member.name,"Just connected...");}}
var url="'"+String(_item.id)+"',";url+="'"+String(_item.type)+"',";url+="'"+String(_item.category)+"',";url+="'"+String(escape(_item.name))+"',";url+="'"+String(_item.imageThumbnailURL)+"',";url+="'"+String(_item.imageLargeURL)+"',";url+="'"+String(_item.URL)+"',";url+="'"+String(_item.custom1)+"'";if(member.status!='1'){ds_st_connectedFriends--;ds_st_writeOfflineMemberCell(String(member.id),String(member.name));}else{if(document.getElementById("ds_st_onlinefriends_"+String(member.id)+"_status")){if(document.getElementById("ds_st_onlinefriends_"+String(member.id)+"_status").value=="offline"){ds_st_connectedFriends++;}}
ds_st_writeMemberCell(String(member.id),String(member.name),url,_item.imageThumbnailURL,_item.URL);}
pos+=116}
if(isLoad!=true&&newitem==true){ds_st_chat_visible();}}
if(count>0){var h=(count*116)+25;document.getElementById('ds_st_onlinefriends_window').style.height=String(h)+"px";}
document.getElementById('ds_st_onlinefriendslabel').innerHTML='<font color=white>Friends ('+String(ds_st_connectedFriends)+')</font>';}
function ds_st_fillPingChat(inbox,userId){if(inbox.chat.Message.length>0){chat=inbox.chat.Message;for(var i=0;i<chat.length;i++){var message=chat[i];if(message.author.id!=userId){if(message.item.id!=null){ds_st_writeChatLine(message.author.name,message.text,message.item);}else{ds_st_writeChatLine(message.author.name,message.text);}}}}else{chat=inbox.chat;var message=chat.Message;if(message.item.id!=null){ds_st_writeChatLine(message.author.name,message.text,message.item);}else{ds_st_writeChatLine(message.author.name,message.text);}}
if(message.item.id!=null){ds_st_writeChatAlert(message.author.name,message.text,message.item);}else{ds_st_writeChatAlert(message.author.name,message.text);}}
function ds_st_fillChat(inbox,userId){if(inbox.chat.Message.length>0){chat=inbox.chat.Message;for(var i=0;i<chat.length;i++){var message=chat[i];if(message.item.id!=null){ds_st_writeChatLine(message.author.name,message.text,message.item);}else{ds_st_writeChatLine(message.author.name,message.text);}}}else{chat=inbox.chat;var message=chat.Message;if(message.item.id!=null){ds_st_writeChatLine(message.author.name,message.text,message.item);}else{ds_st_writeChatLine(message.author.name,message.text);}}}
function ds_st_addCurrentProductToFavorites(){ds_st_addProductToChat('added a favorite');var _params={item_id:ShopTogether.itemId,item_type:ShopTogether.itemType,item_category:ShopTogether.itemCategory,item_name:ShopTogether.itemName,item_imageThumbnailURL:ShopTogether.itemThumb,item_imageLargeURL:ShopTogether.itemImage,item_URL:ShopTogether.itemLink,item_custom1:ShopTogether.itemPrice};ShopTogetherBridge.send('group.favorites.add','ds_st_onSendDoNothing',_params);var _item={id:ShopTogether.itemId,type:ShopTogether.itemType,category:ShopTogether.itemCategory,name:ShopTogether.itemName,imageThumbnailURL:ShopTogether.itemThumb,imageLargeURL:ShopTogether.itemImage,URL:ShopTogether.itemLink,custom1:ShopTogether.itemPrice};ds_st_writeFavorite(_item);}
function ds_st_fillFavorites(group){if(group.favorites.Item.length>0){favorites=group.favorites.Item;for(var i=0;i<favorites.length;i++){ds_st_writeFavorite(favorites[i]);}}else{ds_st_writeFavorite(group.favorites.Item);}}
function ds_st_fillRemovedFavorites(group){if(group.removedFavorites.Item.length>0){favorites=group.removedFavorites.Item;for(var i=0;i<favorites.length;i++){ds_st_removeFavorite(favorites[i].id);}}else{ds_st_removeFavorite(group.removedFavorites.Item.id);}}
function ds_st_removeFavorite(_itemId){var _params={item_id:_itemId};ShopTogetherBridge.send('group.favorites.delete','ds_st_onSendDoNothing',_params);ST$("#ds_st_favorite_"+_itemId).replaceWith("");}
function ds_st_writeFavorite(_item){var html='';htmldiv="<div id='ds_st_favorite_"+_item.id+"' style='padding-left:2px;padding-right:2px;width:219px;padding-top:2px;padding-bottom:3px;border-bottom:solid;border-width:1px;border-color:gray;'>";if(_item.imageThumbnailURL!=''){html+="<table style='font-size:11px'><tr><td align=center valign=top width='43'><a href='"+_item.URL+"'><img src='"+_item.imageThumbnailURL+"' height='40' border=0></a></td><td>";html+="<a href='"+_item.URL+"'><b><font color='black'>"+_item.name.replace(/&amp;/g,'&')+"</font></b></a>";html+="</td><td width='1%'><a style='cursor:pointer' onclick=\"ds_st_removeFavorite('"+_item.id+"');\">remove</a></td></tr></table>";}else{html+="<table style='font-size:11px'><tr><td>";html+="<b><font color='black'>"+_item.name.replace(/&amp;/g,'&')+"</font></b>";html+="</td><td width='1%'><a style='cursor:pointer' onclick=\"ds_st_removeFavorite('"+_item.id+"');\">remove</a></td></tr></table>";}
htmldiv+=html+"</div>";if(document.getElementById('ds_st_favorite_'+_item.id)){document.getElementById('ds_st_favorite_'+_item.id).innerHTML=html;}else{ST$("#ds_st_favorite_window_display").append(htmldiv);}
var objDiv=document.getElementById("ds_st_favorite_window_display");objDiv.scrollTop=objDiv.scrollHeight;}
function ds_st_writeChatLine(usr,_message,_item){var html="<div style='text-align:left;padding-left:2px;padding-right:2px;width:219px;padding-top:2px;padding-bottom:3px;margin-top:-1px;border-top:solid;border-width:1px;border-color:gray;'>";if(_item){if(_item.imageThumbnailURL!=''){html+="<table width='100%' style='font-size:11px'><tr><td align=center valign=top width='33'><a href='"+_item.URL+"'><img src='"+_item.imageThumbnailURL+"' height='30' border=0></a></td><td>";html+=""+usr+" "+_message+":<br><a href='"+_item.URL+"'><b><font color='black'>"+_item.name.replace(/&amp;/g,'&')+"</font></b></a></td>";}else{html+="<table style='font-size:11px'><tr><td>";html+=""+usr+" "+_message+":&nbsp;<a href='"+_item.URL+"'><b><font color='black'>"+_item.name.replace(/&amp;/g,'&')+"</font></b></a></td>";}
if(_message.indexOf("added a favorite")!=-1){html+="<td align=right valign=top width='20'><img style='cursor:pointer' title='View Favorites' src='"+ds_st_fav_small_icon+"' onclick='ds_st_favorites_visible()' border='0'></td>";}
html+="</tr></table>";}else{html+="<b><font color='black'>"+usr+":</font></b> "+_message;}
html+="</div>";if(html!=ds_st_lastchatline){ST$("#ds_st_chat_window_display").append(html);var objDiv=document.getElementById("ds_st_chat_window_display");objDiv.scrollTop=objDiv.scrollHeight;}}
function ds_st_writeChatAlert(usr,_message,_item){var st_temp_message
if(_message.length>70){_message=_message.substring(0,79)+"...";}
var html="<div style='padding-left:2px;padding-right:2px;width:219px;padding-top:2px;padding-bottom:3px;padding-left:3px;padding-right:3px;'>";if(_item){if(_item.imageThumbnailURL!=''){html+="<table onclick='document.getElementById(\"ds_st_alert_popup\").style.visibility=\"hidden\";ds_st_chat_visible()' style='cursor:pointer' width='100%'><tr><td colspan=2><font color='black'>Chat Message</font></td></tr><tr><td align=center valign=top width='33'><img src='"+_item.imageThumbnailURL+"' height='30' border=0></td><td>";html+=""+usr+" "+_message+":<br><b><font color='black'>"+_item.name+"</font></b></td>";}else{html+="<table onclick='document.getElementById(\"ds_st_alert_popup\").style.visibility=\"hidden\";ds_st_chat_visible()' style='cursor:pointer' width='100%'><tr><td colspan=2>Chat Message</td></tr><tr><td>";html+=""+usr+" "+_message+":&nbsp;<b><font color='black'>"+_item.name+"</font></b></td>";}
if(_message.indexOf("added a favorite")!=-1){html+="<td align=right valign=top width='20'><img style='cursor:pointer' title='View Favorites' src='http://"+st_assets+"/version2/images/favorites_small.png' onclick='ds_st_favorites_visible()' border='0'></td>";}
html+="</tr></table>";}else{html+="<table onclick='document.getElementById(\"ds_st_alert_popup\").style.visibility=\"hidden\";ds_st_chat_visible()' style='cursor:pointer' width='100%'><tr><td width='100%'><font color='black'>Chat Message</font></td></tr><tr><td><b><font color='black'>"+usr+":</font></b> "+_message;+"</tr></table>";}
html+="</div>";if(html!=ds_st_lastchatline){if(document.getElementById("ds_st_chat_window").style.visibility!="visible"){document.getElementById("ds_st_alert_popup").innerHTML=html;document.getElementById("ds_st_alert_popup").style.visibility="visible";setTimeout(ds_st_alertPopupTimer,4500)}}}
function ds_st_alertPopupTimer(){document.getElementById("ds_st_alert_popup").style.visibility="hidden";}
var ds_st_lastchatline="";function ds_st_writeChatLineLocal(usr,_message,_item){var html="<div style='text-align:left;padding-left:2px;padding-right:2px;width:219px;padding-top:2px;padding-bottom:3px;margin-top:-1px;border-top:solid;border-width:1px;border-color:gray;'>";if(_item){if(_item.imageThumbnailURL!=''){html+="<table width='100%' style='font-size:11px'><tr><td align=center valign=top width='33'><a href='"+_item.URL+"'><img src='"+_item.imageThumbnailURL+"' height='30' border=0></a></td><td>";html+=""+usr+" "+_message+":<br><a href='"+_item.URL+"'><b><font color='black'>"+_item.name.replace(/&amp;/g,'&')+"</font></b></a></td>";}else{html+="<table style='font-size:11px'><tr><td>";html+=""+usr+" "+_message+":&nbsp;<a href='"+_item.URL+"'><b><font color='black'>"+_item.name.replace(/&amp;/g,'&')+"</font></b></a></td>";}
if(_message.indexOf("added a favorite")!=-1){html+="<td align=right valign=top width='20'><img style='cursor:pointer' title='View Favorites' src='http://"+st_assets+"/version2/images/favorites_small.png' onclick='ds_st_favorites_visible()' border='0'></td>";}
html+="</tr></table>";}else{html+="<b><font color='black'>"+usr+":</font></b> "+_message;}
html+="</div>";ds_st_lastchatline=html;ST$("#ds_st_chat_window_display").append(html);var objDiv=document.getElementById("ds_st_chat_window_display");objDiv.scrollTop=objDiv.scrollHeight;}
function ds_st_sendNewUserChatLine(usr,msg){ds_st_writeChatLineLocal(usr,msg);}
function ds_st_sendChatLine(){ds_st_writeChatLineLocal(ds_st_userNameVal,document.getElementById('ds_st_chatinput_box').value);_params={message_text:document.getElementById('ds_st_chatinput_box').value};ShopTogetherBridge.send('group.chat.send','ds_st_onSendDoNothing',_params);document.getElementById('ds_st_chatinput_box').value='';document.getElementById('ds_st_chatinput_box').focus();}
function ds_st_addProductToChat(_message){var _params={message_text:_message,item_id:ShopTogether.itemId,item_type:ShopTogether.itemType,item_category:ShopTogether.itemCategory,item_name:ShopTogether.itemName,item_imageThumbnailURL:ShopTogether.itemThumb,item_imageLargeURL:ShopTogether.itemImage,item_URL:ShopTogether.itemLink,item_custom1:ShopTogether.itemPrice};ShopTogetherBridge.send('group.chat.send','ds_st_onSendDoNothing',_params);var _item={id:ShopTogether.itemId,type:ShopTogether.itemType,category:ShopTogether.itemCategory,name:ShopTogether.itemName,imageThumbnailURL:ShopTogether.itemThumb,imageLargeURL:ShopTogether.itemImage,URL:ShopTogether.itemLink,custom1:ShopTogether.itemPrice};ds_st_writeChatLineLocal(ds_st_userNameVal,_message,_item);}
function ds_st_checkRequests(inbox){var u="";var g="";if(inbox.connectionrequests.ConnectionRequest.length>0){req=inbox.connectionrequests.ConnectionRequest;}else{req=inbox.connectionrequests;}
for(i in req){var message=req[i];g=message.group.id
u=message.author.name;}
if(g!=''){ds_st_requestJoin(g,u);}}
function ds_st_joinGroupWithId(_groupId){if(document.getElementById('ds_st_usernamejoin').value!=''){ds_st_userNameVal=document.getElementById('ds_st_usernamejoin').value;var _params={group_id:_groupId,member_name:document.getElementById('ds_st_usernamejoin').value};ShopTogetherBridge.send('group.join','ds_st_onGroupJoinWithIdResult',_params);ST$.unblockUI();}else{alert('Please enter a user name.');document.getElementById('ds_st_usernamejoin').focus();}}
function ds_st_InviteJoinWindow(url,invite){var html="<div style=\"position:absolute;top:0px;left:0px;width:400px;height:200px;background-color:white;border:solid;border-color:black;border-width:1px\">";html+="<div style=\"width:100%;height:20px;position:absolute;top:0px;left:0px;background-color:black\">";html+="<a style='cursor:pointer;' onclick=\"javascript:ST$.unblockUI();\" target=\"_blank\"><img src=\"http://"+st_assets+"/version2/images/link_close.png\" border=\"0\" style=\"position:absolute;right:3px;top:3px\"></a>";html+="</div>";html+="<div style=\"width:100%;height:338px;position:absolute;top:20px;left:0px;background-color:white\">";html+="<a href=\"http://www.shoptogether.com\" target=\"_blank\"><img src=\"http://"+st_assets+"/version2/images/shoptogether_logo.png\" border=\"0\" style=\"position:absolute;left:15px;top:13px\"></a>";html+="<div>";if(!invite){html+="<div class=\"DS_ST_popupTitle\" style=\"left:0px;width:360px;position:absolute;top:50px;text-align:center\">Share This Link With A Friend!</div>";}else{html+="<div class=\"DS_ST_popupTitle\" style=\"left:0px;width:360px;position:absolute;top:50px;text-align:center\">Invite a friend to ShopTogether!</div>";}
html+="<div class=\"DS_ST_popupText\" style=\"left:0px;width:360px;position:absolute;top:80px;text-align:center\">Simply copy the text in the box below and paste it into your IM window.</div>";html+="<textarea id='ds_st_invitejoinlink' cols=42 rows=10 style=\"position:absolute;top:120px;left:20px;\">";if(!invite){html+="I found this at "+st_sitename+" and thought you might like it: "+ShopTogether.itemName+" ";}else{html+="I'm shopping online right now at "+st_sitename+". Use this link to ShopTogether with me. ";}
html+=url+"</textarea>";html+="</div>";html+="<div style=\"width:100%;height:40px;position:absolute;bottom:0px;left:0px;background-color:black\">";html+="<input onclick='javascript:ST$.unblockUI();' type=\"button\" value=\"Close Window\" class=\"DS_ST_popupmenuButton\" style=\"position:absolute;width:150px;top:8px;right:10px\">";html+="</div>";html+="</div>";ST$.blockUI({message:html,css:{top:(ST$(window).height()-400)/2+'px',left:(ST$(window).width()-400)/2+'px',border:'0',width:'402px',height:'202px'}});}
function ds_st_requestJoin(_groupId,_userName){var html="<div style=\"position:absolute;top:0px;left:0px;width:403px;height:403px;background-color:white;border:solid;border-color:black;border-width:1px\">";html+="<div style=\"width:100%;height:20px;position:absolute;top:0px;left:0px;background-color:black\">";html+="<a style='cursor:pointer;' onclick=\"javascript:ST$.unblockUI();\" target=\"_blank\"><img src=\"http://"+st_assets+"/version2/images/link_close.png\" border=\"0\" style=\"position:absolute;right:3px;top:3px\"></a>";html+="</div>";html+="<div style=\"width:100%;height:338px;position:absolute;top:20px;left:0px;background-color:white\">";html+="<a href=\"http://www.shoptogether.com\" target=\"_blank\"><img src=\"http://"+st_assets+"/version2/images/shoptogether_logo.png\" border=\"0\" style=\"position:absolute;left:15px;top:13px\"></a>";html+="<div class=\"DS_ST_popupTitle\" style=\"width:360px;position:absolute;top:58px;left:0px;text-align:center\">"+_userName+" is here!</div>";html+="<div class=\"DS_ST_popupText\" style=\"left:0px;width:360px;position:absolute;top:93px;text-align:center\">Your friend just clicked the link that you sent and is inviting you to shop. You can connect with them and ShopTogether:<br><br>";html+="Show your friend what you're looking at...<br>";html+="See what your friend is looking at...<br>";html+="Chat with your friend as you shop!</div>";html+="<div class=\"DS_ST_popupTitle\" style=\"left:0px;width:360px;position:absolute;top:202px;text-align:center\">Do you want to ShopTogether?</div>";html+="<div class=\"DS_ST_popupText\" style=\"left:0px;width:360px;position:absolute;top:237px;text-align:center\">Enter your name and click \"Yes\" below to get started.</div>";html+="<div class=\"DS_ST_popupInputText\" style=\"left:0px;width:360px;position:absolute;top:265px;left:66px;text-align:left\">First Name:</div>";html+="<input type=\"text\" id='ds_st_usernamejoin' style=\"width:150px;position:absolute;top:265px;left:165px;\">";html+="<div class=\"DS_ST_popupText\" style=\"width:360px;position:absolute;top:300px;left:0px;text-align:center\">Please do not share any confidential or personal information when shopping with others.</div>";html+="</div>";html+="<div style=\"width:100%;height:40px;position:absolute;bottom:0px;left:0px;background-color:black\">";html+="<input onclick=\"javascript:ds_st_joinGroupWithId('"+_groupId+"');\" type=\"button\" value=\"Yes\" class=\"DS_ST_popupmenuButton\" style=\"position:absolute;top:8px;right:107px\">";html+="<input onclick='javascript:ST$.unblockUI();' type=\"button\" value=\"No\" class=\"DS_ST_popupmenuButton\" style=\"position:absolute;top:8px;right:10px\">";html+="</div>";html+="</div>";ST$.blockUI({message:html,css:{top:(ST$(window).height()-400)/2+'px',left:(ST$(window).width()-400)/2+'px',border:'0',width:'402px',height:'402px'}});}
function ds_st_getToolbarTemplate(){var st_ToolbarTemplate
if(ds_st_ie&&!ds_st_ie6){st_ToolbarTemplate={"name":"shopbardiv","object":"#shopbardiv","imageFrame":"http://"+st_assets+"/version2/images/dress_bubble3.png","style":[{"width":"100%","min-width":"300px","height":"27px","position":"absolute","z-index":"9999","bottom":"0px","padding":"0px","margin":"0px","left":"0px","fontFamily":"Arial","visibility":"visible","text-align":"left"}],"bgStyle":[{"background-color":"#9D9D9D","width":"100%","height":"30px","left":"0px","bottom":"-3px","opacity":"1","position":"absolute","border":"solid","border-left-width":"0pt","border-top-width":"1pt","border-bottom-width":"0pt","border-right-width":"0pt","border-color":"#000000"}],"frameStyle":[{"position":"absolute","left":"10px","bottom":"7px"}],"productStyle":[{"width":"58px","height":"58px","border":"1px solid #ffffff","position":"absolute","bottom":"22px","left":"31px","z-index":"10000"}]};}else if(ds_st_ie6){st_ToolbarTemplate={"name":"shopbardiv","object":"#shopbardiv","imageFrame":"http://"+st_assets+"/version2/images/dress_bubble3.png","style":[{"width":"100%","min-width":"300px","height":"27px","position":"absolute","z-index":"9999","bottom":"0px","padding":"0px","margin":"0px","left":"0px","fontFamily":"Arial","visibility":"visible","text-align":"left"}],"bgStyle":[{"background-color":"#9D9D9D","width":"100%","height":"27px","bottom":"0px","opacity":"1","position":"absolute","border":"solid","border-left-width":"0pt","border-top-width":"1pt","border-bottom-width":"0pt","border-right-width":"0pt","border-color":"#000000"}],"frameStyle":[{"position":"absolute","left":"10px","bottom":"7px"}],"productStyle":[{"width":"58px","height":"58px","border":"1px solid #ffffff","position":"absolute","bottom":"22px","left":"31px","z-index":"10000"}]};}else{st_ToolbarTemplate={"name":"shopbardiv","object":"#shopbardiv","imageFrame":"http://"+st_assets+"/version2/images/dress_bubble3.png","style":[{"width":"100%","min-width":"300px","height":"27px","position":"fixed","z-index":"9999","bottom":"0px","padding":"0px","margin":"0px","left":"0px","fontFamily":"Arial","visibility":"visible","text-align":"left"}],"bgStyle":[{"background-color":"#9D9D9D","width":"100%","height":"27px","bottom":"0px","opacity":"1","position":"absolute","border":"solid","border-left-width":"0pt","border-top-width":"1pt","border-bottom-width":"0pt","border-right-width":"0pt","border-color":"#000000"}],"frameStyle":[{"position":"absolute","left":"10px","bottom":"7px"}],"productStyle":[{"width":"58px","height":"58px","border":"1px solid #ffffff","position":"absolute","bottom":"22px","left":"31px","z-index":"10000"}]};}
return st_ToolbarTemplate;}
function ds_st_getRootNodeTemplate(){var st_RootNodeTemplate=null;if(ds_st_ie8){st_RootNodeTemplate={"name":"","object":"#","description":"Share Item","headerDescription":"Share Using...","openHeight":"170px","closeHeight":"27px","listColor":"#9D9D9D","openBackgroundColor":"#494949","openColor":"#ffffff","closeBackgroundColor":"","closeColor":"#ffffff","helpIcon":"http://"+st_assets+"/version2/images/icons/help_icon.png","helpUrl":"javascript:alert('help');","helpAlt":"Help","style":[{"position":"absolute","z-index":"10000","bottom":"0px","left":"150px","width":"10px","height":"30px"}],"bgStyle":[{"position":"absolute","top":"0px","bottom":"0px","z-index":"10000","left":"0px","right":"0px","opacity":"0","width":"10px","height":"27px","background-color":""}],"btnStyle":[{"padding-top":"5px","z-index":"10000","position":"absolute","width":"10px","height":"27px","bottom":"-1px","left":"0px","color":"#ffffff","fontFamily":"Arial","fontSize":"9pt","textAlign":"center","cursor":"pointer","background-color":""}],"listStyle":[{"z-index":"10000","position":"absolute","left":"0px","right":"0px","width":"100px","height":"100%","bottom":"28px","top":"0px","opacity":"0","fontFamily":"Arial","fontSize":"8pt","color":"#ffffff"}],"menuheaderStyle":[{"background-color":"#494949","color":"#ffffff","left":"0px","right":"0px","width":"100%","top":"0px","height":"20px","position":"absolute","display":"none","fontSize":"10pt","z-index":"10001","text-align":"center"}],"helpStyle":[{"position":"absolute","right":"0px","top":"0px"}]};}else{if(ds_st_ie){st_RootNodeTemplate={"name":"","object":"#","description":"Share Item","headerDescription":"Share Using...","openHeight":"170px","closeHeight":"27px","listColor":"#9D9D9D","openBackgroundColor":"#494949","openColor":"#ffffff","closeBackgroundColor":"","closeColor":"#ffffff","helpIcon":"http://"+st_assets+"/version2/images/icons/help_icon.png","helpUrl":"javascript:alert('help');","helpAlt":"Help","style":[{"position":"absolute","z-index":"10000","bottom":"0px","left":"150px","width":"10px","height":"27px"}],"bgStyle":[{"position":"absolute","top":"0px","bottom":"0px","z-index":"10000","left":"0px","right":"0px","opacity":"0","width":"10px","height":"27px","background-color":""}],"btnStyle":[{"padding-top":"5px","z-index":"10000","position":"absolute","width":"10px","height":"25px","bottom":"0px","left":"0px","color":"#ffffff","fontFamily":"Arial","fontSize":"9pt","textAlign":"center","cursor":"pointer","background-color":""}],"listStyle":[{"z-index":"10000","position":"absolute","left":"0px","right":"0px","width":"100px","height":"100%","bottom":"28px","top":"0px","opacity":"0","fontFamily":"Arial","fontSize":"8pt","color":"#ffffff"}],"menuheaderStyle":[{"background-color":"#494949","color":"#ffffff","left":"0px","right":"0px","width":"100%","top":"0px","height":"20px","position":"absolute","display":"none","fontSize":"10pt","z-index":"10001","text-align":"center"}],"helpStyle":[{"position":"absolute","right":"0px","top":"0px"}]};}else{st_RootNodeTemplate={"name":"","object":"#","description":"Share Item","headerDescription":"Share Using...","openHeight":"170px","closeHeight":"27px","listColor":"#9D9D9D","openBackgroundColor":"#494949","openColor":"#ffffff","closeBackgroundColor":"","closeColor":"#ffffff","helpIcon":"http://"+st_assets+"/version2/images/icons/help_icon.png","helpUrl":"javascript:alert('help');","helpAlt":"Help","style":[{"position":"absolute","z-index":"10000","bottom":"0px","left":"150px","width":"10px","height":"27px"}],"bgStyle":[{"position":"absolute","top":"0px","bottom":"-10px","z-index":"10000","left":"0px","right":"0px","opacity":"0","width":"10px","height":"27px","background-color":""}],"btnStyle":[{"padding-top":"5px","z-index":"10000","position":"absolute","width":"10px","height":"22px","bottom":"-1px","left":"0px","color":"#ffffff","fontFamily":"Arial","fontSize":"9pt","textAlign":"center","cursor":"pointer","background-color":""}],"listStyle":[{"z-index":"10000","position":"absolute","left":"0px","right":"0px","width":"100px","height":"100%","bottom":"28px","top":"0px","opacity":"0","fontFamily":"Arial","fontSize":"8pt","color":"#ffffff"}],"menuheaderStyle":[{"background-color":"#494949","color":"#ffffff","left":"0px","right":"0px","width":"100%","top":"0px","height":"20px","position":"absolute","display":"none","fontSize":"10pt","z-index":"10001","text-align":"center"}],"helpStyle":[{"position":"absolute","right":"0px","top":"0px"}]};}}
return st_RootNodeTemplate;}
function ds_st_getNodeTemplate(){var st_NodeTemplate={"name":"","object":"#","label":"","icon":"","url":"","alt":"","overBackgroundColor":"#494949","offBackgroundColor":"","overColor":"#ffffff","offColor":"#000000","style":[{"left":"0px","right":"2px","width":"100%","top":"28px","height":"25px","position":"absolute","padding-top":"2px","color":"#000000","cursor":"pointer","z-index":"10001"}],"labelStyle":[{"position":"absolute","left":"24px","top":"5px"}]};return st_NodeTemplate;}
function ds_st_getPopupWindowTemplate(){var st_PopupTemplate={"name":"sdfsd","object":"#sdfsd","header":"Friends","closeIcon":ds_st_close_line_icon,"closeURL":"javascript:alert('close');","closeAlt":"click","linkIcon":ds_st_chat_add_icon,"linkURL":"javascript:alert('link');","linkAlt":"click","style":[{"position":"absolute","z-index":"10007","bottom":"27px","right":"0px","width":"110px","height":"300px","border":"solid","border-left-width":"0pt","border-top-width":"0pt","border-bottom-width":"0pt","border-right-width":"0pt","border-color":"#000000","display":"none"}],"headerStyle":[{"padding-top":"4px","left":"0px","right":"0px","top":"0px","height":"20px","color":"#ffffff","position":"absolute","fontSize":"10pt","text-align":"left"}],"bodyStyle":[{"left":"0px","right":"0px","top":"20px","border":"solid","border-left-width":"1pt","border-top-width":"1pt","border-bottom-width":"2pt","border-right-width":"1pt","border-color":"#666666","background-color":"#ffffff","height":"188px","width":"260px","padding":"0px","margin":"0px","text-align":"left","position":"absolute"}]};return st_PopupTemplate;}
function ds_st_favorites_visible(){ST$("#ds_st_chat_window").css("visibility","hidden");ST$("#ds_st_chat_window").css("display","none");ST$("#ds_st_favorites_window").css("visibility","visible");ST$("#ds_st_favorites_window").css("display","block");_params={variable_name:'favorites_open',variable_value:'true'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);_params={variable_name:'chat_open',variable_value:'false'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);ST$("#ds_st_onlinefriends_window").css("visibility","visible");ST$("#ds_st_onlinefriends_window").css("display","block");_params={variable_name:'friends_open',variable_value:'true'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);ds_st_specialButtonOn("#ds_st_favorites");ds_st_specialButtonOff("#ds_st_chat");}
function ds_st_chat_visible(){ST$("#ds_st_favorites_window").css("visibility","hidden");ST$("#ds_st_favorites_window").css("display","none");ST$("#ds_st_chat_window").css("visibility","visible");ST$("#ds_st_chat_window").css("display","block");_params={variable_name:'chat_open',variable_value:'true'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);_params={variable_name:'favorites_open',variable_value:'false'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);ST$("#ds_st_onlinefriends_window").css("visibility","visible");ST$("#ds_st_onlinefriends_window").css("display","block");_params={variable_name:'friends_open',variable_value:'true'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);ds_st_specialButtonOn("#ds_st_chat");ds_st_specialButtonOff("#ds_st_favorites");}
function ds_st_specialButtonOn(_obj){ST$(_obj).css("background-color","#494949");}
function ds_st_specialButtonOff(_obj){ST$(_obj).css("background-color","#737373");}
function ds_st_onlinefriends_click(){try{if(ST$("#ds_st_onlinefriends_window").css("visibility")=='hidden'){ST$("#ds_st_onlinefriends_window").css("visibility","visible");ST$("#ds_st_onlinefriends_window").css("display","block");_params={variable_name:'friends_open',variable_value:'true'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);}else{ST$("#ds_st_onlinefriends_window").css("visibility","hidden");ST$("#ds_st_onlinefriends_window").css("visibility","none");_params={variable_name:'friends_open',variable_value:'false'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);}}catch(e){}}
function ds_st_favorites_click(){if(ST$("#ds_st_favorites_window").css("visibility")=='hidden'){ST$("#ds_st_chat_window").css("visibility","hidden");ST$("#ds_st_chat_window").css("display","none");ST$("#ds_st_favorites_window").css("visibility","visible");ST$("#ds_st_favorites_window").css("display","block");_params={variable_name:'favorites_open',variable_value:'true'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);_params={variable_name:'chat_open',variable_value:'false'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);ST$("#ds_st_onlinefriends_window").css("visibility","visible");ST$("#ds_st_onlinefriends_window").css("display","block");_params={variable_name:'friends_open',variable_value:'true'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);ds_st_specialButtonOff("#ds_st_chat")}else{ST$("#ds_st_favorites_window").css("visibility","hidden");ST$("#ds_st_favorites_window").css("display","none");_params={variable_name:'favorites_open',variable_value:'false'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);ds_st_specialButtonOff("#ds_st_favorites");}}
function ds_st_chat_click(){if(ST$("#ds_st_chat_window").css("visibility")=='hidden'){ST$("#ds_st_favorites_window").css("visibility","hidden");ST$("#ds_st_favorites_window").css("display","none");ST$("#ds_st_chat_window").css("visibility","visible");ST$("#ds_st_chat_window").css("display","block");_params={variable_name:'chat_open',variable_value:'true'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);_params={variable_name:'favorites_open',variable_value:'false'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);ST$("#ds_st_onlinefriends_window").css("visibility","visible");ST$("#ds_st_onlinefriends_window").css("display","block");_params={variable_name:'friends_open',variable_value:'true'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);var objDiv=document.getElementById("ds_st_chat_window_display");objDiv.scrollTop=objDiv.scrollHeight;ds_st_specialButtonOff("#ds_st_favorites")}else{ST$("#ds_st_chat_window").css("visibility","hidden");ST$("#ds_st_chat_window").css("display","none");_params={variable_name:'chat_open',variable_value:'false'};ShopTogetherBridge.send('session.variables.variable.set','ds_st_onSendDoNothing',_params);ds_st_specialButtonOff("#ds_st_chat");}}
function ds_st_writeChatWindow(){ST$("#ds_st_chat_window").append("<div style='position:absolute;width:240px;height:140px;left:10px;right:10px;top:30px;background-color:#ffffff;border:solid;border-width:1px;border-color:gray;overflow: -moz-scrollbars-vertical;overflow-x: none;overflow-y: auto;' id='ds_st_chat_window_display'></div>");ST$("#ds_st_chat_window").append("<div style='position:absolute;width:240px;height:30px;left:10px;right:10px;bottom:6px;background-color:#ffffff' id='ds_st_chat_window_input'></div>");ST$("#ds_st_chat_window_input").append("<form onsubmit='javascript:ds_st_sendChatLine();return false;'><input type=text id='ds_st_chatinput_box' style='width:180px;position:absolute;left:0px;top:2px;height:22px;'>");ST$("#ds_st_chat_window_input").append("<input onclick='javascript:ds_st_sendChatLine();' type=submit style='width:50px;position:absolute;right:0px;top:2px;height:25px;' value='Send'></form>");ST$("#ds_st_chat_window").append("<div id='ds_st_sendmyitem' onclick='javascript:ds_st_addProductToChat(\"sent this item\");' style='color:#ffffff;font-size:10pt;cursor:pointer;position:absolute;right:32px;top:4px;width:100px;'>Send My Item</div>");ST$("#ds_st_sendmyitem").hover(function(){document.getElementById("ds_st_sendmyitem").style.color="white";},function(){document.getElementById("ds_st_sendmyitem").style.color="#A6A6A6";});}
function ds_st_writeFavoritesWindow(){ST$("#ds_st_favorites_window").append("<div style='position:absolute;width:240px;height:170px;left:10px;right:10px;top:30px;background-color:#ffffff;border:solid;border-width:1px;border-color:gray;overflow: -moz-scrollbars-vertical;overflow-x: none;overflow-y: auto;' id='ds_st_favorite_window_display'></div>");ST$("#ds_st_favorites_window").append("<div id='ds_st_addmyitem' onclick='javascript:ds_st_addCurrentProductToFavorites();' style='color:#ffffff;font-size:10pt;cursor:pointer;position:absolute;right:23px;top:4px;width:100px;'>Add My Item</div>");ST$("#ds_st_addmyitem").hover(function(){document.getElementById("ds_st_addmyitem").style.color="white";},function(){document.getElementById("ds_st_addmyitem").style.color="#A6A6A6";});}
function ds_st_makeToolbarVisible(){ds_st_setCookie('ds_st_connected','true');document.getElementById("shopbardiv").style.visibility="visible";document.getElementById("shopbarexitlink").style.visibility="visible";ST$("#shopbarexitlink").css("visibility","visible");if(ds_st_ie){try{document.getElementById("shopbardivbg").style.visibility="visible";document.getElementById("shopbardivframe").style.visibility="visible";document.getElementById("shopbardivproduct").style.visibility="visible";document.getElementById("invitelink").style.visibility="visible";}catch(e){}}}
function ds_st_makeToolbarInVisible(){try{ds_st_setCookie('ds_st_connected','false');document.getElementById("shopbardiv").style.visibility="hidden";document.getElementById("ds_st_shoptogethertoobarstart").style.visibility="hidden";document.getElementById("ds_st_onlinefriends_window").style.visibility="hidden";document.getElementById("ds_st_chat_window_display").style.visibility="hidden";document.getElementById("ds_st_favorites_window").style.visibility="hidden";document.getElementById("ds_st_onlinefriends").style.visibility="hidden";document.getElementById("ds_st_favorites").style.visibility="hidden";document.getElementById("ds_st_chat").style.visibility="hidden";document.getElementById("ds_st_chat_window").style.visibility="hidden";}catch(e){}}
function ds_st_writeFriendsWindow(){}
function ds_st_fixItemURL(str,endparam){if(str.indexOf("http://")==-1){str="http://"+st_sitedns+"/"+str;}
if(str.indexOf("?")==-1){str+="?"+endparam+"=";}else{str+="&"+endparam+"=";}
return str;}
function ds_st_fixImageURL(str){if(str.indexOf("http://")==-1){str="http://"+st_sitedns+"/"+str;}
return str;}
function ds_st_writeToolbar(_item){ds_st_toolbar_load(ds_st_getToolbarTemplate(),_item);var rootNode=null;var itemNode=null;var popupNode=null;ST$("#shopbardiv").append("<div style='border-left-style:solid;border-left-width:1px;border-color:black;top:0px;visibility:hidden;position:absolute;right:0;background-color:#737373;height:27px;width:373px;z-index:100000;' id='ds_st_shoptogethertoobarstart'></div>")
var shopbarexitlinkvisibility="visible";if(!ds_st_allowFixedDivs()){if(!ds_st_ie6){ST$("#shopbardiv").append("<a title='Close Toolbar' id='shopbarexitlink' href='javascript:ds_st_exitToolbar();' style='width:30px;height:23px;text-decoration:none;left:0px;bottom:0px;position:absolute;color:white;font-face:arial;font-size:8pt;visibility:"+shopbarexitlinkvisibility+";'>Close</a>");}else{ST$("#shopbardiv").append("<a title='Close Toolbar' id='shopbarexitlink' href='javascript:ds_st_exitToolbar();' style='width:30px;height:23px;text-decoration:none;left:0px;bottom:0px;position:absolute;color:white;font-face:arial;font-size:8pt;visibility:"+shopbarexitlinkvisibility+";'>Close</a>");}}else{ST$("#shopbardiv").append("<a title='Close Toolbar' id='shopbarexitlink' href='javascript:ds_st_exitToolbar();' style='width:30px;height:23px;text-decoration:none;left:0px;bottom:0px;position:absolute;color:white;font-face:arial;font-size:8pt;visibility:"+shopbarexitlinkvisibility+";'>Close</a>");}
popupNode=ds_st_getPopupWindowTemplate();popupNode.name="ds_st_onlinefriends_window";popupNode.object="#ds_st_onlinefriends_window";popupNode.header="";popupNode.style[0].width="112px";popupNode.style[0].height="200px";popupNode.style[0].right="0px";popupNode.headerStyle[0]["background-color"]="";popupNode.headerStyle[0].left="110px";popupNode.bodyStyle[0]["display"]="none";popupNode.style[0].visibility="hidden";popupNode.style[0]["background-color"]="";if(ds_st_ie){popupNode.style[0].opacity=".1";}
popupNode.closeIcon=ds_st_close_arrow_icon;popupNode.closeURL="javascript:ds_st_onlinefriends_click();";popupNode.linkIcon="";popupNode.linkURL="";popupNode.closeAlt="Close Friends Window";popupNode.linkAlt="";popupNode.style[0]["border-width"]="0px";ds_st_popup_window(popupNode);ds_st_writeFriendsWindow();popupNode=ds_st_getPopupWindowTemplate();popupNode.name="ds_st_chat_window";popupNode.object="#ds_st_chat_window";popupNode.header="&nbsp;Chat";popupNode.style[0].width=(ds_st_ie)?"264px":"262px";popupNode.style[0].height="210px";if(ds_st_ie){popupNode.style[0].right="109px";}else{popupNode.style[0].right="112px";}
popupNode.style[0].align="center";popupNode.style[0].visibility="hidden";popupNode.headerStyle[0].width=(ds_st_ie)?"264px":"262px";popupNode.headerStyle[0]["background-image"]="url('http://"+st_assets+"/version2/images/chat_header2.png')";popupNode.bodyStyle[0].height=(ds_st_ie)?"190px":"188px";popupNode.bodyStyle[0].width=(ds_st_ie)?"264px":"260px"
popupNode.closeIcon=ds_st_close_line_icon;popupNode.closeURL="javascript:ds_st_chat_click();";popupNode.linkIcon=ds_st_chat_add_icon;popupNode.linkURL="javascript:ds_st_addProductToChat('sent this item');";popupNode.closeAlt="Close Chat Window";popupNode.linkAlt="Add Current Product To Chat";ds_st_popup_window(popupNode);ds_st_writeChatWindow();popupNode=ds_st_getPopupWindowTemplate();popupNode.name="ds_st_alert_popup";popupNode.object="#ds_st_alert_popup";popupNode.style[0].width="225px";popupNode.style[0].height="60px";popupNode.style[0].right="135px";popupNode.style[0].bottom="40px";popupNode.style[0].opacity=".8";popupNode.style[0]["border-right-width"]="1px";popupNode.style[0]["border-bottom-width"]="1px";popupNode.style[0]["border-top-width"]="1px";popupNode.style[0]["border-left-width"]="1px";popupNode.style[0].visibility="hidden";popupNode.style[0]["background-color"]="#FFFFC0";ds_st_popup_alert(popupNode);popupNode=ds_st_getPopupWindowTemplate();popupNode.name="ds_st_favorites_window";popupNode.object="#ds_st_favorites_window";popupNode.header="&nbsp;Group Favorites";popupNode.style[0].width=(ds_st_ie)?"264px":"262px";popupNode.style[0].height="210px";if(ds_st_ie){popupNode.style[0].right="109px";}else{popupNode.style[0].right="112px";}
popupNode.style[0].align="center";popupNode.headerStyle[0].width=(ds_st_ie)?"264px":"262px";popupNode.headerStyle[0]["background-image"]="url('http://"+st_assets+"/version2/images/chat_header2.png')";popupNode.bodyStyle[0].height=(ds_st_ie)?"190px":"188px";popupNode.bodyStyle[0].width=(ds_st_ie)?"264px":"260px";popupNode.style[0].visibility="hidden";popupNode.closeIcon=ds_st_close_line_icon;popupNode.closeURL="javascript:ds_st_favorites_click();";popupNode.linkIcon=ds_st_fav_add_icon;popupNode.linkURL="javascript:ds_st_addCurrentProductToFavorites();";popupNode.closeAlt="Close Favorites Window";popupNode.linkAlt="Add Current Product To Favorites";ds_st_popup_window(popupNode);ds_st_writeFavoritesWindow();itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_onlinefriends";itemNode.object="#ds_st_onlinefriends";itemNode.overBackgroundColor="#494949";itemNode.offBackgroundColor="#737373";itemNode.overColor="#ffffff";itemNode.offColor="#ffffff";itemNode.icon="";itemNode.label="Friends (0)";itemNode.url="javascript:ds_st_onlinefriends_click();";itemNode.labelStyle[0]['text-align']="center";itemNode.style[0].top="0px";itemNode.style[0].bottom="0px";itemNode.style[0].left="";itemNode.style[0].width="110px";itemNode.labelStyle[0].fontSize="10pt";if(ds_st_ie6){itemNode.style[0].right="0px";itemNode.labelStyle[0].left="0px";}else{itemNode.labelStyle[0].left="";itemNode.style[0].right="0px";}
itemNode.labelStyle[0].width="100%";itemNode.style[0].visibility="hidden";itemNode.style[0].color="#ffffff";itemNode.style[0]["background-color"]="#737373";ds_st_toolbar_child_node(itemNode,"#ds_st_shoptogethertoobarstart");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_favorites";itemNode.object="#ds_st_favorites";itemNode.overBackgroundColor="#494949";itemNode.offBackgroundColor="#737373";itemNode.overColor="#ffffff";itemNode.offColor="#000000";itemNode.icon=ds_st_fav_icon;itemNode.label="";itemNode.url="javascript:ds_st_favorites_click();";itemNode.style[0].top="0px";itemNode.style[0].bottom="0px";itemNode.style[0].left="";itemNode.style[0].width="25px";itemNode.style[0].right="115px";itemNode.labelStyle[0].fontSize="10pt";itemNode.style[0]["padding-left"]="3px";itemNode.style[0].visibility="hidden";itemNode.style[0]["background-color"]="#737373";ds_st_toolbar_child_node(itemNode,"#ds_st_shoptogethertoobarstart","#ds_st_favorites_window");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_chat";itemNode.object="#ds_st_chat";itemNode.overBackgroundColor="#494949";itemNode.offBackgroundColor="#737373";itemNode.overColor="#ffffff";itemNode.offColor="#000000";itemNode.icon=ds_st_chat_icon;itemNode.label="";itemNode.url="javascript:ds_st_chat_click();";itemNode.style[0].top="0px";itemNode.style[0].bottom="0px";itemNode.style[0].left="";itemNode.style[0].width="25px";itemNode.style[0].right="145px";itemNode.labelStyle[0].fontSize="10pt";itemNode.style[0]["padding-left"]="3px";itemNode.style[0]["background-color"]="#737373";itemNode.style[0].visibility="hidden";ds_st_toolbar_child_node(itemNode,"#ds_st_shoptogethertoobarstart","#ds_st_chat_window");ST$("#ds_st_shoptogethertoobarstart").append("<img id='ds_st_shoptogetherlogo' style='top:3px;visibility:hidden;position:absolute;right:254px;' width='114' height='20' src='"+ds_st_toolbar_logo+"'>");if(st_sitekey=="footlocker"){rootNode=ds_st_getRootNodeTemplate();rootNode.name='ds_st_communitymenu';rootNode.object='#ds_st_communitymenu';rootNode.description="Community";rootNode.headerDescription="Community:";rootNode.openHeight="155px";rootNode.closeHeight="27px";rootNode.style[0].left="227px";rootNode.style[0].width="180px";rootNode.btnStyle[0].width="80px";rootNode.listStyle[0].width="180px";ds_st_toolbar_root_node(rootNode);itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_facebook";itemNode.object="#ds_st_community_facebook";itemNode.icon="http://"+st_assets+"/version2/images/icons/facebook_icon.png";itemNode.label=" Facebook";itemNode.url="javascript:window.open('http://www.Facebook.com/FootLocker');";itemNode.style[0].top="25px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_twitter";itemNode.object="#ds_st_community_twitter";itemNode.icon="http://"+st_assets+"/version2/images/icons/twitter_icon.png";itemNode.label=" Twitter";itemNode.url="javascript:window.open('http://www.Twitter.com/FLUnlocked');";itemNode.style[0].top="50px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_footlocker_unlocked";itemNode.object="#ds_st_community_footlocker_unlocked";itemNode.icon=st_favicon;itemNode.label=" Foot Locker Unlocked";itemNode.url="javascript:window.open('http://unlocked.Footlocker.com/');";itemNode.style[0].top="75px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_footlocker_unlocked_blog";itemNode.object="#ds_st_community_footlocker_unlocked_blog";itemNode.icon=st_favicon;itemNode.label=" Foot Locker Unlocked Blog";itemNode.url="javascript:window.open('http://unlocked.Footlocker.com/blog');";itemNode.style[0].top="100px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");}else if(st_sitekey=="eastbay"){rootNode=ds_st_getRootNodeTemplate();rootNode.name='ds_st_communitymenu';rootNode.object='#ds_st_communitymenu';rootNode.description="Community";rootNode.headerDescription="Community:";rootNode.openHeight="280px";rootNode.closeHeight="27px";rootNode.style[0].left="227px";rootNode.style[0].width="180px";rootNode.btnStyle[0].width="80px";rootNode.listStyle[0].width="180px";ds_st_toolbar_root_node(rootNode);itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_facebook_eastbay";itemNode.object="#ds_st_community_facebook_eastbay";itemNode.icon="http://"+st_assets+"/version2/images/icons/facebook_icon.png";itemNode.label=" Facebook Eastbay";itemNode.url="javascript:window.open('http://www.Facebook.com/Eastbay');";itemNode.style[0].top="25px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_facebook_eastbay_running";itemNode.object="#ds_st_community_facebook_eastbay_running";itemNode.icon="http://"+st_assets+"/version2/images/icons/facebook_icon.png";itemNode.label=" Facebook Eastbay Running";itemNode.url="javascript:window.open('http://www.Facebook.com/EastbayRunning');";itemNode.style[0].top="50px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_facebook_eastbay_casual";itemNode.object="#ds_st_community_facebook_eastbay_casual";itemNode.icon="http://"+st_assets+"/version2/images/icons/facebook_icon.png";itemNode.label=" Facebook Eastbay Casual";itemNode.url="javascript:window.open('http://www.Facebook.com/EastbayCasual');";itemNode.style[0].top="75px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_facebook_eastbay_baseball";itemNode.object="#ds_st_community_facebook_eastbay_baseball";itemNode.icon="http://"+st_assets+"/version2/images/icons/facebook_icon.png";itemNode.label=" Facebook Eastbay Baseball";itemNode.url="javascript:window.open('http://www.Facebook.com/EastbayBaseball');";itemNode.style[0].top="100px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_facebook_eastbay_careers";itemNode.object="#ds_st_community_facebook_eastbay_careers";itemNode.icon="http://"+st_assets+"/version2/images/icons/facebook_icon.png";itemNode.label=" Facebook Eastbay Careers";itemNode.url="javascript:window.open('http://www.Facebook.com/EastbayCareers');";itemNode.style[0].top="125px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_twitter";itemNode.object="#ds_st_community_twitter";itemNode.icon="http://"+st_assets+"/version2/images/icons/twitter_icon.png";itemNode.label=" Twitter";itemNode.url="javascript:window.open('http://www.twitter.com/Eastbay');";itemNode.style[0].top="150px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_youtube";itemNode.object="#ds_st_community_youtube";itemNode.icon="http://"+st_assets+"/version2/images/icons/youtube_icon.png";itemNode.label=" YouTube";itemNode.url="javascript:window.open('http://www.YouTube.com/Eastbay');";itemNode.style[0].top="175px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_videos";itemNode.object="#ds_st_community_videos";itemNode.icon=st_favicon;itemNode.label=" Videos at Eastbay";itemNode.url="javascript:window.open('http://video.eastbay.com');";itemNode.style[0].top="200px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_blog";itemNode.object="#ds_st_community_blog";itemNode.icon=st_favicon;itemNode.label=" Eastbay Blog";itemNode.url="javascript:window.open('http://blog.eastbay.com');";itemNode.style[0].top="225px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");}else if(st_sitekey=="ccs"){rootNode=ds_st_getRootNodeTemplate();rootNode.name='ds_st_communitymenu';rootNode.object='#ds_st_communitymenu';rootNode.description="Community";rootNode.headerDescription="Community:";rootNode.openHeight="230px";rootNode.closeHeight="27px";rootNode.style[0].left="227px";rootNode.style[0].width="180px";rootNode.btnStyle[0].width="80px";rootNode.listStyle[0].width="180px";ds_st_toolbar_root_node(rootNode);itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_facebook";itemNode.object="#ds_st_community_facebook";itemNode.icon="http://"+st_assets+"/version2/images/icons/facebook_icon.png";itemNode.label=" Facebook";itemNode.url="javascript:window.open('http://www.Facebook.com/CCS.Skate');";itemNode.style[0].top="25px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_twitter";itemNode.object="#ds_st_community_twitter";itemNode.icon="http://"+st_assets+"/version2/images/icons/twitter_icon.png";itemNode.label=" Twitter";itemNode.url="javascript:window.open('http://www.Twitter.com/CCS_Skate_Shop');";itemNode.style[0].top="50px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_blog";itemNode.object="#ds_st_community_blog";itemNode.icon=st_favicon;itemNode.label=" CCS Blog";itemNode.url="javascript:window.open('http://blog.ccs.com');";itemNode.style[0].top="75px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_youtube";itemNode.object="#ds_st_community_youtube";itemNode.icon="http://"+st_assets+"/version2/images/icons/youtube_icon.png";itemNode.label=" YouTube";itemNode.url="javascript:window.open('http://www.youtube.com/CCSSkateMedia');";itemNode.style[0].top="100px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_myspace_catalog";itemNode.object="#ds_st_community_myspace_catalog";itemNode.icon="http://"+st_assets+"/version2/images/icons/my_space.png";itemNode.label=" MySpace CCS Catalog";itemNode.url="javascript:document.location.href='http://www.MySpace.com/CCS_Catalog';";itemNode.style[0].top="125px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_myspace_girls";itemNode.object="#ds_st_community_myspace_girls";itemNode.icon="http://"+st_assets+"/version2/images/icons/my_space.png";itemNode.label=" MySpace CCS Girls";itemNode.url="javascript:window.open('http://www.MySpace.com/CCSGirls');";itemNode.style[0].top="150px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_skatespot";itemNode.object="#ds_st_community_skatespot";itemNode.icon=st_favicon;itemNode.label=" The Skate Spot";itemNode.url="javascript:window.open('http://www.theskatespot.com/CCS_MailOrder');";itemNode.style[0].top="175px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");}else if(st_sitekey=="ladyfootlocker"){rootNode=ds_st_getRootNodeTemplate();rootNode.name='ds_st_communitymenu';rootNode.object='#ds_st_communitymenu';rootNode.description="Community";rootNode.headerDescription="Community:";rootNode.openHeight="155px";rootNode.closeHeight="27px";rootNode.style[0].left="227px";rootNode.style[0].width="180px";rootNode.btnStyle[0].width="80px";rootNode.listStyle[0].width="180px";ds_st_toolbar_root_node(rootNode);itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_facebook";itemNode.object="#ds_st_community_facebook";itemNode.icon="http://"+st_assets+"/version2/images/icons/facebook_icon.png";itemNode.label=" Lady FootLocker";itemNode.url="javascript:window.open('http://www.Facebook.com/LadyFootLocker');";itemNode.style[0].top="25px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_theclub";itemNode.object="#ds_st_community_theclub";itemNode.icon=st_favicon;itemNode.label=" The Club";itemNode.url="javascript:window.open('http://theclub.ladyfootlocker.com');";itemNode.style[0].top="50px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_club_log";itemNode.object="#ds_st_community_club_log";itemNode.icon=st_favicon;itemNode.label=" The Club Log";itemNode.url="javascript:window.open('http://theclub.ladyfootlocker.com/blog');";itemNode.style[0].top="75px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");itemNode=ds_st_getNodeTemplate();itemNode.name="ds_st_community_club_quizzes";itemNode.object="#ds_st_community_club_quizzes";itemNode.icon=st_favicon;itemNode.label=" Club Quizzes";itemNode.url="javascript:window.open('http://theclub.ladyfootlocker.com/quiz/');";itemNode.style[0].top="100px";ds_st_toolbar_child_node(itemNode,rootNode.object+"list");}
if(ds_st_ie8){ST$("#shopbardiv").append("<div id='shopbarshoptogetherlink' style='top:1px;color:#ffffff;left:112px;width:120px;height:26px;position:absolute;font-face:arial;font-size:9pt;cursor:pointer;text-align:center;padding-top:5px'>ShopTogether</div>'");}else{if(ds_st_ie){ST$("#shopbardiv").append("<div id='shopbarshoptogetherlink' style='top:0px;color:#ffffff;left:112px;width:120px;height:25px;position:absolute;font-face:arial;font-size:9pt;cursor:pointer;text-align:center;padding-top:5px'>ShopTogether</div>'");}else{ST$("#shopbardiv").append("<div id='shopbarshoptogetherlink' style='top:1px;color:#ffffff;left:112px;width:120px;height:22px;position:absolute;font-face:arial;font-size:9pt;cursor:pointer;text-align:center;padding-top:5px'>ShopTogether</div>'");}}
ST$("#shopbarshoptogetherlink").hover(function(){ST$(this).css("background-color","#494949");},function(){ST$(this).css("background-color","");});var url=ds_st_fixItemURL(_item.item_URL,"invite_im");ST$("#shopbarshoptogetherlink").click(function(){try{ShopTogetherCoremetrics.Invite();}catch(e){}
ds_st_setInviteLink(url);});if(ds_st_ie8){ST$("#shopbardiv").append("<div id='shopbarshareitemlink' style='background-color:#9D9D9D;z-index:100001;color:#ffffff;left:407px;top:1px;width:100px;height:26px;position:absolute;font-face:arial;font-size:9pt;cursor:pointer;text-align:center;padding-top:5px'>What's This?</div>'");}else{if(ds_st_ie){ST$("#shopbardiv").append("<div id='shopbarshareitemlink' style='background-color:#9D9D9D;z-index:100001;color:#ffffff;left:407px;top:0px;width:100px;height:25px;position:absolute;font-face:arial;font-size:9pt;cursor:pointer;text-align:center;padding-top:5px'>What's This?</div>'");}else{ST$("#shopbardiv").append("<div id='shopbarshareitemlink' style='background-color:#9D9D9D;z-index:100001;color:#ffffff;left:407px;top:1px;width:100px;height:22px;position:absolute;font-face:arial;font-size:9pt;cursor:pointer;text-align:center;padding-top:5px'>What's This?</div>'");}}
ST$("#shopbarshareitemlink").hover(function(){ST$(this).css("background-color","#494949");},function(){ST$(this).css("background-color","#9D9D9D");});var url=ds_st_fixItemURL(_item.item_URL,"invite_im");ST$("#shopbarshareitemlink").click(function(){ds_st_openHelp();});if(ds_st_ie8){ST$("#shopbardiv").append("<div id='shopbarwatchotherslink' style='background-color:#9D9D9D;z-index:100001;color:#ffffff;left:307px;top:1px;width:100px;height:26px;position:absolute;font-face:arial;font-size:9pt;cursor:pointer;text-align:center;padding-top:5px'>Most Viewed</div>'");}else{if(ds_st_ie){ST$("#shopbardiv").append("<div id='shopbarwatchotherslink' style='background-color:#9D9D9D;z-index:100001;color:#ffffff;left:307px;top:0px;width:100px;height:25px;position:absolute;font-face:arial;font-size:9pt;cursor:pointer;text-align:center;padding-top:5px'>Most Viewed</div>'");}else{ST$("#shopbardiv").append("<div id='shopbarwatchotherslink' style='background-color:#9D9D9D;z-index:100001;color:#ffffff;left:307px;top:1px;width:100px;height:22px;position:absolute;font-face:arial;font-size:9pt;cursor:pointer;text-align:center;padding-top:5px'>Most Viewed</div>'");}}
ST$("#shopbarwatchotherslink").hover(function(){ST$(this).css("background-color","#494949");},function(){ST$(this).css("background-color","#9D9D9D");});ST$("#shopbarwatchotherslink").click(function(){document.location.href=st_whatshot_url;});}

function ShopTogetherPlatform(){var BRIDGE_URL="http://"+st_assets+"/ShopTogetherBridgeV1.swf";var SHOP_SERVER="http://"+st_shopserver+"/ShopTogether.svc/Execute";this.debug=false;this.initialize=function(clientLicense,siteLicense,callback,resultType){debug=false;var queryString=window.top.location.search.substring(1);if(queryString.indexOf("st_bridge_debug")>-1){ds_st_setCookie("st_bridge_debug","1");}
if(ds_st_getCookie("st_bridge_debug")=="1"){debug=true;}
var uid="";if(ds_st_getCookie("st_bridge_userId")!=""){uid=ds_st_getCookie("st_bridge_userId");}
if(uid==null)uid='';resultType=resultType||'json';_loadFlashProxy(clientLicense,siteLicense,uid,callback,resultType);}
this.setUserName=function(uid){ds_st_setCookie("st_bridge_userId",uid);}
this.send=function(operation,callback,object){object=object||'';document.stbridge.send(operation,callback,object);}
this.startPing=function(callback,pingInterval){pingInterval=pingInterval||1500;document.stbridge.startPing(callback,pingInterval);}
this.debugPrint=function(o){var s=document.getElementById('ds_st_debug_msg').value
s+=o.msg;document.getElementById('ds_st_debug_msg').value=s;document.getElementById('ds_st_debug_msg').scrollTop=document.getElementById('ds_st_debug_msg').scrollHeight;}
this.stopPing=function(){document.stbridge.stopPing();}
this.clearBrowserStatus=function(){var dsImage=new Image();dsImage.src='javascript:false;';}
function _loadFlashProxy(clientLicense,siteLicense,userId,callback,resultType){if(this.debug==true){var s='<div id="ds_st_debug_window" style="top:0px;position:absolute;width:100%;height:180px;z-index:200000;border:1px solid blue"><textarea id="ds_st_debug_msg" cols=100 rows=5></textarea></div>'
document.write(s);}
var flashvars="clientLicense="+clientLicense;flashvars="&userId="+userId;flashvars+="&siteLicense="+siteLicense;flashvars+="&callback="+callback;flashvars+="&resultType="+resultType;flashvars+="&shopServer="+SHOP_SERVER;flashvars+="&debug="+this.debug;var flashProxyTag='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';flashProxyTag+=' id="stbridge" width="0" height="0" ';flashProxyTag+='codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">';flashProxyTag+='<param name="movie" value="'+BRIDGE_URL+'" />';flashProxyTag+='<param name="quality" value="high" />';flashProxyTag+='<param name="bgcolor" value="#ffffff" />';flashProxyTag+='<param name="flashvars" value="'+flashvars+'" />';flashProxyTag+='<param name="allowScriptAccess" value="always" />';flashProxyTag+='<embed src="'+BRIDGE_URL+'" quality="high" bgcolor="#ffffff"';flashProxyTag+='width="0" height="0" name="stbridge" align="middle"';flashProxyTag+=' play="true"';flashProxyTag+=' loop="false"';flashProxyTag+=' quality="high"';flashProxyTag+=' allowScriptAccess="always"';flashProxyTag+=' flashvars="'+flashvars+'"';flashProxyTag+=' type="application/x-shockwave-flash"';flashProxyTag+=' pluginspage="http://www.adobe.com/go/getflashplayer">';flashProxyTag+='</embed>';flashProxyTag+='</object>';document.write(flashProxyTag);}}
var ShopTogetherBridge=new ShopTogetherPlatform();function ds_st_shopDebug(o){if(ds_st_debug){}}
function ds_st_shopDebugError(o){if(ds_st_debug){}}

function _ShopTogether_1_8(_siteId){this.js_onOpenShopTogether="st_onOpenShopTogether";this.js_onPreInitialized="st_onPreInitialized";this.js_onEnterName="st_onEnterName";this.js_onInvite="st_onInvite";this.js_onInviteCodeShared="st_onInviteCodeShared";this.js_onJoin="st_onJoin";this.js_onJoinCodeShared="st_onJoinCodeShared";this.js_onConnected="st_onConnected";this.js_onRedirectFromFriend="st_onRedirectFromFriend";this.js_onOpenChat="st_onOpenChat";this.js_onCloseChat="st_onCloseChat";this.js_onRemoveAllFavorites="st_onRemoveAllFavorites";this.js_onStartOver="st_onStartOver";this.js_onCloseShopTogether="st_onCloseShopTogether";this.js_onFriendsProductClick="st_onFriendsProductClick";this.js_onSharedProductClick="st_onSharedProductClick";this.js_onShowProduct="st_onShowProduct";this.getUserType=getUserType;this.getUsersConnected=getUsersConnected;this.setUsersConnected=setUsersConnected;this.setUserTypeJoin=setUserTypeJoin;this.setUserTypeInvite=setUserTypeInvite;this.demoOn="yes";this.styleSWF="";this.siteId=_siteId;this.id='';this.type='';this.category='';this.subcategory='';this.URL='';this.name='';this.description='';this.imageThumbnailURL='';this.imageLargeURL='';this.custom1='';this.inviteUrl="";this.chatId="";this.keyId="";this.userId="";this.itemId="";this.itemName="";this.itemImage="";this.itemPrice="";this.itemLink="";this.itemThumb="";this.itemCategory="";this.itemType="";this.arrowRight="";this.arrowLeft="";this.arrowRightDisabled="";this.arrowLeftDisabled="";this.shopTogetherLogo="";this.downImage="";this.upImage="";this.cWidth=265;this.changeState=changeState;this.onPreInitializeAndOpenComplete=onPreInitializeAndOpenComplete;this.preInitializeAndOpen=preInitializeAndOpen;this.Initialize=Initialize;this.InitializePreInstall=InitializePreInstall;this.setChatId=setChatId;this.getChatId=getChatId;this.getUserId=getUserId;this.getUserName=getUserName;this.getKeyId=getKeyId;this.Open=Open;this.addToFavorites=addToFavorites;this.setHeight=setHeight;this.getApplicationHeight=getApplicationHeight;this.messageStyle="";this.showTutorial=showTutorial;this.setCurrentProduct=setCurrentProduct;this.setCurrentProductImage=setCurrentProductImage;this.getShopTogetherActive=getShopTogetherActive;this.setShopTogetherActive=setShopTogetherActive;this.setShopTogetherInactive=setShopTogetherInactive;this.labels="";this.setShopTogetherRestart=setShopTogetherRestart;this.xMousePos=0;this.yMousePos=0;this.xMousePosMax=0;this.yMousePosMax=0;this.openDHTML=openDHTML;this.openPromoDHTML=openPromoDHTML;this.closePromoDHTML=closePromoDHTML;this.promoY=225;this.promoX=10;this.promoCenter=true;var _message="";this.applicationServer="";this.messagingServer="";this.promoDHTML="";this.flashDHTML="";this.setCookieVariable=setCookieVariable;this.getCookieVariable=getCookieVariable;this.appendURL=appendURL;this.changeColor=changeColor;this.openToolbar=openToolbar;this.changeColorAndLink=changeColorAndLink;function openToolbar(){if(ds_st_getCookie("ds_st_turnon")!='true'){ds_st_loadPage();var url=ds_st_fixItemURL(this.URL,"camp=DS:Shop:IM&cm_mmc=Affiliates-_-ShopTogether-_-Invite-_-null&invite_im");ds_st_setInviteLink(url);ds_st_startPing();st_onOpenShopTogether();}else{var url=ds_st_fixItemURL(this.URL,"camp=DS:Shop:IM&cm_mmc=Affiliates-_-ShopTogether-_-Invite-_-null&invite_im");ds_st_setInviteLink(url);}
try{ShopTogetherCoremetrics.Invite();}catch(e){}}
function appendURL(url){if(url.indexOf("?")==-1){return url+'?share_other='+ds_st_getCookie('ds_st_contextId');}else{return url+'&share_other='+ds_st_getCookie('ds_st_contextId');}}
function changeColor(image){if(document.getElementById('ds_st_productimage')!=null){this.imageThumbnailURL=image;this.itemThumb=image;document.getElementById('ds_st_productimage').src=image;var _item={item_id:this.itemId,item_type:this.itemType,item_category:this.itemCategory,item_name:this.itemName,item_imageThumbnailURL:image,item_imageLargeURL:this.itemImage,item_URL:this.itemLink,item_custom1:this.itemPrice};ShopTogetherBridge.send('user.profile.item.set','ds_st_onSendDoNothing',_item);}}
function changeColorAndLink(image,url){if(document.getElementById('ds_st_productimage')!=null){this.imageThumbnailURL=image;this.itemThumb=image;document.getElementById('ds_st_productimage').src=image;var _item={item_id:this.itemId,item_type:this.itemType,item_category:this.itemCategory,item_name:this.itemName,item_imageThumbnailURL:image,item_imageLargeURL:this.itemImage,item_URL:url,item_custom1:this.itemPrice};ShopTogetherBridge.send('user.profile.item.set','ds_st_onSendDoNothing',_item);}}
var st=new _ShopTogether(_siteId);function Initialize(){st.js_onOpenShopTogether=this.js_onOpenShopTogether;st.js_onPreInitialized=this.js_onPreInitialized;st.js_onEnterName=this.js_onEnterName;st.js_onInvite=this.js_onInvite;st.js_onInviteCodeShared=this.js_onInviteCodeShared;st.js_onJoin=this.js_onJoin;st.js_onJoinCodeShared=this.js_onJoinCodeShared;st.js_onConnected=this.js_onConnected;st.js_onRedirectFromFriend=this.js_onRedirectFromFriend;st.js_onOpenChat=this.js_onOpenChat;st.js_onCloseChat=this.js_onCloseChat;st.js_onRemoveAllFavorites=this.js_onRemoveAllFavorites;st.js_onStartOver=this.js_onStartOver;st.js_onCloseShopTogether=this.js_onCloseShopTogether;st.js_onFriendsProductClick=this.js_onFriendsProductClick;st.js_onSharedProductClick=this.js_onSharedProductClick;st.js_onShowProduct=this.js_onShowProduct;st.demoOn=this.demoOn;st.styleSWF=this.styleSWF;st.siteId=this.siteId;st.inviteUrl=this.inviteUrl;st.chatId=this.chatId;st.keyId=this.keyId;st.userId=this.userId;if(this.type=='2'){st.itemType='product';}else{st.itemType='category';}
this.itemId=this.id;this.itemName=this.name;this.itemImage=this.imageLargeURL;this.itemPrice=this.custom1;this.itemLink=this.URL;this.itemCategory=this.category;this.itemType=this.type;if(this.imageThumbnailURL==''){this.imageThumbnailURL="http://"+st_assets+"/version2/images/default_image.png";}
this.itemThumb=this.imageThumbnailURL;st.itemType=this.type;st.itemId=this.id;st.itemName=this.name;st.itemImage=this.imageLargeURL;st.itemPrice=this.custom1;st.itemLink=this.URL;st.itemThumb=this.imageThumbnailURL;st.itemCategory=this.category;st.arrowRight=this.arrowRight;st.arrowLeft=this.arrowLeft;st.arrowRightDisabled=this.arrowRightDisabled;st.arrowLeftDisabled=this.arrowLeftDisabled;st.shopTogetherLogo=this.shopTogetherLogo;st.downImage=this.downImage;st.upImage=this.upImage;st.cWidth=this.cWidth;st.labels=this.labels;st.messageStyle=this.messageStyle;st.xMousePos=this.xMousePos;st.yMousePos=this.yMousePos;st.xMousePosMax=this.xMousePosMax;st.yMousePosMax=this.yMousePosMax;st.promo=this.promoY;st.promoX=this.promoX;st.promoCenter=this.promoCenter;st.applicationServer=this.applicationServer;st.messagingServer=this.messagingServer;st.promoDHMTL=this.promoDHTML;st.flashDHTML=this.flashDHTML;st.Initialize();}
function getUserType(){return st.getUserType();}
function getUsersConnected(){return st.getUsersConnected();}
function setUserTypeJoin(){st.setUserTypeJoin();}
function setUserTypeInvite(){st.setUserTypeInvite();}
function setUsersConnected(){st.setUsersConnected();}
function Open(){st.Open();}
function setHeight(a){st.setHeight(a);}
function addToFavorites(_itemId,_itemName,_itemCategory,_itemType,_itemPrice,_itemImage,_itemThumb,_itemLink){if(getShopTogetherActive()=='true'){st.addToFavorites(_itemId,_itemName,_itemCategory,_itemType,_itemPrice,_itemImage,_itemThumb,_itemLink);}}
function setCurrentProductImage(_itemImage){if(getShopTogetherActive()+""=='true'){st.setCurrentProduct(this.itemId,this.itemName,this.itemCategory,this.itemType,this.itemPrice,_itemImage,_itemImage,this.itemLink);if(ds_st_getCookie('st_on')=='1'){var _item={item_id:this.itemId,item_type:this.itemType,item_category:this.itemCategory,item_name:this.itemName,item_imageThumbnailURL:_itemImage,item_imageLargeURL:_itemImage,item_URL:this.itemLink,item_custom1:this.itemPrice};ShopTogetherBridge.send('user.profile.item.set','ds_st_onProfileItemChangeSet',_item);}}}
function setNewItem(_itemId,_itemName,_itemCategory,_itemType,_itemPrice,_itemImage,_itemThumb,_itemLink){}
function setCurrentProduct(_itemId,_itemName,_itemCategory,_itemType,_itemPrice,_itemImage,_itemThumb,_itemLink){if(getShopTogetherActive()=='true'){st.setCurrentProduct(_itemId,_itemName,_itemCategory,_itemType,_itemPrice,_itemImage,_itemThumb,_itemLink);}}
function getChatId(){return st.getChatId();}
function setChatId(a){st.setChatId(a);}
function getApplicationHeight(){return st.getApplicationHeight();}
function showTutorial(){st.showTutorial();}
function setShopTogetherInactive(){st.setShopTogetherInactive();}
function setShopTogetherActive(){st.setShopTogetherActive();}
function getShopTogetherActive(){return st.getShopTogetherActive();}
function getDisplayHtml(){return"";}
function openDHTML(a){st.openDHTML(a);}
function openPromoDHTML(){st.openPromoDHTML();}
function openFlashMessageDHTML(){st.openFlashMessageDHTML();}
function closePromoDHTML(){st.closePromoDHTML();}
function setUserTypeInvite(){st.setUserTypeInvite();}
function changeState(){st.changeState();}
function onPreInitializeAndOpenComplete(o){st.onPreInitializeAndOpenComplete(o);}
function preInitializeAndOpen(name){st.preInitializeAndOpen(name)}
function InitializePreInstall(){}
function getUserId(){st.getUserId();}
function getUserName(){st.getUserName();}
function getKeyId(){st.getKeyId();}
function setShopTogetherRestart(){st.setShopTogetherRestart();}
function setCookieVariable(o){st.setCookieVariable(o);}
function getCookieVariable(o){st.getCookieVariable(o);}}

function _ShopTogether(_siteId){var _swfLocation="";var _tmpProxyLocation="";var _PreswfLocation="";this.js_onOpenShopTogether="st_onOpenShopTogether";this.js_onPreInitialized="st_onPreInitialized";this.js_onEnterName="st_onEnterName";this.js_onInvite="st_onInvite";this.js_onInviteCodeShared="st_onInviteCodeShared";this.js_onJoin="st_onJoin";this.js_onJoinCodeShared="st_onJoinCodeShared";this.js_onConnected="st_onConnected";this.js_onRedirectFromFriend="st_onRedirectFromFriend";this.js_onOpenChat="st_onOpenChat";this.js_onCloseChat="st_onCloseChat";this.js_onRemoveAllFavorites="st_onRemoveAllFavorites";this.js_onStartOver="st_onStartOver";this.js_onCloseShopTogether="st_onCloseShopTogether";this.js_onFriendsProductClick="st_onFriendsProductClick";this.js_onSharedProductClick="st_onSharedProductClick";this.js_onShowProduct="st_onShowProduct";this.getUserType=getUserType;this.getUsersConnected=getUsersConnected;this.setUsersConnected=setUsersConnected;this.setUserTypeJoin=setUserTypeJoin;this.setUserTypeInvite=setUserTypeInvite;this.demoOn="yes";this.styleSWF="";this.siteId=_siteId;this.inviteUrl="";this.chatId="";this.keyId="";this.userId="";this.itemId="";this.itemName="";this.itemImage="";this.itemPrice="";this.itemLink="";this.itemThumb="";this.itemCategory="";this.itemType="";this.arrowRight="";this.arrowLeft="";this.arrowRightDisabled="";this.arrowLeftDisabled="";this.shopTogetherLogo="";this.downImage="";this.upImage="";this.cWidth=265;this.changeState=changeState;this.onPreInitializeAndOpenComplete=onPreInitializeAndOpenComplete;this.preInitializeAndOpen=preInitializeAndOpen;this.Initialize=Initialize;this.InitializePreInstall=InitializePreInstall;this.setChatId=setChatId;this.getChatId=getChatId;this.getUserId=getUserId;this.getUserName=getUserName;this.getKeyId=getKeyId;this.Open=Open;this.addToFavorites=addToFavorites;this.setHeight=setHeight;this.getApplicationHeight=getApplicationHeight;this.messageStyle="";this.showTutorial=showTutorial;this.setCurrentProduct=setCurrentProduct;this.getShopTogetherActive=getShopTogetherActive;this.setShopTogetherActive=setShopTogetherActive;this.setShopTogetherInactive=setShopTogetherInactive;this.labels="";this.setShopTogetherRestart=setShopTogetherRestart;this.xMousePos=0;this.yMousePos=0;this.xMousePosMax=0;this.yMousePosMax=0;this.openDHTML=openDHTML;this.openPromoDHTML=openPromoDHTML;this.closePromoDHTML=closePromoDHTML;this.promoY=225;this.promoX=10;this.promoCenter=true;var _message="";this.applicationServer="";this.messagingServer="";this.promoDHTML="";this.flashDHTML="";this.setCookieVariable=setCookieVariable;this.getCookieVariable=getCookieVariable;doLoadFlashProxy=true;function setCookieVariable(o){setCookie(o.name,o.value);}
function getCookieVariable(o){var s=getCookie(o.name);if(s==null){return'';}else{return s;}}
function checkNewToolbar(){var queryString=window.top.location.search.substring(1);}
function getUserId(){return getCookie('dstepuser');}
function getKeyId(){return getCookie('dstepkey');}
function getUserName(){return getCookie('dstepname');}
function getChatId(){return getCookie('dstepchat');}
function setChatId(a){setCookie('dstepchat',a.chat);}
function thisMovie(movieName){if(navigator.appName.indexOf("Microsoft")!=-1){return window[movieName];}else{return document[movieName];}}
function changeState(){thisMovie("ShopTogetherFlashFile").changeState();}
function preInitializeAndOpen(name){setCookie('dstepname',name)}
function onPreInitializeAndOpenComplete(o){setCookie('dstepchat',o.chatId);setCookie('dstepkey',o.keyId);setCookie('dstepuser',o.userId);this.Open();}
function openDHTML(a){var url='<b><center>'+a.itemName+'</b><br><br><img src=\"'+unescape(a.itemImage)+'\"><br><br>'+a.itemPrice+'<br><br>';ShopTogether_Tip(url,WIDTH,165);}
function openPromoDHTML(){var awidth=510;var url=this.promoDHTML;if(url!=''){if(this.promoCenter==true){if(document.layers){this.promoX=(window.innerWidth/2)-(awidth/2);}else if(document.all){this.promoX=(document.body.clientWidth/2)-(awidth/2);}else if(document.getElementById){this.promoX=(window.innerWidth/2)-(awidth/2);}}
ShopTogether_Tip(url,WIDTH,awidth,CLOSEBTN,true,FIX,[Number(this.promoX),Number(this.promoY)],STICKY,true,TITLEBGCOLOR,'black');}}
function openFlashMessageDHTML(){var awidth=510;var url="";url='<center>';url+='<table border=\"1\" cellpadding=\"10\" cellspacing=\"0\" style=\"border-collapse: collapse; border-width: 0\" bordercolor=\"#111111\" width=\"510\">';url+='  <tr>';url+='    <td width=\"100%\" style=\"border-style: none; border-width: medium\">';url+='    <img border=\"0\" src=\"http://shoptogether.decisionstep.com/Library/version_01_01/images/shoptogether_logo_200px.png\" ><p align=\"center\">';url+='    <b><center><font face=\"Arial, Helvetica\" size=\"5\">ShopTogether Requires Adobe Flash 9.</font></b></p>';url+='    <p align=\"left\"><center><font face=\"Arial, Helvetica\" size=\"3\">You can download Adobe Flash 9 at <a target=\"_blank\" href=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\">Adobe Download Center</a></font></p>';url+='   </td>';url+='  </tr>';url+='</table>';url+='</center>';var x=10;ShopTogether_Tip(url,WIDTH,awidth,CLOSEBTN,true,FIX,[Number(150),Number(125)],STICKY,true,TITLEBGCOLOR,'black');}
function closePromoDHTML(){shoptogether_tt_Hide();}
function isCookieEnabled(){var cookieEnabled=(navigator.cookieEnabled)?true:false
if(typeof navigator.cookieEnabled=="undefined"&&!cookieEnabled){document.cookie="testcookie"
cookieEnabled=(document.cookie.indexOf("testcookie")!=-1)?true:false}
return cookieEnabled;}
Vars=function(qStr){this.numVars=0;if(qStr!=null){var nameValue,name;var pairs=qStr.split('&');var pairLen=pairs.length;for(var i=0;i<pairLen;i++){var pair=pairs[i];if((pair.indexOf('=')!=-1)&&(pair.length>3)){var nameValue=pair.split('=');var name=nameValue[0];var value=nameValue[1];if(this[name]==null&&name.length>0&&value.length>0){this[name]=value;this.numVars++;}}}}}
Vars.prototype.toString=function(pre){var result='';if(pre==null){pre='';}
for(var i in this){if(this[i]!=null&&typeof(this[i])!='object'&&typeof(this[i])!='function'&&i!='numVars'){result+=pre+i+'='+this[i]+'&';}}
if(result.length>0)result=result.substr(0,result.length-1);return result;}
function getSearch(wRef){var searchStr='';if(wRef.location.search.length>1){searchStr=new String(wRef.location.search);searchStr=searchStr.substring(1,searchStr.length);}
return searchStr;}
var lc_id=Math.floor(Math.random()*100000).toString(16);if(this!=top)
{top.Vars=Vars;top.getSearch=getSearch;top.lc_id=lc_id;}
var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion()
{var version;var axo;var e;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version=axo.GetVariable("$version");}catch(e){}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version="WIN 6,0,21,0";axo.AllowScriptAccess="always";version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version="WIN 3,0,18,0";}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");version="WIN 2,0,0,11";}catch(e){version=-1;}}
return version;}
function GetSwfVer(){var flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");var versionMajor=tempArrayMajor[0];var versionMinor=tempArrayMajor[1];if(descArray[3]!=""){tempArrayMinor=descArray[3].split("r");}else{tempArrayMinor=descArray[4].split("r");}
var versionRevision=tempArrayMinor[1]>0?tempArrayMinor[1]:0;var flashVer=versionMajor+"."+versionMinor+"."+versionRevision;}}
else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){flashVer=4;}
else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){flashVer=3;}
else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){flashVer=2;}
else if(isIE&&isWin&&!isOpera){flashVer=ControlVersion();}
return flashVer;}
function DetectFlashVer(reqMajorVer,reqMinorVer,reqRevision)
{versionStr=GetSwfVer();if(versionStr==-1){return false;}else if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",");}else{versionArray=versionStr.split(".");}
var versionMajor=versionArray[0];var versionMinor=versionArray[1];var versionRevision=versionArray[2];if(versionMajor>parseFloat(reqMajorVer)){return true;}else if(versionMajor==parseFloat(reqMajorVer)){if(versionMinor>parseFloat(reqMinorVer))
return true;else if(versionMinor==parseFloat(reqMinorVer)){if(versionRevision>=parseFloat(reqRevision))
return true;}}
return false;}}
function AC_AddExtension(src,ext)
{if(src.indexOf('?')!=-1)
return src.replace(/\?/,ext+'?');else
return src+ext;}
var displayHtml="";function AC_Generateobj(objAttrs,params,embedAttrs)
{var str='';if(isIE&&isWin&&!isOpera)
{str+='<object ';for(var i in objAttrs)
str+=i+'="'+objAttrs[i]+'" ';str+=">";for(var i in params)
str+='<param name="'+i+'" value="'+params[i]+'" /> ';str+='></object>';}else{str+='<embed ';for(var i in embedAttrs)
str+=i+'="'+embedAttrs[i]+'" ';str+='> </embed>';}
myObj=str;displayHtml=str;document.write(str);}
function AC_FL_RunContent(){var ret=AC_GetArgs
(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_GetArgs(args,ext,srcParamName,classid,mimeType){var ret=new Object();ret.embedAttrs=new Object();ret.params=new Object();ret.objAttrs=new Object();for(var i=0;i<args.length;i=i+2){var currArg=args[i].toLowerCase();switch(currArg){case"classid":break;case"pluginspage":ret.embedAttrs[args[i]]=args[i+1];break;case"src":case"movie":args[i+1]=AC_AddExtension(args[i+1],ext);ret.embedAttrs["src"]=args[i+1];ret.params[srcParamName]=args[i+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":ret.objAttrs[args[i]]=args[i+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":ret.embedAttrs[args[i]]=ret.objAttrs[args[i]]=args[i+1];break;default:ret.embedAttrs[args[i]]=ret.params[args[i]]=args[i+1];}}
ret.objAttrs["classid"]=classid;if(mimeType)ret.embedAttrs["type"]=mimeType;return ret;}
var requiredMajorVersion=9;var requiredMinorVersion=0;var requiredRevision=0;var hasProductInstall=DetectFlashVer(6,0,65);var hasRequestedVersion=DetectFlashVer(requiredMajorVersion,requiredMinorVersion,requiredRevision);function deleteCookie(name,path,domain){if(getCookie(name)){document.cookie=name+"="+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}
function setCookie(name,value,expires,path,domain,secure){path="/";var curCookie=name+"="+escape(value)+
((expires)?"; expires="+expires:"")+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+
((secure)?"; secure":"");ret=document.cookie=curCookie;}
function getCookie(name){var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0)return null;}else
begin+=2;var end=document.cookie.indexOf(";",begin);if(end==-1)
end=dc.length;return unescape(dc.substring(begin+prefix.length,end));}
function loadFlashFile(){return true;}
function InitializePreInstall(){if(hasProductInstall&&!hasRequestedVersion){var MMPlayerType=(isIE==true)?"ActiveX":"PlugIn";var MMredirectURL=window.location;document.title=document.title.slice(0,47)+" - Flash Player Installation";var MMdoctitle=document.title;AC_FL_RunContent("src","playerProductInstall","FlashVars","MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"","width","100%","height","100%","align","middle","id","PostageStampAPI","quality","high","bgcolor","#869ca7","name","PostageStampAPI","allowScriptAccess","sameDomain","type","application/x-shockwave-flash","pluginspage","http://www.adobe.com/go/getflashplayer");}else if(hasRequestedVersion){AC_FL_RunContent("src",_PreswfLocation,"width","0","height","0","align","middle","id","PostageStampAPI","quality","high","bgcolor","#869ca7","name","PostageStampAPI","allowScriptAccess","always","flashvars",'historyUrl=history.htm%3F&lconid='+lc_id+'',"type","application/x-shockwave-flash","pluginspage","http://www.adobe.com/go/getflashplayer");}else{var alternateContent='Alternate HTML content should be placed here. '
+'This content requires the Adobe Flash Player. '
+'<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';document.write(alternateContent);}}
function Initialize(){var queryString=window.top.location.search.substring(1);ShopTogetherBridge.initialize(st_sitekey,st_sitekey,'ds_st_onInitializeComplete');if(getShopTogetherActive()==true){var myObj=document.location.href;var index=myObj.lastIndexOf('ShopTogetherId');if(index>-1){currentURL=myObj.substring(0,index-1);}else{currentURL=myObj;}
if(index>-1){this.chatId=myObj.substring(index+15,myObj.length);}else{this.chatId="";}
_message="";if(this.itemLink==''){this.itemLink=currentURL;}
if(hasProductInstall&&!hasRequestedVersion){openFlashMessageDHTML();}else if(hasRequestedVersion){var productString="";if(this.itemName!=''){productString=escape(this.itemId)+"|";productString+=escape(this.itemName)+"|";productString+=escape(this.itemPrice)+"|";productString+=escape(this.itemImage)+"|";productString+=escape(this.itemThumb)+"|";productString+=escape(this.itemLink);}
var shopString="&siteId="+this.siteId;shopString+="&product="+productString;shopString+="&styleSWF="+this.styleSWF;shopString+="&cWidth="+this.cWidth;shopString+="&shopTogetherLogo="+this.shopTogetherLogo;shopString+="&arrowRight="+this.arrowRight;shopString+="&arrowLeft="+this.arrowLeft;shopString+="&arrowRightDisabled="+this.arrowRightDisabled;shopString+="&arrowLeftDisabled="+this.arrowLeftDisabled;shopString+="&downImage="+this.downImage;shopString+="&upImage="+this.upImage;shopString+="&chatId="+this.getChatId();shopString+="&keyId="+this.getKeyId();shopString+="&userId="+this.getUserId();shopString+="&userName="+this.getUserName();shopString+="&messagingServer="+this.messagingServer;shopString+="&applicationServer="+this.applicationServer;shopString+="&demoOn="+this.demoOn;shopString+="&js_onOpenShopTogether="+this.js_onOpenShopTogether;shopString+="&js_onPreInitialized="+this.js_onPreInitialized;shopString+="&js_onEnterName="+this.js_onEnterName;shopString+="&js_onInvite="+this.js_onInvite;shopString+="&js_onInviteCodeShared="+this.js_onInviteCodeShared;shopString+="&js_onJoin="+this.js_onJoin;shopString+="&js_onJoinCodeShared="+this.js_onJoinCodeShared;shopString+="&js_onConnected="+this.js_onConnected;shopString+="&js_onRedirectFromFriend="+this.js_onRedirectFromFriend;shopString+="&js_onOpenChat="+this.js_onOpenChat;shopString+="&js_onCloseChat="+this.js_onCloseChat;shopString+="&js_onRemoveAllFavorites="+this.js_onRemoveAllFavorites;shopString+="&js_onStartOver="+this.js_onStartOver;shopString+="&js_onCloseShopTogether="+this.js_onCloseShopTogether;shopString+="&js_onFriendsProductClick="+this.js_onFriendsProductClick;shopString+="&js_onSharedProductClick="+this.js_onSharedProductClick;shopString+="&js_onShowProduct="+this.js_onShowProduct;shopString+="&JSESSIONID="+getSessionId();shopString+="&labels="+this.labels;getSessionId();if(isOpera){winOpera(shopString);}else if(!isWin){macStandard(shopString);}else{winStandard(shopString);}}else{openFlashMessageDHTML();}}
if(hasProductInstall&&hasRequestedVersion){if(doLoadFlashProxy){var product=new Object();product.userName="";product.userEmail="";if(this.itemType=="category"){product.userProductId="";product.userProductType=2;if(this.itemId=="home"){product.userProductCategory=this.itemCategory.replace(/;/g,"|");}else{product.userProductCategory=this.itemCategory.replace(/;/g,"|")+"|"+this.itemId;}}else{product.userProductId=this.itemId;product.userProductType=1;product.userProductCategory=this.itemCategory.replace(/;/g,"|");}
product.userProductName=this.itemName;product.userProductDescription="";product.userProductPrice=this.itemPrice;product.userProductImageThumbnailURL=this.itemThumb;product.userProductImageSmallURL="";product.userProductImageMediumURL="";product.userProductImageLargeURL=this.itemImage;product.userProductDetailsURL=this.itemLink;}}}
function getSessionId(){var s=document.cookie;var a=s.split(';')
return a[0].replace(/JSESSIONID=/g,'');}
function macStandard(shopString){AC_FL_RunContent("src",_swfLocation,"width","100%","height","100%","align","left","id","ShopTogetherFlashFile","quality","high","bgcolor","#ffffff","name","ShopTogetherFlashFile","flashvars",'historyUrl=history.htm%3F&lconid='+lc_id+''+shopString,"allowScriptAccess","always","type","application/x-shockwave-flash","wmode","opaque","pluginspage","http://www.adobe.com/go/getflashplayer");}
function winStandard(shopString){if(isIE){document.write("<div id='dstepFlashDiv' name='dstepFlashDiv' style='width:100%;height:1px;'>");}
AC_FL_RunContent("src",_swfLocation,"width","100%","height","1","align","left","id","ShopTogetherFlashFile","quality","high","bgcolor","#ffffff","name","ShopTogetherFlashFile","flashvars",'historyUrl=history.htm%3F&lconid='+lc_id+''+shopString,"allowScriptAccess","always","type","application/x-shockwave-flash","wmode","opaque","pluginspage","http://www.adobe.com/go/getflashplayer");if(isIE){document.write("</div>");}}
function winOpera(shopString){_message="<div id='shopMessageDiv' name='shopMessageDiv' style=\"display:Block;"+this.messageStyle+"\">";_message+="ShopTogether does not currently support the Opera browser.";_message+="</div>";document.write(_message);}
function Open(){}
function afterLoad(){}
function setHeight(a){setApplicationHeight(a.height);if(!isWin){document.ShopTogetherFlashFile.height=a.height;}else{if(isIE){document.getElementById("dstepFlashDiv").style.height=a.height+"px";document.ShopTogetherFlashFile.height=a.height;}else{document.ShopTogetherFlashFile.height=a.height;}}
document.sizeSecondaries(a.height);}
function addToFavorites(_itemId,_itemName,_itemCategory,_itemType,_itemPrice,_itemImage,_itemThumb,_itemLink){var productString=_itemId+"|"+_itemName+"|"+_itemPrice+"|"+_itemImage.replace(/&/g,'~')+"|"+_itemThumb.replace(/&/g,'~')+"|"+_itemLink.replace(/&/g,'~');document.ShopTogetherFlashFile.onJavaAddFavoriteCall(productString);}
function setCurrentProduct(_itemId,_itemName,_itemCategory,_itemType,_itemPrice,_itemImage,_itemThumb,_itemLink){var productString=_itemId+"|"+_itemName+"|"+_itemPrice+"|"+_itemImage.replace(/&/g,'~')+"|"+_itemThumb.replace(/&/g,'~')+"|"+_itemLink.replace(/&/g,'~');document.ShopTogetherFlashFile.onJavaSetMyProductCall(productString);}
function setApplicationHeight(a){setCookie('ShopTogetherHeight',a);}
function getApplicationHeight(){return getCookie('ShopTogetherHeight');}
function showTutorial(){openTutorialDHTML(790,300);}
function getUserType(){return getCookie('ShopTogetherUserType');}
function getUsersConnected(){return getCookie('ShopTogetherUsersConnected')}
function setUserTypeJoin(){setCookie('ShopTogetherUserType','join');}
function setUserTypeInvite(){setCookie('ShopTogetherUserType','invite');}
function setUsersConnected(){setCookie('ShopTogetherUsersConnected','true');}
function setShopTogetherInactive(){setCookie('ShopTogetherActive','false');setCookie('dstepkey','');setCookie('dstepchat','');setCookie('dstepuser','');setApplicationHeight('0');if(!isWin){document.getElementById("dstepFlashDiv").style.height="1px";}else{if(isIE){document.getElementById("dstepFlashDiv").style.height="1px";}
document.ShopTogetherFlashFile.height='1';}}
function setShopTogetherActive(){setCookie('ShopTogetherActive','true');}
function getShopTogetherActive(){if(getCookie('ShopTogetherActive')=='true'){return true;}else{return false;}}
function setShopTogetherRestart(){setCookie('dstepkey','');setCookie('dstepchat','');setCookie('dstepuser','');setCookie('dstepname','');}
function _loadFlashProxy(sessionId,clientId,license,server,product){var flashVars='sessionId=';flashVars+='&clientId='+clientId;flashVars+='&license='+license;flashVars+='&server='+server;flashVars+='&userName='+product.userName;flashVars+='&userEmail='+product.userEmail;flashVars+='&userProductId='+product.userProductId;flashVars+='&userProductType='+product.userProductType;flashVars+='&userProductName='+product.userProductName;flashVars+='&userProductCategory='+product.userProductCategory;flashVars+='&userProductDescription='+product.userProductDescription;flashVars+='&userProductPrice='+product.userProductPrice;flashVars+='&userProductImageThumbnailURL='+escape(product.userProductImageThumbnailURL);flashVars+='&userProductImageSmallURL='+escape(product.userProductImageSmallURL);flashVars+='&userProductImageMediumURL='+escape(product.userProductImageMediumURL);flashVars+='&userProductImageLargeURL='+escape(product.userProductImageLargeURL);flashVars+='&userProductDetailsURL='+escape(product.userProductDetailsURL);flashVars+='&userAttribute1='+product.userAttribute1;flashVars+='&userAttribute2='+product.userAttribute2;flashVars+='&userAttribute3='+product.userAttribute3;flashVars+='&userAttribute4='+product.userAttribute4;flashVars+='&userAttribute5='+product.userAttribute5;;var flashProxyTag='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';flashProxyTag+=' id="ShopTogetherFlashProxy" width="0" height="0" ';flashProxyTag+='codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">';flashProxyTag+='<param name="movie" value="'+_tmpProxyLocation+'" />';flashProxyTag+='<param name="quality" value="high" />';flashProxyTag+='<param name="bgcolor" value="#FFFFFF" />';flashProxyTag+='<param name="flashvars" value="'+flashVars+'" />';flashProxyTag+='<param name="allowScriptAccess" value="always" />';flashProxyTag+='<embed src="'+_tmpProxyLocation+'" quality="high" bgcolor="#FFFFFF" ';flashProxyTag+='width="0" height="0" name="ShopTogetherFlashProxy" align="middle"';flashProxyTag+=' play="true"';flashProxyTag+=' loop="false"';flashProxyTag+=' quality="high"';flashProxyTag+=' allowScriptAccess="always"';flashProxyTag+=' flashvars="'+flashVars+'"';flashProxyTag+=' type="application/x-shockwave-flash"';flashProxyTag+=' pluginspage="http://www.adobe.com/go/getflashplayer">';flashProxyTag+='</embed>';flashProxyTag+='</object>';}}

var ShopTogether=new _ShopTogether_1_8('Mattel');ShopTogether.applicationServer="shoptogether.decisionstep.com";ShopTogether.messagingServer="messaging1.decisionstep.com";ShopTogether.messageStyle="font-size:12pt;height:72;width:960;background-color:#F0F0F0;";ShopTogether.styleSWF="http://"+st_assets+"/style.swf";ShopTogether.cWidth=230;ShopTogether.shopTogetherLogo="http://"+st_assets+"/shoptogether_logo.png";ShopTogether.arrowRight="http://"+st_assets+"/netshops_arrow_right.png";ShopTogether.arrowLeft="http://"+st_assets+"/netshops_arrow_left.png";ShopTogether.arrowRightDisabled="http://"+st_assets+"/netshops_arrow_right_disabled.png";ShopTogether.arrowLeftDisabled="http://"+st_assets+"/netshops_arrow_left_disabled.png";ShopTogether.downImage="http://"+st_assets+"/down.png";ShopTogether.upImage="http://"+st_assets+"/up.png";ShopTogether.promoY=248;ShopTogether.promoDHTML='<center>';ShopTogether.promoDHTML+='<table border=\"1\" cellpadding=\"10\" cellspacing=\"0\" style=\"border-collapse: collapse; border-width: 0\" bordercolor=\"#111111\" width=\"510\">';ShopTogether.promoDHTML+='  <tr>';ShopTogether.promoDHTML+='    <td width=\"100%\" style=\"border-style: none; border-width: medium\">';ShopTogether.promoDHTML+='    <img border=\"0\" src=\"http://shoptogether.decisionstep.com/Library/version_01_01/images/shoptogether_logo_200px.png\" ><p align=\"center\">';ShopTogether.promoDHTML+='    <b><font face=\"Arial, Helvetica\" size=\"3\">A ShopTogether toolbar should now appear just below ';ShopTogether.promoDHTML+='    the menu bar at the top of this page. </font></b></p>';ShopTogether.promoDHTML+='    <p align=\"left\"><font face=\"Arial, Helvetica\" size=\"2\">With ShopTogether, you can ';ShopTogether.promoDHTML+='    invite a friend or family member anywhere in the world to shop with you on ';ShopTogether.promoDHTML+='    this site. Each of you can see what product the other is viewing, share ';ShopTogether.promoDHTML+='    favorite products, chat about product features and even change the page ';ShopTogether.promoDHTML+='    the other person is viewing!</font></p>';ShopTogether.promoDHTML+='    <p align=\"center\"><b><font face=\"Arial, Helvetica\" size=\"3\">Enter your name in the toolbar ';ShopTogether.promoDHTML+='    above to get started now!</font></b></p>';ShopTogether.promoDHTML+='    <p align=\"center\"><i><font face=\"Arial, Helvetica\" size=\"1\">P.S. You can also click ';ShopTogether.promoDHTML+='    the &quot;How to Use ShopTogether&quot; link in the toolbar to view a quick ';ShopTogether.promoDHTML+='    tutorial.</font></i></td>';ShopTogether.promoDHTML+='  </tr>';ShopTogether.promoDHTML+='</table>';ShopTogether.promoDHTML+='</center>';ShopTogether.flashDHTML='<center>';ShopTogether.flashDHTML+='<table border=\"1\" cellpadding=\"10\" cellspacing=\"0\" style=\"border-collapse: collapse; border-width: 0\" bordercolor=\"#111111\" width=\"510\">';ShopTogether.flashDHTML+='  <tr>';ShopTogether.flashDHTML+='    <td width=\"100%\" style=\"border-style: none; border-width: medium\">';ShopTogether.flashDHTML+='    <img border=\"0\" src=\"http://shoptogether.decisionstep.com/Library/version_01_01/images/shoptogether_logo_200px.png\" ><p align=\"center\">';ShopTogether.flashDHTML+='    <b><center><font face=\"Arial, Helvetica\" size=\"5\">ShopTogether Requires Adobe Flash 9.</font></b></p>';ShopTogether.flashDHTML+='    <p align=\"left\"><center><font face=\"Arial, Helvetica\" size=\"3\">You can download Adobe Flash 9 at <a target=\"_blank\" href=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\">Adobe Download Center</a></font></p>';ShopTogether.flashDHTML+='   </td>';ShopTogether.flashDHTML+='  </tr>';ShopTogether.flashDHTML+='</table>';ShopTogether.flashDHTML+='</center>';ShopTogether.demoOn='no';

var shoptogether_tt_config=new Object();var shoptogether_tt_Debug=true
var shoptogether_tt_Enabled=true
var ShopTogether_TagsToTip=true
shoptogether_tt_config.Above=false
shoptogether_tt_config.BgColor='#ffffff'
shoptogether_tt_config.BgImg=''
shoptogether_tt_config.BorderColor='#000000'
shoptogether_tt_config.BorderStyle='solid'
shoptogether_tt_config.BorderWidth=1
shoptogether_tt_config.CenterMouse=true
shoptogether_tt_config.ClickClose=false
shoptogether_tt_config.CloseBtn=false
shoptogether_tt_config.CloseBtnColors=['#000000','#FFFFFF','Silver','#FFFFFF']
shoptogether_tt_config.CloseBtnText='&nbsp;Close&nbsp;X&nbsp;'
shoptogether_tt_config.CopyContent=true
shoptogether_tt_config.Delay=400
shoptogether_tt_config.Duration=0
shoptogether_tt_config.FadeIn=200
shoptogether_tt_config.FadeOut=200
shoptogether_tt_config.FadeInterval=30
shoptogether_tt_config.Fix=null
shoptogether_tt_config.FollowMouse=false
shoptogether_tt_config.FontColor='#000000'
shoptogether_tt_config.FontFace='Verdana,Geneva,sans-serif'
shoptogether_tt_config.FontSize='8pt'
shoptogether_tt_config.FontWeight='normal'
shoptogether_tt_config.Left=false
shoptogether_tt_config.OffsetX=0
shoptogether_tt_config.OffsetY=20
shoptogether_tt_config.Opacity=100
shoptogether_tt_config.Padding=10
shoptogether_tt_config.Shadow=true
shoptogether_tt_config.ShadowColor='#C0C0C0'
shoptogether_tt_config.ShadowWidth=5
shoptogether_tt_config.Sticky=false
shoptogether_tt_config.TextAlign='left'
shoptogether_tt_config.Title=''
shoptogether_tt_config.TitleAlign='left'
shoptogether_tt_config.TitleBgColor=''
shoptogether_tt_config.TitleFontColor='#ffffff'
shoptogether_tt_config.TitleFontFace=''
shoptogether_tt_config.TitleFontSize=''
shoptogether_tt_config.Width=0
function ShopTogether_Tip()
{shoptogether_tt_Tip(arguments,null);}
function ShopTogether_TagToTip()
{if(ShopTogether_TagsToTip)
{var t2t=shoptogether_tt_GetElt(arguments[0]);if(t2t)
shoptogether_tt_Tip(arguments,t2t);}}
var shoptogether_tt_aElt=new Array(10),shoptogether_tt_aV=new Array(),shoptogether_tt_sContent,shoptogether_tt_scrlX=0,shoptogether_tt_scrlY=0,shoptogether_tt_musX,shoptogether_tt_musY,shoptogether_tt_over,shoptogether_tt_x,shoptogether_tt_y,shoptogether_tt_w,shoptogether_tt_h;function shoptogether_tt_Extension()
{shoptogether_tt_ExtCmdEnum();shoptogether_tt_aExt[shoptogether_tt_aExt.length]=this;return this;}
function shoptogether_tt_SetTipPos(x,y)
{var css=shoptogether_tt_aElt[0].style;shoptogether_tt_x=x;shoptogether_tt_y=y;css.left=x+"px";css.top=y+"px";if(shoptogether_tt_ie56)
{var ifrm=shoptogether_tt_aElt[shoptogether_tt_aElt.length-1];if(ifrm)
{ifrm.style.left=css.left;ifrm.style.top=css.top;}}}
function shoptogether_tt_Hide()
{if(shoptogether_tt_db&&shoptogether_tt_iState)
{if(shoptogether_tt_iState&0x2)
{shoptogether_tt_aElt[0].style.visibility="hidden";shoptogether_tt_ExtCallFncs(0,"Hide");}
shoptogether_tt_tShow.EndTimer();shoptogether_tt_tHide.EndTimer();shoptogether_tt_tDurt.EndTimer();shoptogether_tt_tFade.EndTimer();if(!shoptogether_tt_op&&!shoptogether_tt_ie)
{shoptogether_tt_tWaitMov.EndTimer();shoptogether_tt_bWait=false;}
if(shoptogether_tt_aV[CLICKCLOSE])
shoptogether_tt_RemEvtFnc(document,"mouseup",shoptogether_tt_HideInit);shoptogether_tt_AddRemOutFnc(false);shoptogether_tt_ExtCallFncs(0,"Kill");if(shoptogether_tt_t2t&&!shoptogether_tt_aV[COPYCONTENT])
{shoptogether_tt_t2t.style.display="none";shoptogether_tt_MovDomNode(shoptogether_tt_t2t,shoptogether_tt_aElt[6],shoptogether_tt_t2tDad);}
shoptogether_tt_iState=0;shoptogether_tt_over=null;shoptogether_tt_ResetMainDiv();if(shoptogether_tt_aElt[shoptogether_tt_aElt.length-1])
shoptogether_tt_aElt[shoptogether_tt_aElt.length-1].style.display="none";}}
function shoptogether_tt_GetElt(id)
{return(document.getElementById?document.getElementById(id):document.all?document.all[id]:null);}
function shoptogether_tt_GetDivW(el)
{return(el?(el.offsetWidth||el.style.pixelWidth||0):0);}
function shoptogether_tt_GetDivH(el)
{return(el?(el.offsetHeight||el.style.pixelHeight||0):0);}
function shoptogether_tt_GetScrollX()
{return(window.pageXOffset||(shoptogether_tt_db?(shoptogether_tt_db.scrollLeft||0):0));}
function shoptogether_tt_GetScrollY()
{return(window.pageYOffset||(shoptogether_tt_db?(shoptogether_tt_db.scrollTop||0):0));}
function shoptogether_tt_GetClientW()
{return(document.body&&(typeof(document.body.clientWidth)!=shoptogether_tt_u)?document.body.clientWidth:(typeof(window.innerWidth)!=shoptogether_tt_u)?window.innerWidth:shoptogether_tt_db?(shoptogether_tt_db.clientWidth||0):0);}
function shoptogether_tt_GetClientH()
{return(document.body&&(typeof(document.body.clientHeight)!=shoptogether_tt_u)?document.body.clientHeight:(typeof(window.innerHeight)!=shoptogether_tt_u)?window.innerHeight:shoptogether_tt_db?(shoptogether_tt_db.clientHeight||0):0);}
function shoptogether_tt_GetEvtX(e)
{return(e?((typeof(e.pageX)!=shoptogether_tt_u)?e.pageX:(e.clientX+shoptogether_tt_scrlX)):0);}
function shoptogether_tt_GetEvtY(e)
{return(e?((typeof(e.pageY)!=shoptogether_tt_u)?e.pageY:(e.clientY+shoptogether_tt_scrlY)):0);}
function shoptogether_tt_AddEvtFnc(el,sEvt,PFnc)
{if(el)
{if(el.addEventListener)
el.addEventListener(sEvt,PFnc,false);else
el.attachEvent("on"+sEvt,PFnc);}}
function shoptogether_tt_RemEvtFnc(el,sEvt,PFnc)
{if(el)
{if(el.removeEventListener)
el.removeEventListener(sEvt,PFnc,false);else
el.detachEvent("on"+sEvt,PFnc);}}
var shoptogether_tt_aExt=new Array(),shoptogether_tt_db,shoptogether_tt_op,shoptogether_tt_ie,shoptogether_tt_ie56,shoptogether_tt_bBoxOld,shoptogether_tt_body,shoptogether_tt_flagOpa,shoptogether_tt_maxPosX,shoptogether_tt_maxPosY,shoptogether_tt_iState=0,shoptogether_tt_opa,shoptogether_tt_bJmpVert,shoptogether_tt_t2t,shoptogether_tt_t2tDad,shoptogether_tt_elDeHref,shoptogether_tt_tShow=new Number(0),shoptogether_tt_tHide=new Number(0),shoptogether_tt_tDurt=new Number(0),shoptogether_tt_tFade=new Number(0),shoptogether_tt_tWaitMov=new Number(0),shoptogether_tt_bWait=false,shoptogether_tt_u="undefined";function shoptogether_tt_Init()
{shoptogether_tt_MkCmdEnum();if(!shoptogether_tt_Browser()||!shoptogether_tt_MkMainDiv())
return;shoptogether_tt_IsW3cBox();shoptogether_tt_OpaSupport();shoptogether_tt_AddEvtFnc(document,"mousemove",shoptogether_tt_Move);if(ShopTogether_TagsToTip||shoptogether_tt_Debug)
shoptogether_tt_SetOnloadFnc();shoptogether_tt_AddEvtFnc(window,"scroll",function()
{shoptogether_tt_scrlX=shoptogether_tt_GetScrollX();shoptogether_tt_scrlY=shoptogether_tt_GetScrollY();if(shoptogether_tt_iState&&!(shoptogether_tt_aV[STICKY]&&(shoptogether_tt_iState&2)))
shoptogether_tt_HideInit();});shoptogether_tt_AddEvtFnc(window,"unload",shoptogether_tt_Hide);shoptogether_tt_Hide();}
function shoptogether_tt_MkCmdEnum()
{var n=0;for(var i in shoptogether_tt_config)
eval("window."+i.toString().toUpperCase()+" = "+n++);shoptogether_tt_aV.length=n;}
function shoptogether_tt_Browser()
{var n,nv,n6,w3c;n=navigator.userAgent.toLowerCase(),nv=navigator.appVersion;shoptogether_tt_op=(document.defaultView&&typeof(eval("w"+"indow"+"."+"o"+"p"+"er"+"a"))!=shoptogether_tt_u);shoptogether_tt_ie=n.indexOf("msie")!=-1&&document.all&&!shoptogether_tt_op;if(shoptogether_tt_ie)
{var ieOld=(!document.compatMode||document.compatMode=="BackCompat");shoptogether_tt_db=!ieOld?document.documentElement:(document.body||null);if(shoptogether_tt_db)
shoptogether_tt_ie56=parseFloat(nv.substring(nv.indexOf("MSIE")+5))>=5.5&&typeof document.body.style.maxHeight==shoptogether_tt_u;}
else
{shoptogether_tt_db=document.documentElement||document.body||(document.getElementsByTagName?document.getElementsByTagName("body")[0]:null);if(!shoptogether_tt_op)
{n6=document.defaultView&&typeof document.defaultView.getComputedStyle!=shoptogether_tt_u;w3c=!n6&&document.getElementById;}}
shoptogether_tt_body=(document.getElementsByTagName?document.getElementsByTagName("body")[0]:(document.body||null));if(shoptogether_tt_ie||n6||shoptogether_tt_op||w3c)
{if(shoptogether_tt_body&&shoptogether_tt_db)
{if(document.attachEvent||document.addEventListener)
return true;}
else
shoptogether_tt_Err("wz_tooltip.js must be included INSIDE the body section,"
+" immediately after the opening <body> tag.");}
shoptogether_tt_db=null;return false;}
function shoptogether_tt_MkMainDiv()
{if(shoptogether_tt_body.insertAdjacentHTML)
shoptogether_tt_body.insertAdjacentHTML("afterBegin",shoptogether_tt_MkMainDivHtm());else if(typeof shoptogether_tt_body.innerHTML!=shoptogether_tt_u&&document.createElement&&shoptogether_tt_body.appendChild)
shoptogether_tt_body.appendChild(shoptogether_tt_MkMainDivDom());if(window.shoptogether_tt_GetMainDivRefs&&shoptogether_tt_GetMainDivRefs())
return true;shoptogether_tt_db=null;return false;}
function shoptogether_tt_MkMainDivHtm()
{return('<div id="WzTtDiV"></div>'+
(shoptogether_tt_ie56?('<iframe id="WzTtIfRm" src="javascript:false" scrolling="no" frameborder="0" style="filter:Alpha(opacity=0);position:absolute;top:0px;left:0px;display:none;"></iframe>'):''));}
function shoptogether_tt_MkMainDivDom()
{var el=document.createElement("div");if(el)
el.id="WzTtDiV";return el;}
function shoptogether_tt_GetMainDivRefs()
{shoptogether_tt_aElt[0]=shoptogether_tt_GetElt("WzTtDiV");if(shoptogether_tt_ie56&&shoptogether_tt_aElt[0])
{shoptogether_tt_aElt[shoptogether_tt_aElt.length-1]=shoptogether_tt_GetElt("WzTtIfRm");if(!shoptogether_tt_aElt[shoptogether_tt_aElt.length-1])
shoptogether_tt_aElt[0]=null;}
if(shoptogether_tt_aElt[0])
{var css=shoptogether_tt_aElt[0].style;css.visibility="hidden";css.position="absolute";css.overflow="hidden";return true;}
return false;}
function shoptogether_tt_ResetMainDiv()
{var w=(window.screen&&screen.width)?screen.width:10000;shoptogether_tt_SetTipPos(-w,0);shoptogether_tt_aElt[0].innerHTML="";shoptogether_tt_aElt[0].style.width=(w-1)+"px";}
function shoptogether_tt_IsW3cBox()
{var css=shoptogether_tt_aElt[0].style;css.padding="10px";css.width="40px";shoptogether_tt_bBoxOld=(shoptogether_tt_GetDivW(shoptogether_tt_aElt[0])==40);css.padding="0px";shoptogether_tt_ResetMainDiv();}
function shoptogether_tt_OpaSupport()
{var css=shoptogether_tt_body.style;shoptogether_tt_flagOpa=(typeof(css.filter)!=shoptogether_tt_u)?1:(typeof(css.KhtmlOpacity)!=shoptogether_tt_u)?2:(typeof(css.KHTMLOpacity)!=shoptogether_tt_u)?3:(typeof(css.MozOpacity)!=shoptogether_tt_u)?4:(typeof(css.opacity)!=shoptogether_tt_u)?5:0;}
function shoptogether_tt_SetOnloadFnc()
{shoptogether_tt_AddEvtFnc(document,"DOMContentLoaded",shoptogether_tt_HideSrcTags);shoptogether_tt_AddEvtFnc(window,"load",shoptogether_tt_HideSrcTags);if(shoptogether_tt_body.attachEvent)
shoptogether_tt_body.attachEvent("onreadystatechange",function(){if(shoptogether_tt_body.readyState=="complete")
shoptogether_tt_HideSrcTags();});if(/WebKit|KHTML/i.test(navigator.userAgent))
{var t=setInterval(function(){if(/loaded|complete/.test(document.readyState))
{clearInterval(t);shoptogether_tt_HideSrcTags();}},10);}}
function shoptogether_tt_HideSrcTags()
{if(!window.shoptogether_tt_HideSrcTags||window.shoptogether_tt_HideSrcTags.done)
return;window.shoptogether_tt_HideSrcTags.done=true;if(!shoptogether_tt_HideSrcTagsRecurs(shoptogether_tt_body))
shoptogether_tt_Err("To enable the capability to convert HTML elements to tooltips,"
+" you must set TagsToTip in the global tooltip configuration"
+" to true.");}
function shoptogether_tt_HideSrcTagsRecurs(dad)
{var a,ovr,asT2t;a=dad.childNodes||dad.children||null;for(var i=a?a.length:0;i;)
{--i;if(!shoptogether_tt_HideSrcTagsRecurs(a[i]))
return false;ovr=a[i].getAttribute?a[i].getAttribute("onmouseover"):(typeof a[i].onmouseover=="function")?a[i].onmouseover:null;if(ovr)
{asT2t=ovr.toString().match(/ShopTogether_TagToTip\s*\(\s*'[^'.]+'\s*[\),]/);if(asT2t&&asT2t.length)
{if(!shoptogether_tt_HideSrcTag(asT2t[0]))
return false;}}}
return true;}
function shoptogether_tt_HideSrcTag(sT2t)
{var id,el;id=sT2t.replace(/.+'([^'.]+)'.+/,"$1");el=shoptogether_tt_GetElt(id);if(el)
{if(shoptogether_tt_Debug&&!ShopTogether_TagsToTip)
return false;else
el.style.display="none";}
else
shoptogether_tt_Err("Invalid ID\n'"+id+"'\npassed to ShopTogether_TagToTip()."
+" There exists no HTML element with that ID.");return true;}
function shoptogether_tt_Tip(arg,t2t)
{if(!shoptogether_tt_db)
return;if(shoptogether_tt_iState)
shoptogether_tt_Hide();if(!shoptogether_tt_Enabled)
return;shoptogether_tt_t2t=t2t;if(!shoptogether_tt_ReadCmds(arg))
return;shoptogether_tt_iState=0x1|0x4;shoptogether_tt_AdaptConfig1();shoptogether_tt_MkTipContent(arg);shoptogether_tt_MkTipSubDivs();shoptogether_tt_FormatTip();shoptogether_tt_bJmpVert=false;shoptogether_tt_maxPosX=shoptogether_tt_GetClientW()+shoptogether_tt_scrlX-shoptogether_tt_w-1;shoptogether_tt_maxPosY=shoptogether_tt_GetClientH()+shoptogether_tt_scrlY-shoptogether_tt_h-1;shoptogether_tt_AdaptConfig2();shoptogether_tt_Move();shoptogether_tt_ShowInit();}
function shoptogether_tt_ReadCmds(a)
{var i;i=0;for(var j in shoptogether_tt_config)
shoptogether_tt_aV[i++]=shoptogether_tt_config[j];if(a.length&1)
{for(i=a.length-1;i>0;i-=2)
shoptogether_tt_aV[a[i-1]]=a[i];return true;}
shoptogether_tt_Err("Incorrect call of Tip() or ShopTogether_TagToTip().\n"
+"Each command must be followed by a value.");return false;}
function shoptogether_tt_AdaptConfig1()
{shoptogether_tt_ExtCallFncs(0,"LoadConfig");if(!shoptogether_tt_aV[TITLEBGCOLOR].length)
shoptogether_tt_aV[TITLEBGCOLOR]=shoptogether_tt_aV[BORDERCOLOR];if(!shoptogether_tt_aV[TITLEFONTCOLOR].length)
shoptogether_tt_aV[TITLEFONTCOLOR]=shoptogether_tt_aV[BGCOLOR];if(!shoptogether_tt_aV[TITLEFONTFACE].length)
shoptogether_tt_aV[TITLEFONTFACE]=shoptogether_tt_aV[FONTFACE];if(!shoptogether_tt_aV[TITLEFONTSIZE].length)
shoptogether_tt_aV[TITLEFONTSIZE]=shoptogether_tt_aV[FONTSIZE];if(shoptogether_tt_aV[CLOSEBTN])
{if(!shoptogether_tt_aV[CLOSEBTNCOLORS])
shoptogether_tt_aV[CLOSEBTNCOLORS]=new Array("","","","");for(var i=4;i;)
{--i;if(!shoptogether_tt_aV[CLOSEBTNCOLORS][i].length)
shoptogether_tt_aV[CLOSEBTNCOLORS][i]=(i&1)?shoptogether_tt_aV[TITLEFONTCOLOR]:shoptogether_tt_aV[TITLEBGCOLOR];}
if(!shoptogether_tt_aV[TITLE].length)
shoptogether_tt_aV[TITLE]=" ";}
if(shoptogether_tt_aV[OPACITY]==100&&typeof shoptogether_tt_aElt[0].style.MozOpacity!=shoptogether_tt_u&&!Array.every)
shoptogether_tt_aV[OPACITY]=99;if(shoptogether_tt_aV[FADEIN]&&shoptogether_tt_flagOpa&&shoptogether_tt_aV[DELAY]>100)
shoptogether_tt_aV[DELAY]=Math.max(shoptogether_tt_aV[DELAY]-shoptogether_tt_aV[FADEIN],100);}
function shoptogether_tt_AdaptConfig2()
{if(shoptogether_tt_aV[CENTERMOUSE])
shoptogether_tt_aV[OFFSETX]-=((shoptogether_tt_w-(shoptogether_tt_aV[SHADOW]?shoptogether_tt_aV[SHADOWWIDTH]:0))>>1);}
function shoptogether_tt_MkTipContent(a)
{if(shoptogether_tt_t2t)
{if(shoptogether_tt_aV[COPYCONTENT])
shoptogether_tt_sContent=shoptogether_tt_t2t.innerHTML;else
shoptogether_tt_sContent="";}
else
shoptogether_tt_sContent=a[0];shoptogether_tt_ExtCallFncs(0,"CreateContentString");}
function shoptogether_tt_MkTipSubDivs()
{var sCss='position:relative;margin:0px;padding:0px;border-width:0px;left:0px;top:0px;line-height:normal;width:auto;',sTbTrTd=' cellspacing=0 cellpadding=0 border=0 style="'+sCss+'"><tbody style="'+sCss+'"><tr><td ';shoptogether_tt_aElt[0].innerHTML=(''
+(shoptogether_tt_aV[TITLE].length?('<div id="WzTiTl" style="position:relative;z-index:1;">'
+'<table id="WzTiTlTb"'+sTbTrTd+'id="WzTiTlI" style="'+sCss+'">'
+shoptogether_tt_aV[TITLE]
+'</td>'
+(shoptogether_tt_aV[CLOSEBTN]?('<td align="right" style="'+sCss
+'text-align:right;">'
+'<span id="WzClOsE" style="padding-left:2px;padding-right:2px;'
+'cursor:'+(shoptogether_tt_ie?'hand':'pointer')
+';" onmouseover="shoptogether_tt_OnCloseBtnOver(1)" onmouseout="shoptogether_tt_OnCloseBtnOver(0)" onclick="shoptogether_tt_HideInit()">'
+shoptogether_tt_aV[CLOSEBTNTEXT]
+'</span></td>'):'')
+'</tr></tbody></table></div>'):'')
+'<div id="WzBoDy" style="position:relative;z-index:0;">'
+'<table'+sTbTrTd+'id="WzBoDyI" style="'+sCss+'">'
+shoptogether_tt_sContent
+'</td></tr></tbody></table></div>'
+(shoptogether_tt_aV[SHADOW]?('<div id="WzTtShDwR" style="position:absolute;overflow:hidden;"></div>'
+'<div id="WzTtShDwB" style="position:relative;overflow:hidden;"></div>'):''));shoptogether_tt_GetSubDivRefs();if(shoptogether_tt_t2t&&!shoptogether_tt_aV[COPYCONTENT])
{shoptogether_tt_t2tDad=shoptogether_tt_t2t.parentNode||shoptogether_tt_t2t.parentElement||shoptogether_tt_t2t.offsetParent||null;if(shoptogether_tt_t2tDad)
{shoptogether_tt_MovDomNode(shoptogether_tt_t2t,shoptogether_tt_t2tDad,shoptogether_tt_aElt[6]);shoptogether_tt_t2t.style.display="block";}}
shoptogether_tt_ExtCallFncs(0,"SubDivsCreated");}
function shoptogether_tt_GetSubDivRefs()
{var aId=new Array("WzTiTl","WzTiTlTb","WzTiTlI","WzClOsE","WzBoDy","WzBoDyI","WzTtShDwB","WzTtShDwR");for(var i=aId.length;i;--i)
shoptogether_tt_aElt[i]=shoptogether_tt_GetElt(aId[i-1]);}
function shoptogether_tt_FormatTip()
{var css,w,iOffY,iOffSh;if(shoptogether_tt_aV[TITLE].length)
{css=shoptogether_tt_aElt[1].style;css.background=shoptogether_tt_aV[TITLEBGCOLOR];css.paddingTop=(shoptogether_tt_aV[CLOSEBTN]?2:0)+"px";css.paddingBottom="1px";css.paddingLeft=css.paddingRight=shoptogether_tt_aV[PADDING]+"px";css=shoptogether_tt_aElt[3].style;css.color=shoptogether_tt_aV[TITLEFONTCOLOR];css.fontFamily=shoptogether_tt_aV[TITLEFONTFACE];css.fontSize=shoptogether_tt_aV[TITLEFONTSIZE];css.fontWeight="bold";css.textAlign=shoptogether_tt_aV[TITLEALIGN];if(shoptogether_tt_aElt[4])
{css.paddingRight=(shoptogether_tt_aV[PADDING]<<1)+"px";css=shoptogether_tt_aElt[4].style;css.background=shoptogether_tt_aV[CLOSEBTNCOLORS][0];css.color=shoptogether_tt_aV[CLOSEBTNCOLORS][1];css.fontFamily=shoptogether_tt_aV[TITLEFONTFACE];css.fontSize=shoptogether_tt_aV[TITLEFONTSIZE];css.fontWeight="bold";}
if(shoptogether_tt_aV[WIDTH]>0)
shoptogether_tt_w=shoptogether_tt_aV[WIDTH]+((shoptogether_tt_aV[PADDING]+shoptogether_tt_aV[BORDERWIDTH])<<1);else
{shoptogether_tt_w=shoptogether_tt_GetDivW(shoptogether_tt_aElt[3])+shoptogether_tt_GetDivW(shoptogether_tt_aElt[4]);if(shoptogether_tt_aElt[4])
shoptogether_tt_w+=shoptogether_tt_aV[PADDING];}
iOffY=-shoptogether_tt_aV[BORDERWIDTH];}
else
{shoptogether_tt_w=0;iOffY=0;}
css=shoptogether_tt_aElt[5].style;css.top=iOffY+"px";if(shoptogether_tt_aV[BORDERWIDTH])
{css.borderColor=shoptogether_tt_aV[BORDERCOLOR];css.borderStyle=shoptogether_tt_aV[BORDERSTYLE];css.borderWidth=shoptogether_tt_aV[BORDERWIDTH]+"px";}
if(shoptogether_tt_aV[BGCOLOR].length)
css.background=shoptogether_tt_aV[BGCOLOR];if(shoptogether_tt_aV[BGIMG].length)
css.backgroundImage="url("+shoptogether_tt_aV[BGIMG]+")";css.padding=shoptogether_tt_aV[PADDING]+"px";css.textAlign=shoptogether_tt_aV[TEXTALIGN];css=shoptogether_tt_aElt[6].style;css.color=shoptogether_tt_aV[FONTCOLOR];css.fontFamily=shoptogether_tt_aV[FONTFACE];css.fontSize=shoptogether_tt_aV[FONTSIZE];css.fontWeight=shoptogether_tt_aV[FONTWEIGHT];css.background="";css.textAlign=shoptogether_tt_aV[TEXTALIGN];if(shoptogether_tt_aV[WIDTH]>0)
w=shoptogether_tt_aV[WIDTH]+((shoptogether_tt_aV[PADDING]+shoptogether_tt_aV[BORDERWIDTH])<<1);else
w=shoptogether_tt_GetDivW(shoptogether_tt_aElt[6])+((shoptogether_tt_aV[PADDING]+shoptogether_tt_aV[BORDERWIDTH])<<1);if(w>shoptogether_tt_w)
shoptogether_tt_w=w;if(shoptogether_tt_aV[SHADOW])
{shoptogether_tt_w+=shoptogether_tt_aV[SHADOWWIDTH];iOffSh=Math.floor((shoptogether_tt_aV[SHADOWWIDTH]*4)/3);css=shoptogether_tt_aElt[7].style;css.top=iOffY+"px";css.left=iOffSh+"px";css.width=(shoptogether_tt_w-iOffSh-shoptogether_tt_aV[SHADOWWIDTH])+"px";css.height=shoptogether_tt_aV[SHADOWWIDTH]+"px";css.background=shoptogether_tt_aV[SHADOWCOLOR];css=shoptogether_tt_aElt[8].style;css.top=iOffSh+"px";css.left=(shoptogether_tt_w-shoptogether_tt_aV[SHADOWWIDTH])+"px";css.width=shoptogether_tt_aV[SHADOWWIDTH]+"px";css.background=shoptogether_tt_aV[SHADOWCOLOR];}
else
iOffSh=0;shoptogether_tt_SetTipOpa(shoptogether_tt_aV[FADEIN]?0:shoptogether_tt_aV[OPACITY]);shoptogether_tt_FixSize(iOffY,iOffSh);}
function shoptogether_tt_FixSize(iOffY,iOffSh)
{var wIn,wOut,i;shoptogether_tt_aElt[0].style.width=shoptogether_tt_w+"px";shoptogether_tt_aElt[0].style.pixelWidth=shoptogether_tt_w;wOut=shoptogether_tt_w-((shoptogether_tt_aV[SHADOW])?shoptogether_tt_aV[SHADOWWIDTH]:0);wIn=wOut;if(!shoptogether_tt_bBoxOld)
wIn-=((shoptogether_tt_aV[PADDING]+shoptogether_tt_aV[BORDERWIDTH])<<1);shoptogether_tt_aElt[5].style.width=wIn+"px";if(shoptogether_tt_aElt[1])
{wIn=wOut-(shoptogether_tt_aV[PADDING]<<1);if(!shoptogether_tt_bBoxOld)
wOut=wIn;shoptogether_tt_aElt[1].style.width=wOut+"px";shoptogether_tt_aElt[2].style.width=wIn+"px";}
shoptogether_tt_h=shoptogether_tt_GetDivH(shoptogether_tt_aElt[0])+iOffY;if(shoptogether_tt_aElt[8])
shoptogether_tt_aElt[8].style.height=(shoptogether_tt_h-iOffSh)+"px";i=shoptogether_tt_aElt.length-1;if(shoptogether_tt_aElt[i])
{shoptogether_tt_aElt[i].style.width=shoptogether_tt_w+"px";shoptogether_tt_aElt[i].style.height=shoptogether_tt_h+"px";}}
function shoptogether_tt_DeAlt(el)
{var aKid;if(el.alt)
el.alt="";if(el.title)
el.title="";aKid=el.childNodes||el.children||null;if(aKid)
{for(var i=aKid.length;i;)
shoptogether_tt_DeAlt(aKid[--i]);}}
function shoptogether_tt_OpDeHref(el)
{if(!shoptogether_tt_op)
return;if(shoptogether_tt_elDeHref)
shoptogether_tt_OpReHref();while(el)
{if(el.hasAttribute("href"))
{el.t_href=el.getAttribute("href");el.t_stats=window.status;el.removeAttribute("href");el.style.cursor="hand";shoptogether_tt_AddEvtFnc(el,"mousedown",shoptogether_tt_OpReHref);window.status=el.t_href;shoptogether_tt_elDeHref=el;break;}
el=el.parentElement;}}
function shoptogether_tt_ShowInit()
{shoptogether_tt_tShow.Timer("shoptogether_tt_Show()",shoptogether_tt_aV[DELAY],true);if(shoptogether_tt_aV[CLICKCLOSE])
shoptogether_tt_AddEvtFnc(document,"mouseup",shoptogether_tt_HideInit);}
function shoptogether_tt_OverInit(e)
{shoptogether_tt_over=e.target||e.srcElement;shoptogether_tt_DeAlt(shoptogether_tt_over);shoptogether_tt_OpDeHref(shoptogether_tt_over);shoptogether_tt_AddRemOutFnc(true);}
function shoptogether_tt_Show()
{var css=shoptogether_tt_aElt[0].style;css.zIndex=Math.max((window.dd&&dd.z)?(dd.z+2):0,1010);if(shoptogether_tt_aV[STICKY]||!shoptogether_tt_aV[FOLLOWMOUSE])
shoptogether_tt_iState&=~0x4;if(shoptogether_tt_aV[DURATION]>0)
shoptogether_tt_tDurt.Timer("shoptogether_tt_HideInit()",shoptogether_tt_aV[DURATION],true);shoptogether_tt_ExtCallFncs(0,"Show")
css.visibility="visible";shoptogether_tt_iState|=0x2;if(shoptogether_tt_aV[FADEIN])
shoptogether_tt_Fade(0,0,shoptogether_tt_aV[OPACITY],Math.round(shoptogether_tt_aV[FADEIN]/shoptogether_tt_aV[FADEINTERVAL]));shoptogether_tt_ShowIfrm();}
function shoptogether_tt_ShowIfrm()
{if(shoptogether_tt_ie56)
{var ifrm=shoptogether_tt_aElt[shoptogether_tt_aElt.length-1];if(ifrm)
{var css=ifrm.style;css.zIndex=shoptogether_tt_aElt[0].style.zIndex-1;css.display="block";}}}
function shoptogether_tt_Move(e)
{e=window.event||e;if(e)
{shoptogether_tt_musX=shoptogether_tt_GetEvtX(e);shoptogether_tt_musY=shoptogether_tt_GetEvtY(e);}
if(shoptogether_tt_iState)
{if(!shoptogether_tt_over&&e)
shoptogether_tt_OverInit(e);if(shoptogether_tt_iState&0x4)
{if(!shoptogether_tt_op&&!shoptogether_tt_ie)
{if(shoptogether_tt_bWait)
return;shoptogether_tt_bWait=true;shoptogether_tt_tWaitMov.Timer("shoptogether_tt_bWait = false;",1,true);}
if(shoptogether_tt_aV[FIX])
{shoptogether_tt_iState&=~0x4;shoptogether_tt_SetTipPos(shoptogether_tt_aV[FIX][0],shoptogether_tt_aV[FIX][1]);}
else if(!shoptogether_tt_ExtCallFncs(e,"MoveBefore"))
shoptogether_tt_SetTipPos(shoptogether_tt_PosX(),shoptogether_tt_PosY());shoptogether_tt_ExtCallFncs([shoptogether_tt_musX,shoptogether_tt_musY],"MoveAfter")}}}
function shoptogether_tt_PosX()
{var x;x=shoptogether_tt_musX;if(shoptogether_tt_aV[LEFT])
x-=shoptogether_tt_w+shoptogether_tt_aV[OFFSETX]-(shoptogether_tt_aV[SHADOW]?shoptogether_tt_aV[SHADOWWIDTH]:0);else
x+=shoptogether_tt_aV[OFFSETX];if(x>shoptogether_tt_maxPosX)
x=shoptogether_tt_maxPosX;return((x<shoptogether_tt_scrlX)?shoptogether_tt_scrlX:x);}
function shoptogether_tt_PosY()
{var y;if(shoptogether_tt_aV[ABOVE]&&(!shoptogether_tt_bJmpVert||shoptogether_tt_CalcPosYAbove()>=shoptogether_tt_scrlY+16))
y=shoptogether_tt_DoPosYAbove();else if(!shoptogether_tt_aV[ABOVE]&&shoptogether_tt_bJmpVert&&shoptogether_tt_CalcPosYBelow()>shoptogether_tt_maxPosY-16)
y=shoptogether_tt_DoPosYAbove();else
y=shoptogether_tt_DoPosYBelow();if(y>shoptogether_tt_maxPosY)
y=shoptogether_tt_DoPosYAbove();if(y<shoptogether_tt_scrlY)
y=shoptogether_tt_DoPosYBelow();return y;}
function shoptogether_tt_DoPosYBelow()
{shoptogether_tt_bJmpVert=shoptogether_tt_aV[ABOVE];return shoptogether_tt_CalcPosYBelow();}
function shoptogether_tt_DoPosYAbove()
{shoptogether_tt_bJmpVert=!shoptogether_tt_aV[ABOVE];return shoptogether_tt_CalcPosYAbove();}
function shoptogether_tt_CalcPosYBelow()
{return(shoptogether_tt_musY+shoptogether_tt_aV[OFFSETY]);}
function shoptogether_tt_CalcPosYAbove()
{var dy=shoptogether_tt_aV[OFFSETY]-(shoptogether_tt_aV[SHADOW]?shoptogether_tt_aV[SHADOWWIDTH]:0);if(shoptogether_tt_aV[OFFSETY]>0&&dy<=0)
dy=1;return(shoptogether_tt_musY-shoptogether_tt_h-dy);}
function shoptogether_tt_OnOut()
{shoptogether_tt_AddRemOutFnc(false);if(!(shoptogether_tt_aV[STICKY]&&(shoptogether_tt_iState&0x2)))
shoptogether_tt_HideInit();}
function shoptogether_tt_HideInit()
{shoptogether_tt_ExtCallFncs(0,"HideInit");shoptogether_tt_iState&=~0x4;if(shoptogether_tt_flagOpa&&shoptogether_tt_aV[FADEOUT])
{shoptogether_tt_tFade.EndTimer();if(shoptogether_tt_opa)
{var n=Math.round(shoptogether_tt_aV[FADEOUT]/(shoptogether_tt_aV[FADEINTERVAL]*(shoptogether_tt_aV[OPACITY]/shoptogether_tt_opa)));shoptogether_tt_Fade(shoptogether_tt_opa,shoptogether_tt_opa,0,n);return;}}
shoptogether_tt_tHide.Timer("shoptogether_tt_Hide();",1,false);}
function shoptogether_tt_OpReHref()
{if(shoptogether_tt_elDeHref)
{shoptogether_tt_elDeHref.setAttribute("href",shoptogether_tt_elDeHref.t_href);shoptogether_tt_RemEvtFnc(shoptogether_tt_elDeHref,"mousedown",shoptogether_tt_OpReHref);window.status=shoptogether_tt_elDeHref.t_stats;shoptogether_tt_elDeHref=null;}}
function shoptogether_tt_Fade(a,now,z,n)
{if(n)
{now+=Math.round((z-now)/n);if((z>a)?(now>=z):(now<=z))
now=z;else
shoptogether_tt_tFade.Timer("shoptogether_tt_Fade("
+a+","+now+","+z+","+(n-1)
+")",shoptogether_tt_aV[FADEINTERVAL],true);}
now?shoptogether_tt_SetTipOpa(now):shoptogether_tt_Hide();}
function shoptogether_tt_SetTipOpa(opa)
{shoptogether_tt_SetOpa(shoptogether_tt_aElt[5].style,opa);if(shoptogether_tt_aElt[1])
shoptogether_tt_SetOpa(shoptogether_tt_aElt[1].style,opa);if(shoptogether_tt_aV[SHADOW])
{opa=Math.round(opa*0.8);shoptogether_tt_SetOpa(shoptogether_tt_aElt[7].style,opa);shoptogether_tt_SetOpa(shoptogether_tt_aElt[8].style,opa);}}
function shoptogether_tt_OnCloseBtnOver(iOver)
{var css=shoptogether_tt_aElt[4].style;iOver<<=1;css.background=shoptogether_tt_aV[CLOSEBTNCOLORS][iOver];css.color=shoptogether_tt_aV[CLOSEBTNCOLORS][iOver+1];}
function shoptogether_tt_Int(x)
{var y;return(isNaN(y=parseInt(x))?0:y);}
function shoptogether_tt_AddRemOutFnc(bAdd)
{var PSet=bAdd?shoptogether_tt_AddEvtFnc:shoptogether_tt_RemEvtFnc;if(bAdd!=shoptogether_tt_AddRemOutFnc.bOn)
{PSet(shoptogether_tt_over,"mouseout",shoptogether_tt_OnOut);shoptogether_tt_AddRemOutFnc.bOn=bAdd;if(!bAdd)
shoptogether_tt_OpReHref();}}
shoptogether_tt_AddRemOutFnc.bOn=false;Number.prototype.Timer=function(s,iT,bUrge)
{if(!this.value||bUrge)
this.value=window.setTimeout(s,iT);}
Number.prototype.EndTimer=function()
{if(this.value)
{window.clearTimeout(this.value);this.value=0;}}
function shoptogether_tt_SetOpa(css,opa)
{shoptogether_tt_opa=opa;if(shoptogether_tt_flagOpa==1)
{if(opa<100)
{var bVis=css.visibility!="hidden";css.zoom="100%";if(!bVis)
css.visibility="visible";css.filter="alpha(opacity="+opa+")";if(!bVis)
css.visibility="hidden";}
else
css.filter="";}
else
{opa/=100.0;switch(shoptogether_tt_flagOpa)
{case 2:css.KhtmlOpacity=opa;break;case 3:css.KHTMLOpacity=opa;break;case 4:css.MozOpacity=opa;break;case 5:css.opacity=opa;break;}}}
function shoptogether_tt_MovDomNode(el,dadFrom,dadTo)
{if(dadFrom)
dadFrom.removeChild(el);if(dadTo)
dadTo.appendChild(el);}
function shoptogether_tt_Err(sErr)
{if(shoptogether_tt_Debug)
alert("Tooltip Script Error Message:\n\n"+sErr);}
function shoptogether_tt_ExtCmdEnum()
{var s;for(var i in shoptogether_tt_config)
{s="window."+i.toString().toUpperCase();if(eval("typeof("+s+") == shoptogether_tt_u"))
{eval(s+" = "+shoptogether_tt_aV.length);shoptogether_tt_aV[shoptogether_tt_aV.length]=null;}}}
function shoptogether_tt_ExtCallFncs(arg,sFnc)
{var b=false;for(var i=shoptogether_tt_aExt.length;i;)
{--i;var fnc=shoptogether_tt_aExt[i]["On"+sFnc];if(fnc&&fnc(arg))
b=true;}
return b;}
shoptogether_tt_Init();

document.write("<script language=\"javascript\" type=\"text/javascript\" src=\"http://www.eastbay.com/coremetrics/v40/eluminate.js\"></script>");document.write("<script language=\"javascript\" type=\"text/javascript\" src=\"http://www.eastbay.com/coremetrics/cmdatatagutils.js\"></script>");function ShopTogetherCoremetricsObject(){var Invite=this.Invite=function(){if(st_coremetrics_tracking_on==true){createConversionEventTag("Invite");try{var newDate=new Date;var id=newDate.getTime();if(this.getCookie('ds_returnshortid')==''){this.setShortCookie('ds_returnshortid',id);}
if(this.getCookie('ds_returnlongid')==''){this.setLongCookie('ds_returnlongid',id);}
if(this.getCookie('ds_returnlongid')!=this.getCookie('ds_returnshortid')){this.Returning();this.setShortCookie('ds_returnshortid',id);this.setLongCookie('ds_returnlongid',id);}}catch(e){}}}
var ClickThruShare=this.ClickThruShare=function(){if(st_coremetrics_tracking_on==true){createConversionEventTag("ClickThruShare");}}
var JoinInviter=this.JoinInviter=function(){if(st_coremetrics_tracking_on==true){createConversionEventTag("JoinInviter");}}
var OnClose=this.OnClose=function(){if(st_coremetrics_tracking_on==true){createConversionEventTag("Close");}}
var JoinInvitee=this.JoinInvitee=function(){if(st_coremetrics_tracking_on==true){createConversionEventTag("JoinInvitee");}}
var Returning=this.Returning=function(){if(st_coremetrics_tracking_on==true){createConversionEventTag("Returning");}}
var createConversionEventTag=this.createConversionEventTag=function(pageId){cm_ClientID=st_coremetrics_clientid;if(st_coremetrics_production_on==true){cmSetProduction();}
cm_HOST=st_coremetrics_host+"/eluminate?";cmCreateConversionEventTag(pageId,1,"Shop Together",0);cmCreateConversionEventTag(pageId,2,"Shop Together",0);}
var setLongCookie=this.setLongCookie=function(name,value){try{var expires=new Date();expires.setTime(expdate.getTime()+1000*60*60*24*365);document.cookie=name+"="+escape(value)+"; expires="+expires.toGMTString()+"; path=/";}catch(e){}}
var getCookie=this.getCookie=function(name){var cookies=document.cookie;if(cookies.indexOf(name)!=-1){var startpos=cookies.indexOf(name)+name.length+1;var endpos=cookies.indexOf(";",startpos)-1;if(endpos==-2)endpos=cookies.length;return unescape(cookies.substring(startpos,endpos));}else{return'';}}
function setShortCookie(name,value){var expires=new Date();document.cookie=name+"="+escape(value)+"; expires="+expires.toGMTString()+"; path=/";}}
var ShopTogetherCoremetrics=new ShopTogetherCoremetricsObject();

