/*
**  
*/
function ViewDiv(current){
	this.current=0;
	this.init(current);
}
ViewDiv.prototype={
	init:function(current){
		this.addClickEvents();
		if(current){
			this.myClick(current);
			}
	},
	addClickEvents:function(){
		var o_this=this;
		$('.partner-name').each(function(){
			$(this).click(function(){o_this.openDiv($(this).attr('id').substring(4));});
		});
	},
	openDiv:function(p_id){
		var id=p_id;
		if(this.current==id) 
			return;
		if(this.current) 
			$('#descript'+this.current).css('display', 'none');
		
		$('#descript'+id).fadeIn('slow');
		this.current=id;
	},
	myClick:function(current){
		$('#link'+current).click();
	}
}