/*---------------------------------------product.js----------------------------------------------------*/
$(document).ready(function(){$('ul > li > div.product_container').find('span').hide();$('ul > li > div.product_container > a').mouseover(function(){$(this).find('span').show();}).mouseout(function(){$(this).find('span').hide();})
$('input').customInput();$('#err_msg').hide();$('#basket_msg').hide();$('#btnsubmit').bind('click',function(){if($('input[type=checkbox]:checked').length<=0){$('#err_msg').text("products Must be selected");$("#err_msg").show(700,"easeOutCirc");setTimeout(function(){$("#err_msg").hide(500,"easeInCirc");},5000);}
else{$("#submit_text").val("Submit");document.forms["myform"].submit();}})
$(".inquiry").bind('click',function(){var url_addProductToBasket='/addProduct.php';$.ajax({url:url_addProductToBasket,type:'POST',data:'productId='+$(this).attr("rel"),success:function(data){window.location="/myinquirybasket";}});});});var config={sensitivity:3,interval:200,over:showDiv,timeout:5000,out:hideDiv};$("#link").hoverIntent(config);function hideDiv(){$('#shopping_cart2').hide();}
function showDiv(){$('#shopping_cart2').slideDown();}
function setLocation(value,page,currPg,view){window.location="/category/"+page+"/view/"+view+"/page/"+currPg+"/limit/"+value;}
function checkAll(field){var chk=document.getElementsByName("product_list[]");for(i=0;i<=chk.length;i++){chk[i].checked=true;val=chk[i].value;document.getElementById("checked_"+val).setAttribute("class","checked");}}
function uncheckAll(field){var chk=document.getElementsByName("product_list[]");for(i=0;i<=chk.length;i++){chk[i].checked=false;val=chk[i].value;document.getElementById("checked_"+val).setAttribute("class","");}}
/*---------------------------------------product.js----------------------------------------------------*/



/*-------------------------------------------------- caurosel custom js lightbox---------------------------------------------------------------*/
jQuery(document).ready(function(){jQuery('#mycarousel').jcarousel({scroll:1,initCallback:mycarousel_initCallback,itemVisibleInCallback:mycarousel_itemVisibleOutCallbackBeforeAnimation});function mycarousel_itemVisibleOutCallbackBeforeAnimation(carousel,item,idx,state){$(item).bind('click',function(){$('#gallery > div:visible').hide();var cc=document.getElementById('sstest').value;$('#image_'+cc).fadeIn();$('#mycarousel >li ').removeClass("active");$(this).addClass("active");});};function mycarousel_initCallback(carousel,state){$('#gallery > div').hide();$('#image_1').fadeIn("slow");$('#mycarousel >li ').removeClass("active");$('.jcarousel-item-1').addClass('active');};$('#gallery a').lightBox();});

/*-------------------------------------------------- caurosel custom js lightbox---------------------------------------------------------------*/

/*----------------------------elastic.js--------------------------------------*/
// <![CDATA[
			$(document).ready(function(){			
				$('textarea').elastic();
			});	
			// ]]>
/*----------------------------elastic.js--------------------------------------*/


