var picData={};

function writeFlash(serialId,imageId,imageIndex,groupId,sliderEnabled,sliderInterval,classId){
var post=dataPostParameter;
var container = document.getElementById("FullScreen");
var html = "";
html+="<object id=\"fullscreenflash\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"44\" height=\"13\" id=\"browser\" align=\"middle\" style=\"position:absolute;top:5px;left:10px;\">\r\n";
html+="            <param name=\"allowScriptAccess\" value=\"always\" />\r\n";
html+="            <param name=\"allowFullScreen\" value=\"true\" /> \r\n";
html+="            <param name=\"movie\" value=\""+post.flashSrc+"?zppId=" + serialId +"&classid="+classId + "&picId=" + imageId + "&imageindex="+imageIndex+"&groupid="+groupId+"&url="+post.flashXmlUrl+"&autoplay="+sliderEnabled+"&interval="+sliderInterval+"\" />";
html+="            <param name=\"quality\" value=\"high\" />";
html+="            <param name=\"wmode\" value=\"transparent\">"; 
html+="            <embed allowFullScreen=\"true\" src=\""+post.flashSrc+"?zppId=" +serialId+"&classid="+classId + "&picId=" + imageId + "&imageindex="+imageIndex+"&groupid="+groupId+"&url="+post.flashXmlUrl+"&autoplay="+sliderEnabled+"&interval="+sliderInterval+"\" quality=\"high\" width=\"44\" height=\"13\" wmode=\"transparent\" name=\"browser\" align=\"middle\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\r\n";
html+="</object>\r\n";
container.innerHTML=html;
};

window.onload=function(){
   intow('ImageSlider_bar','ShowSecond');
   var Ti=getTreeCookie('playTime');
   var sT=getTreeCookie('playState');
   initPlayTime(sT?sT-0:1,(Ti?Ti:8));
   writeFlash(dataPostParameter.brandId,variableData.imageId,variableData.imageIndex,dataPostParameter.groupId,(sT?sT-0:1),(Ti?Ti:8),dataPostParameter.classId);

}
document.onkeydown=function(){
	keyDowm(event.keyCode);
}
