function include_dom(script_filename){document.write('<'+'script');document.write(' language="javascript"');document.write(' type="text/javascript"');document.write(' src="'+script_filename+'">');document.write('</'+'script'+'>');}
$(document).ready(function(){$('#siteSearchForm').submit(function(){var url=$(this).attr('action');keyword=$('#siteSearchForm input[type=text]').val();url+='keyword/'+keyword;document.location.href=url;return false;});switch(page)
{case"contact_us":case"return_policy":case"link_us":$.meta.setType("attr","validate");$("#custInfo").validate();$.get(this_www_root+'ajax.php?cmd=set_form_token',function(data){var hdn='<input type="hidden" name="ts" value="'+data+'">'
$('#custInfo').append(hdn);});break;case"related_products":jQuery('#related-products').jcarousel({scroll:4,visible:3,initCallback:function(){jQuery('#loading-div').hide();jQuery('.jcarousel-skin-tango').css('visibility','visible');}});break;}});function append_script_to_header(script_path)
{var script=$('script').filter('[src="'+script_path+'"]');if(script.length==0)
{var str_include='<'+'script';str_include+=' language="javascript"';str_include+=' type="text/javascript"';str_include+=' src="'+script_path+'">';str_include+='</'+'script'+'>';$('head').append(str_include);}}
function append_script_to_footer(script_path)
{var script=$('script').filter('[src="'+script_path+'"]');if(script.length==0)
{var str_include='<'+'script';str_include+=' language="javascript"';str_include+=' type="text/javascript"';str_include+=' src="'+script_path+'">';str_include+='</'+'script'+'>';$('body').append(str_include);}}
function append_style_to_footer(style_path)
{var style=$('style').filter('[href="'+style_path+'"]');if(style.length==0)
{var str_include='<'+'link';str_include+=' rel="stylesheet"';str_include+=' type="text/css"';str_include+=' href="'+style_path+'"';str_include+=' />';$('body').append(str_include);}}
var popUpWin=0;function popUpWindow(URLStr,width,height)
{var left=50;var top=50;if(width<1)
width=420;if(height<1)
height=495;if(popUpWin)
{if(!popUpWin.closed)popUpWin.close();}
popUpWin=open(URLStr,'popUpWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');}
function roundoff(number,decimal_places)
{number=""+number;dot_pos=number.indexOf(".");if(dot_pos==-1){number+=".";for(i=0;i<decimal_places;i++){number+="0";}
new_number=number;}else{num_part=dot_pos+decimal_places+1;new_number=number.substr(0,num_part);}
return new_number;}
function addCommasToNumbers(nStr)
{nStr+='';x=nStr.split('.');x1=x[0];x2=x.length>1?'.'+x[1]:'';var rgx=/(\d+)(\d{3})/;while(rgx.test(x1)){x1=x1.replace(rgx,'$1'+','+'$2');}
return x1+x2;}
function is_valid_email(email){return email.match(/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/i);}
function is_empty_string(str){if(str==''){return true;}else if(typeof str=="string"&&str.match(/^\s$/i)){return true;}else{return false;}}
function getMousePosX(e)
{var posx=0;if(!e)var e=window.event;if(e.pageX){posx=e.pageX;}
else if(e.clientX){posx=e.clientX+document.body.scrollLeft
+document.documentElement.scrollLeft;}
return posx;}
function getMousePosY(e)
{var posy=0;if(!e)var e=window.event;if(e.pageY){posy=e.pageY;}
else if(e.clientY){posy=e.clientY+document.body.scrollTop
+document.documentElement.scrollTop;}
return posy;}
function str_replace(search,replace,str)
{while(str.indexOf(search)!=-1){str=str.replace(search,replace);}
return str;}
var ajaxCartCounterInterval;function addToCart(formId){var options={beforeSubmit:showAddToCartLoader,success:callBackAddToCart,dataType:'json',failure:callBackFailedAddToCart,data:{is_ajax_cart:'1'},timeout:5000};$('#'+formId).ajaxSubmit(options);return false;}
function addToCartAjax(formId){showAddToCartLoader();var buyFormCommand=$('#'+formId+' input[name=ajax_cart_command]').val();var formAction=www_root+'cart.php?cmd='+buyFormCommand+'&';var formData=$('#'+formId).serialize()+"&is_ajax_cart=1";var cartUrl=formAction+formData;$.ajax({url:cartUrl,type:"GET",error:function(jqXHR,textStatus,errorThrown){callBackFailedAddToCart(jqXHR,textStatus,errorThrown)},dataType:'jsonp'});return false;}
function showAddToCartLoader(formData,jqForm,options){clearInterval(ajaxCartCounterInterval);$('#ajaxcart_dialog_progress_container').show();return true;}
function callBackAddToCart(responseText,error){$('#ajaxcart_dialog_progress_container').hide();$('#ajaxcart_dialog_detail_container').show();if(error==true){$('#ajaxcart_dialog_product_name_contaner').html(responseText);}else{$('#ajaxcart_dialog_detail_product_name').html(decodeURIComponent(responseText.Product_Name));}
var ajaxCartCountdownNumber=6;if(typeof ajaxCartCounterInterval!='undefined')clearInterval(ajaxCartCounterInterval);ajaxCartCounterInterval=setInterval(function(){ajaxCartCountdownNumber--;if(ajaxCartCountdownNumber<1){clearInterval(ajaxCartCounterInterval);closeAjaxCartDialog();window.location=www_root+'cart/view_cart/';}else{$('#ajaxcart_dialog_detail_countdown').html(ajaxCartCountdownNumber);}},1000);if(error==false){updateHeaderCartDetails(responseText.Cart_Price_Total,responseText.Cart_Total_Items_Count);}}
function callBackFailedAddToCart(){callBackAddToCart('<b><font color="red">Failed Adding To Cart, Please Try Again!</font></b>',true);}
function closeAjaxCartDialog(){$('#ajaxcart_dialog_progress_container').hide();$('#ajaxcart_dialog_detail_container').hide();$('#ajaxcart_dialog_detail_countdown').html('5');}
function continueShoppingAjaxCart(){clearInterval(ajaxCartCounterInterval);closeAjaxCartDialog();}
function updateHeaderCartDetails(cartTotalPrice,cartTotalItems){var cartTotalPrice=addCommasToNumbers(roundoff(cartTotalPrice,1));$('#header_cart_items_count_container').html(cartTotalItems);$('#header_cart_items_total_container').html(cartTotalPrice);var loadUrl=this_www_root+'ajax.php';$.get(loadUrl,{Cart_Total_Price:cartTotalPrice,Total_Items:cartTotalItems,cmd:'update_cart_session'},function(responseText){$("#result").html(responseText);},"html");}
function openPopupChatWindow(){var livePersonChatUrl='https://server.iad.liveperson.net/hc/51262989/?cmd=file&file=visitorWantsToChat&site=51262989';window.open(livePersonChatUrl+"&referrer="+escape(document.location),"Window1","menubar=no,width=430,height=360,toolbar=no");}
(function($){$.facebox=function(data,settings,klass){$.facebox.loading()
if(data.ajax)fillFaceboxFromAjax(data.ajax)
else if(data.image)fillFaceboxFromImage(data.image)
else if(data.div)fillFaceboxFromHref(data.div)
else if($.isFunction(data))data.call($)
else $.facebox.reveal(data,settings,klass)}
$.extend($.facebox,{settings:{opacity:0.5,overlay:true,modal:true,showFooter:true,loadingImage:images_web+'facebox/loading.gif',closeImage:images_web+'facebox/closelabel.gif',imageTypes:['png','jpg','jpeg','gif'],faceboxHtml:'\
    <div id="facebox" style="display:none;"> \
      <div class="popup"> \
        <table> \
          <tbody> \
            <tr> \
              <td class="tl"/><td class="b"/><td class="tr"/> \
            </tr> \
            <tr> \
              <td class="b"/> \
              <td class="body"> \
                <div class="content"> \
                </div> \
                <div class="footer"> \
                  <a href="#" class="close"> \
                    <img src="'+images_web+'facebox/closelabel.gif" title="close" class="close_image" width="66px" height="22px" /> \
                  </a> \
                </div> \
              </td> \
              <td class="b"/> \
            </tr> \
            <tr> \
              <td class="bl"/><td class="b"/><td class="br"/> \
            </tr> \
          </tbody> \
        </table> \
      </div> \
    </div>'},loading:function(){init()
if($('#facebox .loading').length==1)return true
showOverlay()
$('#facebox .content').empty()
$('#facebox .body').children().hide().end().append('<div class="loading"><img src="'+$.facebox.settings.loadingImage+'"/></div>')
$('#facebox').css({top:getPageScroll()[1]+(getPageHeight()/10),left:385.5}).show()
if($.facebox.settings.modal!=true){$(document).bind('keydown.facebox',function(e){if(e.keyCode==27)$.facebox.close()
return true})}
$(document).trigger('loading.facebox')},reveal:function(data,settings,klass){$(document).trigger('beforeReveal.facebox')
if(klass)$('#facebox .content').addClass(klass)
$('#facebox .content').append(data)
$('#facebox .loading').remove()
$('#facebox .body').children().fadeIn('normal')
if(settings!=null){if(!settings.showFooter)$('#facebox .footer').hide();}
$('#facebox').css('left',$(window).width()/2-($('#facebox table').width()/2))
$(document).trigger('reveal.facebox').trigger('afterReveal.facebox')},close:function(){$(document).trigger('close.facebox')
return false}})
$.fn.facebox=function(settings){init(settings)
function clickHandler(){$.facebox.loading(true)
var klass=this.rel.match(/facebox\[?\.(\w+)\]?/)
if(klass)klass=klass[1]
fillFaceboxFromHref(this.href,klass)
return false}
return this.click(clickHandler)}
function init(settings){if($.facebox.settings.inited)return true
else $.facebox.settings.inited=true
$(document).trigger('init.facebox')
makeCompatible()
var imageTypes=$.facebox.settings.imageTypes.join('|')
$.facebox.settings.imageTypesRegexp=new RegExp('\.'+imageTypes+'$','i')
if(settings)$.extend($.facebox.settings,settings)
$('body').append($.facebox.settings.faceboxHtml)
var preload=[new Image(),new Image()]
preload[0].src=$.facebox.settings.closeImage
preload[1].src=$.facebox.settings.loadingImage
$('#facebox .close').click($.facebox.close)
$('#facebox .close_image').attr('src',$.facebox.settings.closeImage)}
function getPageScroll(){var xScroll,yScroll;if(self.pageYOffset){yScroll=self.pageYOffset;xScroll=self.pageXOffset;}else if(document.documentElement&&document.documentElement.scrollTop){yScroll=document.documentElement.scrollTop;xScroll=document.documentElement.scrollLeft;}else if(document.body){yScroll=document.body.scrollTop;xScroll=document.body.scrollLeft;}
return new Array(xScroll,yScroll)}
function getPageHeight(){var windowHeight
if(self.innerHeight){windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowHeight=document.documentElement.clientHeight;}else if(document.body){windowHeight=document.body.clientHeight;}
return windowHeight}
function makeCompatible(){var $s=$.facebox.settings
$s.loadingImage=$s.loading_image||$s.loadingImage
$s.closeImage=$s.close_image||$s.closeImage
$s.imageTypes=$s.image_types||$s.imageTypes
$s.faceboxHtml=$s.facebox_html||$s.faceboxHtml}
function fillFaceboxFromHref(href,klass){if(href.match(/#/)){var url=window.location.href.split('#')[0]
var target=href.replace(url,'')
$.facebox.reveal($(target).clone().show(),klass)}else if(href.match($.facebox.settings.imageTypesRegexp)){fillFaceboxFromImage(href,klass)}else{fillFaceboxFromAjax(href,klass)}}
function fillFaceboxFromImage(href,klass){var image=new Image()
image.onload=function(){$.facebox.reveal('<div class="image"><img src="'+image.src+'" /></div>',klass)}
image.src=href}
function fillFaceboxFromAjax(href,klass){$.get(href,function(data){$.facebox.reveal(data,klass)})}
function skipOverlay(){return $.facebox.settings.overlay==false||$.facebox.settings.opacity===null}
function showOverlay(){if(skipOverlay())return
if($('facebox_overlay').length==0)
$("body").append('<div id="facebox_overlay" class="facebox_hide"></div>')
$('#facebox_overlay').hide().addClass("facebox_overlayBG").css('opacity',$.facebox.settings.opacity).click(function(){if($.facebox.settings.modal!=true)$(document).trigger('close.facebox')}).fadeIn(200)
return false}
function hideOverlay(){if(skipOverlay())return
$('#facebox_overlay').fadeOut(200,function(){$("#facebox_overlay").removeClass("facebox_overlayBG")
$("#facebox_overlay").addClass("facebox_hide")
$("#facebox_overlay").remove()})
return false}
$(document).bind('close.facebox',function(){$(document).unbind('keydown.facebox')
$('#facebox').fadeOut(function(){$('#facebox .content').removeClass().addClass('content')
hideOverlay()
$('#facebox .loading').remove()})})})(jQuery);function initialize_addons()
{this.timmer=null;this.initialize_request_a_quote=function(){if(typeof(request_a_quote)!="undefined"){request_a_quote();var str_code="clearTimeout("+this.timmer+");";eval(str_code);}};this.initialize_discounted_price=function(){if(typeof(discountedPrice)!="undefined"){discountedPrice();var str_code="clearTimeout("+this.timmer+");";eval(str_code);}};this.initialize_product_attributes=function(){if(typeof(product_attributes)!="undefined"){product_attributes();var str_code="clearTimeout("+this.timmer+");";eval(str_code);}};}
function request_a_quote()
{$(".quote").click(function(e)
{var quote_type=$(this).attr('type');switch(quote_type)
{case"custom":id=request_a_quote.custom_product_quote(this,e);break;case"product":id=request_a_quote.main_product_quote(this,e);break;case"component":id=request_a_quote.multiple_products_quote(this,e);break;}
document.frmQuote.id.value=id;$('<input type="hidden" name="type" value="'+quote_type+'">').prependTo(document.frmQuote);$.getJSON(this_www_root+"ajax.php",{cmd:"get_field",table:'products',return_field:'Category',field1:'Product_ID',value1:id},function(json){data=json.data;if(typeof(document.frmQuote.category)=='undefined'){$('<input type="hidden" name="category" value="'+data+'">').prependTo(document.frmQuote);}else{document.frmQuote.category.value=data;}});$('#btnRequest').bind("click",request_a_quote.btnRequest_handler);return false;});$(".close_quote").click(function(e){$("#request_quote").slideUp("slow");return false;});$(".close_message").click(function(e){$("#quote_message").slideUp("slow");return false;});request_a_quote.btnRequest_handler=function(e)
{var id=document.frmQuote.id.value;var name=document.frmQuote.name.value;var email=document.frmQuote.email.value;var phone=document.frmQuote.phone.value;var category="";if(typeof(document.frmQuote.category)!="undefined")
category=document.frmQuote.category.value;var custom_products="";if(document.frmQuote.custom_products.value!=""){custom_products=document.frmQuote.custom_products.value;}
if($.trim(name)==""||$.trim(email)==""||$.trim(phone)=="")
{alert("Please fill in all fields");return;}
var desc="";if(custom_products==1)
{desc+=$('#quote_prod_name').html();desc+="<br>";desc+=$('#quote_accessories').html();}
$("#quote_dummy").show();$("#request_a_quote").hide();$.post(this_www_root+"ajax.php",{cmd:"quote_request",id:id,category:category,name:name,email:email,phone:phone,custom_products:desc},function(data){$("#quote_message").show();$("#quote_dummy").hide();});};request_a_quote.get_product_category=function(ajax_product_id)
{$.getJSON(this_www_root+"ajax.php",{cmd:"get_field",table:'products',return_field:'Category',field1:'Product_ID',value1:ajax_product_id},function(json){data=json.data;frm=document.frmQuote;if(typeof(document.frmQuote.category)=='undefined'){$('<input type="hidden" name="category" value="'+data+'">').prependTo(frm);}else{document.frmQuote.category.value=data;}});}
request_a_quote.main_product_quote=function(anchor,e)
{var id=$(anchor).attr("id");id=id.substring(2);request_a_quote.get_product_category(id);var prod_name=$("#name-"+id).html();var prod_img=$("#image-"+id).html();request_a_quote.open_popup();$("#quote_prod_name").html('<b>'+prod_name+'</b>');$("#quote_prod_img").html(prod_img);return id;}
request_a_quote.custom_product_quote=function(anchor,e)
{var name=$(anchor).attr("name");var prod_name=name;request_a_quote.open_popup();$("#quote_prod_name").html('<b>'+prod_name+'</b>');document.frmQuote.custom_products.value="1";}
request_a_quote.multiple_products_quote=function(anchor,e)
{var id=document.component_form.id.value;var accessories_id;request_a_quote.open_popup();main_product=product_all.get_main_product_id();request_a_quote.get_product_category(main_product);if(id.indexOf(",")==-1&&main_product==id)
{$("#quote_accessories").html("");}else{accessories_id=id.split(",");if(accessories_id[0]==main_product){accessories_id.shift();}
if(accessories_id[accessories_id.length-1]==""){accessories_id.pop();}
if(accessories_id.length>0)
{var acc_products="<b>Accessories Selected:</b><ul>";for(var i in accessories_id)
{try{acc_products+="<li>";acc_products+=$(":input[id^=inp-"+accessories_id[i]+"][checked]").parent().siblings("[id^=name-"+accessories_id[i]+"]").children('b').text();acc_products+="</li>";}catch(e){}}
acc_products+='</ul><hr>';$("#quote_accessories").html(acc_products);document.frmQuote.custom_products.value="1";}}
var main_product="<b>"+$('h1[id^=name-]').text()+"</b>";if(include_main_product){$('#quote_prod_name').html(main_product);}else{$('#quote_prod_name').html("");}
return id;}
request_a_quote.open_popup=function()
{jQuery.facebox(function(){jQuery.facebox($.ajax({url:this_www_root+'ajax.php?cmd=get_quote_div',async:false}).responseText);});}}
append_script_to_footer(js_file_path+"jquery/jquery.cookie.js");append_script_to_footer(js_file_path+"common_discountedPrice.js");function discountedPrice()
{discountedPrice.productID=0;discountedPrice.handleLoginRegisterSuccess=function(successCode)
{$('.show-discounted-price').hide();$('.discounted-price').show();$('.buy-now-form').show();$('.discounted-price').css({'visibility':'visible'});if(successCode==commonDiscounterPriceDialog.registerSuccess){timmer=setTimeout("jQuery(document).trigger('close.facebox');",3000);}else{jQuery(document).trigger('close.facebox');}
if(typeof(commonPostLoginTasks)=="function"){commonPostLoginTasks();}}
$("a.show-discounted-price").click(function(){id=$(this).attr('id');discountedPrice.productID=id.substr(2);commonDiscounterPriceDialog(discountedPrice.handleLoginRegisterSuccess);$.getJSON(this_www_root+"ajax.php",{cmd:"get_field",return_field:"Name",field1:"Product_ID",value1:discountedPrice.productID,table:"products"},function(json){if(json.data!=""){commonDiscounterPriceDialog.heading="Discounted Price for "+json.data;}})
commonDiscounterPriceDialog.show("Discounted Price Check",site_name);});discountedPrice.bindEvents=function(){}
discountedPrice.bindEvents();}
function bundlediscountedPrice(objOne,objTwo,objThree)
{bundlediscountedPrice.handleLoginRegisterSuccess=function(successCode){if(successCode==commonDiscounterPriceDialog.registerSuccess){timmer=setTimeout("jQuery(document).trigger('close.facebox');",3000);$('#'+objOne).show();$('#'+objTwo).hide();}else{jQuery(document).trigger('close.facebox');$('#'+objOne).show();$('#'+objTwo).hide();}}
bundleevents(objThree);}
function bundleevents(objThree){commonDiscounterPriceDialog(bundlediscountedPrice.handleLoginRegisterSuccess);commonDiscounterPriceDialog.heading=objThree;commonDiscounterPriceDialog.show("Discounted Price Check",site_name);};function bundlediscountedPricekeypressed(objOne,objTwo,objThree){if(event.keyCode=='13'){bundlediscountedPrice(objOne,objTwo,objThree);}}$(document).ready(function(){$('#bookmark').click(function(event){event.preventDefault();var url="http://www.idcard-printers.com";var title="ID Cards Printers";if(window.sidebar){window.sidebar.addPanel(title,url,"");}else if(window.external){window.external.AddFavorite(url,title);}else if(window.opera){return false;}else{alert('Unfortunately, this browser does not support the requested action,'
+' please bookmark this page manually.');}});});var wtb_pathToImage=images_web+"loading.gif";
/*!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('$(c).3f(9(){1C(\'a.1a-19, 3o.1a-19, 3z.1a-19\');1B=1t 1N();1B.J=3q});9 1C(1T){$(1T).l(9(){6 t=M.W||M.1r||K;6 a=M.q||M.21;6 g=M.2a||U;1n(t,a,g);M.2S();C U})}9 1n(F,d,18){2T{3(2p c.p.E.2q==="2r"){$("p","11").m({s:"20%",o:"20%"});$("11").m("2o","2N");3(c.1X("1L")===K){$("p").n("<P 5=\'1L\'></P><4 5=\'u\'></4><4 5=\'8\'></4>");$("#u").l(D)}}b{3(c.1X("u")===K){$("p").n("<4 5=\'u\'></4><4 5=\'8\'></4>");$("#u").l(D)}}3(2y()){$("#u").1Z("2X")}b{$("#u").1Z("32")}3(F===K){F=""}$("p").n("<4 5=\'H\'><22 J=\'"+1B.J+"\' /></4>");$(\'#H\').36();6 1f;3(d.L("?")!==-1){1f=d.3u(0,d.L("?"))}b{1f=d}6 1s=/\\.1V$|\\.2h$|\\.2c$|\\.2e$|\\.2b$/;6 N=1f.1x().23(1s);3(N==\'.1V\'||N==\'.2h\'||N==\'.2c\'||N==\'.2e\'||N==\'.2b\'){1I="";1J="";Y="";1P="";1O="";O="";1H="";1o=U;3(18){A=$("a[@2a="+18+"]").34();2l(v=0;((v<A.1m)&&(O===""));v++){6 39=A[v].q.1x().23(1s);3(!(A[v].q==d)){3(1o){1P=A[v].W;1O=A[v].q;O="<1l 5=\'1Y\'>&1k;&1k;<a q=\'#\'>35 &2W;</a></1l>"}b{1I=A[v].W;1J=A[v].q;Y="<1l 5=\'1U\'>&1k;&1k;<a q=\'#\'>&2L; 2P</a></1l>"}}b{1o=1d;1H="1N "+(v+1)+" 2V "+(A.1m)}}}S=1t 1N();S.1c=9(){S.1c=K;6 1M=2B();6 x=1M[0]-25;6 y=1M[1]-25;6 k=S.o;6 j=S.s;3(k>x){j=j*(x/k);k=x;3(j>y){k=k*(y/j);j=y}}b 3(j>y){k=k*(y/j);j=y;3(k>x){j=j*(x/k);k=x}}12=k+30;1h=j+3b;$("#8").n("<a q=\'\' 5=\'2g\' W=\'1z\'><22 5=\'3t\' J=\'"+d+"\' o=\'"+k+"\' s=\'"+j+"\' 21=\'"+F+"\'/></a>"+"<4 5=\'3r\'>"+F+"<4 5=\'3v\'>"+1H+Y+O+"</4></4><4 5=\'3A\'><a q=\'#\' 5=\'X\' W=\'1z\'>1u</a> 1v 1p 1w</4>");$("#X").l(D);3(!(Y==="")){9 13(){3($(c).I("l",13)){$(c).I("l",13)}$("#8").r();$("p").n("<4 5=\'8\'></4>");1n(1I,1J,18);C U}$("#1U").l(13)}3(!(O==="")){9 1F(){$("#8").r();$("p").n("<4 5=\'8\'></4>");1n(1P,1O,18);C U}$("#1Y").l(1F)}c.1e=9(e){3(e==K){B=2K.2H}b{B=e.2G}3(B==27){D()}b 3(B==3e){3(!(O=="")){c.1e="";1F()}}b 3(B==3h){3(!(Y=="")){c.1e="";13()}}};Z();$("#H").r();$("#2g").l(D);$("#8").m({T:"V"})};S.J=d}b{6 24=d.2t(/^[^\\?]+\\??/,\'\');6 G=2F(24);12=(G[\'o\']*1)||3k;1h=(G[\'s\']*1)+2O||3n;Q=12;R=1h-3i;3(d.L(\'2I\')!=-1){1D=d.1Q(\'3d\');$("#14").r();3(G[\'1q\']!="1d"){$("#8").n("<4 5=\'1S\'><4 5=\'1y\'>"+F+"</4><4 5=\'1W\'><a q=\'#\' 5=\'X\' W=\'1z\'>1u</a> 1v 1p 1w</4></4><P 26=\'0\' 28=\'0\' J=\'"+1D[0]+"\' 5=\'14\' 1r=\'14"+1b.2f(1b.1A()*2d)+"\' 1c=\'1G()\' E=\'o:"+(Q+29)+"f;s:"+(R+17)+"f;\' > </P>")}b{$("#u").I();$("#8").n("<P 26=\'0\' 28=\'0\' J=\'"+1D[0]+"\' 5=\'14\' 1r=\'14"+1b.2f(1b.1A()*2d)+"\' 1c=\'1G()\' E=\'o:"+(Q+29)+"f;s:"+(R+17)+"f;\'> </P>")}}b{3($("#8").m("T")!="V"){3(G[\'1q\']!="1d"){$("#8").n("<4 5=\'1S\'><4 5=\'1y\'>"+F+"</4><4 5=\'1W\'><a q=\'#\' 5=\'X\'>1u</a> 1v 1p 1w</4></4><4 5=\'z\' E=\'o:"+Q+"f;s:"+R+"f\'></4>")}b{$("#u").I();$("#8").n("<4 5=\'z\' 3s=\'31\' E=\'o:"+Q+"f;s:"+R+"f;\'></4>")}}b{$("#z")[0].E.o=Q+"f";$("#z")[0].E.s=R+"f";$("#z")[0].3B=0;$("#1y").11(F)}}$("#X").l(D);3(d.L(\'2Z\')!=-1){$("#z").n($(\'#\'+G[\'2J\']).2i());$("#8").2E(9(){$(\'#\'+G[\'2J\']).n($("#z").2i())});Z();$("#H").r();$("#8").m({T:"V"})}b 3(d.L(\'2I\')!=-1){Z();3($.1E.33){$("#H").r();$("#8").m({T:"V"})}}b{$("#z").37(d+="&1A="+(1t 3a().2M()),9(){Z();$("#H").r();1C("#z a.1a-19");$("#8").m({T:"V"})})}}3(!G[\'1q\']){c.2n=9(e){3(e==K){B=2K.2H}b{B=e.2G}3(B==27){D()}}}}3g(e){}}9 1G(){$("#H").r();$("#8").m({T:"V"})}9 D(){$("#3c").I("l");$("#X").I("l");$("#8").3j("3l",9(){$(\'#8,#u,#1L\').3m("2E").I().r()});$("#H").r();3(2p c.p.E.2q=="2r"){$("p","11").m({s:"2s",o:"2s"});$("11").m("2o","")}c.1e="";c.2n="";C U}9 Z(){$("#8").m({3p:\'-\'+2k((12/2),10)+\'f\',o:12+\'f\'});3(!(2j.1E.3x&&2j.1E.3y<7)){$("#8").m({3w:\'-\'+2k((1h/2),10)+\'f\'})}}9 2F(1K){6 1i={};3(!1K){C 1i}6 1R=1K.1Q(/[;&]/);2l(6 i=0;i<1R.1m;i++){6 15=1R[i].1Q(\'=\');3(!15||15.1m!=2){2Q}6 2u=2m(15[0]);6 1g=2m(15[1]);1g=1g.2t(/\\+/g,\' \');1i[2u]=1g}C 1i}9 2B(){6 16=c.38;6 w=2A.2C||2z.2C||(16&&16.2D)||c.p.2D;6 h=2A.2v||2z.2v||(16&&16.2w)||c.p.2w;2x=[w,h];C 2x}9 2y(){6 1j=2Y.1j.1x();3(1j.L(\'2U\')!=-1&&1j.L(\'2R\')!=-1){C 1d}}',62,224,'|||if|div|id|var||TB_window|function||else|document|url||px||||imageHeight|imageWidth|click|css|append|width|body|href|remove|height||TB_overlay|TB_Counter||||TB_ajaxContent|TB_TempArray|keycode|return|wtb_remove|style|caption|params|TB_load|unbind|src|null|indexOf|this|urlType|TB_NextHTML|iframe|ajaxContentW|ajaxContentH|imgPreloader|display|false|block|title|TB_closeWindowButton|TB_PrevHTML|wtb_position||html|TB_WIDTH|goPrev|TB_iframeContent|KeyVal|de||imageGroup|thickbox|wizard|Math|onload|true|onkeydown|baseURL|val|TB_HEIGHT|Params|userAgent|nbsp|span|length|wtb_show|TB_FoundURL|Esc|modal|name|urlString|new|close|or|Key|toLowerCase|TB_ajaxWindowTitle|Close|random|imgLoader|wtb_init|urlNoQuery|browser|goNext|wtb_showIframe|TB_imageCount|TB_PrevCaption|TB_PrevURL|query|TB_HideSelect|pagesize|Image|TB_NextURL|TB_NextCaption|split|Pairs|TB_title|domChunk|TB_prev|jpg|TB_closeAjaxWindow|getElementById|TB_next|addClass|100|alt|img|match|queryString|150|frameborder||hspace||rel|bmp|png|1000|gif|round|TB_ImageOff|jpeg|children|jQuery|parseInt|for|unescape|onkeyup|overflow|typeof|maxHeight|undefined|auto|replace|key|innerHeight|clientHeight|arrayPageSize|wtb_detectMacXFF|self|window|wtb_getPageSize|innerWidth|clientWidth|unload|wtb_parseQuery|which|keyCode|TB_iframe|inlineId|event|lt|getTime|hidden|40|Prev|continue|firefox|blur|try|mac|of|gt|TB_overlayMacFFBGHack|navigator|TB_inline||TB_modal|TB_overlayBG|safari|get|Next|show|load|documentElement|urlTypeTemp|Date|60|TB_imageOff|TB_|190|ready|catch|188|45|fadeOut|630|fast|trigger|440|area|marginLeft|wtb_pathToImage|TB_caption|class|TB_Image|substr|TB_secondLine|marginTop|msie|version|input|TB_closeWindow|scrollTop'.split('|'),0,{}))
function processPrevious(cur_tab){prev_tab=cur_tab-1;disabled=$('#disabled-list').html();arr_tmp=disabled.split(',');if(arr_tmp.length>1){while(array_indexOf(arr_tmp,prev_tab)!==false){prev_tab-=1;}}
$("#wizard_tabs ul").tabs("enable",prev_tab);$("#wizard_tabs ul").tabs("select",prev_tab);$("#wizard_tabs ul").tabs("disable",cur_tab);}
function processNext(ctrl,step,is_multiple)
{$('div.processing').fadeIn('slow');var criteria_value="";if(is_multiple){$(ctrl).filter('input:checked').each(function(){criteria_value+=$(this).val()+",";});if(criteria_value!=""){criteria_value=criteria_value.substring(0,criteria_value.length-1);}}else{criteria_value=$(ctrl).filter('input:checked').val();}
if(!criteria_value){criteria_value="";}
$.post(this_www_root+"index.php",{cmd:"product_selection_wizard",step:step,criteria_value:criteria_value},function(data){$('#TB_ajaxContent').html("");$('#TB_ajaxContent').html(data);$('div.processing').fadeOut('slow');});}
function close_wizard()
{$.get(this_www_root+"index.php",{cmd:"reset_wizard"});wtb_remove();}
function restart_wizard()
{$.get(this_www_root+"index.php",{cmd:"product_selection_wizard",restart:"true"},function(data){$('#TB_ajaxContent').html("");$('#TB_ajaxContent').html(data);});}
function array_indexOf(arr,val)
{for(var i=0;i<arr.length;i++){if(arr[i]==val){return i;}}
return false;}
function showProducts(application,volume,capability,color,security){var url=document.getElementById('products_list_link').href
if(url.charAt(url.length-1)!="/"){url+="/";}
if(application!=""){url+='Applications/'+application.replace(/ /g,'_')+'/';}
if(volume!=""){url+='Printing_Volume/'+volume.replace(/ /g,'_')+'/';}
if(capability!=""){url+='Capabilities/'+capability.replace(/ /g,'_')+'/';}
if(color!=""){url+='Color_Type/'+color.replace(/ /g,'_')+'/';}
if(security!=""){url+='Security/'+security.replace(/ /g,'_')+'/';}
document.location.href=url;}
$(document).ready(function(){switch(page)
{case"comparison":$('#comparison').flexigrid({height:'450',striped:false});break;}});$(document).ready(function(){$('#nextproduct1').bind('click',next_featured);$('#prevproduct1').bind('click',previous_featured);});$('#prevproduct1').unbind('click').animate({'opacity':'.5'},400);var total_featured_products_added=5;var current_featured_product_pointer=5;var type_featured="Featured";var sliding_width=0;switch(site_name)
{case"document-camera":sliding_width=217;break;case"martinyale-machines":sliding_width=200;break;case"kobrashredder":sliding_width=205;break;case"buy-zebra-printers":sliding_width=167;break;case"videoconferencing-system":sliding_width=193;break;default:sliding_width=172;break;}
function next_featured(){$('#prevproduct1').bind('click',previous_featured).animate({'opacity':'1'},400);$('#nextproduct1').unbind('click').animate({'opacity':'.5'},400);var slider_left_position=document.getElementById("slideContainer").style.left;slider_left_position=slider_left_position.replace(/px/i,'');if(current_featured_product_pointer==total_featured_products_added){var featured_product_ids=$('#featuredProductIds').val();$.getJSON(this_www_root+"ajax.php?cmd=get_featured_product",{Total_Products:total_featured_products_added,Site_Name:site_name,Template_Images_Path:this_images_web,Current_Featured_Product_Ids:featured_product_ids,THIS_WWW_ROOT:this_www_root,TYPE:type_featured},function(data){var status=data["status"];var featured_product_html=data["featured_product_html"];var product_exists=data["product_exists"];var next_featured_product_id=data["next_featured_product_id"];if(status==false){alert('There was an Error with the request!');}
else{if(product_exists==true){$('#slideContainer').append(featured_product_html);var new_position=parseInt(slider_left_position)-parseInt(sliding_width);$("#slideContainer").stop(true,true).animate({left:new_position+'px'},600,'linear',function(){$('#nextproduct1').bind('click',next_featured).animate({'opacity':'1'},400);});current_featured_product_pointer++;total_featured_products_added++;$('#featuredProductIds').val(featured_product_ids+next_featured_product_id+':');}else{current_featured_product_pointer=5;var new_position=0;$("#slideContainer").stop(true,true).animate({left:new_position+'px'},600,'linear',function(){$('#nextproduct1').bind('click',next_featured).animate({'opacity':'1'},400);$('#prevproduct1').unbind('click').animate({'opacity':'.5'},400);});}}});}else{var new_position=parseInt(slider_left_position)-parseInt(sliding_width);$("#slideContainer").stop(true,true).animate({left:new_position+'px'},600,'linear',function(){$('#nextproduct1').bind('click',next_featured).animate({'opacity':'1'},400);});current_featured_product_pointer++;}}
function previous_featured(){var slider_left_position=document.getElementById("slideContainer").style.left;slider_left_position=slider_left_position.replace(/px/i,'');if(slider_left_position==0){$('#prevproduct1').unbind('click').animate({'opacity':'.5'},400);}
else{$('#prevproduct1').unbind('click').animate({'opacity':'.5'},400);var new_position=parseInt(slider_left_position)+parseInt(sliding_width);if(new_position==0){$("#slideContainer").stop(true,true).animate({left:new_position+'px'},600,'linear',function(){$('#prevproduct1').unbind('click').animate({'opacity':'.5'},400);});}else{$("#slideContainer").stop(true,true).animate({left:new_position+'px'},600,'linear',function(){$('#prevproduct1').bind('click',previous_featured).animate({'opacity':'1'},400);});}
current_featured_product_pointer--;}}$(document).ready(function(){$('#bestselling_next').bind('click',next_bestselling);$('#bestselling_prev').bind('click',previous_bestselling);});$('#bestselling_prev').unbind('click').animate({'opacity':'.5'},400);var total_bestselling_products_added=5;var current_bestselling_product_pointer=5;var type_bestselling="Best_Selling";var sliding_width=0;switch(site_name)
{case"document-camera":sliding_width=217;break;case"martinyale-machines":sliding_width=200;break;case"kobrashredder":sliding_width=205;break;case"videoconferencing-system":sliding_width=193;break;default:sliding_width=172;break;}
function next_bestselling(){$('#bestselling_prev').bind('click',previous_bestselling).animate({'opacity':'1'},400);$('#bestselling_next').unbind('click').animate({'opacity':'.5'},400);var slider_left_position=document.getElementById("slideContainerBestselling").style.left;slider_left_position=slider_left_position.replace(/px/i,'');if(current_bestselling_product_pointer==total_bestselling_products_added){var bestselling_product_ids=$('#bestsellingProductIds').val();$.getJSON(this_www_root+"ajax.php?cmd=get_featured_product",{Total_Products:total_bestselling_products_added,Site_Name:site_name,Template_Images_Path:this_images_web,Current_Featured_Product_Ids:bestselling_product_ids,THIS_WWW_ROOT:this_www_root,TYPE:type_bestselling},function(data){var status=data["status"];var bestselling_product_html=data["featured_product_html"];var product_exists=data["product_exists"];var next_bestselling_product_id=data["next_featured_product_id"];if(status==false){alert('There was an Error with the request!');}
else{if(product_exists==true){$('#slideContainerBestselling').append(bestselling_product_html);var new_position=parseInt(slider_left_position)-parseInt(sliding_width);$("#slideContainerBestselling").stop(true,true).animate({left:new_position+'px'},600,'linear',function(){$('#bestselling_next').bind('click',next_bestselling).animate({'opacity':'1'},400);});current_bestselling_product_pointer++;total_bestselling_products_added++;$('#bestsellingProductIds').val(bestselling_product_ids+next_bestselling_product_id+':');}else{current_bestselling_product_pointer=5;var new_position=0;$("#slideContainerBestselling").stop(true,true).animate({left:new_position+'px'},600,'linear',function(){$('#bestselling_next').bind('click',next_bestselling).animate({'opacity':'1'},400);$('#bestselling_prev').unbind('click').animate({'opacity':'.5'},400);});}}});}else{var new_position=parseInt(slider_left_position)-parseInt(sliding_width);$("#slideContainerBestselling").stop(true,true).animate({left:new_position+'px'},600,'linear',function(){$('#bestselling_next').bind('click',next_bestselling).animate({'opacity':'1'},400);});current_bestselling_product_pointer++;}}
function previous_bestselling(){var slider_left_position=document.getElementById("slideContainerBestselling").style.left;slider_left_position=slider_left_position.replace(/px/i,'');if(slider_left_position==0){$('#bestselling_prev').unbind('click').animate({'opacity':'.5'},400);}
else{$('#bestselling_prev').unbind('click').animate({'opacity':'.5'},400);var new_position=parseInt(slider_left_position)+parseInt(sliding_width);if(new_position==0){$("#slideContainerBestselling").stop(true,true).animate({left:new_position+'px'},600,'linear',function(){$('#next_bestselling').unbind('click').animate({'opacity':'.5'},400);});}else{$("#slideContainerBestselling").stop(true,true).animate({left:new_position+'px'},600,'linear',function(){$('#next_bestselling').bind('click',previous_bestselling).animate({'opacity':'1'},400);});}
current_bestselling_product_pointer--;}}
