$(function() {
	$('#newsContents,#contentsBody').jScrollPane({
		scrollbarWidth:8,
		scrollbarMargin:5,
		reinitialiseOnImageLoad: true
		}
		);
});

$(function() {
	var postfix = '_active';
	$('#navigationArea a img').not('[src*="'+ postfix +'."]').each(function() {
		var img = $(this);
		var src = img.attr('src');
		var src_active = src.substr(0, src.lastIndexOf('.'))
		           + postfix
		           + src.substring(src.lastIndexOf('.'));
		$('<img>').attr('src', src_active);
		img.hover(function() {
			img.attr('src', src_active);
		}, function() {
			img.attr('src', src);
		});
	});
});

$(document).ready(function(){
$(".vmd img").fadeTo(0,1.0);
$(".vmd img").hover(function(){
        $(this).fadeTo(500,0.5);
    },
    function(){
        $(this).fadeTo(500,1.0);
    });
$(".more_info img").fadeTo(0,1.0);
$(".more_info img").hover(function(){
        $(this).fadeTo(500,0.5);
    },
    function(){
        $(this).fadeTo(500,1.0);
    });
$(".vemall img").fadeTo(0,1.0);
$(".vemall img").hover(function(){
        $(this).fadeTo(500,0.5);
    },
    function(){
        $(this).fadeTo(500,1.0);
    });
$(".amazon img").fadeTo(0,1.0);
$(".amazon img").hover(function(){
        $(this).fadeTo(500,0.5);
    },
    function(){
        $(this).fadeTo(500,1.0);
    });
});

//Copyrght
startYear = 2011;
yearObj = new Date();
thisYear = yearObj.getFullYear();
if (startYear==thisYear){
	copyrightyear ="&copy;"+thisYear+" Dew. All rights reserved."
} else {
	copyrightyear ="&copy;"+startYear+"-"+thisYear+" Dew. All rights reserved."
};

