function search_vm_ajax_live(el,prods,lang,myid,url,scrollbar,scrollsmoothness,initajaxloadenable,initajaxloadbg,initajaxloadwidth){str=ajop_escape(el.value,myid);var checkinputvalmy=jQuery(".GeniusAjaxInputMaster input.inputbox").val();if(checkinputvalmy.length==0){}else{if(!jQuery.trim(jQuery(".res_a_s.geniusGroove").html()).length||jQuery(".res_a_s.geniusGroove").css('display')=='none'){elload=document.getElementById('vm_ajax_search_search_str2'+myid);xload=getX(elload);yload=getY(elload)+40;if(jQuery(".gasAjaxSpinnerCHK")[0]){}else if(!jQuery.trim(jQuery(".res_a_s.geniusGroove").html()).length&&initajaxloadenable==0){jQuery('.res_a_s.geniusGroove').prepend('<div class="gasAjaxSpinnerCHK" style="position: absolute;width: 100%; height: 100%;z-index: 9999;background: '+initajaxloadbg+';"><div style="position: relative; width: 100%; height: 100%;z-index: 9999; text-align: center; padding-top: 15%;" class="hdnload ajaxspinnersearch"><div class="ajaxspinnersearchcontent"></div></div></div>');jQuery(".res_a_s.geniusGroove").css({"border":"none!important","box-shadow":"6px 6px 6px rgba(0, 0, 0, 0.2)","top":yload+"px","left":xload+"px","min-height":"300px","width":initajaxloadwidth+"px"});jQuery(".res_a_s.geniusGroove").fadeIn(300);jQuery('#Genius_vm_ajax_search_BG').fadeIn(300);}
if(jQuery.trim(jQuery(".res_a_s.geniusGroove").html()).length){jQuery(".res_a_s.geniusGroove").fadeIn(300);jQuery('#Genius_vm_ajax_search_BG').fadeIn(300);}}
if(search_timer[myid]!=null){clearInterval(search_timer[myid]);}
query="&keyword="+str+"&prods="+prods+"&lang="+lang+"&myid="+myid;if(query==op_last_request){var res=document.getElementById("vm_ajax_search_results2"+myid);if(res.style.display=='none'){if((typeof jQuery!='undefined')&&(typeof jQuery.fx!='undefined'))
jQuery('#vm_ajax_search_results2'+myid+', #Genius_vm_ajax_search_BG').fadeIn(300,function(){;});else
res.style.display='block';}else
res.style.display='block';return true;}else{op_last_request=query;}
if(prods==null)
prods=5;if(window.XMLHttpRequest){xmlhttp=new XMLHttpRequest();}else{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4&&xmlhttp.status==200){var checkinputvalmyInside=jQuery(".GeniusAjaxInputMaster input.inputbox").val();if(checkinputvalmyInside.length>0){jQuery('#Genius_vm_ajax_search_BG').fadeIn(300);}
var res=document.getElementById("vm_ajax_search_results2"+myid);res.style.border="1px solid #A5ACB2";el=document.getElementById('vm_ajax_search_search_str2'+myid);x=getX(el);y=getY(el);res.style.left=x+'px';res.style.top=y+40+'px';res.position='absolute';res.innerHTML=xmlhttp.responseText;op_active_el=res;op_active_row=document.getElementById(res.id+'_0');op_active_row_n=0;setActive(op_active_row,op_active_row_n);if(res.style.display=='none'){if((typeof jQuery!='undefined')&&(typeof jQuery.fx!='undefined'))
jQuery('#vm_ajax_search_results2'+myid+', #Genius_vm_ajax_search_BG').fadeIn(300,function(){;});else
res.style.display='block';}else
res.style.display='block';jQuery('.searchwrapperajax .hdnload').remove();if(scrollbar=='none'){}else{var scrolltheme=scrollbar;jQuery(".GeniusProductsMasterWrapper .innerGeniusDivResults").mCustomScrollbar({theme:scrolltheme,scrollButtons:{enable:true},scrollInertia:scrollsmoothness});jQuery(".GeniusCatsManufsMasterWrapperprblock .innerGeniusDivResults").mCustomScrollbar({theme:scrolltheme,scrollInertia:scrollsmoothness});}}
else{if(jQuery('.searchwrapperajax .hdnload').length==0){jQuery('.res_a_s').prepend('<div style="position: absolute;width: 100%; height: 100%;z-index: 9999;"><div style="position: relative; width: 100%; height: 100%;z-index: 9999; text-align: center; padding-top: 15%;" class="hdnload ajaxspinnersearch"><div class="ajaxspinnersearchcontent"></div></div></div>');}}}
xmlhttp.open("POST",url,true);xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlhttp.send(query);}}
function getRow(id){ida=id.split('_');return ida[ida.length-1];}
function getModuleId(id){ida=id.split('_');if(ida.length>2)
return ida[ida.length-3];else
return 0;}
function op_hoverme(el){setActive(el);}
function setActive(el,rown){if(rown==null){rown=getRow(el.id);}
if(el==null)
return;if(op_active_row!=null&&(el!=op_active_row)){op_active_row.className=op_active_row.className.split(' selectedRow').join('');}
op_active_row=el;if(rown!=null){op_active_row_n=rown;}else{ida=el.id.split('_');op_active_row_n=ida[ida.length-1];}
if((el.getAttribute('savedcolor')==null)||(el.getAttribute('savedcolor')==''))
el.setAttribute('savedcolor',el.style.backgroundColor);c=el.getAttribute('savedcolor');if(el.className.indexOf('selectedRow')<=0)
el.className+=' selectedRow';op_active_row=el;}
function getOffset(el){var _x=0;var _y=0;while(el&&!isNaN(el.offsetLeft)&&!isNaN(el.offsetTop)){_x+=el.offsetLeft-el.scrollLeft;_y+=el.offsetTop-el.scrollTop;el=el.offsetParent;}
return{top:_y,left:_x};}
function hide_now(myid){el=document.getElementById('vm_ajax_search_search_str2'+myid);if(search_has_focus!=null)
if(!search_has_focus[myid]){if(typeof jQuery!='undefined'){}else{}}}
function op_processCmd(cmd,value,id,row){if(cmd=='href')
document.location=value;return false;}
function getY(oElement){var iReturnValue=0;while(oElement!=null){iReturnValue+=oElement.offsetTop;oElement=oElement.offsetParent;}
return iReturnValue;}
function getX(oElement){var iReturnValue=0;while(oElement!=null){iReturnValue+=oElement.offsetLeft;oElement=oElement.offsetParent;}
return iReturnValue;}
function ajop_escape(str,myid){if((typeof(str)!='undefined')&&(str!=null)){x=str.split("&").join("%26");x=str.split(" ").join("%20");return x;}else{return"";}
return"";}
function aj_redirect(id){x=document.getElementById(id);if(x!=null){if(x.href!=null){window.location=x.href;}else{}}}
function serc(){jQuery('.res_a_s, #Genius_vm_ajax_search_BG').fadeOut('fast');};
;