//plugin
jQuery.fn.topLink = function(settings) {
	settings = jQuery.extend({
		min: 1,
		fadeSpeed: 200,
		ieOffset: 50
	}, settings);
	return this.each(function() {
		//listen for scroll
		var el = $(this);
		el.css('display','none'); //in case the user forgot
		$(window).scroll(function() {
			//stupid IE hack
			if(!jQuery.support.hrefNormalized) {
				el.css({
					'position': 'absolute',
					'top': $(window).scrollTop() + $(window).height() - settings.ieOffset
				});
			}
			if($(window).scrollTop() >= settings.min)
			{
				el.fadeIn(settings.fadeSpeed);
			}
			else
			{
				el.fadeOut(settings.fadeSpeed);
			}
		});
	});
};
	
$.extend($.fn, {
  id : function () {
    return this.each(function () {
      $(this).attr("id", "jQuery_" + $.data(this));
    });
  }
});

jQuery(function($){
	$.datepicker.regional['el'] = {
		closeText: 'Κλείσιμο',
		prevText: 'Προηγούμενος',
		nextText: 'Επόμενος',
		currentText: 'Τρέχων Μήνας',
		monthNames: ['Ιανουάριος','Φεβρουάριος','Μάρτιος','Απρίλιος','Μάιος','Ιούνιος',
		'Ιούλιος','Αύγουστος','Σεπτέμβριος','Οκτώβριος','Νοέμβριος','Δεκέμβριος'],
		monthNamesShort: ['Ιαν','Φεβ','Μαρ','Απρ','Μαι','Ιουν',
		'Ιουλ','Αυγ','Σεπ','Οκτ','Νοε','Δεκ'],
		dayNames: ['Κυριακή','Δευτέρα','Τρίτη','Τετάρτη','Πέμπτη','Παρασκευή','Σάββατο'],
		dayNamesShort: ['Κυρ','Δευ','Τρι','Τετ','Πεμ','Παρ','Σαβ'],
		dayNamesMin: ['Κυ','Δε','Τρ','Τε','Πε','Πα','Σα'],
		dateFormat: 'dd/mm/yy', firstDay: 1,
		isRTL: false};
	$.datepicker.setDefaults($.datepicker.regional['el']);
});

function confirmDelete() {
	return confirm('Είστε σίγουροι πως θέλετε να διαγράψετε αυτό το αντικείμενο;');
}

var incr = 0;
$(document).ready(function() {
	//Back to top
	//set the link
	try {
		$('#top-link').corner();
		$('#top-link').topLink({
			min: 400,
			fadeSpeed: 500
		});
	
		//smoothscroll
		$('#top-link').click(function(e) {
			e.preventDefault();
			$.scrollTo(0,300);
		});
	} catch (e) {}
	
	$('button.submit').live('click', function () {
		$(this).parents('form').submit();
	});
	$('a[href="#"]').click(function () { return false; });
	$('div.logo').click(function () {
		window.location.href = 'index.php';
	});
	
	try { $('#grid_wrapper').corner(); $('#grid_wrapper2').corner(); } catch (e) {}
	try { $('table.grid').corner(); } catch (e) {}
	
	if (($('#serial').length > 0) || ($('#serial_number') > 0)) {
		$.mask.definitions['~']= '[A-Za-z0-9]' ;
		$('#serial').mask('~~~~~-~~~~~-~~~~~-~~~~~-~~~~~');
		$('#serial_number').mask('~~~~~-~~~~~-~~~~~-~~~~~-~~~~~');
	}
	
	//Textarea autoresize
	if ($('textarea.autoresize') > 0) {
		$('textarea.autoresize').autoResize({
		    // On resize:
		    onResize : function() {
		        $(this).css({opacity:0.8});
		    },
		    // After resize:
		    animateCallback : function() {
		        $(this).css({opacity:1});
		    },
		    // Quite slow animation:
		    animateDuration : 300//,
		    // More extra space:
		    //extraSpace : 40
		});
	}
	
	$('a.grid-info').toggle(
		//Even execute
		function () {
			$tr = $('#'+$(this).attr('rel'));
			$img = $('a[rel="'+$(this).attr('rel')+'"] img:first-child');
			$img.attr('src', 'img/icons/minus.png');
			$tr.fadeIn();
		},
		//Odd execute
		function () {
			$tr = $('#'+$(this).attr('rel'));
			$img = $('a[rel="'+$(this).attr('rel')+'"] img:first-child');
			$img.attr('src', 'img/icons/add.png');
			$tr.fadeOut();
		}
	);
	
	$("#featured").tabs(
		{fx:{opacity: "toggle"}},
		{select : function (event, ui) { 
			$prev = $(ui.tab).parents('li').prev();
			if (0 === $prev.length) {
				$prev = $(ui.tab).parents('ul').children('li:last');
			}
			
			$prev.children('a').children('img:first-child').filter(':hidden').next().fadeOut('fast', function () {
				$(this).prev().fadeIn('fast');
			});
			
			$(ui.tab).children('img').fadeOut(function () {				
				$(ui.tab).children('img:last').fadeIn('fast');				
			});
		}}
	).tabs("rotate", 5000, true);
	
	$("#featured").hover(function() {
		$("#featured").tabs("rotate",0,true);
	},function() {
		$("#featured").tabs("rotate",5000,true);
	});
	
	$("#tabs").tabs();
	$("div.tabs").tabs({
		select : function (event, ui) {
			if (0 < $('.formError').length) {
				$.validationEngine.closePrompt('.formError',true);
			}
		}
	});
	
	if (0 < $('div.show_msg').length) {
		$('div.show_msg').toggle(function () {
			$('.'+$(this).attr('lang')).fadeIn();
		}, function () {
			$('.'+$(this).attr('lang')).fadeOut();
		});
	}
	
	$('#expand_all').click(function () {
		$('.expand').fadeIn();
	});
	
	$('#concat_all').click(function () {
		$('.expand').fadeOut();
	});
	
	$('#show_replied').click(function () {
		if ($.browser.msie && (7 >= parseInt($.browser.version))) {
			$('.replied:hidden').fadeIn();
			$('.not_replied:visible').fadeOut();
			$('.canceled:visible').fadeOut();
		} else {
			$('.replied:hidden').slideDown();
			$('.not_replied:visible').slideUp();
			$('.canceled:visible').slideUp();
		}	
	});
	
	$('#show_not_replied').click(function () {
		if ($.browser.msie && (7 >= parseInt($.browser.version))) {
			$('.not_replied:hidden').fadeIn();
			$('.replied:visible').fadeOut();
			$('.canceled:visible').fadeOut();
		} else {
			$('.not_replied:hidden').slideDown();
			$('.replied:visible').slideUp();
			$('.canceled:visible').slideUp();
		}
	});
	
	$('#show_canceled').click(function () {
		if ($.browser.msie && (7 >= parseInt($.browser.version))) {
			$('.canceled:hidden').fadeIn();
			$('.not_replied:visible').fadeOut();
			$('.replied:visible').fadeOut();
		} else {
			$('.canceled:hidden').slideDown();
			$('.not_replied:visible').slideUp();
			$('.replied:visible').slideUp();
		}
	});
	
	$('a.solve_this').click(function () {
		var $id = $(this).attr('id');
		$('img.'+$id).show();
		$.ajax({
			type: 'POST',
			url: 'support_delete.php',
			data: {'delete' : '1', 'slv':'-1', 'k' : $(this).attr('rel')},
			dataType : 'json',
			success: function (o) {
				if (o.success) {
					$('img.'+$id).parents('span').fadeOut('normal', function () { $(this).remove(); })
				} else alert('Παρουσιάστηκε κάποιο σφάλμα, παρακαλώ δοκιμάστε αργότερα.');
			}
		});
	});
	
	$('a.support_hl').click(function () {
		var $id = $(this).attr('lang');
		var $rel = $(this).attr('rel');
		$('img.'+$id).show();
		$.ajax({
			type: 'POST',
			url: 'support_delete.php',
			data: {'delete' : '1', 'slv':'2', 'k' : $(this).attr('hreflang')},
			dataType : 'json',
			success: function (o) {
				if (o.success) {
					$('img.'+$id).parents('span').fadeOut('normal', function () { 
						$(this).remove();
						$('div.tabs:hidden').slideDown(1000, function () {
							$.scrollTo('#new_support', 500, {
								onAfter : function () {
									$('#highlight').effect('highlight', {}, 3000);
									$('#subject').val($rel);
									setTimeout(function () {
										$('#message').focus();
									}, 1);
								}
							});
						});
					})
				} else alert('Παρουσιάστηκε κάποιο σφάλμα, παρακαλώ δοκιμάστε αργότερα.');
			}
		});
	});
	
	if (0 < $('#support_errors').length) $.scrollTo('#support_errors', 500);
	
	$('#show_both').click(function () {
		if ($.browser.msie && (7 >= parseInt($.browser.version))) {
			$('.replied:hidden, .not_replied:hidden, .canceled:hidden').fadeIn();
		} else {
			$('.replied:hidden, .not_replied:hidden, .canceled:hidden').slideDown();
		}		
	});
	
	$('input.clearField').clearField();
	
	/*
	$('.autocomplete-tk').live('focus', function () {
		var options = {
			script:"search.addr.php?json=true&limit=10&",
			varname:"input",
			json:true,
			shownoresults:false,
			maxresults:10,
			elm_id : $(this).attr('id'),
			delay : 0,
			minchars:1,
			maxentries:10,
			timeout:5000,
			callback: function (obj) {
				var _curr = this.elm_id.replace('extra-address-','').replace('-tk','');
				var id = 'extra-address-'+_curr+'-';
				if ('tk' == _curr) id = '';
				$('#'+id+'odos').val(obj.data.odos);
				$('#'+id+'tk').val(obj.data.tk);
				$('#'+id+'perioxi').val(obj.data.perioxi);
				$('#'+id+'poli').val(obj.data.poli);
				$('#'+id+'nomos').val(obj.data.nomos);
				//For products
				if ('ftk' == _curr) id = '';
				$('#'+id+'faddress').val(obj.data.odos);
				$('#'+id+'ftk').val(obj.data.tk);
				$('#'+id+'fperioxi').val(obj.data.perioxi);
				$('#'+id+'fpoli').val(obj.data.poli);
				$('#'+id+'fnomos').val(obj.data.nomos_descr);
			}
		};
		
		new bsn.AutoSuggest($(this).attr('id'), options);
	});
	*/
	
	if (1 === $('#contacts-container').length) {
		$.ajax({
			type: 'GET',
			url: 'xdomain.php?action=get',
			dataType : 'json',
			data: {
				'key'		:	__KEY__,
				'id'		:	__UID__
			},
			success: function (r) {
				if (null !== r) {
					$(r).each(function (index, value) {
						$('.contacts-template').clone().removeClass('contacts-template').removeClass('hide').addClass('contact-'+value.persons_id).appendTo('#contacts-container').ready(function () {
							var _html = $('.contact-'+value.persons_id).attr('id', value.persons_id).html()
									.replace(/\{persons_pew\}/ig, value.persons_pew)
									.replace(/\{persons_pew_cat\}/ig, value.persons_pew_cat)
									.replace(/\{persons_pew_type\}/ig, value.persons_pew_type);
							
								_html = (null == value.persons_pew_type)?_html.replace(/null/ig, ''):_html;
							$('.contact-'+value.persons_id).html(_html);
						});
					});
				}
			}
		});
	}
	
	
	$('#persons_pew_cat').live('change', function() {
		if (2 == $(this).val()) {
			$('.persons_pew_type_container').slideDown();
		} else {
			$('.persons_pew_type_container').slideUp();
		}
		if (1 == $(this).val()) {
			$('.persons_pew_type_containertil').slideDown();
		} else {
			$('.persons_pew_type_containertil').slideUp();
		}
		
	});
	
	
	if ($('#apostoli-same').is(':checked')) {
		$('.apostoli-same-form').hide();
		$('.apostoli-same-msg').show();
		$('.apostoli-same-form input').removeClass('validate[required]').removeClass('validate[required,custom[onlyNumber]]');
	}
	$('#apostoli-same').live('change', function (e) {
		if ($(this).is(':checked')) {
			$('.apostoli-same-form').slideUp('normal', function () {
				$('.apostoli-same-msg').slideDown();
				$('.apostoli-same-form input').removeClass('validate[required]');
			});
		} else {
			$('.apostoli-same-msg').slideUp('normal', function () {
				$('.apostoli-same-form').slideDown('slow');
				$('.apostoli-same-form input').addClass('validate[required]');
			});
		}
	});
	
	
	var extraInrement = 0;
	$('#add-new-contact').live('click', function() {
		var $btnClick = $(this);
		
		if (2 !== $('#persons_pew_cat').val()) {
			$('.persons_pew_type_container').hide();
		} else {
			$('.persons_pew_type_container').show();
		}
		
		$.prompt($('#persons_pew_container').html(), {
			prefix:'jqismooth',
			buttons: { 'Άκυρο': false, 'Προσθήκη': true },
			submit : function (v, m, f) {
				if (v) {
					if ('' == $.trim(f.persons_pew)) {
						alert('Το στοιχείο επικοινωνίας δεν πρέπει να είναι κενό.');
						return false;
					}
					
					if ((2 == f.persons_pew_cat) && (!(/^[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,6}$/i.test(f.persons_pew)))) {
						alert('Άκυρη διεύθυνση ηλεκτρονικού ταχυδρομείου.');
						return false;
					}
					
					if ((1 == f.persons_pew_cat) && (!(/^[0-9]{10}$/i.test(f.persons_pew)))) {
						alert('Άκυρος αριθμός τηλεφώνου.');
						return false;
					}
					
					if ((3 == f.persons_pew_cat) && (!(/^(https?|ftp):\/\/([\-A-Z0-9.]+)(\/[\-A-Z0-9+&@#\/%=~_|!:,.;]*)?(\?[A-Z0-9+&@#\/%=~_|!:,.;]*)?$/i.test(f.persons_pew)))) {
						alert('Άκυρο URL.');
						return false;
					}
					
					
					$('.contacts-template').clone().removeClass('contacts-template').removeClass('hide').addClass('contact-'+extraInrement).appendTo('#contacts-container-'+$btnClick.attr('lang')).ready(function () {
						var _html = $('.contact-'+extraInrement).html()
							.replace(/\{persons_pew\}/ig, f.persons_pew)
							.replace(/\{pew_cat\}/ig, f.persons_pew_cat)
							.replace(/\{uid\}/ig, 'jq_'+($('.extra_contact').length + 1))
							.replace(/\{dummy-0\}/ig, $btnClick.attr('lang'));
						
						switch (f.persons_pew_cat) {
							case '1':
								_html = _html.replace(/\{persons_pew_cat\}/ig, 'Τηλέφωνο').replace(/\{pew_subcat\}/ig, 0).replace(/\{validation\}/ig, 'validate[optional,custom[telephone]]');
								break;
								
							case '2':
								_html = _html.replace(/\{persons_pew_cat\}/ig, 'E-Mail').replace(/\{pew_subcat\}/ig, f.persons_pew_type).replace(/\{validation\}/ig, 'validate[optional,custom[email]');;
								break;
								
							case '3':
								_html = _html.replace(/\{persons_pew_cat\}/ig, 'URL').replace(/\{pew_subcat\}/ig, 0).replace(/\{validation\}/ig, 'validate[optional,custom[validURL]]');
								break;
							
							default:
								break;
						}
						
						if (1 == f.persons_pew_cat) {
							switch (f.persons_pew_typetil) {
								case '100':
									_html = _html.replace(/\{persons_pew_type\}/ig, 'Εργασίας');
									break;
								case '101':
									_html = _html.replace(/\{persons_pew_type\}/ig, 'Fax');
									break;
								case '102':
									_html = _html.replace(/\{persons_pew_type\}/ig, 'Κινητό');
									break;
									
								default:
									_html = _html.replace(/\{persons_pew_type\}/ig, '');
									break;
							}
						}
						if (2 == f.persons_pew_cat) {
							switch (f.persons_pew_type) {
								case '1':
									_html = _html.replace(/\{persons_pew_type\}/ig, 'Διεύθυνσης');
									break;
									
								case '2':
									_html = _html.replace(/\{persons_pew_type\}/ig, 'Τεχνικών');
									break;
									
								case '3':
									_html = _html.replace(/\{persons_pew_type\}/ig, 'Γραμματείας');
									break;
						
								default:
									_html = _html.replace(/\{persons_pew_type\}/ig, '');
									break;
							}
						}						
						_html = _html.replace(/\{persons_pew_type\}/ig, '');

						$('.contact-'+extraInrement).html(_html);
						if (0 < $('img.direct-save').length) $('form.profile').submit();
					});
					
					/*
					$.ajax({
						type: 'GET',
						url: 'xdomain.php?action=add',
						dataType : 'json',
						data: {
							'key'		:	__KEY__,
							'person_id'	:	f.person_id,
							'thedata'	:	f.persons_pew,
							'cat'		:	f.persons_pew_cat,
							'type'		:	(2 == f.persons_pew_cat)?f.persons_pew_type:0
						},
						success: function (r) {
							if ((null !== r) && r.success) {
								$('.contacts-template').clone().removeClass('contacts-template').removeClass('hide').addClass('contact-'+r.id).appendTo('#contacts-container').ready(function () {
									var _html = $('.contact-'+r.id).attr('id', r.id).html()
										.replace(/\{persons_pew\}/ig, f.persons_pew)
										.replace(/\{persons_pew_cat\}/ig, $('#persons_pew_cat option[value="'+f.persons_pew_cat+'"]').text());
									
										_html = (2 == f.persons_pew_cat)?_html.replace(/\{persons_pew_type\}/ig, $('#persons_pew_type option[value="'+f.persons_pew_type+'"]').text()):_html.replace(/\{persons_pew_type\}/ig, '');
									$('.contact-'+r.id).html(_html);
								});
							} else alert('Παρουσιάστηκε κάποιο σφάλμα, παρακαλώ δοκιμάστε αργότερα.');
						}
					});
					*/
					extraInrement++;
				}
			}
		});
	});
	
	$('img.remove-contact').live('click', function () {
		if (confirm('Είστε σίγουροι πως θέλετε να διαγράψετε αυτό το αντικείμενο;')) {
			$container = $(this).parent();
			$container.fadeOut('fast', function () {
				$container.remove();
				if (0 < $('img.direct-save').length) $('form.profile').submit();
			});
			/*
			$.ajax({
				type: 'GET',
				url: 'xdomain.php?action=delete',
				dataType : 'json',
				data: {
					'key'		:	__KEY__,
					'id'		:	$container.attr('id')
				},
				success: function (r) {
					if (r.success) {
						$container.fadeOut('fast', function () {
							$container.remove();
						});
					} else alert('Παρουσιάστηκε κάποιο σφάλμα, παρακαλώ δοκιμάστε αργότερα.');
				}
			});
			*/
		}
	});	
	
	try {
		$('form').validationEngine({
			unbindEngine : false,
			promptPosition: "topRight", // OPENNING BOX POSITION, IMPLEMENTED: topLeft, topRight, bottomLeft,  centerRight, bottomRight
			validationEventTriggers:"blur",
			inlineValidation : true,
			failure : function () {
				setTimeout(function() {
					$.validationEngine.closePrompt('.formError',true);
				}, 10000);
			}
		});
	} catch (e) {}
	
	$('input, textarea').blur(function () {
		setTimeout(function() {
			$.validationEngine.closePrompt('.formError',true);
		}, 3000);
	});
	
	$('.expand-support').toggle(function () {
		$('div.tabs').slideUp(1000);
		$('img.expand-support').attr('src', 'img/icons/add.png');
	}, 
	function () {
		$('div.tabs').slideDown(1000);
		$('img.expand-support').attr('src', 'img/icons/minus.png');
	});
	
//	$('.click-disable').click(function () {
//		$(this).attr('disabled', 'disabled');
//	});
	
	$('.expand-history').toggle(function () {
		if ($.browser.msie && (7 >= parseInt($.browser.version))) {
			$('div.history_container').fadeIn();
		} else {
			$('div.history_container').slideDown(1000);
		}
		$('img.expand-history').attr('src', 'img/icons/minus.png');
	}, 
	function () {
		if ($.browser.msie && (7 >= parseInt($.browser.version))) {
			$('div.history_container').fadeOut();
		} else {
			$('div.history_container').slideUp(1000);
		}		
		$('img.expand-history').attr('src', 'img/icons/add.png');
	});
	
	if ($.browser.msie) {
		$('#serial_number').bind('keypress', function (e) {
			var code = (e.keyCode ? e.keyCode : e.which);
			if (13 == code) {
				$('#single_serial_support').submit(function () {
					$('#single_serial_support_btn').click();
					return false;
				});
			}
		});
	}
	
	$('#single_serial_support_btn').live('click', function () {
		var str = $('#serial_number').val();
		$('#serial_number').val(str.replace(/o/ig, "0"));
	});
	
	$('#dateexec_t').datepicker({
		showButtonPanel: true
	});
	
	$('#datesend_t').datepicker({
		showButtonPanel: true
	});
	
	$('.date-editable').datepicker({
		showButtonPanel: true,
		showOn : 'button',
		buttonImage : 'img/icons/calendar_view_day.png',
		buttonImageOnly : true,
		dateFormat : 'yy-mm-dd',
		altField : '#dt2',
		altFormat : 'dd MM yy',
		onClose : function (dateText, inst) {
			if (0 < $('#dt2').val().length) {
				$('#dt1').text($('#dt2').val());
			}
		}
	});
	
	$('img.clear').click(function (o) {
		var id = this.className.split(' ');
			id = id[1];
		
		$('#'+id).val('');
	});
	
	$('#buy_now').toggle(
		//Even execute
		function () {
			$('#buy_now_container').slideDown(2000);
		},
		//Odd execute
		function () {
			$.validationEngine.closePrompt('.formError',true);
			$('#buy_now_container').slideUp(500);
		}
	);
	
	$('#add-new-button').toggle(
			//Even execute
			function () {
				$('#add-new').slideDown(2000);
			},
			//Odd execute
			function () {
				$.validationEngine.closePrompt('.formError',true);
				$('#add-new').slideUp(500);
			}
	);
	
	$('#add-new-address').click(function() {
		$('fieldset.dummy').clone().removeClass('dummy').addClass('new-addr-'+incr).appendTo('#address-container').ready(function () {
			$('.new-addr-'+incr).html($('.new-addr-'+incr).html().replace(/\{dummy-0\}/ig, incr));//.replace(/-dummy\[0\]/ig, '['+incr+']'));
			$('.new-addr-'+incr).slideDown();
		});
		incr++;
		return false;
	});
	
	$('img.remove-addr').live('click', function () {
		if (confirm('Είστε σίγουροι πως θέλετε να διαγράψετε αυτό το αντικείμενο;')) {
			$(this).parent().parent().fadeOut('slow', function () {
				$(this).remove();
			});
		}
	});
	
	
	$('a.delete').click(function () {
		if (confirm('Είστε σίγουροι πως θέλετε να διαγράψετε αυτό το αντικείμενο;')) {
			$(this).find('img').attr('src', 'img/icons/spinner.gif');
			$.ajax({
				type: 'POST',
				url: $(this).attr('href'),
				data: {'delete' : '1'},
				success: function () {
					if ($('a[href='+this.url+']').hasClass('return')) {
						window.location.href = $('a[href='+this.url+']').attr('class').replace(/.*goto\[(.*)\]/ig, "$1");
					} else $('a[href='+this.url+']').closest('.news-container').fadeOut();
				}
			});
		}
		return false;
	});
	
	$('#symvasi_check').bind($.browser.msie? 'propertychange': 'change', function () {
		if ($(this).is(':checked')) {
			//$('button:disabled').removeClass('disabled').attr('disabled', null);
		} else {
			//$('button.positive').addClass('disabled').attr('disabled', 'disabled');
		}
	});
	
	$('#service_support').change(function() {
		if (1 == $(this).val()) {			
			$('#service_support_form').children('input[name="app"]').val('add');
		} else {
			$('#service_support_form').children('input[name="app"]').val('delete');
		}
		$('#service_support_form').submit();
	});
	
	$('input[name="pliromi"]:radio').bind($.browser.msie? 'propertychange':'change', function () {
		if (2 == $(this).val()) {
			$('#oroi_container input').addClass('validate[required]');
			$('#oroi_container').fadeIn();
			//$('button.positive').addClass('disabled').attr('disabled', 'disabled');
		} else {
			$('#oroi_container input').removeClass('validate[required]');
			$('#oroi_container').fadeOut();
			//$('button:disabled').removeClass('disabled').attr('disabled', null);
		}
	});
	
	try {
		$("#map").gMap({
			language	:	'gr',
			latitude	:	40.56916,
		    longitude	:	22.961175,
		    zoom		:	15,
		    controls	:	['GLargeMapControl3D', 'GScaleControl', "GMapTypeControl"],
		    scrollwheel	:	true,
		    markers		:	[{latitude: 40.56916, longitude: 22.961175, popup: true, html: '<h5 class="top bottom dotted-bottom title-text">Βρισκόμαστε εδώ!</h5><address class="quiet">INFOlearn Πίνδου 6 &amp; Καρατζά<br />55132, Καλαμαριά, Θεσσαλονίκη</address>'}]
		});
	} catch (e) {}
	
	$(".print-this").click(function(){
	    $('#'+$(this).attr('alt')).printArea();
	});
});