function initSlide(){
	var _duration = 400; //in ms
	$('div.specialtab').each(function(){
		var _hold = $(this);
		var _box = _hold.find('div.holder');
		var _btn = _hold.find('div.btn-this');
		var _w = _box.width();
		if(_hold.hasClass('opened')) _box.show();
		else _box.hide();
		
		_btn.click(function(){
			if(_hold.hasClass('opened')){
				_hold.removeClass('opened');
				_box.stop().animate({width:0}, _duration, function(){
					$(this).css({display:'none', width:'auto'});
				});
			}
			else{
				_hold.addClass('opened');
				if(_box.is(':hidden')){
					_box.show();
					_w2 = _box.width();
					_box.width(0);
				}
				_box.stop().animate({width: _w2}, _duration, function(){ 
				})
			}
			return false;
		});
		
	});
}
$(document).ready(function(){
	initSlide();
    $('.flash-box').cycle({
		fx: 'fade',
        timeout: '5000'
	});
    $('.product-images').cycle({
		fx: 'fade',
        timeout: '5000'
	});
    $("#contactus-form").validate();

    $("#zoom-map").fancybox({
        'width'				: '100%',
		'height'			: '100%'
    });
});