﻿function InitAjax ( )
{
	if ( window.ActiveXObject )
	{

		xmlHttp = new ActiveXObject ( "Microsoft.XMLHTTP" ) ; // IE create way

	}
	else if ( window.XMLHttpRequest ) // FF create way
	{

		xmlHttp = new XMLHttpRequest ( ) ;

	}

	return xmlHttp ;

}

function DoFiles (File)
{
	var url  = File;
	var show = document.getElementById( "Tocontent" ) ;
	var ajax = InitAjax ( ) ;
	ajax.open( "GET", url, true ) ;
	ajax.onreadystatechange = function ( )
	{
		if ( ajax.readyState == 4 && ajax.status == 200 )
		{
			show.innerHTML = ajax.responseText ;
		}
	}
	ajax.send ( null ) ;
}
function DoFiles_id (File,id,changetitle)
{
	document.title=changetitle;
	if(id<eval(5)){close_menu(id);}
	setColor(id);
	var url  = File;
	var show = document.getElementById( "Tocontent" ) ;
	var ajax = InitAjax ( ) ;
	ajax.open( "GET", url, true ) ;
	ajax.onreadystatechange = function ( )
	{
		if ( ajax.readyState == 4 && ajax.status == 200 )
		{
			show.innerHTML = ajax.responseText ;
		}
	}
	ajax.send ( null ) ;
}
var the_pic = 1;var count = 0;function next_img(){ count = $(".event_pic_list li").size();	the_pic ++;	if(the_pic > count){the_pic = 1;}	$("#event_pic").html($("#el_"+the_pic).html());}function prew_img(){ count = $(".event_pic_list li").size();	the_pic --;	if(the_pic < 1){the_pic = count;}	$("#event_pic").html($("#el_"+the_pic).html());}

