/* JavaScript: K. Bogac BOKEER (c)2010 <bogac@webasis.com> */
function MM_openBrWindow(id, width, height) { //v2.0

    LeftPosition = (screen.width)  ? (screen.width-width)/2  : 0;
    TopPosition  = (screen.height) ? (screen.height-height)/2 : 0;
    settings     = 'height='+height+',width='+width+',top='+TopPosition+',left='+LeftPosition

    window.open('showimage.php?n='+id,'newwindow',settings);

    return false;
}

function bbOpenURL(theURL, width, height) {

    LeftPosition = (screen.width)  ? (screen.width-width)/2  : 0;
    TopPosition  = (screen.height) ? (screen.height-height)/2 : 0;
    settings     = 'height='+height+',width='+width+',top='+TopPosition+',left='+LeftPosition

    window.open(theURL,'',settings);

    return false;
}

function bbOpenURLscroll(theURL, width, height) {

    LeftPosition = (screen.width)  ? (screen.width-width)/2  : 0;
    TopPosition  = (screen.height) ? (screen.height-height)/2 : 0;
    settings     = 'height='+height+',width='+width+',top='+TopPosition+',left='+LeftPosition+', scrollbars=yes'

    window.open(theURL,'',settings);

    return false;
}

(function($) {
  var cache = [];
  // Arguments are image paths relative to the current page.
  $.preLoadImages = function() {
    var args_len = arguments.length;
    for (var i = args_len; i--;) {
      var cacheImage = document.createElement('img');
      cacheImage.src = arguments[i];
      cache.push(cacheImage);
    }
  }
})(jQuery)

$(function(){
    $('A[rel*=lightbox]').lightBox({
        overlayBgColor: '#000000',
        overlayOpacity: 0.9,
        fixedNavigation: false,
        imageLoading: 'cliparts/lb/lightbox-ico-loading.gif',
        imageBtnClose: 'cliparts/lb/lightbox-btn-close.gif',
        imageBtnPrev: 'cliparts/lb/lightbox-btn-prev.gif',
        imageBtnNext: 'cliparts/lb/lightbox-btn-next.gif',
        imageBlank:   'cliparts/lb/lightbox-blank.gif',
        txtImage: 'Resim',
        txtOf: '/'
    });
});

