/*
 *  $Id: script.js 30 2011-09-27 00:38:06Z Cihan $
 *  $Author: Cihan $
 *  $Rev: 30 $
 *  $LastChangedDate: 2011-09-26 17:38:06 -0700 (Mon, 26 Sep 2011) $
 */

Cufon.replace('.he', {
    hover: true,
    fontFamily: 'Helvetica Neue LT Std'
});

Cufon.replace('.rw', {
    hover: true,
    fontFamily: 'Rockwell'
});



$(document).ready(function () {
    //    console.log($('#frame').outerWidth());
    //    console.log($('.workimage').outerWidth());
    //    console.log($('.workimage').outerWidth());

    //$(".workimage").css("margin-top", (($('#frame').outerHeight() - $('.workimage').outerHeight()) / 2) + "px");
    //$(".workimage").css("margin-left", (($('#frame').outerWidth() - $('.workimage').outerWidth()) / 2) + "px");



});

function uncrypt(s) {
    var n = 0;
    var r = "";
    for (var i = 0; i < s.length; i++) {
        n = s.charCodeAt(i);
        if (n >= 8364) {
            n = 128;
        }
        r += String.fromCharCode(n - 1);
    }
    return r;
}

function gotomail(s) {
    location.href = uncrypt(s);
}

