    defaultUrl = 'http://www.krebszzsuzsanna.hu/?module=article&category=18927';
    var ad_expires = 1;

    function getCookie( NameOfCookie )
    {
        if ( document.cookie.length > 0 )
        {
            begin = document.cookie.indexOf( NameOfCookie + "=" );
            if ( begin != -1 )
            {
                begin += NameOfCookie.length + 1;
                end = document.cookie.indexOf( ";", begin );
                if ( end == -1 ) { end = document.cookie.length; }
                return document.cookie.substring( begin, end );
            } else { return null;  }
        }
    }

    function setCookie( name, value )
    {
        var exp = new Date ();
        exp.setTime( exp.getTime() + ( ad_expires * 24 * 3600 * 1000 ) );
        document.cookie = name + "=" + escape( value ) + "; expires=" + exp.toGMTString() + "; path=/;";
    }

    function closeIt( url ) { top.location.href = defaultUrl; }

    function intro( ad_Src, cookieName, adexpires, swf, width, height )
    {
        var cValue = getCookie( cookieName );
        var gValue = getCookie( 'int_global' );
        ad_expires = adexpires;
    	if ( cValue == null ) { cValue = 0; setCookie( cookieName, 1 ); }

        var exp = new Date ();
        exp.setTime( exp.getTime() + ( 5 * 60 * 1000 ) );
        document.cookie = "int_global=1; expires=" + exp.toGMTString() + "; path=/;";

        if ( cValue == 0 ) //&& gValue == 0 )
        {
          document.write('<div id="container">');
          document.write('<div id="intro">');
          //document.write('	<td align="center" valign="middle">');

          if ( swf )
          {
            cValue++; setCookie( cookieName, cValue );
            ord = Math.random();
            ord = ord * 10000000000000000000;
            document.write('		<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="910" height="500" id="intro" align="middle">');
            document.write('		<param name="allowScriptAccess" value="always" />');
            document.write('		<param name="movie" value="'+ad_Src+'" />');
            document.write('		<param name="quality" value="high" />');
            document.write('		<param name="wmode" value="transparent" />');
            document.write('		<embed src="'+ad_Src+'" quality="high" width="910" height="500" name="intro" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
            document.write('		</object>');
    	  }
    	  else
    	  {
            document.write('<iframe src="' + ad_Src + '" bgcolor="transparent" frameborder="0" scrolling="no" width="' + width + '" height="' + height + '"></iframe>');
    	  }

          document.write('</div>');
          document.write('<a href="javascript:closeIt()">Intro átugrása</a>');
          document.write('</div>');
          setTimeout( 'closeIt', 12500 );
        }
        else { closeIt(); }

    }
