/**
 * ajaxed form-menu and tagcloud and associated functionality
 * community iframe.forum auto resize
 */
(function($){
	$(function() {

		if($('iframe.forum').attr('src')) {
			var pat = /subdomain_solegro_www/;
			$('.treffpunkt-links a',this).click(function (){
				var newHref = 'http://' + http_host_solegro_treffpunkt
					+ $(this).attr('href').replace(pat, subdomain_solegro_treffpunkt);
				$('iframe.forum').attr('src',newHref);
				return false
			});
		}

		var customSettings = {
			disableWidthResizing: true,
			resizeHints: {
				tagcloud	: '.wrapper.tagadelic',
				forum_menu	: '#container',
				forum		: '#container'
			}
		};
		setInterval(function() {
			$('.auto-size').resizeIFrames(customSettings);
		}, 100);
	});
})(jQuery);

/**
 * was in /head_(d|e..).php
 */
//Pop-up screen
function popUp(URL, wdth, hght, lft, tp) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=" + wdth + ",height=" + hght + ",left =" + lft + ",top =" + tp + "');");
}
