

var addthis_brand = 'Megosztás';


$(document).ready(function() {
	jQuery(".imageZoom").imageZoom();
//	jQuery(".imageZoom").imageZoom({closeBtn : '<file>image:/tartalomMegjelenito/images/jquery.imageZoom.png</file>'});
	
	$('.share_iwiw').click(function(){
		u=location.href;t=document.title;window.open('http://iwiw.hu/pages/share/share.jsp?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'iwiwshare','toolbar=0,status=0,location=1, width=650,height=600,scrollbars=1');
	});
	
	$('.share_startlap').click(function(){
		window.open('http://www.startlap.hu/sajat_linkek/addlink.php?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title));
	});
	
	$('.share_facebook').click(function(){
		u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'facebookshare','toolbar=0,status=0,location=1, width=650,height=600,scrollbars=1');
	});
	
	$('.share_twitter').click(function(){
		u=location.href;t=document.title;window.open('http://twitter.com/home?status='+encodeURIComponent(t)+' '+encodeURIComponent(u),'twittershare','toolbar=0,status=0,location=1, width=650,height=600,scrollbars=1');
	});
	
	$('.share_myspace').click(function(){
		u=location.href;t=document.title;var targetUrl = 'http://www.myspace.com/index.cfm?fuseaction=postto&' + 't=' + encodeURIComponent(t)+ '&u=' + encodeURIComponent(u);window.open(targetUrl);
	});
	
	$('.share_google').click(function(){
		window.open('https://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title));
	});

	$('.tbar_font_decrase').click(function(t){
		var lb = $('.szovegNagyito');
        var size = $(lb).css("font-size");
        var newSize = parseInt(size.replace(/px/, "")) - 1;
        $(lb).css("font-size", newSize + "px");
	});
	
	
	$('.tbar_font_incrase').click(function(t){
		var lb = $('.szovegNagyito');
		var size = $(lb).css("font-size");
        var newSize = parseInt(size.replace(/px/, "")) + 1;
        $(lb).css("font-size", newSize + "px");
	});

	$('.tbar_print').click(function(t){
		window.print();
	});
	
});

