/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


$(document).ready(function() {

    // galleries link 
    $(".image_link").fancybox();


    printHeight();

});

function openProfile(){
    $("#profiles").fancybox({
                            "frameHeight":	570,
                            "frameWidth":	600,
                            "hideOnContentClick":false
    }).trigger('click');
}

function openClients(){
    $("#linkclients").fancybox().trigger('click');
}

function printHeight(){
    
    var height = null;
    if( typeof( window.innerHeight ) == 'number' ) {
        //Non-IE
        height = window.innerHeight;
    } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
        //IE 6+ in 'standards compliant mode'
        height = document.documentElement.clientHeight;
    } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        height = document.body.clientHeight;
    }

   $('#i-frame').css('height',(height - 77));
}