// AJAX

function set(e, v)
{
b=document.getElementById(e);
b.innerHTML=v;
}
function response(r)
{
	
if (r.readyState == 4)
	{
		text = r.responseText;
		set('put1', text);
		
	}
}
function http_ini()
{
r = false;
if (window.XMLHttpRequest) // Mozilla, Safari, Opera ...
	{
		r = new XMLHttpRequest();
	}
else if (window.ActiveXObject) // IE
	{
r = new ActiveXObject("Microsoft.XMLHTTP");
	}
return r;
}
function http_set(r)
{
r.onreadystatechange = function() {response(r);};
}
function http_send(r, url)
{
r.open('GET', url, true);
r.send(null);
}
function make(u)
{
url='modules/'+u+'.php';
url2='modules/'+u+'_h.html';
r=http_ini();
http_set(r);
http_send(r, url);

//history.pushState(null,null,url);
//history.replaceState(null,null,url);

make2(url2);
}

// AJAX 2

function set(e, v)
{
b=document.getElementById(e);
b.innerHTML=v;
}
function response2(p)
{
	
if (p.readyState == 4)
	{
		text = p.responseText;
		set('put2', text);
		
	}
}
function http_ini()
{
p = false;
if (window.XMLHttpRequest) // Mozilla, Safari, Opera ...
	{
		p = new XMLHttpRequest();
	}
else if (window.ActiveXObject) // IE
	{
p = new ActiveXObject("Microsoft.XMLHTTP");
	}
return p;
}
function http_set2(p)
{
p.onreadystatechange = function() {response2(p);};
}
function http_send(p, url2)
{
p.open('GET', url2, true);
p.send(null);
}
function make2(url2)
{
p=http_ini();
http_set2(p);
http_send(p, url2);
}

// AJAX 3
function set(e, v)
{
b=document.getElementById(e);
b.innerHTML=v;
}
function response3(n)
{
	
if (n.readyState == 4)
	{
		text = n.responseText;
		set('put1', text);
		
	}
}
function http_ini()
{
n = false;
if (window.XMLHttpRequest) // Mozilla, Safari, Opera ...
	{
		n = new XMLHttpRequest();
	}
else if (window.ActiveXObject) // IE
	{
n = new ActiveXObject("Microsoft.XMLHTTP");
	}
return n;
}
function http_set3(n)
{
n.onreadystatechange = function() {response3(n);};
}
function http_send(n, url3)
{
n.open('GET', url3, true);
n.send(null);
}
function make3(url3)
{
u3='modules/'+url3+'.php';
n=http_ini();
http_set3(n);
http_send(n, u3);
}
function make4(url3,s)
{
u3='modules/'+url3+'.php';
n=http_ini();
http_set3(n);
http_send(n, u3);

}
function make5(url4)
{
u4='modules/'+url4+'.php';
n=http_ini();
http_set3(n);
http_send(n, u4);

}

// Click
//var a = 1;
//var i = 1; 

function show(a,i)
{ 
adr = "photos/"+a+"_"+i+".jpg";
document.getElementById('im').setAttribute("src","photos/"+a+"_"+i+".jpg"); 
//document.getElementById('im2').setAttribute("src","photos/big/"+a+"/"+i+".jpg"); 

}
function show2(v)
{
//v1=v-1;
//vi="vid"+v;

//document.getElementById('vid1').setAttribute("class","hid");
//document.getElementById('vid2').setAttribute("class","hid");
//document.getElementById('vid3').setAttribute("class","hid");
//document.getElementById(vi).setAttribute("class","vis"); 
document.getElementById('ob').setAttribute('src','hui');
//m=video&amp;file=http://piex.org/test/video/video2.flv
}
