// JavaScript Document
var xmlHttp;

//URLRequest----------------------------------->
function postRequest(strURL){
	
	if(window.XMLHttpRequest){ // For Mozilla, Safari, ...
		xmlHttp = new XMLHttpRequest();
	}
	else if(window.ActiveXObject){ // For Internet Explorer
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlHttp.open('GET', strURL, true);
	
	xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlHttp.onreadystatechange = function()
	{
		if (xmlHttp.readyState == 4)
		{
			ShowMessage(xmlHttp.responseText);
		}
	}
	xmlHttp.send(strURL);
	
}

function ShowMessage(msg){
	
	var swf = msg;
	//alert(swf);
	
	//window.location="gogame.php?swf=" + swf;
	
	window.location="gogamecw.php?" + swf;
	
}
	
	
var slideimages=new Array()

var slidelinks=new Array()

function slideshowimages(){
for (i=0;i<slideshowimages.arguments.length;i++){
slideimages[i]=new Image()
slideimages[i].src=slideshowimages.arguments[i]
}
}

function slideshowlinks(){
for (i=0;i<slideshowlinks.arguments.length;i++)
slidelinks[i]=slideshowlinks.arguments[i]
}

function gotoshow(){
/*if (!window.winslide||winslide.closed)
winslide=window.open(slidelinks[whichlink])
else
winslide.location=slidelinks[whichlink]
winslide.focus()
*/
//alert("hi");http://localhost/avatars/Disney%20(2).jpg
var imgpath = document.images.slide.src;
//alert(imgpath);
var mytool_array= imgpath.split("/");

var imagename = mytool_array[mytool_array.length-1];


//alert(imagename);
var url = "slideshowPHP.php?imagename=" + imagename;
postRequest(url);
}
