function writecookie(name,data,days){ 
var d=new Date()
d.setTime(d.getTime()+1000*60*60*24*days) 
var exp=' ; expires='+d.toGMTString() 
document.cookie=name+"="+data+exp
}

function viewcookie(){
alert(document.cookie)
}

function checkswf(){
var check = document.cookie;
var point = check.indexOf("notflash",0);
if(point > 0){
	document.write('<img src ="./flash/topbg04.jpg" width="900" height="180" />');}
else {
	openFPE('./flash/flash.swf','i',900,180,'./flash/config.xml','#CCDDCC');
}
writecookie("fc","notflash",1)

}
