  $(document).ready(function(){
	
     $('.homeblock').find('h2').each(function(){
		var tmp_tekst = '';
		var tmp_color = '';
		$(this).find('cufontext').each(function(){
			tmp_color = $(this).css('color');
			tmp_tekst += $(this).html();
		});
		
     $(this).parent().prepend('<a href="#" class="h2link">'+tmp_tekst+'</a>');
     $(this).parent().prepend('<a style="display:none;color:#ffffff;" href="#" class="h2link2">'+tmp_tekst+'</a>');
     //alert($(this).parent().parent().attr('class'));
     //$(this).parent().parent().find('a').remove();
     $(this).parent().find('.h2link').css('color',tmp_color);
     $(this).parent().hover(function(){
     $(this).find('.h2link').hide();
     $(this).find('.h2link2').show();
     },function(){
     $(this).find('.h2link2').hide();
     $(this).find('.h2link').show();
     });
     $(this).remove();
     Cufon.replace('#tekstcontent .h2link', {hover: true,fontFamily: 'Chaparal' });
     Cufon.replace('#tekstcontent .h2link2', {hover: true,fontFamily: 'Chaparal' });
     //alert(tmp_tekst);
     });
                                    //home view
                                    if($('#tekstcontent').find('.homeblock').length != 0){
                                    $('#homeblock1').height() > $('#homeblock2').height() ? $('#homeblock2').height($('#homeblock1').height()) : $('#homeblock1').height($('#homeblock2').height());
                                    $('#homeblock3').height() > $('#homeblock4').height() ? $('#homeblock4').height($('#homeblock3').height()) : $('#homeblock3').height($('#homeblock4').height());
                                    }
                                    //end home view
     });
