﻿// JavaScript Document
function banner(filepath,w,h,str) {
if(filepath.substring(filepath.length-3,filepath.length)=="swf"){
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+w+'" height="'+h+'"> ');
    document.write('<param name="movie" value="' + filepath + '">');
    document.write('<param name="quality" value="high"> ');
    document.write('<param name="wmode" value="transparent"> ');
    document.write('<param name="menu" value="false"> ');
    document.write('<embed src="' + filepath + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed> ');
    document.write('</object> ');
}else if(filepath.substring(filepath.length-3,filepath.length)=="mp3"||filepath.substring(filepath.length-3,filepath.length)=="avi"){
	document.write('<embed id="MediaPlayer963" src="'+filepath+'" width="100%" height="30" type="video/x-msvideo" volume="1" autostart="0" loop="1" align="left"></embed>');
}
else{
	document.write('<img src="'+filepath+'" width="'+w+'" height="'+h+'" alt="'+str+'" border="0" />');
}
}

var flag=false; 
function DrawImage(ImgD,w,t){ 
 var image=new Image(); 
 w=550;
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flag=true; 
  if(image.width/image.height>= w/w){ 
   if(image.width>w){
    ImgD.width=w; 
    ImgD.height=(image.height*w)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt=t; 
  } 
  else{ 
   if(image.height>w){
    ImgD.height=w; 
    ImgD.width=(image.width*w)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt=t; 
  } 
 }
}

function ShowAds(Piclist,Urllist,Width,Height)
{
var focus_width=Width //flash宽度定义
var focus_height=Height //flash高度定义
var swf_height = focus_height
var pics=''+Piclist+''
var links='' + Urllist + ''
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/img/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#DADADA">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'">');
document.write('<embed src="/img/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'" menu="false" bgcolor="#DADADA" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}



function tick() {
var hours, minutes, seconds, xfile;
var intHours, intMinutes, intSeconds;
var today, theday;
today = new Date();
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i] }
var d=new initArray(
"星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六");
theday = today.getYear()+"年" + [today.getMonth()+1]+"月" +today.getDate() + d[today.getDay()+1];
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();
if (intHours == 0) {
hours = "12:";
xfile = "午夜";
} else if (intHours < 12) {
hours = intHours+":";
xfile = "上午";
} else if (intHours == 12) {
hours = "12:";
xfile = "正午";
} else {
intHours = intHours - 12
hours = intHours + ":";
xfile = "下午";
}
if (intMinutes < 10) {
minutes = "0"+intMinutes+":";
} else {
minutes = intMinutes+":";
}
if (intSeconds < 10) {
seconds = "0"+intSeconds+" ";
} else {
seconds = intSeconds+" ";
}
timeString = theday+xfile+hours+minutes+seconds;
Clock.innerHTML = timeString;
window.setTimeout("tick();", 100);
}
window.onload = tick;
// JavaScript Document
<!--
function CloseQQ()
{
searchspe.style.display="none";
return true; 
}
var online= new Array();
var qq="[客服]|1240324832,[客服]|515535523,[客服]|1240324832,[客服]|515535523,[客服]|1240324832";
var qqlist=new Array(); //直接初始化
var qqtype=new Array();
    qqlist=qq.split(",");
var qqlistN=5; //n为长度，元素个数，也即最大数加1
document.writeln("<div id=\"searchspe\" style=\"Z-INDEX: 100; right: 1px; POSITION: absolute; TOP: 100px;font-size:12px;\">");
document.writeln("<div style=\"width:109px;\">");
document.writeln("<A onclick=CloseQQ() href='javascript:;' shape='circle' coords='91,16,12'><IMG height=34 src='/img/qq_top.gif' width=109 useMap=#Map border=0></A><div style=\"padding:8px;background-image:url(/img/qq_d.gif);text-align:right;\">");
for(i=0;i<qqlistN;i++)
{
	qqtype=qqlist[i].split("|");
document.writeln(""+qqtype[0]+"<a target=blank href=tencent://message/?uin="+qqtype[1]+"&Site=在线客服&Menu=yes><img border=0 SRC=http://wpa.qq.com/pa?p=1:"+qqtype[1]+":10 alt=\"在线客服\"></a><br />");
}
document.writeln("</div>");
document.writeln("<IMG height=\"30\" src=\"/img/qq_bottom1.gif\" width=109><IMG height=33 src=\"/img/qq_logo.gif\" width=\"109\">");
document.writeln("</div>");
document.writeln("</div>");
lastScrollY=-100;
function heartBeat0()
{
var scrollPos; 
if (typeof window.pageYOffset != 'undefined') { 
   scrollPos = window.pageYOffset; 
} 
else if (typeof document.compatMode != 'undefined' && 
     document.compatMode != 'BackCompat') { 
   scrollPos = document.documentElement.scrollTop; 
} 
else if (typeof document.body != 'undefined') { 
   scrollPos = document.body.scrollTop; 
} 

diffY=scrollPos;
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.searchspe.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
window.setInterval("heartBeat0()",1);
-->
