/*(function($){$.fn.wresize=function(f){version='1.1';wresize={fired:false,width:0};function resizeOnce(){if($.browser.msie){if(!wresize.fired){wresize.fired=true}else{var version=parseInt($.browser.version,10);wresize.fired=false;if(version<7){return false}else if(version==7){var width=$(window).width();if(width!=wresize.width){wresize.width=width;return false}}}}return true}function handleWResize(e){if(resizeOnce()){return f.apply(this,[e])}}this.each(function(){if(this==window){$(this).resize(handleWResize)}else{$(this).resize(f)}});return this}})(jQuery);*/

function popup(urlValue) {
	var url, windowWidth, windowHeight, windowX, windowY;
	url = urlValue + "";
	windowWidth = 760;
	windowHeight = 500;
	windowX = (screen.availWidth - windowWidth) / 2;
	windowY = (screen.availHeight - windowHeight) / 2;
	var newPop = window.open(url, "custom_window", "left="+windowX+",top="+windowY+",width=" + windowWidth + ",height=" + windowHeight + ",toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=1");
	
	if (!$.browser.msie){		
		newPop.moveTo(windowX,windowY);
		newPop.focus();
	}

	return false;
}

function sendStat(tag){
	pageTracker._trackPageview(tag);
	pageTrackerBreel._trackPageview(tag);	
}

