
	$(document).ready(function(){
		/*
		var horizontalmenudiv = $('#horizontalmenudiv').width();
		var horizontalmenu = $('.horizontalmenu').width();
		var horizontal_padding = (horizontalmenudiv - horizontalmenu) / 2;
		$('#horizontalmenudiv').css('padding-left', horizontal_padding + 'px');
		$('#horizontalmenudiv').css('width', (horizontalmenudiv - horizontal_padding) + 'px');
		*/
	});

function modify_wrapper_out()
	{
		//alert('ASD');
		var wrapper_out_height = $('#wrapper_out').height();
		if(wrapper_out_height < 833)
			{
				$('#wrapper_out').css('height', '833px');
			}
	}

function modify_wrapper_out_start()
	{
		var wrapper_out_height = $('#wrapper_out').height();
		var wrapper_footer_height = $('#wrapper_footer').height();
		var windowheight = $(window).height();
		var minus = windowheight - wrapper_out_height + wrapper_footer_height;
		
		if(windowheight > wrapper_out_height)
			{
				//alert('!! '+minus);
				$('#wrapper_footer').css('height', minus+'px');
			}

		if(wrapper_out_height < 849)
			{
				//$('#wrapper_footer').css('height', '200px');
			}
		//alert();
	}
	
	function cleanurl_copy(selectvalue,id)
		{
			//alert('asd ' + selectvalue);
			$('#' + id).val(selectvalue);
		}

	function references_details_image_change(imgurl)
		{
			/*
			alert(imgurl);
			$($('#references_details_nagykep').fadeOut(500)).ready(function(){
			$('#references_details_nagykep').attr('src', imgurl);
			});

			//$('#references_details_nagykep').attr('src', imgurl);
			setTimeout("$('#references_details_nagykep').fadeIn(500);", 2510);
			//document.getElementById('references_details_nagykep').src = imgsrc;
			*/

      var newsrc = imgurl;
      var actsrc = $('#references_details_nagykep').attr('src');
      
      //if azert kell, hogy ha ugyan arra a kepre kattint, ami kint van nagyban, akkor ne cserelje az src-t, mert akkor minek :)
      if(newsrc !== actsrc)
      	{
		      $('#references_details_nagykep').fadeOut(300, function(){
		            $(this).attr('src',imgurl).bind('onreadystatechange load', function(){
		                  if (this.complete) $(this).fadeIn(300);
		            });
		       }); 
				}
		}


