// JavaScript Document

function harmasdobozok() {$("ul.harmas li").each(function(){$(this).height( $(this).parent().height()-12 );});}
		
$(document).ready(function() {
	
	//Kezdolapon hármasosztású dobozok egyforma magasságra hozása soronként:
	harmasdobozok();
	
	//Partnerok scroller
	$("div#makeMeScrollable").smoothDivScroll({
			scrollingSpeed: 8,
			mouseDownSpeedBooster: 3,
			autoScroll: "",
			visibleHotSpots: "",
			startAtElementId: "startAtMe"});	
	
	//Keresomezo kiürítése klikkre
	$("#kereso").one( "click", ( function() {$(this).val("")}) );
	
	$("#idi").click(function() {
							var scriptUrl = "http://idi.hu/common/service/requestparser?name=captcha"; 
							$.getScript(scriptUrl, function(){  
							$("#result").html("");  
							});
							 $("#idi_box").dialog({
												   modal: true,
												   width: 360,
												   resizable: false
												   }).dialog("open");
				
							 return false;
					});
	
	$("#idi_box .switcher").click(function() {
		$("#login").toggle();
		$("#register").toggle();
		boxheight = $("#idi_box .heightometer").height();
		$("#idi_box").css("height", boxheight+"px");
	});

$("#kezdolapklikk").click(function() {
							 $("#kezdolapdoboz").dialog({
												   modal: true,
												   width: 500,
												   resizable: false
												   }).dialog("open");
				
							 return false;
					});
					
});	



