function flipWindow2(show, content) {
	var html;
	if (show) {
		$('block2').style.display = 'block';
		$('window2').style.display = 'block';
	} else {
		$('block2').style.display = 'none';
		$('window2').style.display = 'none';
	}
	
	h = (typeof window.innerHeight != 'undefined' ? window.innerHeight : document.body.offsetHeight);
	w = (typeof window.innerWidth != 'undefined' ? window.innerWidth : document.body.offsetWidth);
	
	if (document.documentElement && !document.documentElement.scrollTop)
		scrollx=document.documentElement.scrollTop;
	else if (document.documentElement && document.documentElement.scrollTop)
		scrollx=document.documentElement.scrollTop;
	else if (document.body && document.body.scrollTop)
		scrollx=document.body.scrollTop;
	
	var center_top_loading=(h/2-50)+scrollx;
	var center_left_loading=(w/2-50);
	
	/*loader=$('loader2');
	if(loader.setAttribute){
		loader.setAttribute('style', 'position="absolute";left:'+center_left_loading+';top:'+center_top_loading+';');
	}else{*/
		//$('loader2').style.right=center_left_loading;
		//$('loader2').style.top=center_top_loading;
	//}
	
	var img=new Image();
	img.src=content;
	if(content){
		if(!img.width){
			img.onload=function() {
				imgw=img.width;
				imgh=img.height;
				
				h=h+scrollx;
				
				var top_img=(h/2-imgh)/2+scrollx;
				var left_img=(w-imgw)/2;
				
				html = '<table cellpadding="0" cellspacing="0" border="0" style="width:'+w+'px;height:'+h+'px;text-align:center;">'+
						'<tr>'+
							'<td style="height:'+top_img+'px;">'+
								'&nbsp;'+
							'</td>'+
						'</tr>'+
						'<tr>'+
							'<td style="width:'+left_img+'px;" rowspan="3">'+
								'&nbsp;'+
							'</td>'+
							'<td align="center" valign="middle" style="height:'+imgh+'px;background:#fff;">'+
								'<img src="'+content+'" alt="" align="absmiddle"/>'+
							'</td>'+
							'<td style="width:'+left_img+'px;" rowspan="3">'+
								'&nbsp;'+
							'</td>'+
						'</tr>'+
						'<tr>'+
							'<td valign="top" align="right" style="background:#fff;heigth:26px;">'+
								'<div><img src="'+img_link+'closelabel.gif" alt="Close"/></div>'+
							'</td>'+
						'</tr>'+
						'<tr>'+
							'<td valign="top" align="right">'+
								'&nbsp;'+
							'</td>'+
						'</tr>'+
					'</table>';
				$('windowContent2').innerHTML = html;
			}
		}else{
			imgw=img.width;
			imgh=img.height;
			
			h=h+scrollx;
			
			var top_img=(h-imgh)/2+scrollx;
			var left_img=(w-imgw)/2;
			
			html = '<table cellpadding="0" cellspacing="0" border="0" style="width:'+w+'px;height:'+h+'px;text-align:center;">'+
						'<tr>'+
							'<td style="height:'+top_img+'px;">'+
								'&nbsp;'+
							'</td>'+
						'</tr>'+
						'<tr>'+
							'<td style="width:'+left_img+'px;" rowspan="3">'+
								'&nbsp;'+
							'</td>'+
							'<td align="center" valign="middle" style="height:'+imgh+'px;background:#fff;">'+
								'<img src="'+content+'" alt="" align="absmiddle"/>'+
							'</td>'+
							'<td style="width:'+left_img+'px;" rowspan="3">'+
								'&nbsp;'+
							'</td>'+
						'</tr>'+
						'<tr>'+
							'<td valign="top" align="right" style="background:#fff;heigth:26px;">'+
								'<div><img src="'+img_link+'closelabel.gif" alt="Close"/></div>'+
							'</td>'+
						'</tr>'+
						'<tr>'+
							'<td valign="top" align="right">'+
								'&nbsp;'+
							'</td>'+
						'</tr>'+
					'</table>';
			$('windowContent2').innerHTML = html;
		}
	}else{
		$('windowContent2').innerHTML = '';
	}
}

