if (!window.SilverlightJSApplication4)
	window.SilverlightJSApplication4 = {};
	
// Global variables used to keep track of the 
// mouse position and whether the object is captured
// by the mouse.
var isMouseCaptured;
var mouseVerticalPosition;
var mouseHorizontalPosition;



var ccrotarget = "counterclockrotato"
var ccrotargeta = "ccra"
var crotarget = "clockrotato"
var crotargeta = "cra"
var blahrtarget = "blahr";

var zintarget = "zin";
var zintargetax = "zinbx";
var zintargetay = "zinby";
var zouttarget = "zout";
var zouttargetax = "zoutbx";
var zouttargetay = "zoutby";
var qtarget = "q3";

var d1ycenter = 0.0;
var d2ycenter = 0.0;
var d3ycenter = 0.0;
var dxcenter = 0.0;

function dhandleMouseDown (sender, args) 
{
    var check = sender.findName("q1");
    //alert(check["Width"]);




  var item = sender;
  /*
  //alert(item["Name"]);
  if (item["Name"] == "blahdet")
  {
        //alert ("wow");
        ccrotarget = "counterclockrotatodet"
        ccrotargeta = "ccradet"
        crotarget = "clockrotatodet"
        crotargeta = "cradet"
        blahrtarget = "blahdetr"
        
        zintarget = "zindet";
        zintargetax = "zinbxdet";
        zintargetay = "zinbydet";
        zouttarget = "zoutdet";
        zouttargetax = "zoutbxdet";
        zouttargetay = "zoutbydet";
        qtarget = "q3det";
  }
  else
  {
        ccrotarget = "counterclockrotato"
        ccrotargeta = "ccra"
        crotarget = "clockrotato"
        crotargeta = "cra"
        blahrtarget = "blahr";
        
        zintarget = "zin";
        zintargetax = "zinbx";
        zintargetay = "zinby";
        zouttarget = "zout";
        zouttargetax = "zoutbx";
        zouttargetay = "zoutby";
        qtarget = "q3";
  }
  */
  
  if (((item["Name"] == "blah")&&(blahrtarget == "blahr"))||((item["Name"] == "blahdet")&&(blahrtarget == "blahdetr")))
  {
      mouseVerticalPosition = args.getPosition(null).y;
      mouseHorizontalPosition = args.getPosition(null).x;
      isMouseCaptured = true;
      item.CaptureMouse();
  }
}

function dhandleMouseMove (sender, args) 
{
  var item = sender;
  if (isMouseCaptured) 
  {

    // Calculate the current position of the object.
    var deltaV = args.getPosition(null).y - mouseVerticalPosition;
    var deltaH = args.getPosition(null).x - mouseHorizontalPosition;
    var newTop = deltaV + item["Canvas.Top"];
    var newLeft = deltaH + item["Canvas.Left"];

    // Set new position of object.
    item["Canvas.Top"] = newTop;
    item["Canvas.Left"] = newLeft;

    // Update position global variables.
    mouseVerticalPosition = args.getPosition(null).y;
    mouseHorizontalPosition = args.getPosition(null).x;
  }
}

function dhandleMouseUp (sender, args) 
{
  var item = sender;
  isMouseCaptured = false;
  item.ReleaseMouseCapture();
  mouseVerticalPosition = -1;
  mouseHorizontalPosition = -1;
}
function dhandleMouseLeave (sender, args) 
{
  //var item = sender;
  var item = sender.findName("blah");
  
  isMouseCaptured = false;
  item.ReleaseMouseCapture();
  mouseVerticalPosition = -1;
  mouseHorizontalPosition = -1;
}

function detclick (sender, eventArgs) 
{
    if (blahrtarget == "blahdetr")
    {
        
        
        var item = sender;
        if (item["Name"] == "re10")
        {
            var mouseDownAnimation = sender.findName("mouseDown10");
		    mouseDownAnimation.begin(); 
                      
            var zo1 = sender.findName("zindet"); 
            var zo2 = sender.findName("zoutdet"); 
            var translate = sender.findName("blahdet");
            var scale = sender.findName("q3det");

            var tempop = translate["Opacity"];
            translate["Opacity"] = 0.0;
            
            zo1.stop();
	        zo2.stop();
            
            translate["Canvas.top"] = (300 - d1ycenter);
            translate["Canvas.left"] = 0;
            //DLH+8 09/19/08 jareds mull details
            if (dxcenter > 0)
            {
                translate["Canvas.left"] = 2.2 * (0.0 - (0.0 - dxcenter));
            }
            else
            {
                translate["Canvas.left"] = 0;
            }
            
            scale["CenterY"] = d1ycenter;
            scale["ScaleX"] = 2.2;
            scale["ScaleY"] = 2.2;
            translate["Opacity"] = tempop;
            
        }
        else if (item["Name"] == "re11")
        {
            var mouseDownAnimation = sender.findName("mouseDown11");
		    mouseDownAnimation.begin(); 
		    
            var zo1 = sender.findName("zindet"); 
            var zo2 = sender.findName("zoutdet"); 
            var translate = sender.findName("blahdet");
            var scale = sender.findName("q3det");

            var tempop = translate["Opacity"];
            translate["Opacity"] = 0.0;
            
            zo1.stop();
	        zo2.stop();
            
            translate["Canvas.top"] = (300 - d2ycenter);
            //DLH+8 09/19/08 jareds mull details
            if (dxcenter > 0)
            {
                translate["Canvas.left"] = 2.2 * (0.0 - (0.0 - dxcenter));
            }
            else
            {
                translate["Canvas.left"] = 0;
            }
            
            scale["CenterY"] = d2ycenter;
            scale["ScaleX"] = 2.2;
            scale["ScaleY"] = 2.2;
            translate["Opacity"] = tempop;
        }
        else if (item["Name"] == "re12")
        {
            var mouseDownAnimation = sender.findName("mouseDown12");
		    mouseDownAnimation.begin(); 
        
            var zo1 = sender.findName("zindet"); 
            var zo2 = sender.findName("zoutdet"); 
            var translate = sender.findName("blahdet");
            var scale = sender.findName("q3det");

            var tempop = translate["Opacity"];
            translate["Opacity"] = 0.0;
            
            zo1.stop();
	        zo2.stop();
            
            translate["Canvas.top"] = (300 - d3ycenter);
            //DLH+8 09/19/08 jareds mull details
            if (dxcenter > 0)
            {
                translate["Canvas.left"] = 2.2 * (0.0 - (0.0 - dxcenter));
            }
            else
            {
                translate["Canvas.left"] = 0;
            }
            
            
            
            scale["CenterY"] = d3ycenter;
            scale["ScaleX"] = 2.2;
            scale["ScaleY"] = 2.2;
            translate["Opacity"] = tempop;
        }
        else if (item["Name"] == "re13")
        {
            var mouseDownAnimation = sender.findName("mouseDown13");
		    mouseDownAnimation.begin(); 
        
            var zo1 = sender.findName("zindet"); 
            var zo2 = sender.findName("zoutdet"); 
            var translate = sender.findName("blahdet");
            var scale = sender.findName("q3det");

            var tempop = translate["Opacity"];
            translate["Opacity"] = 0.0;
            
            zo1.stop();
	        zo2.stop();
            
            translate["Canvas.top"] = 0;
            translate["Canvas.left"] = 0;
            scale["CenterY"] = 350;
            scale["ScaleX"] = 0.8;
            scale["ScaleY"] = 0.8;
            translate["Opacity"] = tempop;
        }
    }
                                                       
}


function detenter (sender, eventArgs) 
{
    if (blahrtarget == "blahdetr")
    {
        
        var item = sender;
        if (item["Name"] == "re10")
        {
            var mouseEnterAnimation = sender.findName("mouseEnter10");
		    mouseEnterAnimation.begin(); 
		    
            //Start of Code Block To Make Tooltip Appear
	        var ttFadeinAnimation = sender.findName("ttfadein");
	        var ttc = sender.findName("ttcanvas");
	        var ttt = sender.findName("tttext");
	        var ttr = sender.findName("ttrect");
	        //ttc["Opacity"] = 1.0;
	        ttc["Canvas.Left"] = 65;
	        ttc["Canvas.Top"] = 90;
	        ttt["Text"] = "Press to zoom to the head detail.";
	        ttc["Width"] = 165;
	        ttc["Height"] = 15;
	        ttr["Width"] = 165;
	        ttr["Height"] = 15;
	        ttFadeinAnimation.begin();
	        // End of tooltip code block

            
        }
        else if (item["Name"] == "re11")
        {
            var mouseEnterAnimation = sender.findName("mouseEnter11");
		    mouseEnterAnimation.begin(); 
            //Start of Code Block To Make Tooltip Appear
		    var ttFadeinAnimation = sender.findName("ttfadein");
		    var ttc = sender.findName("ttcanvas");
		    var ttt = sender.findName("tttext");
		    var ttr = sender.findName("ttrect");
		    //ttc["Opacity"] = 1.0;
		    ttc["Canvas.Left"] = 65;
		    ttc["Canvas.Top"] = 140;
		    ttt["Text"] = "Press to zoom to the Jamb detail.";
		    ttc["Width"] = 165;
		    ttc["Height"] = 15;
		    ttr["Width"] = 165;
		    ttr["Height"] = 15;
		    ttFadeinAnimation.begin();
		    // End of tooltip code block

        }
        else if (item["Name"] == "re12")
        {
            var mouseEnterAnimation = sender.findName("mouseEnter12");
		    mouseEnterAnimation.begin(); 
            //Start of Code Block To Make Tooltip Appear
		    var ttFadeinAnimation = sender.findName("ttfadein");
		    var ttc = sender.findName("ttcanvas");
		    var ttt = sender.findName("tttext");
		    var ttr = sender.findName("ttrect");
		    //ttc["Opacity"] = 1.0;
		    ttc["Canvas.Left"] = 65;
		    ttc["Canvas.Top"] = 190;
		    ttt["Text"] = "Press to zoom to the sill detail.";
		    ttc["Width"] = 155;
		    ttc["Height"] = 15;
		    ttr["Width"] = 155;
		    ttr["Height"] = 15;
		    ttFadeinAnimation.begin();
		    // End of tooltip code block

        }
        else if (item["Name"] == "re13")
        {
            var mouseEnterAnimation = sender.findName("mouseEnter13");
		    mouseEnterAnimation.begin(); 
            //Start of Code Block To Make Tooltip Appear
		    var ttFadeinAnimation = sender.findName("ttfadein");
		    var ttc = sender.findName("ttcanvas");
		    var ttt = sender.findName("tttext");
		    var ttr = sender.findName("ttrect");
		    //ttc["Opacity"] = 1.0;
		    ttc["Canvas.Left"] = 65;
		    ttc["Canvas.Top"] = 240;
		    ttt["Text"] = "Press to see all detail sections.";
		    ttc["Width"] = 152;
		    ttc["Height"] = 15;
		    ttr["Width"] = 152;
		    ttr["Height"] = 15;
		    ttFadeinAnimation.begin();
		    // End of tooltip code block

        }
    }
                                                       
}

function detleave (sender, eventArgs) 
{
    if (blahrtarget == "blahdetr")
    {
        var item = sender;
        if (item["Name"] == "re10")
        {
            var mouseLeaveAnimation = sender.findName("mouseLeave10");
		    mouseLeaveAnimation.begin(); 
        }
        else if (item["Name"] == "re11")
        {
            var mouseLeaveAnimation = sender.findName("mouseLeave11");
		    mouseLeaveAnimation.begin(); 
        }
        else if (item["Name"] == "re12")
        {
            var mouseLeaveAnimation = sender.findName("mouseLeave12");
		    mouseLeaveAnimation.begin(); 
        }
        else if (item["Name"] == "re13")
        {
            var mouseLeaveAnimation = sender.findName("mouseLeave13");
		    mouseLeaveAnimation.begin(); 
        }
        
        
        //Code Block to hide the tooltip when it is not in use
	    var ttFadeinAnimation = sender.findName("ttfadein");
	    ttFadeinAnimation.stop();
	    var ttc = sender.findName("ttcanvas");
	    var ttt = sender.findName("tttext");
	    var ttr = sender.findName("ttrect");
	    ttc["Opacity"] = 0.0;
	    ttc["Canvas.Left"] = 1;
	    ttc["Canvas.Top"] = 1;
	    ttt["Text"] = "";
	    ttc["Width"] = 1;
	    ttc["Height"] = 1;
	    ttr["Width"] = 1;
	    ttr["Height"] = 1;
	    //end of tooltip hiding codeblock
        
    }
                                                       
}

function detup (sender, eventArgs) 
{
    if (blahrtarget == "blahdetr")
    {
        var item = sender;
        if (item["Name"] == "re10")
        {
            var mouseUpAnimation = sender.findName("mouseUp10");
		    mouseUpAnimation.begin(); 
        }
        else if (item["Name"] == "re11")
        {
            var mouseUpAnimation = sender.findName("mouseUp11");
		    mouseUpAnimation.begin();  
        }
        else if (item["Name"] == "re12")
        {
            var mouseUpAnimation = sender.findName("mouseUp12");
		    mouseUpAnimation.begin(); 
        }
        else if (item["Name"] == "re13")
        {
            var mouseUpAnimation = sender.findName("mouseUp13");
		    mouseUpAnimation.begin(); 
        }
         
    }
                                                       
}

SilverlightJSApplication4.Scene = function() 
{

}

SilverlightJSApplication4.Scene.prototype =
{
    getblahrtarget: function() 
	{
        return blahrtarget;
    },


	handleLoad: function(plugIn, userContext, rootElement) 
	{
		this.plugIn = plugIn;
		
		if (window.location.href.split("SNI").length > 1)
        {
            //var tsVert =  document.getElementById("tsVert");
            //tsVert.selectedIndex = 1;
            clicker2();
        }
        else
        {
            clicker1();
        }


        // Retrieve the EnableFrameRateCounter property.
        
        //plugIn.settings.enableFrameRateCounter = true;
		
		// Sample button event hookup: Find the button and then attach event handlers
		//this.button = rootElement.children.getItem(0);	
		this.button = rootElement.findName("re1");
		this.button.addEventListener("MouseEnter", Silverlight.createDelegate(this, this.handleMouseEnter1));
		this.button.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown1));
		this.button.addEventListener("MouseLeftButtonUp", Silverlight.createDelegate(this, this.handleMouseUp1));
		this.button.addEventListener("MouseLeave", Silverlight.createDelegate(this, this.handleMouseLeave1));
		
		this.button = rootElement.findName("re2");
		this.button.addEventListener("MouseLeftButtonUp", Silverlight.createDelegate(this, this.handleMouseUp2));
		this.button.addEventListener("MouseEnter", Silverlight.createDelegate(this, this.handleMouseEnter2));
		this.button.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown2));
		this.button.addEventListener("MouseLeave", Silverlight.createDelegate(this, this.handleMouseLeave2));		
		
		this.button = rootElement.findName("re4");
		this.button.addEventListener("MouseLeftButtonUp", Silverlight.createDelegate(this, this.handleMouseUp3));
		this.button.addEventListener("MouseEnter", Silverlight.createDelegate(this, this.handleMouseEnter3));
		this.button.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown3));
		this.button.addEventListener("MouseLeave", Silverlight.createDelegate(this, this.handleMouseLeave3));
		
		this.button = rootElement.findName("re3");
		this.button.addEventListener("MouseLeftButtonUp", Silverlight.createDelegate(this, this.handleMouseUp4));
		this.button.addEventListener("MouseEnter", Silverlight.createDelegate(this, this.handleMouseEnter4));
		this.button.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown4));
		this.button.addEventListener("MouseLeave", Silverlight.createDelegate(this, this.handleMouseLeave4));
		
		this.button = rootElement.findName("re5");
		this.button.addEventListener("MouseLeftButtonUp", Silverlight.createDelegate(this, this.handleMouseUp5));
		this.button.addEventListener("MouseEnter", Silverlight.createDelegate(this, this.handleMouseEnter5));
		this.button.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown5));
		this.button.addEventListener("MouseLeave", Silverlight.createDelegate(this, this.handleMouseLeave5));
		
		this.button = rootElement.findName("re6");
		this.button.addEventListener("MouseLeftButtonUp", Silverlight.createDelegate(this, this.handleMouseUp6));
		this.button.addEventListener("MouseEnter", Silverlight.createDelegate(this, this.handleMouseEnter6));
		this.button.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown6));
		this.button.addEventListener("MouseLeave", Silverlight.createDelegate(this, this.handleMouseLeave6));
		
		this.button = rootElement.findName("re7");
		this.button.addEventListener("MouseLeftButtonUp", Silverlight.createDelegate(this, this.handleMouseUp7));
		this.button.addEventListener("MouseEnter", Silverlight.createDelegate(this, this.handleMouseEnter7));
		this.button.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown7));
		this.button.addEventListener("MouseLeave", Silverlight.createDelegate(this, this.handleMouseLeave7));
		
		this.button = rootElement.findName("re8");
		this.button.addEventListener("MouseLeftButtonUp", Silverlight.createDelegate(this, this.handleMouseUp8));
		this.button.addEventListener("MouseEnter", Silverlight.createDelegate(this, this.handleMouseEnter8));
		this.button.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown8));
		this.button.addEventListener("MouseLeave", Silverlight.createDelegate(this, this.handleMouseLeave8));
		
		this.button = rootElement.findName("re9");
		this.button.addEventListener("MouseLeftButtonUp", Silverlight.createDelegate(this, this.handleMouseUp9));
		this.button.addEventListener("MouseEnter", Silverlight.createDelegate(this, this.handleMouseEnter9));
		this.button.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown9));
		this.button.addEventListener("MouseLeave", Silverlight.createDelegate(this, this.handleMouseLeave9));
		
		
		
		/*
		var host = rootElement.getHost();
		var Body = rootElement.findName("blahdet");

		//var commandarray = window.document.getElementById("dxfelevationpath").value.split("@#$");
        //alert(window.document.getElementById("dxfelevationpath").value);
		
		var commandarray = window.document.getElementById("dxfdetailpath").value.split("@#$");
        //alert(window.document.getElementById("dxfdetailpath").value);
		
		var newline;
		for ( var i=0, len=commandarray.length - 1; i<len; ++i )
		{
		    
		    //alert(commandarray[i]);
		    try
		    {
		        //alert(commandarray[i]);
                newline = host.content.createFromXaml(commandarray[i]);
                Body.children.Add(newline);
            }
            catch (e)
            {
                //I best take this out later
                alert(commandarray[i]);
            }
                
    		
        }
        */
        
        
        /*
        Body = rootElement.findName("blah");
        var commandarray1 = window.document.getElementById("dxfelevationpath").value.split("@#$");
        //alert(window.document.getElementById("dxfdetailpath").value);
		
		var newline1;
		for ( var i=0, len=commandarray1.length - 1; i<len; ++i )
		{
		    
		    //alert(commandarray1[i]);
            newline1 = host.content.createFromXaml(commandarray1[i]);
    		Body.children.Add(newline1);
        }
		
		window.document.getElementById("dxfelevationpath").value = "";
		window.document.getElementById("dxfdetailpath").value = "";
		*/
		
		QuestionUpdate();
	},
	
	// Sample event handlers
	
	elevLoadStart: function() 
	{
	    //alert("in scene elev load start");
        var elevLoadSB = document.getElementById('SilverlightPlugIn').content.findName("elevLoadSB");
                document.getElementById('SilverlightPlugIn').content.findName("elevLoadImage")["opacity"] = 0.4;
        document.getElementById('SilverlightPlugIn').content.findName("elevLoadText")["opacity"] = 0.4;
        elevLoadSB.begin();
	},
	
	elevLoadStop: function() 
	{
        var elevLoadSB = document.getElementById('SilverlightPlugIn').content.findName("elevLoadSB");
        elevLoadSB.stop();
        document.getElementById('SilverlightPlugIn').content.findName("elevLoadImage")["opacity"] = 0.0;
        document.getElementById('SilverlightPlugIn').content.findName("elevLoadText")["opacity"] = 0.0;
	},
	
	detLoadStart: function() 
	{
	    //alert("in scene elev load start");
        var detLoadSB = document.getElementById('SilverlightPlugIn').content.findName("detLoadSB");
        document.getElementById('SilverlightPlugIn').content.findName("detLoadImage")["opacity"] = 0.4;
        document.getElementById('SilverlightPlugIn').content.findName("detLoadText")["opacity"] = 0.4;
        detLoadSB.begin();
	},
	
	detLoadStop: function() 
	{
        var detLoadSB = document.getElementById('SilverlightPlugIn').content.findName("detLoadSB");
        detLoadSB.stop();
        document.getElementById('SilverlightPlugIn').content.findName("detLoadImage")["opacity"] = 0.0;
        document.getElementById('SilverlightPlugIn').content.findName("detLoadText")["opacity"] = 0.0;
	},
	
	qwow: function() 
	{
		// The following code shows how to find an element by name and call a method on it.
		
		var host = document.getElementById('SilverlightPlugIn');
		
		
		var Body = host.content.findName("blah");
        var commandarray1 = ElevationSLString.split("@#$");
        //alert(window.document.getElementById("dxfdetailpath").value);
		Body.children.clear();
		var newline1;
		for ( var i=0, len=commandarray1.length - 1; i<len; ++i )
		{
		    
		    //alert(commandarray1[i]);
		    try
	        {
                newline1 = host.content.createFromXaml(commandarray1[i]);
    		    Body.children.Add(newline1);
    		}
            catch(e)
            {
            }
        }
        
	},
	
	qwowdet: function() 
	{
		// The following code shows how to find an element by name and call a method on it.

		var host = document.getElementById('SilverlightPlugIn');
		
		var Body = host.content.findName("blahdet");
        var commandarray1 = DetailsSLString.split("@#$");
        //alert(DetailsSLString);
		Body.children.clear();
		var newline1;
		for ( var i=0, len=commandarray1.length - 1; i<len; ++i )
		{
		    if (commandarray1[i].charAt(0) == "d")
		    {
		        if (commandarray1[i].charAt(1) == "1")
		        {
		            d1ycenter = commandarray1[i].split("=")[1]
		        }
		        else if (commandarray1[i].charAt(1) == "2")
		        {
		            d2ycenter = commandarray1[i].split("=")[1]
		        }
		        else if (commandarray1[i].charAt(1) == "3")
		        {
		            d3ycenter = commandarray1[i].split("=")[1]
		        }
		        else if (commandarray1[i].charAt(1) == "x")
		        {
		            dxcenter = commandarray1[i].split("=")[1]
		        }
		    }
		    else
		    {
		        //alert(commandarray1[i]);
		        try
		        {
                    newline1 = host.content.createFromXaml(commandarray1[i]);
                    Body.children.Add(newline1);
                }
                catch(e)
                {
                }
            
    		    
    		}
        }
        //alert (d1ycenter);
       //alert (d2ycenter);
        //alert (d3ycenter);
	},
	
	
	handleMouseEnter1: function(sender, eventArgs) 
	{
		// The following code shows how to find an element by name and call a method on it.
		var mouseEnterAnimation = sender.findName("mouseEnter1");
		mouseEnterAnimation.begin(); 
		
		//Start of Code Block To Make Tooltip Appear
		var ttFadeinAnimation = sender.findName("ttfadein");
		var ttc = sender.findName("ttcanvas");
		var ttt = sender.findName("tttext");
		var ttr = sender.findName("ttrect");
		//ttc["Opacity"] = 1.0;
		ttc["Canvas.Left"] = 0;
		ttc["Canvas.Top"] = 50;
		ttt["Text"] = "Press to rotate the unit counter-clockwise.";
		ttc["Width"] = 210;
		ttc["Height"] = 15;
		ttr["Width"] = 210;
		ttr["Height"] = 15;
		ttFadeinAnimation.begin();
		// End of tooltip code block
	},
		handleMouseEnter2: function(sender, eventArgs) 
	{
		// The following code shows how to find an element by name and call a method on it.
		var mouseEnterAnimation = sender.findName("mouseEnter2");
		mouseEnterAnimation.begin(); 
		
		//Start of Code Block To Make Tooltip Appear
		var ttFadeinAnimation = sender.findName("ttfadein");
		var ttc = sender.findName("ttcanvas");
		var ttt = sender.findName("tttext");
		var ttr = sender.findName("ttrect");
		//ttc["Opacity"] = 1.0;
		ttc["Canvas.Left"] = 60;
		ttc["Canvas.Top"] = 50;
		ttt["Text"] = "Press to rotate the unit clockwise.";
		ttc["Width"] = 167;
		ttc["Height"] = 15;
		ttr["Width"] = 167;
		ttr["Height"] = 15;
		ttFadeinAnimation.begin();
		// End of tooltip code block
	},
		handleMouseEnter3: function(sender, eventArgs) 
	{
		// The following code shows how to find an element by name and call a method on it.
		var mouseEnterAnimation = sender.findName("mouseEnter4");
		mouseEnterAnimation.begin(); 
		
		//Start of Code Block To Make Tooltip Appear
		var ttFadeinAnimation = sender.findName("ttfadein");
		var ttc = sender.findName("ttcanvas");
		var ttt = sender.findName("tttext");
		var ttr = sender.findName("ttrect");
		//ttc["Opacity"] = 1.0;
		ttc["Canvas.Left"] = 180;
		ttc["Canvas.Top"] = 50;
		ttt["Text"] = "Press to zoom out on the unit.";
		ttc["Width"] = 152;
		ttc["Height"] = 15;
		ttr["Width"] = 152;
		ttr["Height"] = 15;
		ttFadeinAnimation.begin();
		// End of tooltip code block
	},
		handleMouseEnter4: function(sender, eventArgs) 
	{
		// The following code shows how to find an element by name and call a method on it.
		var mouseEnterAnimation = sender.findName("mouseEnter3");
		mouseEnterAnimation.begin(); 
		
		//Start of Code Block To Make Tooltip Appear
		var ttFadeinAnimation = sender.findName("ttfadein");
		var ttc = sender.findName("ttcanvas");
		var ttt = sender.findName("tttext");
		var ttr = sender.findName("ttrect");
		//ttc["Opacity"] = 1.0;
		ttc["Canvas.Left"] = 120;
		ttc["Canvas.Top"] = 50;
		ttt["Text"] = "Press to zoom in on the unit.";
		ttc["Width"] = 145;
		ttc["Height"] = 15;
		ttr["Width"] = 145;
		ttr["Height"] = 15;
		ttFadeinAnimation.begin();
		// End of tooltip code block
	},
			handleMouseEnter5: function(sender, eventArgs) 
	{
		// The following code shows how to find an element by name and call a method on it.
		var mouseEnterAnimation = sender.findName("mouseEnter5");
		mouseEnterAnimation.begin(); 
		
		//Start of Code Block To Make Tooltip Appear
		var ttFadeinAnimation = sender.findName("ttfadein");
		var ttc = sender.findName("ttcanvas");
		var ttt = sender.findName("tttext");
		var ttr = sender.findName("ttrect");
		//ttc["Opacity"] = 1.0;
		ttc["Canvas.Left"] = 464;
		ttc["Canvas.Top"] = 50;
		ttt["Text"] = "Press to export drawing to DXF.";
		ttc["Width"] = 157;
		ttc["Height"] = 15;
		ttr["Width"] = 157;
		ttr["Height"] = 15;
		ttFadeinAnimation.begin();
		// End of tooltip code block
	},
			handleMouseEnter6: function(sender, eventArgs) 
	{
		// The following code shows how to find an element by name and call a method on it.
		var mouseEnterAnimation = sender.findName("mouseEnter6");
		mouseEnterAnimation.begin(); 
		
		//Start of Code Block To Make Tooltip Appear
		var ttFadeinAnimation = sender.findName("ttfadein");
		var ttc = sender.findName("ttcanvas");
		var ttt = sender.findName("tttext");
		var ttr = sender.findName("ttrect");
		//ttc["Opacity"] = 1.0;
		ttc["Canvas.Left"] = 474;
		ttc["Canvas.Top"] = 50;
		ttt["Text"] = "Press to export the drawing as a JPEG image.";
		ttc["Width"] = 220;
		ttc["Height"] = 15;
		ttr["Width"] = 220;
		ttr["Height"] = 15;
		ttFadeinAnimation.begin();
		// End of tooltip code block
	},
			handleMouseEnter7: function(sender, eventArgs) 
	{
		// The following code shows how to find an element by name and call a method on it.
		var mouseEnterAnimation = sender.findName("mouseEnter7");
		mouseEnterAnimation.begin(); 
		
		//Start of Code Block To Make Tooltip Appear
		var ttFadeinAnimation = sender.findName("ttfadein");
		var ttc = sender.findName("ttcanvas");
		var ttt = sender.findName("tttext");
		var ttr = sender.findName("ttrect");
		//ttc["Opacity"] = 1.0;
		ttc["Canvas.Left"] = 509;
		ttc["Canvas.Top"] = 50;
		ttt["Text"] = "Press to view the drawing full screen.";
		ttc["Width"] = 184;
		ttc["Height"] = 15;
		ttr["Width"] = 184;
		ttr["Height"] = 15;
		ttFadeinAnimation.begin();
		// End of tooltip code block
	},
			handleMouseEnter8: function(sender, eventArgs) 
	{
		// The following code shows how to find an element by name and call a method on it.
		var mouseEnterAnimation = sender.findName("mouseEnter8");
		mouseEnterAnimation.begin();
		
		//Start of Code Block To Make Tooltip Appear
		var ttFadeinAnimation = sender.findName("ttfadein");
		var ttc = sender.findName("ttcanvas");
		var ttt = sender.findName("tttext");
		var ttr = sender.findName("ttrect");
		//ttc["Opacity"] = 1.0;
		ttc["Canvas.Left"] = 469;
		ttc["Canvas.Top"] = 50;
		ttt["Text"] = "Press to open a printable view of the drawing.";
		ttc["Width"] = 226;
		ttc["Height"] = 15;
		ttr["Width"] = 226;
		ttr["Height"] = 15;
		ttFadeinAnimation.begin();
		// End of tooltip code block
	},
			handleMouseEnter9: function(sender, eventArgs) 
			
	{
		// The following code shows how to find an element by name and call a method on it.
		var mouseEnterAnimation = sender.findName("mouseEnter9");
		mouseEnterAnimation.begin(); 
		
		//Start of Code Block To Make Tooltip Appear
		var ttFadeinAnimation = sender.findName("ttfadein");
		var ttc = sender.findName("ttcanvas");
		var ttt = sender.findName("tttext");
		var ttr = sender.findName("ttrect");
		//ttc["Opacity"] = 1.0;
		ttc["Canvas.Left"] = 282;
		ttc["Canvas.Top"] = 50;
		ttt["Text"] = "Press to switch between elevation view and detail view.";
		ttc["Width"] = 270;
		ttc["Height"] = 15;
		ttr["Width"] = 270;
		ttr["Height"] = 15;
		ttFadeinAnimation.begin();
		// End of tooltip code block
		
		mouseEnterAnimation.begin(); 
		
		
		
		
		
	},
	
	
	handleMouseDown1: function(sender, eventArgs) 
	{
	    //getELSLS();
	    //alert(ElevationSLString);
	    
        

	
		var mouseDownAnimation = sender.findName("mouseDown1");
		mouseDownAnimation.begin(); 
		var check = sender.findName(blahrtarget);

	                                      
	        //var rotato2 = sender.findName("counterclockrotatodet"); 
	        //var rotato3 = sender.findName("ccradet"); 
	        
	        var rotato2 = sender.findName(ccrotarget); 
	        var rotato3 = sender.findName(ccrotargeta);
	        
	        rotato2.pause();
	        //rotato3["Storyboard.TargetName"] = "blahrdet";
	        
	        rotato3["From"] = check["Angle"];
	        rotato3["To"] = (check["Angle"] - 360);
	        rotato2.begin(); 
	    //}
	            
	},
	
		handleMouseDown2: function(sender, eventArgs) 
	{
		var mouseDownAnimation = sender.findName("mouseDown2");
		mouseDownAnimation.begin(); 
		//var check = sender.findName("blahr");
		var check = sender.findName(blahrtarget);

	        //var rotato2 = sender.findName("clockrotato"); 
	        //var rotato3 = sender.findName("cra"); 
	        
	        var rotato2 = sender.findName(crotarget); 
	        var rotato3 = sender.findName(crotargeta);
	        
	        rotato2.pause();
	        rotato3["From"] = check["Angle"];
	        rotato3["To"] = (check["Angle"] + 360);
	        rotato2.begin(); 
	            
	},
			handleMouseDown3: function(sender, eventArgs) 
	{
		var mouseDownAnimation = sender.findName("mouseDown4");
		mouseDownAnimation.begin(); 
		
			//var check = sender.findName("q3");

	        var check = sender.findName(qtarget);

	        
	        var zo1 = sender.findName(zintarget); 
	        var zo2 = sender.findName(zintargetax);
	        var zo3 = sender.findName(zintargetay);
	        
	        zo1.pause();
	        //alert(check["ScaleX"]);
	        //alert(check["ScaleY"]);
	        zo2["From"] = check["ScaleX"];
	        zo3["From"] = check["ScaleY"];
	        //rotato3["To"] = (check["Angle"] + 360);
	        zo1.begin(); 
	            
	},
			handleMouseDown4: function(sender, eventArgs) 
	{
		var mouseDownAnimation = sender.findName("mouseDown3");
		mouseDownAnimation.begin(); 
		
			//var check = sender.findName("q3");

	        var check = sender.findName(qtarget);

	        
	        var zo1 = sender.findName(zouttarget); 
	        var zo2 = sender.findName(zouttargetax);
	        var zo3 = sender.findName(zouttargetay);
	        
	        zo1.pause();
	        //alert(check["ScaleX"]);
	        //alert(check["ScaleY"]);
	        zo2["From"] = check["ScaleX"];
	        zo3["From"] = check["ScaleY"];
	        //rotato3["To"] = (check["Angle"] + 360);
	        zo1.begin(); 
	            
	},
			handleMouseDown5: function(sender, eventArgs) 
	{
		var mouseDownAnimation = sender.findName("mouseDown5");
		mouseDownAnimation.begin(); 
		
	    if (blahrtarget == "blahr")
	    {
	        //__doPostBack('btnElevation',''); 
	        ExportImage("elevationdxf");
	    }
	    else
	    {
	       // __doPostBack('btnDetails','');
	       ExportImage("detailsdxf"); 
	    }
	},
			handleMouseDown6: function(sender, eventArgs) 
	{
		var mouseDownAnimation = sender.findName("mouseDown6");
		mouseDownAnimation.begin(); 
		
	    if (blahrtarget == "blahr")
	    {
	        //__doPostBack('btnExportElevation','');
	        ExportImage("elevationimage");
	    } 
	    else
	    {
	       // __doPostBack('btnExportDetails','');
	       ExportImage("detailsimage"); 
	    }
	},
			handleMouseDown7: function(sender, eventArgs) 
	{
		var mouseDownAnimation = sender.findName("mouseDown7");
		mouseDownAnimation.begin(); 
	    //window.open('http://localhost/FullscreenView.aspx','Full Screen View');
	    openfs();
	    
	},
			handleMouseDown8: function(sender, eventArgs) 
	{
		var mouseDownAnimation = sender.findName("mouseDown8");
		mouseDownAnimation.begin(); 
		
	    if (blahrtarget == "blahr")
	    {
	        OpenPrintElevation(600, 500); 
	    }
	    else
	    {
	        OpenPrintDetails(600, 500); 
	    }
	},
			handleMouseDown9: function(sender, eventArgs) 
	{
		var mouseDownAnimation = sender.findName("mouseDown9");
		mouseDownAnimation.begin(); 
		if (blahrtarget == "blahr")
	    {
	        
	        var fader = sender.findName("switchdet");
		    fader.begin();
		    
		    var sectioncanv1 = sender.findName("blah");
		    var sectioncanv2 = sender.findName("blahdet");
		    sectioncanv1["Cursor"] = "Default";
		    sectioncanv2["Cursor"] = "Hand";
		    
		    sectioncanv1["Canvas.ZIndex"] = -10;
		    sectioncanv2["Canvas.ZIndex"] =  -8;
		    
		   
		    
		    
		    var headbut = sender.findName("re10");
		    var jambbut = sender.findName("re11");
		    var sillbut = sender.findName("re12");
		    var allbut = sender.findName("re13");
		    
		    headbut["Cursor"] = "Hand";
		    jambbut["Cursor"] = "Hand";
		    sillbut["Cursor"] = "Hand";
		    allbut["Cursor"] = "Hand";
		    
		    headbut["Canvas.ZIndex"] = 0;
		    jambbut["Canvas.ZIndex"] = 0;
		    sillbut["Canvas.ZIndex"] = 0;
		    allbut["Canvas.ZIndex"] = 0;
		    
		    ccrotarget = "counterclockrotatodet"
            ccrotargeta = "ccradet"
            crotarget = "clockrotatodet"
            crotargeta = "cradet"
            blahrtarget = "blahdetr"
            
            zintarget = "zindet";
            zintargetax = "zinbxdet";
            zintargetay = "zinbydet";
            zouttarget = "zoutdet";
            zouttargetax = "zoutbxdet";
            zouttargetay = "zoutbydet";
            qtarget = "q3det";
            
            makeidrop("s");
	        
	    }
	    else
	    {
	        var fader = sender.findName("switchelev");
		    fader.begin();
		    
		    var sectioncanv1 = sender.findName("blah");
		    var sectioncanv2 = sender.findName("blahdet");
		    sectioncanv1["Cursor"] = "Hand";
		    sectioncanv2["Cursor"] = "Default";
		    
		    sectioncanv1["Canvas.ZIndex"] = -8;
		    sectioncanv2["Canvas.ZIndex"] =  -10;
		    
		    
		    
		    
		    
		    var headbut = sender.findName("re10");
		    var jambbut = sender.findName("re11");
		    var sillbut = sender.findName("re12");
		    var allbut = sender.findName("re13");
		    
		    headbut["Cursor"] = "Default";
		    jambbut["Cursor"] = "Default";
		    sillbut["Cursor"] = "Default";
		    allbut["Cursor"] = "Default";
		    
		    headbut["Canvas.ZIndex"] = -10;
		    jambbut["Canvas.ZIndex"] = -10;
		    sillbut["Canvas.ZIndex"] = -10;
		    allbut["Canvas.ZIndex"] = -10;
		    
		    ccrotarget = "counterclockrotato"
            ccrotargeta = "ccra"
            crotarget = "clockrotato"
            crotargeta = "cra"
            blahrtarget = "blahr";
            
            zintarget = "zin";
            zintargetax = "zinbx";
            zintargetay = "zinby";
            zouttarget = "zout";
            zouttargetax = "zoutbx";
            zouttargetay = "zoutby";
            qtarget = "q3";
            
            makeidrop("s");
	    }

	},
	
	
	
	handleMouseUp1: function(sender, eventArgs) 
	{
		var mouseUpAnimation = sender.findName("mouseUp1");
		mouseUpAnimation.begin(); 
		
        var rotato2 = sender.findName(ccrotarget);
        rotato2.pause(); 
                                                                   
	},
	
	handleMouseUp2: function(sender, eventArgs) 
	{
		var mouseUpAnimation = sender.findName("mouseUp2");
		mouseUpAnimation.begin(); 
		

		
			var rotato2 = sender.findName(crotarget);
	            rotato2.pause(); 
                                  
		                                            
	},
	
	handleMouseUp3: function(sender, eventArgs) 
	{
	
	    var mouseUpAnimation = sender.findName("mouseUp4");
		mouseUpAnimation.begin(); 
	
		var zo1 = sender.findName(zintarget);
	    zo1.pause(); 
		                          	                                            
	},
	handleMouseUp4: function(sender, eventArgs) 
	{
	
	    var mouseUpAnimation = sender.findName("mouseUp3");
		mouseUpAnimation.begin(); 
	
		var zo1 = sender.findName(zouttarget);
	    zo1.pause(); 
		                          	                                            
	},
	handleMouseUp5: function(sender, eventArgs) 
	{
	
	    var mouseUpAnimation = sender.findName("mouseUp5");
		mouseUpAnimation.begin();                           	                                            
	},
	handleMouseUp6: function(sender, eventArgs) 
	{
	
	    var mouseUpAnimation = sender.findName("mouseUp5");
		mouseUpAnimation.begin();                           	                                            
	},
	handleMouseUp7: function(sender, eventArgs) 
	{
	
	    var mouseUpAnimation = sender.findName("mouseUp5");
		mouseUpAnimation.begin();                           	                                            
	},
	handleMouseUp8: function(sender, eventArgs) 
	{
	
	    var mouseUpAnimation = sender.findName("mouseUp5");
		mouseUpAnimation.begin();                           	                                            
	},
	handleMouseUp9: function(sender, eventArgs) 
	{
	
	    var mouseUpAnimation = sender.findName("mouseUp9");
		mouseUpAnimation.begin();                           	                                            
	},
	
	handleMouseLeave1: function(sender, eventArgs) 
	{
		var mouseLeaveAnimation = sender.findName("mouseLeave1");
		mouseLeaveAnimation.begin(); 
		
		//Code Block to hide the tooltip when it is not in use
	    var ttFadeinAnimation = sender.findName("ttfadein");
	    ttFadeinAnimation.stop();
	    var ttc = sender.findName("ttcanvas");
	    var ttt = sender.findName("tttext");
	    var ttr = sender.findName("ttrect");
	    ttc["Opacity"] = 0.0;
	    ttc["Canvas.Left"] = 1;
	    ttc["Canvas.Top"] = 1;
	    ttt["Text"] = "";
	    ttc["Width"] = 1;
	    ttc["Height"] = 1;
	    ttr["Width"] = 1;
	    ttr["Height"] = 1;
	    //end of tooltip hiding codeblock
		
		var rotato2 = sender.findName(ccrotarget);
        rotato2.pause(); 
	},
		handleMouseLeave2: function(sender, eventArgs) 
	{
		var mouseLeaveAnimation = sender.findName("mouseLeave2");
		mouseLeaveAnimation.begin(); 

		//Code Block to hide the tooltip when it is not in use
	    var ttFadeinAnimation = sender.findName("ttfadein");
	    ttFadeinAnimation.stop();
	    var ttc = sender.findName("ttcanvas");
	    var ttt = sender.findName("tttext");
	    var ttr = sender.findName("ttrect");
	    ttc["Opacity"] = 0.0;
	    ttc["Canvas.Left"] = 1;
	    ttc["Canvas.Top"] = 1;
	    ttt["Text"] = "";
	    ttc["Width"] = 1;
	    ttc["Height"] = 1;
	    ttr["Width"] = 1;
	    ttr["Height"] = 1;
	    //end of tooltip hiding codeblock
	    
		var rotato2 = sender.findName(crotarget);
	    rotato2.pause(); 
	},
		handleMouseLeave3: function(sender, eventArgs) 
	{
		var mouseLeaveAnimation = sender.findName("mouseLeave4");
		mouseLeaveAnimation.begin(); 

		//Code Block to hide the tooltip when it is not in use
	    var ttFadeinAnimation = sender.findName("ttfadein");
	    ttFadeinAnimation.stop();
	    var ttc = sender.findName("ttcanvas");
	    var ttt = sender.findName("tttext");
	    var ttr = sender.findName("ttrect");
	    ttc["Opacity"] = 0.0;
	    ttc["Canvas.Left"] = 1;
	    ttc["Canvas.Top"] = 1;
	    ttt["Text"] = "";
	    ttc["Width"] = 1;
	    ttc["Height"] = 1;
	    ttr["Width"] = 1;
	    ttr["Height"] = 1;
	    //end of tooltip hiding codeblock
	    
		var zo1 = sender.findName(zintarget);
	    zo1.pause(); 
	},
		handleMouseLeave4: function(sender, eventArgs) 
	{
		var mouseLeaveAnimation = sender.findName("mouseLeave3");
		mouseLeaveAnimation.begin(); 

		//Code Block to hide the tooltip when it is not in use
	    var ttFadeinAnimation = sender.findName("ttfadein");
	    ttFadeinAnimation.stop();
	    var ttc = sender.findName("ttcanvas");
	    var ttt = sender.findName("tttext");
	    var ttr = sender.findName("ttrect");
	    ttc["Opacity"] = 0.0;
	    ttc["Canvas.Left"] = 1;
	    ttc["Canvas.Top"] = 1;
	    ttt["Text"] = "";
	    ttc["Width"] = 1;
	    ttc["Height"] = 1;
	    ttr["Width"] = 1;
	    ttr["Height"] = 1;
	    //end of tooltip hiding codeblock
	    
		var zo1 = sender.findName(zouttarget);
	    zo1.pause(); 
	},
		handleMouseLeave5: function(sender, eventArgs) 
	{
		var mouseLeaveAnimation = sender.findName("mouseLeave5");
		mouseLeaveAnimation.begin(); 
		
		//Code Block to hide the tooltip when it is not in use
	    var ttFadeinAnimation = sender.findName("ttfadein");
	    ttFadeinAnimation.stop();
	    var ttc = sender.findName("ttcanvas");
	    var ttt = sender.findName("tttext");
	    var ttr = sender.findName("ttrect");
	    ttc["Opacity"] = 0.0;
	    ttc["Canvas.Left"] = 1;
	    ttc["Canvas.Top"] = 1;
	    ttt["Text"] = "";
	    ttc["Width"] = 1;
	    ttc["Height"] = 1;
	    ttr["Width"] = 1;
	    ttr["Height"] = 1;
	    //end of tooltip hiding codeblock
	},
		handleMouseLeave6: function(sender, eventArgs) 
	{
		var mouseLeaveAnimation = sender.findName("mouseLeave6");
		mouseLeaveAnimation.begin(); 
		
		//Code Block to hide the tooltip when it is not in use
	    var ttFadeinAnimation = sender.findName("ttfadein");
	    ttFadeinAnimation.stop();
	    var ttc = sender.findName("ttcanvas");
	    var ttt = sender.findName("tttext");
	    var ttr = sender.findName("ttrect");
	    ttc["Opacity"] = 0.0;
	    ttc["Canvas.Left"] = 1;
	    ttc["Canvas.Top"] = 1;
	    ttt["Text"] = "";
	    ttc["Width"] = 1;
	    ttc["Height"] = 1;
	    ttr["Width"] = 1;
	    ttr["Height"] = 1;
	    //end of tooltip hiding codeblock
	},
		handleMouseLeave7: function(sender, eventArgs) 
	{
		var mouseLeaveAnimation = sender.findName("mouseLeave7");
		mouseLeaveAnimation.begin(); 
		
		//Code Block to hide the tooltip when it is not in use
	    var ttFadeinAnimation = sender.findName("ttfadein");
	    ttFadeinAnimation.stop();
	    var ttc = sender.findName("ttcanvas");
	    var ttt = sender.findName("tttext");
	    var ttr = sender.findName("ttrect");
	    ttc["Opacity"] = 0.0;
	    ttc["Canvas.Left"] = 1;
	    ttc["Canvas.Top"] = 1;
	    ttt["Text"] = "";
	    ttc["Width"] = 1;
	    ttc["Height"] = 1;
	    ttr["Width"] = 1;
	    ttr["Height"] = 1;
	    //end of tooltip hiding codeblock
	},
		handleMouseLeave8: function(sender, eventArgs) 
	{
		var mouseLeaveAnimation = sender.findName("mouseLeave8");
		mouseLeaveAnimation.begin();
		
		//Code Block to hide the tooltip when it is not in use
	    var ttFadeinAnimation = sender.findName("ttfadein");
	    ttFadeinAnimation.stop();
	    var ttc = sender.findName("ttcanvas");
	    var ttt = sender.findName("tttext");
	    var ttr = sender.findName("ttrect");
	    ttc["Opacity"] = 0.0;
	    ttc["Canvas.Left"] = 1;
	    ttc["Canvas.Top"] = 1;
	    ttt["Text"] = "";
	    ttc["Width"] = 1;
	    ttc["Height"] = 1;
	    ttr["Width"] = 1;
	    ttr["Height"] = 1;
	    //end of tooltip hiding codeblock 
	},
		handleMouseLeave9: function(sender, eventArgs) 
	{
	    
		var mouseLeaveAnimation = sender.findName("mouseLeave9");
		
		//Code Block to hide the tooltip when it is not in use
	    var ttFadeinAnimation = sender.findName("ttfadein");
	    ttFadeinAnimation.stop();
	    var ttc = sender.findName("ttcanvas");
	    var ttt = sender.findName("tttext");
	    var ttr = sender.findName("ttrect");
	    ttc["Opacity"] = 0.0;
	    ttc["Canvas.Left"] = 1;
	    ttc["Canvas.Top"] = 1;
	    ttt["Text"] = "";
	    ttc["Width"] = 1;
	    ttc["Height"] = 1;
	    ttr["Width"] = 1;
	    ttr["Height"] = 1;
	    //end of tooltip hiding codeblock
	    
		mouseLeaveAnimation.begin(); 

	}
	

	
}
