// JavaScript Document
var theheight=100;
var bigheightt=0;
var timer;
var timer2;
var moviet=0;

var strFullPath=window.document.location.href;
var s = strFullPath.indexOf("clip");
if (s!=-1){
	moviet=1;
}else{
	moviet=0;
}

function getObj(objName){return(document.getElementById(objName));}

function changesma(){
if (theheight>0){
theheight=theheight-10;
getObj("topmove").style.height=theheight+"px";
bigheightt=bigheightt+90;
getObj("topmove2").style.height=bigheightt+"px";
getObj("topmove2").innerHTML="<p><img src=\"images/loading.gif\" alt=\"loading\" align=\"absmiddle\" />网站内容载入中</p>"
}else{
clearInterval(timer);
clearInterval(timer2);
getObj("topmove").style.display="none";
getObj("topmove2").style.display="none";
getObj("mainunders").style.display="none";
getObj("mainbody").className="showme";
getObj("mainunder").className="showme";
moviet=1;
}
}

function changeme(){
	if (moviet==0){
timer2=setInterval(changeme2,3000);
	}else{
	getObj("topmove").style.display="none";
    getObj("topmove2").style.display="none";
    getObj("mainunders").style.display="none";
    getObj("mainbody").className="showme";
    getObj("mainunder").className="showme";
	}
}

function changeme2(){
clearInterval(timer);
timer=setInterval(changesma,80);
}

var rector=3
var stopit=0
var a=1

function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}

function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector
}
else if (a==3){
shake.style.top=parseInt(shake.style.top)-rector
}
else{
shake.style.left=parseInt(shake.style.left)-rector
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",50)
}

function gotopage(){
	document.location.href="http://www.szrgb.net/szrgb/cms/";
}

function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}

function loadflash(){
	imgUrl1="urlimg/01.jpg";
imgtext1="台湾DOGBAG公司"
imgLink1=escape("http://www.szrgb.net/dog%2Dbag/p/dog-bag.html");
imgUrl2="urlimg/02.jpg";
imgtext2="深圳电源世界网"
imgLink2=escape("http://www.cps800.com/");
imgUrl3="urlimg/03.jpg";
imgtext3="深圳冰与火广告公司"
imgLink3=escape("http://www.szicefire.com/sziceindex.html");
imgUrl4="urlimg/04.jpg";
imgtext4="湖南鸿旺装饰公司"
imgLink4=escape("http://www.hw9999.cn/index.html");
imgUrl5="urlimg/05.jpg ";
imgtext5="深圳可爱吧"
imgLink5=escape("http://www.lovebars.cn/lovebars/");

 var focus_width=248
 var focus_height=266
 var text_height=25
 var swf_height = focus_height+text_height
 
 var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4+"|"+imgUrl5
 var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4+"|"+imgLink5
 var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4+"|"+imgtext5
 
 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="urlimg/news.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
 document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
 document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
 document.write('<embed src="urlimg/news.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  document.write('</object>');

}