
$(document).ready(function(){ 			
				           
	$("#showsend").click(function(){									
	   $.get("?cmd=200",function(data){ 				   		    
		   process(data);
		}, "html");  
	   $.getScript("/3cms/scripts/sender_function.js");
		window.scrollTo(0,0) ;
		return false;
	});  	

});			
$(document).ready(function(){ 			
					           
	$("#communicationid").click(function(){									     						             
	   $.get("?cmd=310",function(data){ 				   		    
		   process(data);
		}, "html");
	   $.getScript("/3cms/scripts/question_function.js");
		return false;
	});  	

});	
function loadalbumanh(article){	

		$(document).ready(function(){				
		  
		   $.get("?cmd=415&article="+article,function(data){
				document.getElementById("albumanh").innerHTML=data;	
			$.getScript("", function(){
						var parent = document.getElementById("albumanh");
						var childs = parent.childNodes;
							document.getElementById("slider1").innerHTML= "";
		  				document.getElementById("paginate-slider1").innerHTML= "";
						for(i=0; i< childs.length; i++)
						{
							var child = childs[i];
							
							//alert(child.nodeName.toLowerCase());
							if(child.nodeName.toLowerCase()=="div")
							{
								//fcontent.push(child.innerHTML);
								document.getElementById("slider1").innerHTML= document.getElementById("slider1").innerHTML + '<div class="contentdiv">	'+ child.innerHTML +'</div>';
							}
						}
						//
					
					featuredcontentslider.init({
					id: "slider1",  //id of main slider DIV
					contentsource: ["inline", ""],  //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
					toc: "#increment",  //Valid values: "#increment", "markup", ["label1", "label2", etc]
					nextprev: ["Tr&#432;&#7899;c", "Ti&#7871;p"],  //labels for "prev" and "next" links. Set to "" to hide.
					revealtype: "click", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
					enablefade: [true, 0.2],  //[true/false, fadedegree]
					autorotate: [true, 3000],  //[true/false, pausetime]
					onChange: function(previndex, curindex){  //event handler fired whenever script changes slide
					}
					})
						});
			}, "html");
		    
		    
			
		    //$.getScript("/3cms/scripts/getslide.js");
		    
			return false;
	});	
}



function process(data){	
				
	document.getElementById("boxCenter").innerHTML=data;	
				
}



