﻿// JScript File
    var $jq = jQuery.noConflict();
    
    $jq(document).ready(function() 
    {
	    $jq("a.fancybox").fancybox
	    ({
		    'zoomSpeedIn':		300, 
		    'zoomSpeedOut':	    300, 
		    'overlayShow':		true,
		    'hideOnContentClick': false,
		    'hideOnOverlayClick' : false,
		    'centerOnScroll': false,
		    'padding' : 10,
		    'enableEscapeButton' : true
	    });
	    
	
	  // create custom animation algorithm for jQuery called "bouncy"
        $jq.easing.bouncy = function (x, t, b, c, d) {
        var s = 1.70158;
        if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
        return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
        }

        // create custom tooltip effect for jQuery Tooltip
        $jq.tools.tooltip.addEffect("bouncy",

	    // opening animation
	    function(done) {
		    this.getTip().animate({top: '+=15'}, 500, 'bouncy', done).show();
	    },

	    // closing animation
	    function(done) {
		    this.getTip().animate({top: '-=15'}, 500, 'bouncy', function()  {
			$jq(this).hide();
			done.call();
		    });
	    }
        );


        $jq(".right img[title]").tooltip({tip: '#demotip', effect: 'bouncy'});
	    
    });
    
    
    function resetText(id,text)
    {
	    var txt = document.getElementById(id);
	    if(txt.value == "")
	    {
		    txt.value = text
	    }
    };

    function clearText(id,text)
    {
	    var txt = document.getElementById(id);
	    if (txt.value == text)
	    {
	        txt.value = "";
	    }
    };

    var url = location.href;
    if(url.match("OverOns.aspx") != null)
    {
   //  TJK_ToggleDL();
    }
    
  

   
   
   /*               start                */





  

