﻿// JScript File
//-------------------  KEPCSERE Macromedia

		function MM_changeProp(objName,x,theProp,theValue) { //v3.0
		  var obj = MM_findObj(objName);
		  if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'");
		}


		function MM_swapImage()
		{ //v3.0

			var i,j=0,x,a=MM_swapImage.arguments;
			document.MM_sr=new Array;
			for(i=0;i<(a.length-2);i+=3)
				if ((x=MM_findObj(a[i]))!=null)
				{
					document.MM_sr[j++]=x;
					if (!x.oSrc) x.oSrc=x.src;
					x.src=a[i+2];
				}
		}

		function MM_swapImgRestore()
		{ //v3.0
			var i,x,a=document.MM_sr;
			for (i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
		}

		function MM_preloadImages()
		{ //v3.0
			var d=document;
			if(d.images)
			{
				if(!d.MM_p) d.MM_p=new Array();
				var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
				for(i=0; i<a.length; i++)
					if (a[i].indexOf("#")!=0)
					{
						d.MM_p[j]=new Image;
						d.MM_p[j++].src=a[i];
					}
			}


		}



		function MM_findObj(n, d)
		{ //v4.0
			var p,i,x;
			if(!d) d=document;
			if((p=n.indexOf("?"))>0&&parent.frames.length)
			{
				d=parent.frames[n.substring(p+1)].document;
				n=n.substring(0,p);
			}
			if(!(x=d[n])&&d.all) x=d.all[n];
			for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
			for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
			if(!x && document.getElementById) x=document.getElementById(n);
			return x;
		}

		function MM_openBrWindow(theURL,winName,features)
		{ //v2.0
			window.open(theURL,winName,features);
		}


//----------------------------------------------------------------
//------Kepcsere vege---------------------------------------------
//----------------------------------------------------------------

//Function browserCheck() checks the browser

function BrowserCheck() {
	var b = navigator.appName;
	if (b=="Netscape") this.b = "ns";
	else if (b=="Microsoft Internet Explorer") this.b = "ie";
	else this.b = b;
	this.v = parseInt(navigator.appVersion);
	this.ns = (this.b=="ns" && this.v>=4);
	this.ns6 = (this.b=="ns" && this.v>=5);
	this.ie = (this.b=="ie" && this.v>=4);
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0);
	this.opera = (navigator.userAgent.indexOf('Opera')>0);
	//if (this.opera) {
	//	this.ns6 = (this.b=="ns" && this.v>=4);
	//}
	this.ismac = (navigator.platform.indexOf('mac')>0);
	if (this.ie5) this.v = 5;
	this.min = (this.ns||this.ie);
	return true;
}

is = new BrowserCheck()

function verifyCompatibleBrowser()
{
    this.agt=navigator.userAgent.toLowerCase();
    this.Pc = this.agt.indexOf("win")!=-1 || this.agt.indexOf("16bit")!=-1;
    this.ver=navigator.appVersion;
    this.dom=document.getElementById?1:0;
    this.ie5=(this.ver.indexOf("MSIE")>-1 && this.dom)?1:0;
    this.ie4=(document.all && !this.dom)?1:0;
    this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
    this.ns4=(document.layers && !this.dom)?1:0;
    this.opera = (window.opera)?1:0;
    this.bw=((this.ie5 || this.ie4 || this.ns4 || this.ns5) && !this.opera);
    return this;
}

bw=new verifyCompatibleBrowser()

hidden=bw.ns4?"hide":"hidden";
visible="visible";

//-----------------------------------------------------------------------------
    var mytimer;

    function gototop()
    {
        mytimer = setTimeout("gototop2()", 200);
    }

    function gototop2()
    {
        window.scrollTo(0,200);
        clearTimeout(mytimer);

//    window.scrollTo(0,0);

    }

    function biztos()
    {
        return confirm ("Biztos törölni akarja?");
    }

    function emailkuldes()
    {
        return confirm ("Elküldhetem a hírlevelet a felhasználóknak?");
    }


//-----------------------------------------------------------------------------

    function show_flash(url, w, h) {
        document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0" width="' + w + '" height="' + h + '" id="multilink">');
        document.write('<param name="movie" value="' + url + '">');
        document.write('<param name="quality" value="high">');
        document.write('<embed src="' + url + '" quality="high" width="' + w + '" height="' + h + '" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" name="multilink">');
        document.write('</embed>');
        document.write('</object>');
    }

