/*function deleteFile(url, id, project_name)
{

  var xmlHttp = GetXMLHttp();
  //x =document.getElementById('auctionTime');

alert(id + " project-name" + project_name);
	
  xmlHttp.open('GET', 'controls.file_delete.php?file_id='
	+ id + "&project_name=" + project_name, true);

	xmlHttp.onreadystatechange = function()
  {
    if(xmlHttp.readyState == 4)
    {
      HandleResponse(xmlHttp.responseText);
    }
  }
    xmlHttp.send(null);
}*/
$(function(){
    $("#real-it-video").click(function(){
        $('#haze').show();
    });
    $('#close').click(function(){
        //$('#win-prize-container').slideToggle("slow");
        $('#haze').hide("slow");
    });
});
function changeContent(url, id){
    var xmlHttp = GetXMLHttp();
 	
    xmlHttp.open('GET', 'include/content.php?id='
        + id, true);
    xmlHttp.onreadystatechange = function(){
        if(xmlHttp.readyState == 4)
        {
            HandleResponse(xmlHttp.responseText);
        }
    }
    xmlHttp.send(null);	
	
}

function HandleResponse(response)
{
	
    document.getElementById('content').innerHTML = response;
}
function GetXMLHttp()
{
    var xmlHttp;
    try
    {
        // Firefox, Opera 8.0+, Safari
        xmlHttp=new XMLHttpRequest();
    }
    catch (e){ // Internet Explorer
        try
        {
            xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch (e)
        {
            try
            {
                xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
            }
            catch (e)
            {
                alert("Your browser does not support AJAX!");
                return false;
            }
        }
    }

    return xmlHttp;
}


	
