function getXmlHttp(){
  var xmlhttp;
  try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (e) {
    try {
      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (E) {
      xmlhttp = false;
    }
  }
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
  }
  return xmlhttp;
}

function getGhostImage(){
	//parameter tag2 element html
	var tag2 = document.getElementById("router_images2");
	
	//text bloka
	tag2.innerHTML = "";
	tag2.innerHTML = "<div id='login_interface'><img alt='' title='' src='/images/ghosts/' /></div>";
}

// parameter rout boolin and change text
var routBool = true;
function clickLoginIT(){
	var tag3 = document.getElementById("login_interface");
	
	/*if(routBool){
		//text bloka
		tag3.innerHTML = "";
		tag3.innerHTML = "weghost.ru 2";
		
		routBool = false;
	}else{
		//text bloka
		tag3.innerHTML = "";
		tag3.innerHTML = "weghost.ru 3";
	
		routBool = true;
	}*/
	
	/*var xmlhttp = getXmlHttp();
	xmlhttp.open('GET', '/index.php', true);
	xmlhttp.onreadystatechange = function() {
	  if (xmlhttp.readyState == 4) {
		 if(xmlhttp.status == 200) {
		  // alert(xmlhttp.responseText);
		 }
	  }
	};
	xmlhttp.send(null);*/
	
	var l_oPhoto = new Photo().load('http://weghost.ru/images/3.JPG');
	//l_oPhoto.resize({width:200});
	//l_oPhoto.rotate(3);
	//l_oPhoto.dropShadow();
	//l_oPhoto.addCaption('Get ajaxorized!', '3.JPG');
	//tag3.innerHTML = l_oPhoto.fetch();
	alert(l_oPhoto.fetch());
	tag3.appendChild(l_oPhoto.fetch());
	
	//document.body.appendChild(l_oPhoto.fetch());
}
