function OpenWindow(url,width,height)
{var x,y=0;if(screen){x=(screen.availWidth-width)/2;y=(screen.availHeight-height)/2;}
var options="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+width+",height="+height+",screenX="+x+",screenY="+y+",left="+x+",top="+y;msgWindow=window.open(url,'new',options);}
function prl_preloadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=prl_preloadImages.arguments;for(i=0;i<a.length;i++)
if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}
function prl_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function prl_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=prl_findObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}
function prl_swapImage(){var i,j=0,x,a=prl_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=prl_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}
function sideNavAttachJS(key){if(key==undefined){key=''};var innerTbl=returnObjById("sideNavTbl");if(innerTbl!=undefined){var cells=innerTbl.getElementsByTagName("td");for(var i=0;i<cells.length;i++){if(cells[i].className=="title"+key||cells[i].className=="title"+key+"_on"||cells[i].className=="item"+key||cells[i].className=="item"+key+"_on"){cells[i].onmouseover=function(){this.className+='_over'};cells[i].onmouseout=function(){this.className=this.className.replace('_over','')};}}}}
function paintDivSwap(outerDivId,selDivId){var mainDiv=returnObjById(outerDivId);if(mainDiv!=undefined){var divs=mainDiv.getElementsByTagName("div");for(var i=0;i<divs.length;i++){if(divs[i].id==selDivId){getStyleObject(divs[i].id).display="block";}else{getStyleObject(divs[i].id).display="none";}}}}
Array.find=function(ary,element){for(var i=0;i<ary.length;i++){if(ary[i]==element){return i;}}
return-1;}
function PaintPalette(secure)
{if(secure=='1'){OpenWindow('http://ralphlaurenhome.com/rlhome/products/paint/paint_palette_frameset.asp',775,595);}else{OpenWindow('/rlhome/products/paint/paint_palette_frameset.asp',775,595);}}
function PaintQualitySide(URL)
{var width=572;var height=369;var x,y=0;if(screen){x=(screen.availWidth-width)/2;y=(screen.availHeight-height)/2;}
var options="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+width+",height="+height+",screenX="+x+",screenY="+y+",left="+x+",top="+y;msgWindow=window.open(URL,"PaintQualitySide",options);}
function SitePopup(URL)
{var width=320;var height=240;var x,y=0;if(screen){x=(screen.availWidth-width)/2;y=(screen.availHeight-height)/2;}
var options="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+width+",height="+height+",screenX="+x+",screenY="+y+",left="+x+",top="+y;msgWindow=window.open(URL,"BKPOPUP",options);}
function PrintItemS7(rlitemid)
{var options="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=10,height=10";msgWindow=window.open("/rlhome/item_print.asp?item_id="+rlitemid,"RLHomePrint",options);}
function PrintPagepopup(rlitemid)
{var options="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=10,height=10";msgWindow=window.open("/rlhome/pdf_gen.asp?item_id="+rlitemid,"RLHomePrint",options);}
function S7Popup(URL)
{var width=662;var height=448;var x,y=0;if(screen){x=(screen.availWidth-width)/2;y=(screen.availHeight-height)/2;}
var options="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+width+",height="+height+",screenX="+x+",screenY="+y+",left="+x+",top="+y;msgWindow=window.open(URL,"S7Pop",options);}
function S7ZoomPopup(URL)
{var width=390;var height=515;var x,y=0;if(screen){x=(screen.availWidth-width)/2;y=(screen.availHeight-height)/2;}
var options="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+width+",height="+height+",screenX="+x+",screenY="+y+",left="+x+",top="+y;msgWindow=window.open(URL,"S7ZoomPop",options);}
function Pricelist()
{var options="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=400,height=300";msgWindow=window.open("/rlhome/products/pricelist.asp","PriceList",options);}
function OpenCare(){var options="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=320,height=470";msgWindow=window.open("care_popup.asp","Care",options);}
function setDetailsPosition(detailsObj,posObj){var locObj=returnObjById(posObj);var leftX,topY;if((browserDetect('opera'))||(browserDetect('firefox')))
{leftX=findPosX(locObj)+91;topY=findPosY(locObj)+21;}
else if(browserDetect('msie'))
{leftX=findPosX(locObj)+111;topY=findPosY(locObj)+21;}
getStyleObject(detailsObj).left=leftX+'px';getStyleObject(detailsObj).top=topY+'px';toggleVisibility(detailsObj);}
function showPaintCart(){getStyleObject("paintcartimg").visibility="visible";}
function WriteInnerHTML(divId,strHtml){if(document.getElementById){document.getElementById(divId).innerHTML=strHtml;}else{with(document.layers[divId].document){open();write(strHtml);close();}}}
function getStyleObject(objectId){if(document.getElementById&&document.getElementById(objectId)){return document.getElementById(objectId).style;}else if(document.all&&document.all(objectId)){return document.all(objectId).style;}else if(document.layers&&document.layers[objectId]){return document.layers[objectId];}else{return false;}}
function toggleDisplay(obj){var currentDisplay=(getStyleObject(obj).display=='none')?'block':'none';getStyleObject(obj).display=currentDisplay;}
function displayObj(obj){getStyleObject(obj).display='block';}
function toggleVisibility(obj){var currentVis=(getStyleObject(obj).visibility=='hidden')?'visible':'hidden';getStyleObject(obj).visibility=currentVis;}
function returnObjById(id){if(document.getElementById)
var returnVar=document.getElementById(id);else if(document.all)
var returnVar=document.all[id];else if(document.layers)
var returnVar=document.layers[id];return returnVar;}
function browserDetect(text){str=(navigator.userAgent.toLowerCase()).indexOf(text)+1;data=text;return str;}
function findPosX(obj){var curleft=0;if(obj.offsetParent){while(obj.offsetParent){curleft+=obj.offsetLeft
obj=obj.offsetParent;}}
else if(obj.x)
curleft+=obj.x;return curleft;}
function findPosY(obj){var curtop=0;if(obj.offsetParent){while(obj.offsetParent){curtop+=obj.offsetTop
obj=obj.offsetParent;}}
else if(obj.y)
curtop+=obj.y;return curtop;}
function getQueryVariable(variable){var query=window.location.search.substring(1);var vars=query.split("&");for(var i=0;i<vars.length;i++){var pair=vars[i].split("=");if(pair[0]==variable){return pair[1];}}}
function replaceSubstring(inputString,fromString,toString){var temp=inputString;if(fromString==""){return inputString;}
if(toString.indexOf(fromString)==-1){while(temp.indexOf(fromString)!=-1){var toTheLeft=temp.substring(0,temp.indexOf(fromString));var toTheRight=temp.substring(temp.indexOf(fromString)+fromString.length,temp.length);temp=toTheLeft+toString+toTheRight;}}else{var midStrings=new Array("~","`","_","^","#");var midStringLen=1;var midString="";while(midString==""){for(var i=0;i<midStrings.length;i++){var tempMidString="";for(var j=0;j<midStringLen;j++){tempMidString+=midStrings[i];}
if(fromString.indexOf(tempMidString)==-1){midString=tempMidString;i=midStrings.length+1;}}}
while(temp.indexOf(fromString)!=-1){var toTheLeft=temp.substring(0,temp.indexOf(fromString));var toTheRight=temp.substring(temp.indexOf(fromString)+fromString.length,temp.length);temp=toTheLeft+midString+toTheRight;}
while(temp.indexOf(midString)!=-1){var toTheLeft=temp.substring(0,temp.indexOf(midString));var toTheRight=temp.substring(temp.indexOf(midString)+midString.length,temp.length);temp=toTheLeft+toString+toTheRight;}}
return temp;}
var agent=navigator.userAgent.toLowerCase();var mac=agent.indexOf('mac')!=-1;var w3c=document.getElementById?true:false;var iex=document.all?true:false;var ns4=document.layers?true:false;function fixNetscape(){if(origWidth!=window.innerWidth||origHeight!=window.innerHeight){window.location.reload();}}
if(ns4){origWidth=window.innerWidth;origHeight=window.innerHeight;window.onresize=fixNetscape;}
var w3c=(document.getElementById)?true:false;var iex=(document.all)?true:false;var ns4=(document.layers)?true:false;var supported=(w3c||iex||ns4)?true:false;var active=false;var curObj,curNest;function mousemoved(evt){if(iex){mousex=window.event.clientX+document.body.scrollLeft;mousey=window.event.clientY+document.body.scrollTop;}
else if(ns4){mousex=evt.pageX+window.pageXOffset;mousey=evt.pageY+window.pageYOffset;}
else{mousex=evt.pageX;mousey=evt.pageY;}
if(active){shiftTo(curObj,mousex-140,mousey-150,curNest);}
return true;}
function getStyle(objstr,nest){nest=(nest)?"document."+nest+".":"";return(w3c)?document.getElementById(objstr).style:(iex)?document.all[objstr].style:(ns4)?eval(nest+"document."+objstr):false;}
function shiftTo(objstr,x,y,nest){var x=x+155;var y=y+80;var obj=getStyle(objstr,nest);if(iex){obj.pixelLeft=x;obj.pixelTop=y;}
else if(ns4){obj.moveTo(x,y);}
else if(w3c){obj.left=x+"px";obj.top=y+"px";}}
function show(objstr,nest){curObj=objstr;curNest=(nest)?nest:null;getStyle(objstr,nest).visibility="visible";active=true;}
function hide(){getStyle(curObj,curNest).visibility="hidden";active=false;}
if(supported){if(ns4){document.captureEvents(Event.MOUSEMOVE);}
document.onmousemove=mousemoved;}
function popItScroll(theLink){window.open(theLink,null,'height=800,width=700,scrollbars=yes,resizable=yes');}
function showIt(theBox){if(theBox.style.display==""){theBox.style.display="none";}else{theBox.style.display="";}}
function toggleIt(theBox){if(theBox.style.display=="none"){new Effect.Appear(theBox);}else{new Effect.Fade(theBox);}}
if(typeof com=="undefined")var com=new Object();if(typeof com.deconcept=="undefined")com.deconcept=new Object();if(typeof com.deconcept.util=="undefined")com.deconcept.util=new Object();if(typeof com.deconcept.FlashObjectUtil=="undefined")com.deconcept.FlashObjectUtil=new Object();com.deconcept.FlashObject=function(swf,id,w,h,ver,c,useExpressInstall,quality,xiRedirectUrl,redirectUrl,detectKey){if(!document.createElement||!document.getElementById)return;this.DETECT_KEY=detectKey?detectKey:'detectflash';this.skipDetect=com.deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();this.useExpressInstall=useExpressInstall;if(swf)this.setAttribute('swf',swf);if(id)this.setAttribute('id',id);if(w)this.setAttribute('width',w);if(h)this.setAttribute('height',h);if(ver)this.setAttribute('version',new com.deconcept.PlayerVersion(ver.toString().split(".")));this.installedVer=com.deconcept.FlashObjectUtil.getPlayerVersion(this.getAttribute('version'),useExpressInstall);if(c)this.addParam('bgcolor',c);var q=quality?quality:'high';this.addParam('quality',q);var xir=(xiRedirectUrl)?xiRedirectUrl:window.location;this.setAttribute('xiRedirectUrl',xir);this.setAttribute('redirectUrl','');if(redirectUrl)this.setAttribute('redirectUrl',redirectUrl);}
com.deconcept.FlashObject.prototype={setAttribute:function(name,value){this.attributes[name]=value;},getAttribute:function(name){return this.attributes[name];},addParam:function(name,value){this.params[name]=value;},getParams:function(){return this.params;},addVariable:function(name,value){this.variables[name]=value;},getVariable:function(name){return this.variables[name];},getVariables:function(){return this.variables;},createParamTag:function(n,v){var p=document.createElement('param');p.setAttribute('name',n);p.setAttribute('value',v);return p;},getVariablePairs:function(){var variablePairs=new Array();var key;var variables=this.getVariables();for(key in variables){variablePairs.push(key+"="+variables[key]);}
return variablePairs;},getFlashHTML:function(){var flashNode="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall"))this.addVariable("MMplayerType","PlugIn");flashNode='<embed type="application/x-shockwave-flash" src="'+this.getAttribute('swf')+'" width="'+this.getAttribute('width')+'" height="'+this.getAttribute('height')+'"';flashNode+=' id="'+this.getAttribute('id')+'" name="'+this.getAttribute('id')+'" ';var params=this.getParams();for(var key in params){flashNode+=[key]+'="'+params[key]+'" ';}
var pairs=this.getVariablePairs().join("&");if(pairs.length>0){flashNode+='flashvars="'+pairs+'"';}
flashNode+='/>';}else{if(this.getAttribute("doExpressInstall"))this.addVariable("MMplayerType","ActiveX");flashNode='<object id="'+this.getAttribute('id')+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute('width')+'" height="'+this.getAttribute('height')+'">';flashNode+='<param name="movie" value="'+this.getAttribute('swf')+'" />';var params=this.getParams();for(var key in params){flashNode+='<param name="'+key+'" value="'+params[key]+'" />';}
var pairs=this.getVariablePairs().join("&");if(pairs.length>0){flashNode+='<param name="flashvars" value="'+pairs+'" />';}
flashNode+="</object>";}
return flashNode;},write:function(elementId){if(this.useExpressInstall){var expressInstallReqVer=new com.deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(expressInstallReqVer)&&!this.installedVer.versionIsValid(this.getAttribute('version'))){this.setAttribute('doExpressInstall',true);this.addVariable("MMredirectURL",escape(this.getAttribute('xiRedirectUrl')));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}else{this.setAttribute('doExpressInstall',false);}
if(this.skipDetect||this.getAttribute('doExpressInstall')||this.installedVer.versionIsValid(this.getAttribute('version'))){var n=(typeof elementId=='string')?document.getElementById(elementId):elementId;n.innerHTML=this.getFlashHTML();}else{if(this.getAttribute('redirectUrl')!=""){document.location.replace(this.getAttribute('redirectUrl'));}}}}
com.deconcept.FlashObjectUtil.getPlayerVersion=function(reqVer,xiInstall){var PlayerVersion=new com.deconcept.PlayerVersion(0,0,0);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){PlayerVersion=new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");for(var i=3;axo!=null;i++){axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);PlayerVersion=new com.deconcept.PlayerVersion([i,0,0]);}}catch(e){}
if(reqVer&&PlayerVersion.major>reqVer.major)return PlayerVersion;if(!reqVer||((reqVer.minor!=0||reqVer.rev!=0)&&PlayerVersion.major==reqVer.major)||PlayerVersion.major!=6||xiInstall){try{PlayerVersion=new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}catch(e){}}}
return PlayerVersion;}
com.deconcept.PlayerVersion=function(arrVersion){this.major=parseInt(arrVersion[0])||0;this.minor=parseInt(arrVersion[1])||0;this.rev=parseInt(arrVersion[2])||0;}
com.deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major)return false;if(this.major>fv.major)return true;if(this.minor<fv.minor)return false;if(this.minor>fv.minor)return true;if(this.rev<fv.rev)return false;return true;}
com.deconcept.util={getRequestParameter:function(param){var q=document.location.search||document.location.hash;if(q){var startIndex=q.indexOf(param+"=");var endIndex=(q.indexOf("&",startIndex)>-1)?q.indexOf("&",startIndex):q.length;if(q.length>1&&startIndex>-1){return q.substring(q.indexOf("=",startIndex)+1,endIndex);}}
return"";}}
if(Array.prototype.push==null){Array.prototype.push=function(item){this[this.length]=item;return this.length;}}
var getQueryParamValue=com.deconcept.util.getRequestParameter;var FlashObject=com.deconcept.FlashObject;function getFlashVersion(){var a=com.deconcept.PlayerVersion("0.0.0")
var ver=com.deconcept.FlashObjectUtil.getPlayerVersion(a,false)
return ver.major}