function image_zoom(title,image_source,height,width)
{
        zoom_option = "height="+height+",width="+width+",scrollbars=no,screenY=0,screenX=0,resizable=no";
        zoom = window.open("",title,zoom_option);
        zoom.focus();
        content=""+
                "<html>\n"+
                "        <head>\n"+
                "                <title>\n"+
                "                        "+title+"\n"+
                "                </title>\n"+
                "        </head>\n"+
                "        <body style='margin: 0px;'>\n"+
                "                <div style='max-height: auto; max-width: auto; overflow: hidden; text-align: center; vertical-align: middle;'>\n"+
                "                        <a href='#' onClick='javascript:self.close();'><img border='0' src='"+image_source+"'></a>\n"+
                "                </div>\n"+
                "        </body>\n"+
                "</html>"+
                "";
        zoom.document.write(content);
}

function hide_layer()
{
        document.getElementById("info_layer").style.visibility = "hidden";
}

function open_new_window(title, url, height, width, scroll)
{
        window_option = "height="+height+", width="+width+", scrollbars="+scroll+", screenY=0, screenX=0, resizable=no";
        new_window = window.open(url, title, window_option);
        new_window.focus();
}

function preloadimages()
{
        var images=new Array()
         for (i=0;i<preloadimages.arguments.length;i++)
                 {        
                         images[i]=new Image()
                         images[i].src=preloadimages.arguments[i]
                }        
}

function resize_iframe(obj)
{
  docHeight = news_content.document.body.scrollHeight
  obj.style.height = docHeight + 10 + 'px';
}

function resize_piframe(obj)
{
  target_iFrame=document.getElementsByName(obj)[0];
  target_iFrame.style.height = window.frames[obj].document.getElementsByTagName('body')[0].scrollHeight+10;
}
