﻿		$(document).ready(function() {
			
			// Fix background images on all TD elements
			$("table td").pngfix();
			$("h2").pngfix();
			$("a").pngfix(); 
			$(".course-bottom").pngfix(); 
			$(".a-course h3").pngfix(); 
			$(".b-course h3").pngfix(); 
			$(".coursel li").pngfix(); 
			$(".course-bg").pngfix(); 
			
			// Fix all inline PNG images and the element #container with the custom sizingMethod of "scale"
			$("img[@src$=png], #container").pngfix({
				sizingMethod: "scale"
			});
			
			// $.miseAlphaImageLoader("sdsd");
		});





function newyearimage(){
img = new Array();
img[0] = "http://www.harusiori.jp/photo/main_newyear2012.png";
//img[0] = "http://www.harusiori.jp/photo/main_haru2.png";
//img[1] = "http://www.harusiori.jp/photo/main_haru1.png";
//img[2] = "http://www.harusiori.jp/photo/main_haru2.png";
//img[3] = "http://www.harusiori.jp/photo/main_haru3.png";
//img[4] = "http://www.harusiori.jp/photo/main_haru4.png";
//img[5] = "http://www.harusiori.jp/photo/main_haru5.png";
n = Math.floor(Math.random()*img.length);
document.write("<img src='"+img[n]+"' border='0' alt='結婚相談・情報サービス 暖栞'>");

}

function topimage(){
img = new Array();
img[0] = "http://www.harusiori.jp/photo/main_haru2.png";
img[1] = "http://www.harusiori.jp/photo/main_haru1.png";
img[2] = "http://www.harusiori.jp/photo/main_haru2.png";
img[3] = "http://www.harusiori.jp/photo/main_haru3.png";
img[4] = "http://www.harusiori.jp/photo/main_haru4.png";
img[5] = "http://www.harusiori.jp/photo/main_haru5.png";
n = Math.floor(Math.random()*img.length);
document.write("<img src='"+img[n]+"' border='0' alt='結婚相談・情報サービス 暖栞'>");

}

function subimage(){
img = new Array();
img[0] = "http://www.harusiori.jp/photo/sub1.png";
img[1] = "http://www.harusiori.jp/photo/sub_haru1.png";
img[2] = "http://www.harusiori.jp/photo/sub_haru2.png";
img[3] = "http://www.harusiori.jp/photo/sub_haru3.png";
img[4] = "http://www.harusiori.jp/photo/sub_haru4.png";
img[5] = "http://www.harusiori.jp/photo/sub_haru5.png";
n = Math.floor(Math.random()*img.length);
document.write("<img src='"+img[n]+"' border='0' alt='結婚相談・情報サービス 暖栞'>");

}

function wedimage(){
img = new Array();
img[0] = "http://www.harusiori.jp/photo/wedding1.png";
img[1] = "http://www.harusiori.jp/photo/wedding2.png";
img[2] = "http://www.harusiori.jp/photo/wedding3.png";
img[3] = "http://www.harusiori.jp/photo/wedding4.png";
img[4] = "http://www.harusiori.jp/photo/wedding5.png";
n = Math.floor(Math.random()*img.length);
document.write("<img src='"+img[n]+"' border='0' alt='ウェディングプロデュース 暖栞'>");

}

// google ------------------------------------------------

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-21552493-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
