// JavaScript Document

$(document).ready(function(){
          //
		  //
         $(".menu_elem").hover( function(){ $(this).children(".ul_menu").show() },
										function(){ $(this).children(".ul_menu").hide() } );
		 
		 $(".prod_box_info").click( function() {
						//
						iBox.padding = 50;
						iBox.default_width = 750;
						iBox.inherit_frames = false;
						
						var id = $(this).attr("id");
						var my_url = 'request.php?id=' + id;
						
						$.ajax({
						 	url: my_url,
                      		contentType: "text/html; charset=iso-8859-2",
						 	success: function(data) {
								iBox.show( data );
						  	},
						  	error: function(){
								iBox.show('Hiba a betöltéskor!');
							}
						});
						//
					} );
		 
		 $(".prod_img").click( function() {
						//
						var img = new Image();
						var pic = $(this).attr("src");
						
						img.src = pic;
						
						iBox.padding = 5;
						iBox.default_width = img.width;
						iBox.inherit_frames = false;
						
						var my_url = '<center><img src="' + pic + '" /></center>';
						
						iBox.show( my_url );
						//
					} );
		 
		 $(".eubox").click( function() {
						//
						iBox.padding = 50;
						iBox.default_width = 750;
						iBox.inherit_frames = false;
						
						var my_tag = '<div style="color:#000;"><p><center><img src="MTimages/Design/image001.jpg"></center></p><p align="center"><strong>A</strong></p><p align="center"><strong>MOCCA TEAM KFT.</strong></p><p align="center">ITALAUTOMAT&Aacute;K BESZERZ&Eacute;SE AZ EUR&Oacute;PAI UNI&Oacute; T&Aacute;MOGAT&Aacute;S&Aacute;VAL,<br />AZ &Uacute;J MAGYARORSZ&Aacute;G FEJLESZT&Eacute;SI TERV<br />GOP - 2009 - 2.1.1/A/2 AZONOS&Iacute;T&Oacute; SZ&Aacute;M&Uacute;<br />PROJEKT KERET&Eacute;BEN VAL&Oacute;SULT MEG.</p><p style="text-align: center;">A PROJEKT TELJES K&Ouml;LTS&Eacute;GE <strong>24.925.000<strong>.- FT</strong></strong> VOLT,<br />AMELYBŐL AZ EUR&Oacute;PAI UNI&Oacute; HOZZ&Aacute;J&Aacute;RUL&Aacute;SA <strong>8.723.750<strong>.-FT</strong></strong>.</p><p>&nbsp;</p><p><center><img src="MTimages/Design/image002.jpg">&nbsp;&nbsp;<img src="MTimages/Design/image003.jpg"></center></p></div>';
						
						iBox.show( my_tag );
						//
					} );
		 
		 var dur = 300;
		 
		 $("#lavazza").hover(
                 function(){
                     //
                     $(this).animate({
                         'margin-left': '-80px'
                     },{
                         duration: dur,
                         queue: false
                     });
                 },
                 function(){
					 //
                     $(this).animate({
                         'margin-left': '-38px'
                     },{
                         duration: dur
                     });
          });
		 
		 $("#grancafe").hover(
                 function(){
                     //
                     $(this).animate({
                         'margin-left': '-80px'
                     },{
                         duration: dur,
                         queue: false
                     });
                 },
                 function(){
					 //
                     $(this).animate({
                         'margin-left': '-38px'
                     },{
                         duration: dur
                     });
          });


})


