
if(!this.Wcp) 
{
	var Wcp = 
	{
		popUpPage: function(url,w,h)
		{
			s=window.open(url,'','width='+w+',height='+h+',location=no,scrollbars=yes,menubar=no,resizable=no,toolbar=no,status=yes,dependent=no');
			return;			
		},
		
		nagyKep: function(rel)
		{
			$("a[rel="+rel+"]").fancybox(
			{
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titleShow'     	: true
			});
		},
		
		addCssOrJs: function(item, type)
		{

			var qschar = (item.indexOf('?') != -1 ? '&ts=' : '?ts=');
			if (type == 'CSS')
			{
				if (navigator.userAgent.indexOf('MSIE') != -1)
				{
					var ss = document.createElement('link'), hd = document.getElementsByTagName('head')[0];
					ss.type = 'text/css'; ss.rel = 'stylesheet'; ss.href = item; ss.media = 'screen';
					hd.appendChild(ss);
				}
				else
				{
					if (!($('head').children('link[href*="' + item + '"]').length))
					{
						$('head').append('<link rel="stylesheet" media="screen" type="text/css" href="' + item + qschar + new Date().getTime() + '" />');
					}
				}
			}
			else if (type == 'JS')
			{
				if (!($('head').children('script[src*="' + item + '"]').length))
				{
					$('head').append('<script type="text/javascript" src="' + item + qschar + new Date().getTime() + '"></script>');
				}
			}
			else
			{
				if (!($('head').children(item).length))
				{
					$('head').append(item);
				}
			}
	
		}
		
	};
}

jQuery(document).ready(function()
{
	Wcp.nagyKep("nagykep");
	
    jQuery("a[ href ^= '#' ]").each(function()
    {
        var href = window.location + jQuery(this).attr('href').replace('/#.*/i','');
        jQuery(this).attr('href',href);
    });
});
