// IE Flicker BugÀ§ÇÑ Hack
(function(){
	/*Use Object Detection to detect IE6*/
	var m = document.uniqueID /*IE*/
				&& document.compatMode /*>=IE6*/
				&& !window.XMLHttpRequest /*<=IE6*/
				&& document.execCommand ;

				try{
					if (!!m) {
						m("BackgroundImageCache", false, true) /* = IE6 only */
					}
				} catch(oh) {};
})();



			function createImgDiv(objDiv,objImg)
			{
			    //document.all.divImgPopup.innerHTML = "<img id='imgPupup' src='/rview/r8/images/common/status_loading.gif' alt='Å¬¸¯ÇÏ½Ã¸é Ã¢ÀÌ ´ÝÈü´Ï´Ù.' align='middle' onClick='document.all.divImgPopup.style.display = \"none\";document.all.divImgPopup.innerHTML =\"\";' style='cursor:pointer;'>";
				//document.all.imgPupup.src = objImg.src;
				//document.all.imgPupup.onload();
				
				//objDiv.style = divImgPopup.style;
				
                var defaultW = 550;
                var defaultH = 550;

				var w;
			    var h;

				w = objImg.width;
				h = objImg.height;
				
				if(w > defaultW)
				{
				    w=defaultW;
				    if(h > defaultH){
				        h=defaultH;
				    }
				    else
				    {
				        h=h+20;
				    }
				}
				else
				{
				    if(h > defaultH){
				        h=defaultH;
				        w=w+20;
				    }
				    else
				    {
				        h=h+4;
				        w=w+4;
				    }

				}
			
				x = ((document.body.clientWidth - w) / 2);
				y = ((document.body.clientHeight - h) / 2) + document.body.scrollTop;
				
				if(x<1)
				{
				    x = 1;
				}
				
			    if(y<1)
				{
				    y = 1;
				}

				objDiv.style.posLeft = x;
				objDiv.style.posTop = y;
				
				objDiv.style.width = w;
				objDiv.style.height = h;
				
				
                objDiv.style.display = '';

			}


			function createImgPopup(imgSrc)
			{
			    document.all.divImgPopup.innerHTML = "<img id='imgPupup' src='"+imgSrc+"' alt='Å¬¸¯ÇÏ½Ã¸é Ã¢ÀÌ ´ÝÈü´Ï´Ù.' align='middle' onClick='document.all.divImgPopup.style.display = \"none\";document.all.divImgPopup.innerHTML =\"\";' style='cursor:pointer;'>";
				document.all.imgPupup.src = imgSrc;
				document.all.imgPupup.onload();
			}
			
			
			function createImgOnload(objImg)
			{
                var defaultW = 550;
                var defaultH = 550;

				var w;
			    var h;

				w = objImg.width;
				h = objImg.height;
				
				if(w > defaultW)
				{
				    w=defaultW;
				    if(h > defaultH){
				        h=defaultH;
				    }
				    else
				    {
				        h=h+20;
				    }
				}
				else
				{
				    if(h > defaultH){
				        h=defaultH;
				        w=w+20;
				    }
				    else
				    {
				        h=h+4;
				        w=w+4;
				    }

				}
			
				x = ((document.body.clientWidth - w) / 2);
				y = ((document.body.clientHeight - h) / 2) + document.body.scrollTop;
				
				if(x<1)
				{
				    x = 1;
				}
				
			    if(y<1)
				{
				    y = 1;
				}

				document.all.divImgPopup.style.posLeft = x;
				document.all.divImgPopup.style.posTop = y;
				
				document.all.divImgPopup.style.width = w;
				document.all.divImgPopup.style.height = h;
				
				
                document.all.divImgPopup.style.display = '';
			}
