function idbs_popupWindow(url) {
	window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}

jQuery(document).ready(function($) {
	$colsH = [parseInt($('#idbs_site_content_mid').height()), parseInt($('#idbs_left_bar').height()), parseInt($('#idbs_right_bar').height())];
	$colMaxH = 0;
	for($x = 0; $x < $colsH.length; $x++) {
		if($colsH[$x] > $colMaxH) $colMaxH = $colsH[$x];
	}
	$('#idbs_left_bar').height($colMaxH);
	$('#idbs_right_bar').height($colMaxH);
	
	$('.idbs-template-button, .idbs-template-submit').hover(
	  function () {
		$(this).addClass('idbs-button-hover');
	  }, 
	  function () {
		$(this).removeClass('idbs-button-hover');
	  }
	).mousedown(function() {
		$(this).addClass('idbs-button-push');
	}).mouseup(function() {
		$(this).removeClass('idbs-button-push');
		$(this).addClass('idbs-button-hover');
	});
	
	if ( $.browser.msie ) {
	  if(parseInt($.browser.version) == 7) {
		  $('.idbs_login_button button').height(20);
	  }
	}
	
	$('#idbs_mainmenu').idbs_dropDownMenu({timer: 800, duration: 300});
});
