var img = new Array();
var imgUrl = new Array();
var imgUrlTitle = new Array();
img[0]="images/clients/kylephillips.jpg";
imgUrl[0]="http://www.pro-translation-services.com";
imgUrlTitle[0]="Kyle Philips Golf Course Design";
img[1]="images/clients/disneyabctv.jpg";
imgUrl[1]="http://www.pro-translation-services.com";
imgUrlTitle[1]="Disney ABC 电台新闻稿件";
img[2]="images/clients/incoe.jpg";
imgUrl[2]="http://www.pro-translation-services.com";
imgUrlTitle[2]="Incoe";
img[3]="images/clients/ibm.jpg";
imgUrl[3]="http://www.pro-translation-services.com";
imgUrlTitle[3]="IBM";
picNum = 0;
allNum = 4;
var isroot = true;
function NextPic(isrootflag){
	if(null != isrootflag) isroot = isrootflag;
	if(picNum<allNum-1) picNum++ ;
	else picNum=0;
			if (document.all){
				//下面注意，如果存在于FORM表单中，需要使用下面的方法，否则可直接使用name。	
				document.getElementById("imgInit").style.filter = "revealTrans()"
				document.getElementById("imgInit").filters.revealTrans.Transition= Math.floor(Math.random()*23);
				document.getElementById("imgInit").filters.revealTrans.apply();
				document.getElementById("imgInit").filters.revealTrans.play();
			}
			if(document.getElementById("imgInit").src=""){
				document.getElementById("imgInit").style.display="none";	
			}else{
				document.getElementById("imgInit").style.display="";	
			}
			
			if(!isroot){
				document.getElementById("imgInit").src="../"+img[picNum];				
			}else{
				document.getElementById("imgInit").src=img[picNum];
			}
			
			document.getElementById("imgLink").href=imgUrl[picNum];
			document.getElementById("imgLink").title=imgUrlTitle[picNum];
			theTimer=setTimeout('NextPic()', 4000);
}	

var gaJsHost = (("https:" == document.location.protocol) ? " https://ssl." : " http://www.");
document.write("<script src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'><\/script>");
try {
var pageTracker = _gat._getTracker("UA-11463341-1");
pageTracker._trackPageview();
} catch(err) {}

function GetRequestParams(){ 
	var url = location.search;   
	var paraString = url.substring(url.indexOf("?")+1,url.length).split("&");   
	var params = new Object();   
	for (i=0; j=paraString[i]; i++){
		params[j.substring(0,j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf ("=")+1,j.length);   
	}   
	return params;
} 
