var NS4=(navigator.appName.indexOf("Netscape")>=0&&!document.getElementById)?true:false;var IE4=(document.all&&!document.getElementById)?true:false;var IE5=(document.getElementById&&document.all)?true:false;var NS6=(document.getElementById&&navigator.appName.indexOf("Netscape")>=0)?true:false;var W3C=(document.getElementById)?true:false;var ieop=0;var infodivheight;var op_id=0;var isMouseOndiv=true;function showInnerContent(b,a){b=arguments[0];document.getElementById(b).style.display="block"}function hideOuterContent(a){isMouseOndiv=false;a=arguments[0];document.getElementById(arguments[0]).style.display="none";if(document.getElementById(a)){if(document.getElementById(a).parentNode.getAttribute("class")=="outercontent countryinfooutercontent"){document.getElementById(a).parentNode.style.display="none"}}if(a=="slideShowDropDown"){categoryTimer=setTimeout("startCategorySlideShow()",timeout)}}function hideContentWithoutFade(b){isMouseOndiv=false;var a=document.getElementById(b).style;a.display="none"}function hideDHTMLContent(a){setTimeout('decrOpacity("'+a+'")',10)}function incrOpacity(b){var a=document.getElementById(b).style;if(ieop<100){ieop+=7;setOpacity(a,ieop);op_id=setTimeout('incrOpacity("'+b+'")',10)}}function decrOpacity(b){var a;if(document.getElementById(b)){a=document.getElementById(b).style}if(ieop>1){if(!isMouseOndiv){ieop-=10;setOpacity(a,ieop)}op_id=setTimeout('decrOpacity("'+b+'")',10)}else{if(!isMouseOndiv){if(a){a.display="none"}}isMouseOndiv=true}}function mouseOutInnerDiv(){isMouseOndiv=false;divname=arguments[0];if(document.getElementById(divname)!=null){document.getElementById(divname).style.display="none"}isMouseOndiv=false}function mouseOnInnerDiv(a){document.getElementById(a).style.display="block";isMouseOndiv=true;if(document.getElementById(a).parentNode.getAttribute("class")=="outercontent countryinfooutercontent"){document.getElementById(a).parentNode.style.display="block"}}function mouseOutHidingInnerDiv(a){if(document.getElementById(a).parentNode.getAttribute("class")=="outercontent countryinfooutercontent"){document.getElementById(a).parentNode.style.display="none"}}function setOpacity(a,b){if(IE4||IE5){a.filter="alpha(opacity="+b+")"}if(NS6){a.MozOpacity=b/100}}var praises=new Array();praises[0]=new Array("Thank you for your prompt service. My wife tells me the flowers are very beautiful","Jeff Forsyth");praises[1]=new Array("There is a beautiful girl that I care for very much in Sweden that got the flowers earlier than expected. Thank you so much and I am now a regular!","Jon Clark");praises[2]=new Array("Thanks you for your swift response,it is greatly appreciated.","Luke Flanaghan");praises[3]=new Array("It was a wonderful surprise for my fiance. The bouquet, vase and teddy looks beautiful!","Mandy Leonard");praises[4]=new Array("This morning, I was hesitant to think that sending flowers to another country would be so effortless an undertaking. I will definitely use your services again","Jeff Bagdis");praises[5]=new Array("Your site provided me with excellent products and services.I really would like to thank you for the beautiful variety of flowers and other products","Nawaf Al-Senan");praises[6]=new Array("Your service was excellent and I highly recommend your company for anyone who needs to have flowers delivered overseas.  My friend was ecstatic!  Thank you","Jeff");praises[7]=new Array("I wanted to tell you know that the flowers were delivered yesterday evening and I understand they are beautiful. Thank you very much for taking care of this for me","Rob Williams");var currentPraiseIndex=0;var spanPraise;var spanCustomer;var fadeTimer;var currentColor=9;function initCustomerPraise(){spanPraise=document.getElementById("contenthome");spanCustomer=document.getElementById("name");setInterval("rotateCustomerPraise()",5000)}function rotateCustomerPraise(){fadeTimer=setInterval("fadeOutCus()",50)}function fadeOutCus(){paintPraise();if(currentColor==15){clearInterval(fadeTimer);if(spanPraise!=null){spanPraise.innerHTML=praises[currentPraiseIndex][0]}if(spanCustomer!=null){spanCustomer.innerHTML="&#151; "+praises[currentPraiseIndex][1]}currentPraiseIndex=(currentPraiseIndex+1)%praises.length;fadeTimer=setInterval("fadeInCus()",50)}else{currentColor++}}function fadeInCus(){paintPraise();if(currentColor==9){clearInterval(fadeTimer)}else{currentColor--}}function paintPraise(){var a=getCurrentColorCode();if(spanPraise!=null){spanPraise.style.color=a}}function doFade(){if(isFading){}else{if(currentColor==9){isFading=true;clearInterval(fadeTimer)}else{currentColor--}}}function getCurrentColorCode(){var a=""+currentColor;if(currentColor>9){a=String.fromCharCode(87+currentColor)}return"#"+a+a+a}function showInnerDiv(b,a){b=arguments[0];document.getElementById(b).style.display="block";document.getElementById(a).style.display="none"}function hideOuterDiv(b,a){isMouseOndiv=false;document.getElementById(b).style.display="none";document.getElementById(a).style.display="block"}function editCategory(a,c,b){categoryNameId=c+"CategoryName"+a;editCategoryButton=c+"Edit"+a+"Category";categoryNameTextId=c+"categoyNameValue"+a;if(document.getElementById(categoryNameTextId)==null){document.getElementById(categoryNameId).innerHTML="<input type='text' name='"+c+"_categoryName' id='"+c+"categoyNameValue"+a+"' value='"+b+"' size='14' />";document.getElementById(editCategoryButton).innerHTML='<input type="button"  class="smallSubmit" value="Update Category" onClick="updateCategory(\''+a+"', '"+c+"')\" />"}}function editParentCategory(b,a){categoryNameId=b+"parentCategoryNameId";editCategoryButton=b+"Edit";categoryNameTextId=b+"_parentCategoryName";if(document.getElementById(categoryNameTextId)==null){document.getElementById(categoryNameId).innerHTML='<input type="text" name="'+b+'_categoryName" id="'+b+'categoyNameValue" value="'+a+'"  />';document.getElementById(editCategoryButton).innerHTML='<input type="button"  class="smallSubmit" value="Update" onClick="updateParentCategory(\''+b+"')\" />"}}function updateCategory(c,d){product_category_type_id=d+"ProductCategoryTypeId"+c;categoryName=document.getElementById(d+"categoyNameValue"+c).value;productCategoryTypeId=document.getElementById(product_category_type_id).value;var b=getAjaxRequest();var a="/catalog/control/updateProductCategory";b.open("POST",a,true);b.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");b.send("productCategoryId="+d+"&categoryName="+categoryName+"&productCategoryTypeId="+productCategoryTypeId);b.onreadystatechange=function(){if(b.readyState==3){}else{if(b.readyState==4){if(b.status==200){if(b.responseText){var e=b.responseText;if(e.indexOf("errorMessage")!=-1){document.getElementById("resultMessage").setAttribute("class","errorMessage");document.getElementById("resultMessage").innerHTML=getResultMessage(e,'<div id="content-messages" class="errorMessage">')}else{categoryNameTextId=d+"categoyNameValue"+c;if(document.getElementById(categoryNameTextId)){categoryNameId=d+"CategoryName"+c;editCategoryButton=d+"Edit"+c+"Category";document.getElementById(categoryNameId).innerHTML=categoryName;document.getElementById(editCategoryButton).innerHTML='<input type="button"  class="smallSubmit" value="Edit Category" onClick="editCategory(\''+c+"', '"+d+"', '"+categoryName+"')\" />"}}}}}}}}function updateParentCategory(c){product_category_type_id=c+"_parentCategoryName";categoryName=document.getElementById(c+"categoyNameValue").value;productCategoryTypeId=document.getElementById(c+"parentCategoryTypeId").value;var b=getAjaxRequest();var a="/catalog/control/updateProductCategory";b.open("POST",a,true);b.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");b.send("productCategoryId="+c+"&categoryName="+categoryName+"&productCategoryTypeId="+productCategoryTypeId);b.onreadystatechange=function(){if(b.readyState==3){}else{if(b.readyState==4){if(b.status==200){if(b.responseText){var e=b.responseText;if(e.indexOf("errorMessage")!=-1){document.getElementById("resultMessage").setAttribute("class","errorMessage");document.getElementById("resultMessage").innerHTML=getResultMessage(e,'<div id="content-messages" class="errorMessage">')}else{categoryNameTextId=c+"categoyNameValue";if(document.getElementById(categoryNameTextId)){categoryNameId=c+"parentCategoryNameId";editCategoryButton=c+"Edit";document.getElementById(categoryNameId).innerHTML="<h2>"+categoryName+"</h2>";var d=categoryName.replace("'","&#39;");document.getElementById(editCategoryButton).innerHTML="<input type='button'  class='smallSubmit' value='Edit' onClick='editParentCategory(\""+c+'", "'+d+"\")' />"}}}}}}}}function getAjaxRequest(){var a;try{a=new XMLHttpRequest();return a}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP");return a}catch(b){if(isDebugOn){displayDebugError("Error creating AJAX request:\n",b)}return null}}}function createCategoryWRTProduct(f,g,c,e){categoryNameId=e+"_categoryName";var d=document.getElementById(categoryNameId).value;if(d==""||d==null){return false}productCategoryId=d.toLowerCase().replace(" ","-")+"_"+g;prodCatalogCategoryTypeId="PCCT_QUICK_ADD";productCategoryTypeId="CATALOG_CATEGORY";var b=getAjaxRequest();var a="/ezoz/control/createCategoryFromProdCatalog";b.open("POST",a,true);b.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");b.send("productCategoryId="+productCategoryId+"&categoryName="+d+"&productCategoryTypeId="+productCategoryTypeId+"&parentProductCategoryId="+e+"&productId="+c+"&prodCatalogId="+g+"&prodCatalogCategoryTypeId="+prodCatalogCategoryTypeId);b.onreadystatechange=function(){if(b.readyState==3){}else{if(b.readyState==4){if(b.status==200){if(b.responseText){var n=b.responseText;if(n.indexOf("errorMessage")!=-1){document.getElementById("resultMessage").setAttribute("class","errorMessage");document.getElementById("resultMessage").innerHTML=getResultMessage(n,'<div id="content-messages" class="errorMessage">')}else{document.getElementById("resultMessage").setAttribute("class","eventMessage");document.getElementById("resultMessage").innerHTML=getResultMessage(n,'<div id="content-messages" class="eventMessage">');var o=n.indexOf('<div id="fromDate">');var k='<div id="fromDate">'.length;var p=n.indexOf("</div>",o);fromDate_value=n.substring(o+k,p);document.getElementById(categoryNameId).value="";var m=document.getElementById(e+"table");var t=m.rows.length;var i=t;var s=m.insertRow(t);var q=i-1;var r=s.insertCell(0);var j=document.createTextNode(q);r.appendChild(j);r.setAttribute("id",productCategoryId+"td1");document.getElementById(productCategoryId+"td1").innerHTML=document.getElementById(productCategoryId+"td1").innerHTML+'<input type="hidden" name="'+productCategoryId+'_productCategoryTypeId" id="'+productCategoryId+"ProductCategoryTypeId"+q+'" value="'+productCategoryTypeId+'" />';var r=s.insertCell(1);var h=document.createElement("input");h.type="checkbox";h.name=productCategoryId+q;h.id=productCategoryId;r.appendChild(h);r.setAttribute("id",productCategoryId+"td2");document.getElementById(productCategoryId+"td2").innerHTML='<input name="'+productCategoryId+'" id="'+productCategoryId+q+'" type="checkbox"  checked="checked" onclick = "handleClick(\''+productCategoryId+q+"')\"/>"+productCategoryId;var r=s.insertCell(2);var j=document.createTextNode(d);r.appendChild(j);r.setAttribute("id",productCategoryId+"CategoryName"+q);var r=s.insertCell(3);var h=document.createElement("input");h.type="text";h.name=productCategoryId+"_fromDate";h.id=productCategoryId+"FromDate"+q;h.title="Format: yyyy-MM-dd HH:mm:ss.SSS";h.size=20;r.appendChild(h);r.setAttribute("id",productCategoryId+"td4");document.getElementById(productCategoryId+"td4").innerHTML=document.getElementById(productCategoryId+"td4").innerHTML+'<a href="javascript:call_cal(document.productAssociationDetails.'+productCategoryId+"FromDate"+q+",'"+fromDate_value+'\'); "><img src="/images/cal.gif" alt="View Calendar" title="View Calendar" border="0" height="16" width="16"></a>';var r=s.insertCell(4);var h=document.createElement("input");h.type="text";h.name=productCategoryId+"_thruDate";h.id=productCategoryId+"ThruDate"+q;h.title="Format: yyyy-MM-dd HH:mm:ss.SSS";h.size=20;r.appendChild(h);r.setAttribute("id",productCategoryId+"td5");document.getElementById(productCategoryId+"td5").innerHTML=document.getElementById(productCategoryId+"td5").innerHTML+'<a href="javascript:call_cal(document.productAssociationDetails.'+productCategoryId+"ThruDate"+q+",'"+fromDate_value+'\'); "><img src="/images/cal.gif" alt="View Calendar" title="View Calendar" border="0" height="16" width="16"></a>';var r=s.insertCell(5);var h=document.createElement("input");h.type="button";h.value="Edit Category";r.appendChild(h);var l=productCategoryId+"Edit"+q+"Category";r.setAttribute("id",l);r.setAttribute("align","center");document.getElementById(l).innerHTML='<input type="button"  class="smallSubmit" value="Edit Category" onClick=editCategory(\''+q+"','"+productCategoryId+"','"+d+"') />";document.getElementById(productCategoryId+"FromDate"+q).value=fromDate_value}}}}}}}function createParentCategory(e,c){var d=document.getElementById("newParentCategoryName").value;if(d==""||d==null){alert("categoryName should not be empty");return false}d=d.toLowerCase();productCategoryId="browse"+d.replace(" ","-")+"_"+e;prodCatalogCategoryTypeId="PCCT_BROWSE_"+d.toUpperCase();var b=getAjaxRequest();var a="/ezoz/control/createProdCatalogCategoryType";b.open("POST",a,true);b.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");b.send("productCategoryId="+productCategoryId+"&categoryName="+d+"&productCategoryTypeId=CATALOG_CATEGORY&productId="+c+"&prodCatalogId="+e+"&prodCatalogCategoryTypeId="+prodCatalogCategoryTypeId+"&description="+d);b.onreadystatechange=function(){if(b.readyState==3){}else{if(b.readyState==4){if(b.status==200){if(b.responseText){var g=b.responseText;if(g.indexOf("errorMessage")!=-1){document.getElementById("resultMessage").setAttribute("class","errorMessage");document.getElementById("resultMessage").innerHTML=getResultMessage(g,'<div id="content-messages" class="errorMessage">')}else{document.getElementById("resultMessage").setAttribute("class","eventMessage");document.getElementById("resultMessage").innerHTML=getResultMessage(g,'<div id="content-messages" class="eventMessage">');tab=document.createElement("table");tab.setAttribute("class","productdetail");tab.setAttribute("id",productCategoryId+"table");tab.setAttribute("style","margin-top:20px;");tab.border=1;tab.width="100%";tab.cellspacing=0;tab.cellpadding=0;tbo=document.createElement("tbody");tr_el=document.createElement("tr");var f=document.createElement("input");f.type="hidden";f.name=productCategoryId+"parentCategoryTypeId";f.id=productCategoryId+"parentCategoryTypeId";f.value="CATALOG_CATEGORY";tr_el.appendChild(f);td_el=document.createElement("td");td_el.setAttribute("colspan","5");td_el.setAttribute("id",productCategoryId+"parentCategoryNameId");var h=document.createTextNode(d);td_el.appendChild(h);tr_el.appendChild(td_el);td_el=document.createElement("td");td_el.setAttribute("id",productCategoryId+"Edit");td_el.setAttribute("align","center");td_el.appendChild(h);tr_el.appendChild(td_el);tbo.appendChild(tr_el);tr_el=document.createElement("tr");tr_el.setAttribute("class","fontweightbold height25");td_el=document.createElement("td");td_el.setAttribute("width","3%");var h=document.createTextNode("S.No");td_el.appendChild(h);tr_el.appendChild(td_el);td_el=document.createElement("td");td_el.setAttribute("width","25%");var h=document.createTextNode("Category");td_el.appendChild(h);tr_el.appendChild(td_el);td_el=document.createElement("td");td_el.setAttribute("width","14%");var h=document.createTextNode("CategoryName");td_el.appendChild(h);tr_el.appendChild(td_el);td_el=document.createElement("td");td_el.setAttribute("width","22%");var h=document.createTextNode("From Date");td_el.appendChild(h);tr_el.appendChild(td_el);td_el=document.createElement("td");td_el.setAttribute("width","22%");var h=document.createTextNode("Thru Date");td_el.appendChild(h);tr_el.appendChild(td_el);td_el=document.createElement("td");td_el.setAttribute("width","14%");var h=document.createTextNode(" ");td_el.appendChild(h);tr_el.appendChild(td_el);tbo.appendChild(tr_el);tab.appendChild(tbo);document.getElementById("divHolder").appendChild(tab);document.getElementById(productCategoryId+"Edit").innerHTML='<input type="button"  class="smallSubmit" value="Edit" onClick="editParentCategory(\''+productCategoryId+"', '"+d+"')\" />";document.getElementById(productCategoryId+"parentCategoryNameId").innerHTML="<h2>"+d+":</h2>";tab=document.createElement("table");tab.setAttribute("class","productdetail");tab.border=1;tab.width="100%";tab.cellspacing=0;tab.cellpadding=0;tbo=document.createElement("tbody");tr_el=document.createElement("tr");td_el=document.createElement("td");td_el.setAttribute("colspan","2");var f=document.createElement("input");f.type="text";f.name=productCategoryId+"_categoryName";f.id=productCategoryId+"_categoryName";td_el.appendChild(f);tr_el.appendChild(td_el);td_el=document.createElement("td");td_el.setAttribute("id",productCategoryId+"_createCategories");var h=document.createTextNode(" ");td_el.appendChild(h);tr_el.appendChild(td_el);tbo.appendChild(tr_el);tab.appendChild(tbo);document.getElementById("divHolder").appendChild(tab);document.getElementById(productCategoryId+"_createCategories").innerHTML='<input type="button"  class="smallSubmit" value="Create Category" onClick="return createCategoryWRTProduct(\'occasion\',\''+e+"','"+c+"','"+productCategoryId+"')\" />"}}}}}}}function getResultMessage(d,c){var a=d.indexOf(c);var f=c.length;var b=d.indexOf("</div>",a);var e=d.substring(a+f,b);return e};
