var $$=jQuery.noConflict();

$$(document).ready(function()
{
    $$('.blank').attr('target','_blank')
    $$('.post a').attr('target','_blank');

    var zIndexNumber = 1000;
    $$('div').each(function() 
    {
        $$(this).css('zIndex', zIndexNumber);
        zIndexNumber -= 10;
    });
    
    $$("input:text, textarea").each(function() 
    { 
        this.defaultText = this.value; 
        $$(this).focus(function() 
        { 
            if (this.value == this.defaultText) this.value = "";
        })
        $$(this).blur(function() 
        { 
            if (this.value == "" && this.defaultText) this.value = this.defaultText; 
        });    
    });
    
    
    $$('.slideshow').cycle({
        fx:    'scrollHorz',
                speed: 4000,
                timeout:  7000 
    });
    
    
    $$(".dialog-subscribe").dialog({
    
    modal:true,
    title:'Subscribe',
    autoOpen:false,
    draggable: false,
    modal: true,
    width: 310,
    height: 250,
    resizable: false
    
    });
    
     $$('.excellence').bind('click',function() {
    
        var eventId=this.id;
        $$(".dialog-subscribe").dialog("open");
    });
    
    $$('#subscribe').click(function(event) {
    
        $$.ajax({
        
            type: "POST",
            url: "hello.php",
            data: ({name : $$('#name').val(), email : $$('#email').val(), pdf : $$('.excellence').attr("id")}),
            cache: false,
            success: function(result)
            {
                $$("#response").html(result);
            }
            
        });

    });
    
    

});



    
    
    
  
    
    
    
  


    




    
