// JavaScript Document
var page = $.query.get('page');
var uid = $.query.get('uid');
var gender = $.query.get('gender');
if(gender)
				{
function listshow2(){
	$('.list')[0].innerHTML = "";
	$('.list').html("<iframe frameborder='0' width='530px' height='485px' class='list_iframe' scrolling='no' src='"+gender+"_content.php?did="+uid+"' allowtransparency='true'></iframe>");
	setTimeout(function(){
						$('.list').fadeIn("slow")},1000);
	}
					$('#flashbox')[0].innerHTML = "";
					$('#flashbox').html("<object id='index2' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='100%' height='100%'><param name='movie' value='index3.swf'><param name='quality' value='high'><param name='wmode' value='opaque'><param name='allowFullScreen' value='false'><param name='scale' value='noscale'><param name='swfversion' value='6.0.65.0'><param name='expressinstall' value='Scripts/expressInstall.swf'><!--[if !IE]>--><object type='application/x-shockwave-flash' data='index3.swf' width='100%' height='100%' allowFullScreen='false' scale='noscale' id='index'><!--<![endif]--><param name='quality' value='high'><param name='wmode' value='opaque'><param name='swfversion' value='6.0.65.0'><param name='expressinstall' value='Scripts/expressInstall.swf'><div><h4>這個頁面上的內容需要較新版本的 Adobe Flash Player。</h4><p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='取得 Adobe Flash Player' width='112' height='33' /></a></p></div><!--[if !IE]>--></object><!--<![endif]--></object>");
				}
if(uid > 21)	
{	$('#flashbox')[0].innerHTML = "";
					$('#flashbox').html("<object id='index2' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='100%' height='100%'><param name='movie' value='index2.swf'><param name='quality' value='high'><param name='wmode' value='opaque'><param name='allowFullScreen' value='false'><param name='scale' value='noscale'><param name='swfversion' value='6.0.65.0'><param name='expressinstall' value='Scripts/expressInstall.swf'><!--[if !IE]>--><object type='application/x-shockwave-flash' data='index2.swf' width='100%' height='100%' allowFullScreen='false' scale='noscale' id='index'><!--<![endif]--><param name='quality' value='high'><param name='wmode' value='opaque'><param name='swfversion' value='6.0.65.0'><param name='expressinstall' value='Scripts/expressInstall.swf'><div><h4>這個頁面上的內容需要較新版本的 Adobe Flash Player。</h4><p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='取得 Adobe Flash Player' width='112' height='33' /></a></p></div><!--[if !IE]>--></object><!--<![endif]--></object>");
	}
function listshow(){
	$('.list')[0].innerHTML = "";
	$('.list').html("<iframe frameborder='0' width='530px' height='485px' class='list_iframe' scrolling='no' src='girl.php' allowtransparency='true'></iframe>");
	setTimeout(function(){
						$('.list').fadeIn("slow")},1000);
	}
	if(page == 2)
				{
					$('#flashbox')[0].innerHTML = "";
					$('#flashbox').html("<object id='index2' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='100%' height='100%'><param name='movie' value='index2.swf'><param name='quality' value='high'><param name='wmode' value='opaque'><param name='allowFullScreen' value='false'><param name='scale' value='noscale'><param name='swfversion' value='6.0.65.0'><param name='expressinstall' value='Scripts/expressInstall.swf'><!--[if !IE]>--><object type='application/x-shockwave-flash' data='index2.swf' width='100%' height='100%' allowFullScreen='false' scale='noscale' id='index'><!--<![endif]--><param name='quality' value='high'><param name='wmode' value='opaque'><param name='swfversion' value='6.0.65.0'><param name='expressinstall' value='Scripts/expressInstall.swf'><div><h4>這個頁面上的內容需要較新版本的 Adobe Flash Player。</h4><p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='取得 Adobe Flash Player' width='112' height='33' /></a></p></div><!--[if !IE]>--></object><!--<![endif]--></object>");
				    //$('#index2 param[name=movie]').val('index2.swf');
//					$('#index').attr('data','index2.swf');
				}
function listhide(){
	$('.list').html("");
	$('.list').fadeOut("fast");
	}
function loginshow(){
	$('#login').html("<p style='text-align:right; height:30px;'><img src='images/CLOSE.jpg' width='30' height='30' alt='Close' class='close' style='cursor:pointer;'></p><iframe width='450px' height='400px' frameborder='0' class='list_iframe' scrolling='no' src='login.php'></iframe>");
	$('.blank').css('display','block').css("opacity","0");
		$('.blank').fadeTo("slow",0.5,function(){
									$('#login').fadeIn("slow");
									$('#login').floatdiv("middle");
									});	
	$('.close').click(function(){
										  $('#login').html("");
										  $('#login,.blank').fadeOut("slow");
										  })
	}
function picZoom(){
	$('#picbox').html("");
	var picrul = $('.list_iframe').contents().find("img[rel*='1']").attr("src").substr(39);
	$('#picbox').html("<p style='text-align:right; height:30px;'><img src='images/CLOSE.jpg' width='30' height='30' alt='Close' class='close' style='cursor:pointer;'></p><img src='http://www.cuxi.tw/aimg/august2/500x500/"+picrul+"' style='border:3px solid #fff'>");
	$('.blank').css('display','block').css("opacity","0");
	$('.blank').fadeTo("slow",0.5,function(){
									$('#picbox').fadeIn(500);
									$('#picbox').floatdiv("middle");
									});
	$('.close').click(function(){
										  $('#picbox').html("");
										  $('#picbox,.blank').fadeOut("slow");
										  })
	}
/*function loginhide(){
	$('#login').html("");
	$('#login,.blank').fadeOut("slow");
	}*/
function endpop(){
	$('#endpop').html("<p style='text-align:right; height:30px;'><img src='images/CLOSE.jpg' width='30' height='30' alt='Close' class='close' style='cursor:pointer;'></p><iframe width='600px' height='450px' frameborder='0' scrolling='no' src='list.html'></iframe>");
	$('.blank').css('display','block').css("opacity","0");
		$('.blank').fadeTo("slow",0.5,function(){
									$('#endpop').fadeIn("slow");
									$('#endpop').floatdiv("middle");
									});	
	$('.close').click(function(){
										  $('#endpop').html("");
										  $('#endpop,.blank').fadeOut("slow");
										  })
	}
$(function(){
			   $('.list').hide();
			   $('#login').hide();
			   $('#picbox').hide();
			   endpop();
			 /*  $('#login,#picbox').floatdiv("middle");
			   $('.blank,.close').click(function(){
										  $('#login').html("");
										  $('#login,.blank').fadeOut("slow");
										  });*/
			    $(window).bind("resize",function(){
											   $('#login').floatdiv("middle");
											   })
			  
			   })