Your IP : 172.70.80.239


Current Path : /var/www/element/data/www/greenpr.ru/bitrix/templates/t1/js/
Upload File :
Current File : /var/www/element/data/www/greenpr.ru/bitrix/templates/t1/js/common.js



var $j = jQuery.noConflict();
$j(function(){
	// Dialog
	$j('#dialog').dialog({
		autoOpen: false,
		width: 600,
		modal: true,
		
	});

	// Dialog Link
	$j('#dialog_link').click(function(){
		$j('#dialog').dialog('open');
		return false;
	});
		
	$j('#dialog_link2').click(function(){
		$j('#dialog').dialog('open');
		return false;
	});
			
	//hover states on the static widgets
	$j('#dialog_link, ul#icons li').hover(
		function() { $j(this).addClass('ui-state-hover'); }, 
		function() { $j(this).removeClass('ui-state-hover'); }
	);

	if ($j(window).width() > 1140) {
		$j('.element-form-container').show();
	}

	$j(window).resize(function(){
		if ($j(this).width() < 1140) {
			$j('.element-form-container').hide();
		}
		else {
			$j('.element-form-container').show();
		}
	})
});