function loadSidePannel() {
	document.getElementById('extraContentRight').style.width='200px';
	// document.getElementById('extraContentRight').style.background='red';
}
/* if (screen.availWidth > 1200) loadSidePannel(); /* */

$(document).ready(function() {
  /* INIT TOP MENU */
	$('#topMenu > li').bind('mouseover', jsddm_open);
	$('#topMenu > li').bind('mouseout',  jsddm_timer);
  
  $(".phone").limitkeypress({ rexp: /^([+]?|[(][+]?[\d]{0,5}[)]?)[\d]{0,18}$/ });
	$(".phone").attr('maxlength', 18);
  $(".email").limitkeypress({ rexp: /^[a-zA-Z0-9@\._-]*$/ });
  $('.numeric').limitkeypress({ rexp: /^[0-9]*$/ });
  $('.float').limitkeypress({ rexp: /^[0-9]{0,2}([\.,][0-9]{0,3})?$/ });
  $('.ci').limitkeypress({ rexp: /^[a-zA-Z]{0,2}[0-9]{0,5}$/ });
  $('.autoresize').autoResize().trigger('change');
});
document.onclick = jsddm_close;

/* INIT LEFT DROPDOWN MENU */
jQuery().ready(function(){
	jQuery('#vanzari').accordion();
	jQuery('#schimburi').accordion();
	jQuery('#diverse').accordion();
});

// ROLLOVER ICONS LAST ADDS
$(document).ready(function() {
	$('#divAddsSelector a>img').hover(function(){
		$(this).attr("src", $(this).attr("src").split("-grey.").join("."));
	}, function() { if ($(this).attr('id') != 'divAddsSelectorActive') {
		$(this).attr("src", $(this).attr("src").split(".").join("-grey."));	}
	});
	$('#divAddsSelectorActive').attr("src", "/apps/front/data/images/icons/all.png");	
});

