
function openPopup( url, name, width, height, scroll, resize )
{
    if ( width < 1 )
    {
        width = 800;
    }
    if ( height < 1 )
    {
        height = 600;
    }
    if ( scroll == 1 )
    {
        scrollbar = 'yes';
    }
    else
    {
        scrollbar = 'no';
    }
    if ( resize == 1 )
    {
        resizable = 'yes';
    }
    else
    {
        resizable = 'no';
    }
    w=window.open( url, name, 'width='+width+',height='+height+
        ',directories=no,location=no,menubar=no,scrollbars='+scrollbar+',status=yes,resizable='+resizable+',toolbar=no,top=50,left=50' );
    w.focus();
}


function openSendLink()
{
    openPopup( '/popup/sendlink/', 'sendlink', 550, 380, 0, 0 );
}

function openSendMail()
{
    openPopup( '/popup/sendmail/index.php?url='+self.document.location, 'sendmail', 550, 350, 0, 0 );
}

function openSendQuestion(site)
{
    openPopup( '/popup/sendquestion/index.php?site='+site+'&url='+self.document.location, 'sendquestion', 550, 350, 0, 0 );
}

function openSendJoke()
{
    openPopup( '/popup/sendjoke/index.php?url='+self.document.location, 'sendjoke', 550, 350, 0, 0 );
}

function openSendTopic()
{
    openPopup( '/popup/sendtopic/index.php?url='+self.document.location, 'sendtopic', 550, 350, 0, 0 );
}

function openRegistration()
{
    openPopup( '/popup/register/', 'register', 550, 600, 1, 0 );
}

function preload()
{
    this.length = preload.arguments.length;
    for (var i = 0; i < this.length; i++) {
        this[i] = new Image();
        this[i].src = preload.arguments[i];
    }
}

if (document.images)
{
    var stuff = new preload(
        "/img/frame/bike_top_menu_0_0_mo.gif",
        "/img/frame/bike_top_menu_0_1_mo.gif",
        "/img/frame/bike_top_menu_1_0_mo.gif",
        "/img/frame/bike_top_menu_1_1_mo.gif",
        "/img/frame/bike_top_menu_1_2_mo.gif",
        "/img/frame/bike_top_menu_1_3_mo.gif",
        "/img/frame/bike_top_menu_1_4_mo.gif",
        "/img/frame/bike_top_menu_1_5_mo.gif",
        "/img/frame/bike_top_menu_1_6_mo.gif")
}

function filePopup (filURL, filWidth, filHeight)
{
    filWindow = window.open (filURL, 'file_popup', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + filWidth + ',height=' + filHeight);
    filWindow.focus ();
}

function banner_rufftech_HackActiveX ()
{

	document.writeln ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="120" height="240" style="border: solid 1px #dedede;">');
	document.writeln ('<param name="movie" value="/swf/allashirdetes_sky_120x240.swf" />');
	document.writeln ('<param name="loop" value="true" />');
	document.writeln ('<param name="menu" value="false" />');
	document.writeln ('<param name="quality" value="best" />');
	document.writeln ('<embed src="/swf/allashirdetes_sky_120x240.swf" loop="true" menu="false" quality="best" width="120" height="240" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" style="border: solid 1px #dedede;" />');
	document.writeln ('</object>');
}



WEBAUDIT=function() {
    
  this.WACID=null;
  this.WACIDName="WACID";
  
  
  this.getCookie=function(name)  {
    var nameEQ = name + "=";
    var ca = document.cookie.split(';');
    for(var i=0;i < ca.length;i++)
    {
            var c = ca[i];
            while (c.charAt(0)==' ') c = c.substring(1,c.length);
            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
    }
    return null;
  }
  
  this.setCookie=function(name,value,topDomain) {
    var date = new Date(2020,12,31,23,59,59);
    var expires = "; expires="+date.toGMTString();
    document.cookie = name+"="+value+expires+"; path=/; domain=" + topDomain;  
  }
  
  this.generateID=function(splitter) {
    var sp=(splitter) ? splitter : 'A';
    var now=new Date();
    return Date.parse(now.toGMTString()) + sp + Math.floor(Math.random()*1000000);
  }
  
  this.getTopDomain=function(fullDomain) {
    var darabok=fullDomain.split('.');
    return darabok[(darabok.length-2)] + '.' + darabok[(darabok.length-1)];
  }
  
  this.getDomain=function(url) {
    var urlDarabok=url.split('/');
    return urlDarabok[2];
  }
  
  this.WACID=this.getCookie(this.WACIDName);
}

var wa=new WEBAUDIT();
var felbontas = "";
var same =  Math.floor(Math.random()*1000000);

if(wa.WACID==null)
{
  wa.WACID=wa.generateID('A');
  wa.setCookie(wa.WACIDName,wa.WACID,wa.getTopDomain(wa.getDomain(document.URL)));
}

same = same + "@welid=" + wa.WACID;
if(screen) felbontas='@felbontas='+screen.width+'x'+screen.height;
same = same + felbontas;