
function wrapImages()
{
	var width = '220px';
	var height = '146px';
	var margin = '10px px 5px 8px';
	
	$( '#inner_content img' ).each( function () {
		
		
		if( $( this ).attr( 'width' ) >= parseInt( width )  )
		{
			var pos = $( this ).attr( 'align' );
			var source = $( this ).attr( 'src' );
			
			$( this ).css( 'width', width );
			$( this ).css( 'height', height );
			$( this ).css( 'margin', '0' );
			
			$( this ).wrap( '<div style="background:transparent url(' + source + ') top center no-repeat; display:block; float:' + pos + ';  margin:' + 0 + ';"></div>' );
			$( this ).attr( { src : '../images/pic_mask.png' } );
			$( this ).parent().width( width );
			$( this ).parent().height( height );
			$( this ).parent().addClass( 'desc_image_mask' );
		}
		
	});

	var margin = '10px px 5px 8px';
	
	$( '#dh3 img' ).each( function () {
		
		
			var pos = $( this ).attr( 'align' );
			var source = $( this ).attr( 'src' );
			width = parseInt( $( this ).css( 'width' ) ) ;
			height = parseInt( $( this ).css( 'height' ) ) ;
						
			$( this ).wrap( '<div style="background:transparent url(' + source + ') scroll 3px 4px no-repeat; display:block; float:' + pos + '; "></div>' );
			$( this ).attr( { src : '../images/mask.png', width: width+6,height:height+8 } );
			$( this ).parent().width( width );
			$( this ).parent().height( height );
				
	});	
	
};
		//
		//function menuHover( hover , what )
		//{
		//	 if( hover == 'on' )
		//	 {
		//	       what.style.background = 'url(images/menubg.jpg) repeat-x' ;
		//	 }
		//	 else
		//	 {
		//	       what.style.background = '';
		//	 }
		//}
		//
		//function sideMenuHover( hover , what )
		//{
		//	if( hover == 1 )
		//	{
		//	      what.style.background = 'url(images/sidemenu_bg.jpg) repeat-x' ;
		//	}
		//	else
		//	{
		//	      what.style.background = '';
		//	}
		//}

