$(function() { $(".brand_view").colorbox({width:"460px", height:"600px"}); $(".size_view").colorbox({width:"750px", height:"400px"}); $(".slider").scrollable(); $(".slider1").scrollable(); var options2 = { zoomWidth: 460, zoomHeight: 519, title:false, position : 'right', xOffset :30 } $(".jqzoom").jqzoom(options2); var check; jQuery.each(jQuery.browser, function(i, val) { if(i=="mozilla") check = i; }); $(".text").css({opacity:"0"}); $("#productThumb .text").mouseover(function(){ if(check == "mozilla"){ $(this).css({opacity:"1"}); }else{ $(this).css({opacity:".8"}); } }).mouseout(function(){ $(this).css({opacity:"0"}); }); $('#pop_send').click(function() { alert('Handler for .click() called.'); }); var imgnum = 0; $('#productPageImages').cycle({ fx: 'fade', speed: 'fast', prev: '.prev', next: '.next', after: onAfter, timeout: 0, pagerAnchorBuilder: function(idx, slide) { imgnum = 1; } }); if(!imgnum){ $('#prev2').hide(); $('#next2').hide(); } /* $('#productPageImages').after('
').cycle({ fx: 'fade', speed: 'fast', timeout: 0, pager: '#productNav' pagerAnchorBuilder: function(idx, slide) { return ''; } }); */ }); function onAfter(curr, next, opts) { var index = opts.currSlide; $('.prev')[index == 0 ? 'hide' : 'show'](); $('.next')[index == opts.slideCount - 1 ? 'hide' : 'show'](); } function removeItem(id){ id = id.substr(1); $('#'+id).remove(); setCookie(id, "", -1); } function setCookie (name, value, seconds) { if (typeof(seconds) != 'undefined') { var date = new Date(); date.setTime(date.getTime() + (seconds*1000)); var expires = "; expires=" + date.toGMTString(); } else { var expires = ""; } document.cookie = name+"="+value+expires+"; path=/"; } function enquiryList(){ var arr = []; var fname = document.getElementById('fname').value; var email = document.getElementById('email').value; var allcookies = document.cookie; cookiearray = allcookies.split(';'); for(var i=0; i