
var shippingPopupIframe=null;var quickSearchCurrentLink=-1;var quickSearchResNo=0;function filterSignAdd(link,signClass,showFilter)
{if(link)
{var addSigns=link.parentNode.getElementsByTagName("span");if(addSigns&&addSigns.length>0)
{for(var i=0;i<addSigns.length;i++)
{var spanElement=addSigns[i];if(spanElement.className==signClass)
{if(showFilter)
{link.parentNode.style.paddingLeft="9px";spanElement.innerHTML="+";}
else
{link.parentNode.style.paddingLeft="14px";spanElement.innerHTML="&nbsp;";}
break;}}}}}
function GetPage(dropdown)
{if(dropdown)
{var index=dropdown.selectedIndex;var value=dropdown.options[index].value;if(value!=null)
{window.location.href=value;}}}
function ResetScrollPosition()
{var scrollX=document.getElementById('__SCROLLPOSITIONX');var scrollY=document.getElementById('__SCROLLPOSITIONY');if(scrollX&&scrollY)
{scrollX.value=0;scrollY.value=0;}}
function HideContainer(id)
{var container=document.getElementById(id);if(container)
{container.style.display='none';}}
function ShowContainer(id)
{var container=document.getElementById(id);if(container)
{container.style.display='block';}}
function Subscribe()
{var subscribe=document.getElementById('subscribe');var unSubscribe=document.getElementById('unsubscribe');var subscribeF=document.getElementById('subscribef');var unSubscribeF=document.getElementById('unsubscribef');if(subscribe)
{if(subscribe.checked==true)
{unSubscribe.checked=false;}
else
{unSubscribe.checked=true;}}
if(subscribeF)
{if(subscribeF.checked==true)
{unSubscribeF.checked=false;}
else
{unSubscribeF.checked=true;}}}
function Unsubscribe()
{var subscribe=document.getElementById('subscribe');var unSubscribe=document.getElementById('unsubscribe');var subscribeF=document.getElementById('subscribef');var unSubscribeF=document.getElementById('unsubscribef');if(unSubscribe)
{if(unSubscribe.checked==true)
{subscribe.checked=false;}
else
{subscribe.checked=true;}}
if(unSubscribeF)
{if(unSubscribeF.checked==true)
{subscribeF.checked=false;}
else
{subscribeF.checked=true;}}}
function SetCorrectHeights(container1,container2)
{var div1=document.getElementById(container1);var div2=document.getElementById(container2);if(div1&&div2)
{var div1Height=div1.offsetHeight;var div2Height=div2.offsetHeight;if(div1Height>div2Height)
{div2Height=div1Height;}
else
{div1Height=div2Height;}
div1.style.height=div1Height+'px';div2.style.height=div2Height+'px';}}
function check(element)
{var hid=document.getElementById('ctl00_chkHidden');if(element.checked)
{hid.value='on';}
else
{hid.value='off';}}
function PostASPForm(action){aspnetForm.ctl00$InnerArea$act.value=action;aspnetForm.submit();}
function checkCompare(separator,productId,postbackURL)
{var chkId=separator+productId;var chk=document.getElementById(chkId);if(chk)
{chk.checked=true;CrossPostASPForm(postbackURL);}}
function SetLocation(url,setFocus)
{var mainWindow=window.opener;if(setFocus)
{mainWindow.focus();}
mainWindow.location.href=url;}
function CloseTestimonials(url)
{window.opener.focus();window.opener.location.href=url;window.close();}
function setDimension(count)
{if(count==0)
{window.close();window.opener.setFocus();}
else
{var width=290;width+=count*180;window.resizeTo(width,600);}}
function CrossPostASPForm(action)
{var aspForm=document.getElementById('aspnetForm');if(aspForm)
{aspForm.action=action;aspForm.submit();}}
function checkAll(chkBoxNo)
{if(document.getElementById('chkAll').checked)
{var i=0;for(i=1;i<=chkBoxNo;i++)
{chkId='ctl00_InnerArea_interestChk_'+i;document.getElementById(chkId).checked=true;}}
else
{var i=0;for(i=1;i<=chkBoxNo;i++)
{chkId='ctl00_InnerArea_interestChk_'+i;document.getElementById(chkId).checked=false;}}}
function clearText(txtBox,text)
{if(text!='')
{if(txtBox.value=="")
{txtBox.value=text;}}
else
{txtBox.value=text;}}
function setVisible(showDiv,hideDiv,chkBox)
{var aux;if(!document.getElementById(chkBox).checked)
{aux=hideDiv;hideDiv=showDiv;showDiv=aux;}
if(showDiv)
document.getElementById(showDiv).style.display='block';if(hideDiv)
document.getElementById(hideDiv).style.display='none';}
function passwordChanged(passTxt){var strength=document.getElementById("strength");var strongRegex=new RegExp("^(?=.{8,})(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*\\W).*$","g");var mediumRegex=new RegExp("^(?=.{7,})(((?=.*[A-Z])(?=.*[a-z]))|((?=.*[A-Z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[0-9]))).*$","g");var enoughRegex=new RegExp("(?=.{6,}).*","g");var pwd=document.getElementById(passTxt);if(pwd.value.length==0){strength.innerHTML="Introduceti cel putin 6 caractere";}else if(false==enoughRegex.test(pwd.value)){strength.innerHTML="Mai multe caractere";}else if(strongRegex.test(pwd.value)){strength.innerHTML="<span style=\"color:green\">Tare!</span>";}else if(mediumRegex.test(pwd.value)){strength.innerHTML="<span style=\"color:orange\">Mediu!</span>";}else{strength.innerHTML="<span style=\"color:red\">Slab!</span>";}}
function bookmarksite(title,url){if(window.sidebar)
window.sidebar.addPanel(title,url,"");else if(window.opera&&window.print){var elem=document.createElement('a');elem.setAttribute('href',url);elem.setAttribute('title',title);elem.setAttribute('rel','sidebar');elem.click();}
else if(document.all)
window.external.AddFavorite(url,title);}
function CopyBillToShip(){aspnetForm.ctl00$InnerArea$shpFirstName.value=aspnetForm.ctl00$InnerArea$billFirstName.value;aspnetForm.ctl00$InnerArea$shpLastName.value=aspnetForm.ctl00$InnerArea$billLastName.value;aspnetForm.ctl00$InnerArea$shpStreet1.value=aspnetForm.ctl00$InnerArea$billStreet1.value;aspnetForm.ctl00$InnerArea$shpCity.value=aspnetForm.ctl00$InnerArea$billCity.value;aspnetForm.ctl00$InnerArea$shpZip.value=aspnetForm.ctl00$InnerArea$billZip.value;aspnetForm.ctl00$InnerArea$shpCountry.value=aspnetForm.ctl00$InnerArea$billCountry.value;aspnetForm.ctl00$InnerArea$shpPhone.value=aspnetForm.ctl00$InnerArea$billPhone.value;aspnetForm.ctl00$InnerArea$shpPhone2.value=aspnetForm.ctl00$InnerArea$billPhone2.value;aspnetForm.ctl00$InnerArea$shpProvince.value=aspnetForm.ctl00$InnerArea$billProvince.value;}
function CopyBillToShip2()
{var chkBox="chkCopyBillToShip";if(document.getElementById(chkBox).checked)
{setValues("ctl00_InnerArea_shpFirstName","ctl00_InnerArea_billFirstName",false);setValues("ctl00_InnerArea_shpLastName","ctl00_InnerArea_billLastName",false);setValues("ctl00_InnerArea_shpStreet1","ctl00_InnerArea_billStreet1",false);setValues("ctl00_InnerArea_shpCity","ctl00_InnerArea_billCity",true);setValues("ctl00_InnerArea_shpZip","ctl00_InnerArea_billZip",false);setValues("ctl00_InnerArea_shpCountry","ctl00_InnerArea_billCountry",false);setValues("ctl00_InnerArea_shpPhone","ctl00_InnerArea_billPhone",false);setValues("ctl00_InnerArea_shpPhone2","ctl00_InnerArea_billPhone2",false);setValues("ctl00_InnerArea_shpProvince","ctl00_InnerArea_billProvince",false);}
else
{clearValues("ctl00_InnerArea_shpFirstName");clearValues("ctl00_InnerArea_shpLastName");clearValues("ctl00_InnerArea_shpStreet1");clearValues("ctl00_InnerArea_shpCity");clearValues("ctl00_InnerArea_shpZip");clearCountry("ctl00_InnerArea_shpCountry");clearValues("ctl00_InnerArea_shpPhone");clearValues("ctl00_InnerArea_shpPhone2");clearValues("ctl00_InnerArea_shpProvince");}}
function setValues(field,value,reset)
{var destination=document.getElementById(field);var source=document.getElementById(value);if(reset==false)
{if(destination.tagName=="SELECT"&&source.tagName=="SELECT")
{destination.selectedIndex=source.selectedIndex;}
else
{destination.value=source.value;}}
else
{if(destination.tagName=="SELECT"&&source.tagName=="SELECT")
{destination.options.length=0;for(var i=0;i<source.options.length;i++)
{destination.options[i]=new Option(source.options[i].text,source.options[i].value);}
destination.selectedIndex=source.selectedIndex;}
else
{destination.value=source.value;}}}
function clearValues(field)
{document.getElementById(field).value="";}
function clearCountry(field)
{document.getElementById(field).value=-1;}
function OpenPopup(url)
{window.open(url,'newWin','toolbar=no,location=no left=40 right=100,scrollbars=yes,width=350,height=500');}
function ProductImageOpenWnd(link,title)
{var strFeatures;var p_strPage;p_strPage=link;strFeatures="status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=500,height=500";oWindow=window.open(p_strPage,title,strFeatures);oWindow.focus();}
function ShowHideReview()
{var review=document.getElementById("review");var reviewsContainer=document.getElementById("reviewsContainer");var reviewLink=document.getElementById("reviewLink");var reviewLink2=document.getElementById("reviewLink2");if(document.getElementById("review"))
{if(review.style.display=="none")
{review.style.display="block";if(reviewsContainer)
{reviewsContainer.style.display="none";}}
else
{review.style.display="none";if(reviewsContainer)
{reviewsContainer.style.display="block";}}}}
function FillReviewForm(name,title,comment,vote)
{document.getElementById('ctl00_InnerArea_ReviewsProducts_rr').value=name;document.getElementById('ctl00_InnerArea_ReviewsProducts_rt').value=title;document.getElementById('ctl00_InnerArea_ReviewsProducts_rd').value=comment;document.getElementById('ctl00_InnerArea_ReviewsProducts_rv_'+(vote-1)).checked=true;}
function changeImage(container,imageSrc,imagePath)
{var zoomBtn;if(document.getElementById('zoom'))
{zoomBtn=document.getElementById('zoom').parentNode;}
var imageContainer=document.getElementById(container);imageContainer.src=imageSrc;if(zoomBtn)
{zoomBtn.onclick=function(){CreateWnd(''+imagePath,860,720,true);return false;};if(zoomBtn.tagName=="A")
{zoomBtn.href=imagePath;}}
var imageLink=imageContainer.parentNode;if(imageLink)
{imageLink.onclick=function(){CreateWnd(''+imagePath,860,720,true);return false;};if(imageLink.tagName=="A")
{imageLink.href=imagePath;}}}
function printPage(btnId)
{document.getElementById(btnId).style.display="none";window.print();}
function showPayment(paymentId)
{var cardBtn=document.getElementById("CardBtn");var rambursBtn=document.getElementById("RambursBtn");if(document.getElementById(paymentId))
{document.getElementById(paymentId).style.display='block';if(paymentId=='PaymentFormCard')
{cardBtn.style.display="block";rambursBtn.style.display="none";hidePayment('PaymentFormRamburs');hidePayment('PaymentFormOP');}
else if(paymentId=='PaymentFormRamburs')
{cardBtn.style.display="none";rambursBtn.style.display="block";hidePayment('PaymentFormCard');hidePayment('PaymentFormOP');}
else if(paymentId=='PaymentFormOP')
{hidePayment('PaymentFormCard');hidePayment('PaymentFormRamburs');}}}
function hidePayment(paymentId)
{if(document.getElementById(paymentId))
{document.getElementById(paymentId).style.display='none';}}
function submitEPayment(actionURL)
{var formDiv=document.getElementById('formDiv');var aspForm=document.getElementById('aspnetForm');if(formDiv&&formDiv.getElementsByTagName("input"))
{if(aspForm)
{aspForm.action=actionURL;aspForm.submit();}}}
function showForm(id)
{var showForm=document.getElementById(id);if(showForm)
{showForm.style.display='block';}}
function SetSortByHidden(sortDDL,hiddenBottomId,hiddenTopId)
{var hiddenBottomInput=document.getElementById(hiddenBottomId);var hiddenTopInput=document.getElementById(hiddenTopId);if(hiddenBottomInput&&sortDDL&&hiddenTopInput)
{var sortMethod=sortDDL.options[sortDDL.selectedIndex].value.split("-");hiddenTopInput.value=sortMethod[1];hiddenBottomInput.value=sortMethod[1];sortDDL.options[sortDDL.selectedIndex].value=sortMethod[0];}}
function ShowSpecialProduct(selectedProduct,selectedPrefix,productListId,selectedDivId)
{if(selectedProduct&&selectedProduct.id!="")
{var listDiv=document.getElementById(productListId);var selectedList=document.getElementById(selectedDivId);if(listDiv)
{var productsList=listDiv.getElementsByTagName("div");if(productsList&&productsList.length>0)
{for(var i=0;i<productsList.length;i++)
{if(productsList[i].id!="")
{if(productsList[i].id!=selectedProduct.id)
{productsList[i].className="specialListProduct floatleft";}
else
{productsList[i].className="specialListProduct floatleft selectedSpecialProduct";}}}}}
if(selectedList)
{var productsList=selectedList.getElementsByTagName("div");if(productsList&&productsList.length>0)
{for(var i=0;i<productsList.length;i++)
{if(productsList[i].id!="")
{if(productsList[i].id!=selectedPrefix+selectedProduct.id)
{productsList[i].className="category_specials main_center_container hide";}
else
{productsList[i].className="category_specials main_center_container";}}}}}}}
function HideUsingClass(containerId)
{var el=document.getElementById(containerId);if(el)
{el.className=el.className.replace("hideDiv","").replace("showDiv","")+" hideDiv ";}}
function ShowUsingClass(containerId)
{var el=document.getElementById(containerId);if(el)
{el.className=el.className.replace("hideDiv","showDiv");}}
function ShowShippingPopup(containerId)
{var container=document.getElementById(containerId);if(container)
{var parent=null;if(typeof container.parentElement!='undefined'&&container.parentElement!=null)
{parent=container.parentElement;}
else
{parent=container.parentNode;}
if(parent&&parent.tagName!='BODY')
{parent.removeChild(container);document.body.appendChild(container);}
container.className=container.className.replace("hideDiv","");var arrayPageSize=getPageSize();var arrayPageScroll=getPageScroll();container.style.top=(arrayPageSize[3]-150)/2+arrayPageScroll[1]+'px';container.style.left=(arrayPageSize[2]+arrayPageScroll[0]-500)/2+15+'px';if(IsIE())
{var iFrame=document.createElement("IFRAME");iFrame.setAttribute("src","javascript:'<html></html>'");iFrame.setAttribute("border","0");iFrame.className=container.className;iFrame.style.top=container.style.top;iFrame.style.left=container.style.left;iFrame.style.zIndex=0;document.body.appendChild(iFrame);shippingPopupIframe=iFrame;}
container.style.position='absolute';container.style.zIndex=10;}}
function RemoveIframe(idChildContainer)
{if(shippingPopupIframe!=null)
{var container=document.getElementById(idChildContainer);container.parentElement.removeChild(shippingPopupIframe);shippingPopupIframe=null;}}
function getPageSize(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=document.body.scrollWidth;yScroll=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}
var windowWidth,windowHeight;if(self.innerHeight){windowWidth=self.innerWidth;windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}
if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}
if(xScroll<windowWidth){pageWidth=windowWidth;}else{pageWidth=xScroll;}
arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight)
return arrayPageSize;}
function getPageScroll(){var yScroll;if(self.pageYOffset){yScroll=self.pageYOffset;}else if(document.documentElement&&document.documentElement.scrollTop){yScroll=document.documentElement.scrollTop;}else if(document.body){yScroll=document.body.scrollTop;}
arrayPageScroll=new Array('',yScroll)
return arrayPageScroll;}
function QuickSearchKeyEvent(currentLink,e)
{var key;if(window.event){key=e.keyCode;}
else if(e.which){key=e.which;}
if(quickSearchCurrentLink==-1)
{quickSearchCurrentLink=quickSearchResNo;}
switch(key)
{case 40:quickSearchCurrentLink++;break;case 38:quickSearchCurrentLink--;break;case 13:window.location.href=currentLink.href;return false;case 27:CloseQuickSearch();var input=document.getElementById('ctl00_header_kwd');if(input)
{input.focus();}
return false;default:var input=document.getElementById('ctl00_header_kwd');if(input)
{input.focus();}
return true;}
var maxCount=1+quickSearchResNo;if(quickSearchCurrentLink>=maxCount)
{quickSearchCurrentLink=0;}
else
{if(quickSearchCurrentLink<0)
{quickSearchCurrentLink=quickSearchResNo;}}
currentLink.className=currentLink.className.replace("quickSearch_li_active","quickSearch_li");var nextLink=document.getElementById("quick_search_a"+quickSearchCurrentLink);if(nextLink)
{nextLink.className=nextLink.className.replace("quickSearch_li","quickSearch_li_active");nextLink.focus();}
return false;}
function CloseQuickSearch()
{quickSearchResNo=0;var input=document.getElementById('ctl00_header_kwd');if(input)
{input.removeAttribute("autocomplete");input.focus();}
if(IsIE())
{var quickHolder=document.getElementById('quickSearch');if(quickHolder)
{var parent=quickHolder.parentElement;if(quickSearchIframe!=null)
{parent.removeChild(quickSearchIframe);quickSearchIframe=null;}}}
lastQuickSearchKwd='';quickSearchResNo=0;quickSearchCurrentLink=-1;HideUsingClass('quickSearch');}
function SetMoneyBackPosition()
{var mnyBackLogo=document.getElementById('moneyBackLogo');var mainPage=document.getElementById('page');if(mnyBackLogo&&mainPage)
{var leftPos=mainPage.offsetLeft+968;mnyBackLogo.style.left=leftPos+'px';}}
function SetTestimonialVote(currentVote)
{var hidden=document.getElementById('ctl00_rv');if(hidden)
{hidden.value=currentVote;}}
function SetTestimonialPage(url,pageNo)
{var hidden=document.getElementById('ctl00_InnerArea_spn');if(hidden)
{hidden.value=pageNo;CrossPostASPForm(url);}}
function AddTrustPilot(isSecureURL)
{var trustPilotDiv=document.getElementById('trustPilotDiv');var trustPilotInnerDiv=document.getElementById('trustPilotInner');if(trustPilotInnerDiv)
{var linkEl=document.createElement('A');linkEl.setAttribute('href','http://www.trustpilot.ro/review/www.strollers.ro');linkEl.className='trustbox_Speechbubble';var scriptEl=document.createElement('script');scriptEl.setAttribute('type','text/javascript');var src='';if(isSecureURL=='True')
{src='https://trustbox.trustpilot.dk/Trustbox.aspx?Domain=www.strollers.ro';}
else
{src='http://trustbox.trustpilot.dk/Trustbox.aspx?Domain=www.strollers.ro';}
scriptEl.setAttribute('src',src);trustPilotInnerDiv.appendChild(linkEl);trustPilotInnerDiv.appendChild(scriptEl);trustPilotDiv.style.visibility='visible';}}
function GetShopmaniaImage(isSecureURL)
{var shopMania=document.getElementById('shopManiaFooter');if(shopMania)
{var src='';if(isSecureURL=='True')
{src='https://secure.shopmania.com/img/cert/shopmania-store-ro.gif';}
else
{src='http://www.shopmania.ro/img/cert/shopmania-store-ro.gif';}
var image=document.createElement('img');image.setAttribute('src',src);image.setAttribute('alt','Viziteaza magazinul Strollers.ro pe ShopMania');image.style.border='none';image.style.height=32+'px';image.style.marginTop=-1+'px';image.style.marginLeft=-1+'px';shopMania.innerHTML='';shopMania.appendChild(image);}}
function AppendChild(node,text){if(null==node.canHaveChildren||node.canHaveChildren){node.appendChild(document.createTextNode(text));}else{node.text=text;}}
function CreateMiniMenu(li)
{var liHolder=document.getElementById(li);if(liHolder)
{liHolder.onmouseover=function()
{if(IsIE())
{var iFrame=document.createElement("IFRAME");iFrame.setAttribute("src","javascript:'<html></html>'");iFrame.setAttribute("border","0");iFrame.style.position="absolute";iFrame.style.left=(liHolder.offsetLeft+15)+"px";iFrame.style.top=liHolder.offsetTop+liHolder.getElementsByTagName("ul")[0].offsetTop+"px";iFrame.style.width=liHolder.getElementsByTagName("ul")[0].offsetWidth-2+"px";iFrame.style.height=liHolder.getElementsByTagName("ul")[0].offsetHeight-2+'px';var headerContainer=document.getElementById('headerContent');if(headerContainer)
{headerContainer.appendChild(iFrame);}
else
{document.body.appendChild(iFrame);}
miniMenuIframe=iFrame;}
liHolder.getElementsByTagName("a")[0].style.textDecoration="underline";liHolder.style.zIndex=100;liHolder.getElementsByTagName("ul")[0].style.visibility="visible";liHolder.getElementsByTagName("ul")[0].style.zIndex=100;}
liHolder.onmouseout=function()
{if(IsIE()&&miniMenuIframe)
{var headerContainer=document.getElementById('headerContent');if(headerContainer)
{headerContainer.removeChild(miniMenuIframe);}
else
{document.body.removeChild(miniMenuIframe);}
miniMenuIframe=null;}
liHolder.getElementsByTagName("a")[0].style.textDecoration="none";liHolder.style.zIndex=0;liHolder.getElementsByTagName("ul")[0].style.visibility="hidden";liHolder.getElementsByTagName("ul")[0].style.zIndex=100;}}}
function IsIE()
{if(navigator.appName=="Microsoft Internet Explorer"&&(navigator.appVersion.indexOf('MSIE 7.0')!=-1||navigator.appVersion.indexOf('MSIE 6.0')!=-1))
{return true;}
else
{return false;}}
function addLoadEvent(func)
{var oldonload=window.onload;if(typeof window.onload!='function')
{window.onload=function(){func};}
else
{window.onload=function(){if(oldonload){oldonload();}
func;}}}