
//■ Flash Movie //
function loadSwf(path, width, height){
	// 指定方法
	// <script type="text/javascript">loadSwf('swfのファイルパス', '横幅[px]', '高さ[px]');</script>

	if(!path || !width || !height){ return false; }
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+width+'" height="'+height+'" align="" bgcolor="#ffffff">');
	document.write('<param name=movie value="'+path+'">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="'+path+'" wmode="transparent" quality="high"  width="'+width+'" height="'+height+'" bgcolor="#ffffff" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
}

//■ 女性画像表示
function LadyMouse(){

	//アニメーションを表示
	$("a[@rel=ladymouse]").mouseover(function(){
		var url = $(this).attr("href");
		$("#ladyImage").fadeTo("fast",0.2,function(){
			$(this).attr("src",url).fadeTo("fast",1);
		});
	}).click(function(){
		return false;
	});
}


//■ブックマーク
function BookMark(title, url){
	// 引数が無い場合
	if(!title){ title = '大阪デリヘル【夜這い専門発情する奥様たち】'; }
	if(!url){ url = 'http://www.hatuoku.jp/'; }

	// Firefox の場合
	if(navigator.userAgent.indexOf("Firefox") > -1){
		window.sidebar.addPanel(title, url, "");
	} else{
	// IE の場合
		window.external.AddFavorite(url, title);
	}
}

//■ウィンドウ

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function Wopen(url,w,h,n) {
	var winName = n;
	var Width   = 'width='   + w;
	var Height  = ',height=' + h;
	var Left    = ',left='   + ((screen.width - w) / 2);
	var Top     = ',top='    + ((screen.height- h) / 2);
	var Option = ',status=1,menubar=0,scrollbars=1,resizable=0';
	var features = Width + Height + Left + Top + Option;
	winName = window.open(url,winName,features);
	if (window.focus) {
		winName.focus();
	}
}

function WopenScroll(url,w,h,n) {
	var winName = n;
	var Width   = 'width='   + w;
	var Height  = ',height=' + h;
	var Left    = ',left='   + ((screen.width - w) / 2);
	var Top     = ',top='    + ((screen.height- h) / 2);
	var Option = ',status=1,menubar=0,scrollbars=1,resizable=0';
	var features = Width + Height + Left + Top + Option;
	winName = window.open(url,winName,features);
	if (window.focus) {
		winName.focus();
	}
}

function WopenL(url,w,h,n) {
	var winName = n;
	var Width   = 'width='   + w;
	var Height  = ',height=' + h;
	var Left    = ',left='   + 2;
	var Top     = ',top='    + 2;
	var Option = ',status=1,menubar=0,scrollbars=1,resizable=0';
	var features = Width + Height + Left + Top + Option;
	winName = window.open(url,winName,features);
	if (window.focus) {
		winName.focus();
	}
}

function WopenL0(url,w,h,n) {
	var winName = n;
	var Width   = 'width='   + w;
	var Height  = ',height=' + h;
	var Left    = ',left='   + 2;
	var Top     = ',top='    + 2;
	var Option = ',status=1,menubar=0,scrollbars=1,resizable=0';
	var features = Width + Height + Left + Top + Option;
	winName = window.open(url,winName,features);
	if (window.focus) {
		winName.focus();
	}
}
	function jump(url){
		if(!!window.opener)window.opener.location.href = url;
		else parent.window.location.href = url;
		return;
	}

	function jump2(url){
		if(!!parent.window.opener)parent.window.opener.location.href = url;
		else parent.window.location.href = url;
		return;
	}







