/**
 * Copyright (c) by Designchuchi
 *
 * Custom javascript functions.
 * Credits and many thanks go out to the jquery team
 * and to Torsten Baldes from http://medienfreunde.com
 * for his nice innerface script.
 *
 * Feel free to look at the code to get some inspiration.
 * Don't steal!
 */

/* settings */
var settings = {
    /* resolution */
    toggle_height: '768',

    /* slide settings */
    slide_speed:  '300',
    scroll_speed: 'slow',
    slide_project_speed: 'slow',

    /* innerfade settings */
    speed:            'slow',
    timeout:          3500,
    type:             'random_start',
    containerheight:  '298px'
};

/**
 * Things to do as soon as the document is ready.
 */
jQuery(document).ready(function() {
    

    /* slide previews */
    jQuery('#download_imgs_block div.download_img').each(function() {
        var details = jQuery(this).find('div.img_dia');
        jQuery(this).bind('mouseenter', function() {
            details.slideDown(settings.slide_speed);
        });

        jQuery(this).bind('mouseleave', function() {
            details.slideUp(settings.slide_speed);
        });
    });

	

});

var newwindow;
function poptastic(url)
{
	newwindow=window.open(url,'name','scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}
