var modPath = '/envyinteriordesign/mods/content/portfolio/';

function modStart() {
	$('#portList a').fadeTo(0, .65);
	
	$('#portList a').bind('mouseenter', function(){
		$(this).stop().fadeTo(100, 1);
	});
	
	$('#portList a').bind('mouseleave', function(){
		$(this).not('.portListActive').stop().fadeTo(600, .65);
	});
	
	
	$('#portList a').bind('click', function(){
		$('.portListActive').removeClass('portListActive').stop().fadeTo(600, .65);
		$(this).addClass('portListActive');
		$(this).blur();
	});
	
}

function portClick(fx_image, fx_title, fx_item) {
	$('#portImage img').fadeTo(0,.1);
	$('#portNewImage').html('');
	$('#portImage img').attr('src', fx_image);
	$('#portTitle').hide().html(fx_title).fadeIn(1000);
	$('#portList').scrollTo( $('#portItem' + fx_item), 600, {offset: {top:-86} } );
}

function portClickLoaded(fx_image) {
}


(function($) {
  var cache = [];
  // Arguments are image paths relative to the current page.
  $.portPreloadImages = 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)


xpsAddReady('modStart()');
xpsJSPage = 'ran';




