function DropPic(){
	$('#content').css('height','auto');
	var ch = $('#content').height();
	
	$('#content').css('height', ch+'px');
	if (document.getElementById('dropdownPic')){
		var dropdownEl = $('#dropdownPic');
		var mask ='img';
		if(dropdownEl.attr('piclink') != ''){
			dropdownEl.hide().html('<a href="'+dropdownEl.attr('piclink')+'"><'+mask+' src="'+dropdownEl.attr('picsrc') +'" alt="" style="display: block;" class="ZelementToBeDeleted"/></a>');
		} else {
			dropdownEl.hide().html('<'+mask+' src="'+dropdownEl.attr('picsrc') +'" alt="" style="display: block;" class="ZelementToBeDeleted"/>');
		}
		dropdownEl.css("opacity",0).css("width","0px"); 
		setTimeout("$(document.getElementById('dropdownPic')).animate({ width: '100%', opacity: '1'},"+ parseInt(dropdownEl.attr('speed')*1000)+", function callback() {afterslide(); });", parseInt(dropdownEl.attr('delay')*1000));
		

	}
}

function afterslide(){
	if($('#left').height() < $(document.getElementById('dropdownPic')).find('img').eq(0).height()){
		$('#content').css('height', $(document.getElementById('dropdownPic')).find('img').eq(0).height()+'px'); 
	} else {
		$('#content').css('height', $('#left').height()+20); 
	}
}
