jQuery(document).ready(function(){
	    
	resize_handler();
		
	window.onresize = function() {
		resize_handler();
	};
	
	function resize_handler() {
		var winW =0;
			
		if (document.body && document.body.offsetWidth) {
			winW = document.body.offsetWidth;
		} else if (document.compatMode=='CSS1Compat' &&
			document.documentElement &&
			document.documentElement.offsetWidth ) {
			winW = document.documentElement.offsetWidth;
		} else if (window.innerWidth && window.innerHeight) {
			winW = window.innerWidth;
		}
		
		if ((winW>1085)) {
    		jQuery(".bo_docklink").css('display', 'block'); // you can also use $(".yourClass").hide();
    	} else if ((winW<=1085))  {
    		jQuery(".bo_docklink").css('display', 'none'); // here you can also use show();
    	}
	}
   

jQuery('#contactform').submit(function(){

	var action = jQuery(this).attr('action');

	jQuery('#submit')
		.before('<img src="'+$_SKIN_URL+'quickcontact/images/opc-ajax-loader.gif" class="loader" style="padding-right:10px;"/>')
        
		.attr('disabled','disabled');

    
	jQuery.post(action, { 
		name: jQuery('#name').val(),
		email: jQuery('#email').val(),
		telephone: jQuery('#telephone').val(),
		comment: jQuery('#comment').val()
	},
		function(data){
			jQuery('#contactform #submit').attr('disabled','');
			jQuery('.response').remove();
			jQuery('#contactform').before('<span class="response">'+data+'</span>');
			jQuery('.response').slideDown();
			jQuery('#contactform img.loader').fadeOut(500,function(){jQuery(this).remove()});
		}
	);

	return false;

});
});
