function trimmer(untrimed){
	var regexp = /^\s+/ 		
	return untrimed.replace(regexp, "") 

}	
/*

portfolio_detail < Profile Detail>
main_image < Main Image >
more_image < Other Images >

portfolioimages < Portfolio Images>
profile_paging < Paging >


*/

isFuncationCall = true;

function portfolio_Detail(url) {
	/*************************************************************************/
	var xmlhttp=false;
	try { 
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); //here simply we are creating object
	} catch (e) { 
				try { 
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //here simply we are creating object
				} catch (E) { 
					xmlhttp = false; 
				}//try {  
	}//	try { 

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();//here simply we are creating object
	} 
		
		
		
	/*************************************************************************/


	xmlhttp.open("GET", url,true); 

	xmlhttp.onreadystatechange = function() { 
	//alert(xmlhttp.status);
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
		
			var data=trimmer(xmlhttp.responseText);				
		
			document.getElementById("portfolio_detail").innerHTML = data; 
			//alert(xmlhttp.responseText);
			//window.focus();
		} 
	}//xmlhttp.onreadystatechange = function() { 
	xmlhttp.send(null);
}

function portfolio_MainImage(url) {
	/*************************************************************************/
	var xmlhttp=false;
	try { 
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); //here simply we are creating object
	} catch (e) { 
				try { 
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //here simply we are creating object
				} catch (E) { 
					xmlhttp = false; 
				}//try {  
	}//	try { 

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();//here simply we are creating object
	} 
		
		
		
	/*************************************************************************/


	xmlhttp.open("GET", url,true); 

	xmlhttp.onreadystatechange = function() { 
	//alert(xmlhttp.status);
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
		
			var data=trimmer(xmlhttp.responseText);				
			
			data = data.split('[SPLIT]');
			
			document.getElementById("imageFile").src = data[0]; 
			document.getElementById("imageLink").href = data[1]; 
			
			//alert(xmlhttp.responseText);
			//window.focus();
		} 
	}//xmlhttp.onreadystatechange = function() { 
	xmlhttp.send(null);
}

function more_Image(url) {
	/*************************************************************************/
	var xmlhttp=false;
	try { 
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); //here simply we are creating object
	} catch (e) { 
				try { 
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //here simply we are creating object
				} catch (E) { 
					xmlhttp = false; 
				}//try {  
	}//	try { 

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();//here simply we are creating object
	} 
		
		
		
	/*************************************************************************/


	xmlhttp.open("GET", url,true); 

	xmlhttp.onreadystatechange = function() { 
	//alert(xmlhttp.status);
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
		
			var data=trimmer(xmlhttp.responseText);				
			
			document.getElementById("more_image").innerHTML = data;
			
			if (isFuncationCall){
				ticker_start();
				isFuncationCall = false;
			}
			//alert(xmlhttp.responseText);
			//window.focus();
		} 
	}//xmlhttp.onreadystatechange = function() { 
	xmlhttp.send(null);
}

function portfolio_Images(url) {
	/*************************************************************************/
	var xmlhttp=false;
	try { 
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); //here simply we are creating object
	} catch (e) { 
				try { 
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //here simply we are creating object
				} catch (E) { 
					xmlhttp = false; 
				}//try {  
	}//	try { 

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();//here simply we are creating object
	} 
		
		
		
	/*************************************************************************/


	xmlhttp.open("GET", url,true); 

	xmlhttp.onreadystatechange = function() { 
	//alert(xmlhttp.status);
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
		
			var data=trimmer(xmlhttp.responseText);				
			
			data = data.split('[SPLIT]');
			
		
			document.getElementById("portfolioimages").innerHTML = data[0]; 
			profileImage(data[1]);
			
			//alert(xmlhttp.responseText);
			//window.focus();
		} 
	}//xmlhttp.onreadystatechange = function() { 
	xmlhttp.send(null);
}

function profile_Paging(url) {
	/*************************************************************************/
	var xmlhttp=false;
	try { 
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); //here simply we are creating object
	} catch (e) { 
				try { 
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //here simply we are creating object
				} catch (E) { 
					xmlhttp = false; 
				}//try {  
	}//	try { 

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();//here simply we are creating object
	} 
		
		
		
	/*************************************************************************/


	xmlhttp.open("GET", url,true); 

	xmlhttp.onreadystatechange = function() { 
	//alert(xmlhttp.status);
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
		
			var data=trimmer(xmlhttp.responseText);				
		
			document.getElementById("profile_paging").innerHTML = data; 
			//alert(xmlhttp.responseText);
			//window.focus();
		} 
	}//xmlhttp.onreadystatechange = function() { 
	xmlhttp.send(null);
}

	
	
	
