//pre load
jQuery.preloadImages = function(){
for(var i = 0; i<arguments.length; i++){
jQuery("<img>").attr("src", arguments[i]);
}
};
// Preload Usage
$.preloadImages(
"http://www.heads.ne.jp/images/sanonofre.jpg"
);


// Droppy
$(function() {
$('#navi').droppy({speed: 300});
});


// backstrech
$(function() {
$.backstretch("http://www.heads.ne.jp/images/sanonofre.jpg");
});


// external link
$(function(){
$("a[href^='http://']").attr("target","_blank");
});


// Cycle Plugin
$(document).ready(function() {
    $('#photoSlide').cycle({
		fx: 'fade'
	});
});

// Cycle Plugin
$(document).ready(function() {
    $('.puPhoto').cycle({
		fx: 'fade'
	});
});

// new btn
function newImage(year,month,day){
update = new Date(year,month-1,day);
now = new Date();
period = (now-update)/(1000*60*60*24);
if(period <=7){
document.write("<img src='http://www.heads.ne.jp/gif/new.gif' width='43' height='10' border='0'>");
}
}

// prettyphoto
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto({theme:'dark_rounded '});
}); 


