//*----------------------------------------------------------------------------*/
//*     (c)Copyright 2010 Gifts And Things, All Rights Reserved                */
//*                                                                            */
//*     This document contains proprietary and confidential information. The   */
//*     contents of this document may not be disclosed to third parties,       */
//*     copied, or duplicated in any form, in whole or in part, without the    */
//*     prior written permission of 1st4Eve-Online.                            */
//*                                                                            */
//*     This software is protected by the copyright laws and international     */
//*     copyright treaties, as well as other intellectual property laws and    */
//*     treaties.                                                              */
//*----------------------------------------------------------------------------*/

var control=1
var h=250
var i=1

function zoomoff(zoomimage)
{
	if(control == 1)
	{
        i=i+20;
        h=h-10;
	    if(h < 1)
	    {
	        control=2;
        }
        else
        {
            document.getElementById(zoomimage).style.position="relative";
            document.getElementById(zoomimage).style.left=+i;
            document.getElementById(zoomimage).style.top=+i;
            document.getElementById(zoomimage).style.width=h;
            document.getElementById(zoomimage).style.height=h;
	    }
	    if(control == 1)
	    {
            timer=setTimeout('zoomoff("' + zoomimage + '")',5);
        }
    }
	if(control == 2)
	{
        i=i-20;
        h=h+10;
	    if(h > 250)
	    {
	        control=1;
            clearTimeout(timer);
	    }
        else
        {
            document.getElementById(zoomimage).style.position="relative";
            document.getElementById(zoomimage).style.left=+i;
            document.getElementById(zoomimage).style.top=+i;
            document.getElementById(zoomimage).style.width=h;
            document.getElementById(zoomimage).style.height=h;
	    }
	    if(control == 2)
	    {
            timer=setTimeout('zoomoff("' + zoomimage + '")',5);
        }
    }
}

