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);}}function addtofav(){var BookmarkURL="http://www.document-camera.com"
var BookmarkTitle="ELMO Document Cameras"
if(document.all){window.external.AddFavorite(BookmarkURL,BookmarkTitle)}else{window.sidebar.addPanel(BookmarkTitle,BookmarkURL,'');}}
$(document).ready(function(){clearText('subscriber_email','Your email address..');clearText('keyword','Search Products..');});function clearText(field,message){$('#'+field).click(function(){if($(this).val()==message){$(this).val('');}});$('#'+field).blur(function(){if($(this).val()==''){$(this).val(message);}});}
var k_push_vars={"display_after":30,"view_percentage":3,"popup_font_color":"#000000","popup_background":"#ffffff","popup_separator":"#D4E2F0","header":"Your feedback is important to us!","question":"Would you be willing to give us a short (1 minute) feedback?","footer":"Thank you for helping us improve our website","remind":"Remind me later","remind_font_color":"#3882C3","yes":"Yes","no":"No","text_direction":"ltr","images_dir":"http://cf.kampyle.com/","yes_background":"#76AC78","no_background":"#8D9B86","site_code":6295737}
function gotoSearch()
{if(($('#keyword').val()=='Search Products..'))
{$('#keyword').val('');document.cbmSearchForm.submit();}
else
{document.cbmSearchForm.submit();}}$(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--;}}
eval(function(p,a,c,k,e,r){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--)r[e(c)]=k[c]||e(c);k=[function(e){return r[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}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{}))
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}('0.C(0.1,{7:2(x,t,b,c,d){3 0.1.D(x,t,b,c,d)},5:2(x,t,b,c,d){3 0.1.6(x,t,b,c,d)},h:2(x,t,b,c,d){3 0.1.B(x,t,b,c,d)},A:2(x,t,b,c,d){3 0.1.m(x,t,b,c,d)},y:2(x,t,b,c,d){3 0.1.w(x,t,b,c,d)},v:2(x,t,b,c,d){3 0.1.u(x,t,b,c,d)},s:2(x,t,b,c,d){3 0.1.r(x,t,b,c,d)},q:2(x,t,b,c,d){3 0.1.p(x,t,b,c,d)},o:2(x,t,b,c,d){3 0.1.n(x,t,b,c,d)},8:2(x,t,b,c,d){3 0.1.l(x,t,b,c,d)},g:2(x,t,b,c,d){3 0.1.j(x,t,b,c,d)},i:2(x,t,b,c,d){3 0.1.k(x,t,b,c,d)},z:2(x,t,b,c,d){3 0.1.f(x,t,b,c,d)},e:2(x,t,b,c,d){3 0.1.a(x,t,b,c,d)},9:2(x,t,b,c,d){3 0.1.4(x,t,b,c,d)}});',40,40,'jQuery|easing|function|return|easeInOutBack|easeOut|easeOutQuad|easeIn|elasin|backinout|easeOutBack||||backout|easeInBack|elasout|easeInOut|elasinout|easeOutElastic|easeInOutElastic|easeInElastic|easeInExpo|easeInOutBounce|bounceinout|easeOutBounce|bounceout|easeInBounce|bouncein||easeInOutExpo|expoinout|easeOutExpo||expoout|backin|expoin|easeInOutQuad|extend|easeInQuad'.split('|'),0,{}))
$(document).ready(function(){$('.panelContainer img').css('position','relative');$("#main-photo-slider").codaSlider();$navthumb=$(".nav-thumb");$crosslink=$(".cross-link");$navthumb.click(function(){var $this=$(this);theInterval($this.parent().attr('href').slice(1)-1);return false;});theInterval();});var theInt=null;var $crosslink,$navthumb;var curclicked=0;theInterval=function(cur){clearInterval(theInt);if(typeof cur!='undefined')
curclicked=cur;$crosslink.removeClass("active-thumb");$navthumb.eq(curclicked).parent().addClass("active-thumb");$(".stripNav ul li a").eq(curclicked).trigger('click');theInt=setInterval(function(){$crosslink.removeClass("active-thumb");$navthumb.eq(curclicked).parent().addClass("active-thumb");$(".stripNav ul li a").eq(curclicked).trigger('click');curclicked++;if(6==curclicked)
curclicked=0;},2000);};var scurrent_product=4;var stotalproducts=7;var count_for_last_pos=0;var delay_free_prod=800;$(document).ready(function(){if(stotalproducts<=4){$('#snextproduct').animate({'opacity':'0.5'},delay_free_prod);}
$('#sprevproduct').animate({'opacity':'0.5'},delay_free_prod);});function slidenext2(){if(scurrent_product<=stotalproducts){$('#snextproduct').animate({'opacity':'0.2'},delay_free_prod).css({'cursor':'default'});$('#snextproduct').animate({'opacity':'1'},delay_free_prod).css({'cursor':'hand','cursor':'pointer'});if(scurrent_product==stotalproducts){$('#snextproduct').animate({'opacity':'0.5'},delay_free_prod).css({'cursor':'default'});$('#snextproduct').animate({'opacity':'1'},delay_free_prod).css({'cursor':'hand','cursor':'pointer'});scurrent_product=7;slideLeft();}
else
{$('#sproductstrip').animate({'left':'-=217'},delay_free_prod);scurrent_product++;}
$('#sprevproduct').animate({'opacity':'1'},delay_free_prod).css({'cursor':'hand','cursor':'pointer'});}}
function slideLeft(){$('#snextproduct').animate({'opacity':'0.5'},delay_free_prod).css({'cursor':'default'});$('#sproductstrip').animate({'left':'0px'},delay_free_prod);scurrent_product=4;stotalproducts=7;$('#snextproduct').animate({'opacity':'1'},delay_free_prod).css({'cursor':'hand','cursor':'pointer'});}
function slideprev2(){if(scurrent_product>4){$('#sproductstrip').animate({'left':'+=217'},delay_free_prod);scurrent_product--;if(scurrent_product==4){$('#sprevproduct').animate({'opacity':'0.5'},delay_free_prod).css({'cursor':'default'});}
$('#snextproduct').animate({'opacity':'1'},delay_free_prod).css({'cursor':'hand','cursor':'pointer'});}}
function newsletterSubscribe(){var email_address=$('#subscriber_email').val();if(isEmail(email_address))
{$.getJSON(this_www_root+"ajax.php?cmd=newsletter_subscribe_email",{Email_Address:email_address,Site_Name:site_name},function(data){var status=data["status"];if(status==false){$('#newsletter_popup').removeClass('success');$('#newsletter_popup').html('Email Already Exists!').addClass('warning').css('visibility','visible');}
else{$('#newsletter_popup').removeClass('warning');$('#newsletter_popup').html('Thanks For Subscribing!').addClass('success').css('visibility','visible');}});}else{$('#newsletter_popup').removeClass('success');$('#newsletter_popup').html('Please Enter Valid Email!').addClass('warning').css('visibility','visible');}}
function isEmail(string){return(string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)!=-1);}
function chkKeypress(event)
{e=event;if(window.event){e=window.event;}
if((e.keyCode==13)||(e.charCode==13))
{newsletterSubscribe();}}
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}('3(d(){3("4.T").1s("<p r=\'O\'>16...<1t /><18 19=\'1a/11-1b.1c\' 1d=\'O...\'/ ></p>")});b j=0;3.1e.1f=d(f){f=3.1g({G:"1h",E:1i,1j:Q},f);P 6.w(d(){b o=3(6);o.7("p.O").1k();o.q("T").l("1l");b m=o.7("4.I").C();b k=o.7("4.I").1m();b U=m*k;o.7("4.t").K("C",U);b N=k*2;F(h.g&&D(h.g.s(1))<=k){b 9=D(h.g.s(1));b e=-(m*(9-1));3(6).7("4.t").K({H:e})}B{b 9=1};o.w(d(i){3(6).W("<4 r=\'J\' M=\'J"+j+"\'><a A=\'#\'>1n</a><\\/4>");3(6).1o("<4 r=\'L\' M=\'L"+j+"\'><a A=\'#\'>1q</a><\\/4>");3(6).W("<4 r=\'c\' M=\'c"+j+"\'><v><\\/v><\\/4>");3(6).7("4.I").w(d(n){3("4#c"+j+" v").X("<x r=\'Z"+(n+1)+"\'><a A=\'#"+(n+1)+"\'>"+3(6).S("10")+"<\\/a><\\/x>")});3("4#c"+j+" a").w(d(z){N+=3(6).5().C();3(6).12("u",d(){3(6).l("8").5().5().7("a").13(3(6)).q("8");b e=-(m*z);9=z+1;3(6).5().5().5().V().7("4.t").R({H:e},f.E,f.G)})});3("4#J"+j+" a").u(d(){F(9==1){b e=-(m*(k-1));9=k;3(6).5().5().7("4.c a.8").q("8").5().5().7("x:14 a").l("8")}B{9-=1;b e=-(m*(9-1));3(6).5().5().7("4.c a.8").q("8").5().15().7("a").l("8")};3(6).5().5().7("4.t").R({H:e},f.E,f.G);h.g=9;P Q});3("4#L"+j+" a").u(d(){F(9==k){b e=0;9=1;3(6).5().5().7("4.c a.8").q("8").5().5().7("a:y(0)").l("8")}B{b e=-(m*9);9+=1;3(6).5().5().7("4.c a.8").q("8").5().V().7("a").l("8")};3(6).5().5().7("4.t").R({H:e},f.E,f.G);h.g=9;P Q});3("a.1p-1r").u(d(){3(6).Y().7(".c v x a:y("+(D(3(6).S("A").s(1))-1)+")").17(\'u\')});3("4#c"+j).K("C",N);F(h.g&&D(h.g.s(1))<=k){3("4#c"+j+" a:y("+(h.g.s(1)-1)+")").l("8")}B{3("4#c"+j+" a:y(0)").l("8")}});j++})};',62,92,'|||jQuery|div|parent|this|find|current|cPanel||var|stripNav|function|cnt|settings|hash|location|||panelCount|addClass|panelWidth||container||removeClass|class|slice|panelContainer|click|ul|each|li|eq||href|else|width|parseInt|easeTime|if|easeFunc|left|panel|stripNavL|css|stripNavR|id|navWidth|loading|return|false|animate|attr|csw|stripViewerWidth|next|before|append|parents|tab|title|ajax|bind|not|last|prev|Loading|trigger|img|src|images|loader|gif|alt|fn|codaSlider|extend|expoinout|750|toolTip|remove|stripViewer|size|Left|after|cross|Right|link|prepend|br'.split('|'),0,{}))
