function gallery( szam ) {

	var i = 0;

    if ( szam == 'gallery0' ) {
        document.getElementById('tab1').style.background = 'url(templates/imgs/galvi_activegaleria.jpg)';
        document.getElementById('tab2').style.background = 'url(templates/imgs/galvi_inactivevideo.jpg)';
    } else {
        document.getElementById('tab1').style.background = 'url(templates/imgs/galvi_inactivegaleria.jpg)';
        document.getElementById('tab2').style.background = 'url(templates/imgs/galvi_activevideo.jpg)';
    }

	for ( i = 0; i <= 1; i++ ) {

		document.getElementById('gallery' + i).style.display = "none";

	} // for ( i = 0; i <= 5; i++ ) vége

	var nodeObj2 = document.getElementById(szam);
	nodeObj2.style.display = 'block';

} // function lapozo2( index, number ) vége


function CreatePopup(URL, xsize, ysize) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=' + xsize + ',height=' + ysize + '');");
}

//function loadDoc(docname, divname) {
//
//	var xmlhttp=false;
//
//	/*@cc_on @*/
//
//	/*@if (@_jscript_version >= 5)
//
//		try {
//			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
//		} catch (e) {
//			try {
//				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
//			} catch (E) {
//				xmlhttp = false;
//			}
//		}
//
//	@else
//
//		xmlhttp = false;
//
//	@end @*/
//
//	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
//
//		try {
//	      xmlhttp = new XMLHttpRequest();
//	    } catch (e) {
//	      xmlhttp = false;
//	    }
//	}
//
//	if (xmlhttp) {
//
//	xmlhttp.open("GET", docname,true);
//	 xmlhttp.onreadystatechange=function() {
//	  if (xmlhttp.readyState==4) {
//	   // document.forms[0].textArea1.value=xmlhttp.responseText;
//	   //document.all.topstory_box_content.innerHTML=xmlhttp.responseText;
//       document.getElementById(divname).innerHTML=xmlhttp.responseText;
//	  }
//	 }
//	 xmlhttp.send(null)
//
//	 }
//
//}