<!--


// preload images

var images = new Array('btnHome', 'btnCurrentProjects', 'btnCompletedProjects', 'btnInvesting', 'btnNews', 'btnProfile');

for ( i = 0; i < images.length; i++ ) {
    
    
    eval('var ' + images[i] + '= new Image();' );
    eval(images[i] + '.src = \'images/' + images[i] + '.gif\';');
    
    eval('var ' + images[i] + '_on = new Image();' );
    eval(images[i] + '_on.src = \'images/' + images[i] + '_on.gif\';');
    
}

function swap( obj ) {

    var tmp = obj.src.substring( obj.src.lastIndexOf('/') + 1, obj.src.length - 4  );
    
    var tmpStr = tmp.substring( tmp.length - 3 ) == '_on' ? tmp.substring(0, tmp.length - 3) : tmp + '_on';
    
    obj.src = eval(tmpStr + '.src');

}


function popup() { 

    var width = 190; 
    var height = 260; 
    var screenX = (screen.width / 2 - width / 2); 
    var screenY = (screen.height / 2 - height / 2); 
    var features = 'width=190,height=260,scrollbars=no,status=no'; 
    features += ",screenX=" + screenX + ",left=" + screenX; 
    features += ",screenY=" + screenY + ",top=" + screenY; 
    
    var mywin = window.open('files/fidler.php', '', features); 
    if (mywin) 
    mywin.focus(); 
    return mywin; 
}

function win( url, width, height, title ) {

    var features = '';
    
    if ( arguments[3] == null ) title = '';
    
    if ( width > 0 ) {
    
        features = 'width=' + width + ',';
        var screenX = (screen.width / 2 - width / 2); 
        features += "screenX=" + screenX + ",left=" + screenX + ','; 
    
    }
    
    
    if ( height > 0 ) {
    
        features += 'height=' + height + ',';
        var screenY = (screen.height / 2 - height / 2) - 30; 
        features += "screenY=" + screenY + ",top=" + screenY+ ','; 
    
    }
    
    features += 'scrollbars=no,status=no,resizable=yes'; 
    
    var mywin = window.open('image.php?url=' + url + '&title=' + title, '', features); 
    if (mywin) 
    mywin.focus(); 
    
}


// -->