$(document).ready (function () {
	// Clear the target _self for inputs ...
	$('form').attr ('target', '_self');
	
    // Upon focus in submits, blur please;
    $('input[type=submit]').focus (function () {
        $(this).blur ();
    });

    // We do style our own input fields;
    $('input[type=file]').filestyle ({ 
		image: 'frm/img/choosefile.png',
		imageheight : 32,
		imagewidth : 32,
		width : 250
     });
    
    // Make'em fancy, now and then ...
    $('a.raFancyBox').fancybox ({ 

    });
    
    // Hide'em description and lyrics ...    
    $('.h1_AudioLyrics').click (function () {
    	$(this).next ().slideToggle ();
    });
    
    $('.h1_AudioDescription').click (function () {
    	$(this).next ().slideToggle ();
    });
/*
    $(window).bind ('click', function () {
        // Defaults (don't leave it to the browser)  
        var defaultParams = {  
            "width":       "1024",   // Window width  
            "height":      "768",   // Window height  
            "top":         "0",     // Y offset (in pixels) from top of screen  
            "left":        "0",     // X offset (in pixels) from left side of screen  
            "directories": "no",    // Show directories/Links bar?  
            "location":    "no",    // Show location/address bar?  
            "resizeable":  "no",   // Make the window resizable?  
           "menubar":     "no",    // Show the menu bar?  
            "toolbar":     "no",    // Show the tool (Back button etc.) bar?  
            "scrollbars":  "no",   // Show scrollbars?  
            "status":      "no"     // Show the status bar?  
        };  
     
        var i, useParams = "";  
      
        // Override defaults with custom values while we construct the params string  
        for (i in defaultParams)  {  
            useParams += (useParams === "") ? "" : ",";  
            useParams += i + "=";  
            useParams += defaultParams[i];  
        }     

        // Open
        window.open ("http://cudiscount.ro", "CuDiscount.ro, motorul celor mai bune oferte si produse!", useParams);  
        window.focus ();
    });
    */
});
