function SetCookie (name, value) {
	var argv = SetCookie.arguments;
   var argc = SetCookie.arguments.length;
   var expires = (2 < argc) ? argv[2] : null;
   var path = (3 < argc) ? argv[3] : null;
   var domain = (4 < argc) ? argv[4] : null;
   var secure = (5 < argc) ? argv[5] : false;
	deleteCookie(name)
	document.cookie = name + "=" + escape (value) +
      ((expires == null) ? "" : 
         ("; expires=" + expires.toGMTString())) +
      ((path == null) ? "" : ("; path=" + path)) +
      ((domain == null) ? "" : ("; domain=" + domain)) +
      ((secure == true) ? "; secure" : "");
} 

function deleteCookie( cookieName )
 {
  var expireDate = new Date();
  expireDate.setDate( expireDate.getDate() - 1 );
  document.cookie = cookieName + "= " + "; expires=" + expireDate.toGMTString() + "; path=/";
 }

function BannerDisplay(file,ext) { 
	if(ext == 'gif') {
		document.write('<img src='+file+'>');
	} else {
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width=580 height=105><param name="movie" value="'+file+'"><param name="quality" value="high"><param name="loop" value="true"><param name="play" value="true"><embed src="'+file+'" width=580 height=105 quality="high" play="true" loop="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/object>');	
	}	
} 
function banner_display_roll(val) {
document.getElementById("bannerDisplay").innerHTML  = val;
}

function banner_display_roll2(val) {
	document.write(val);
}

function BannerDisplay2(file,ext,width,height) { 
	if(ext == 'gif') {
		document.getElementById("bannerDisplay").innerHTML = '<img src='+file+' width='+width+' height='+height+' border=0>';
	} else {
		document.getElementById("bannerDisplay").innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width='+width+' height='+height+'><param name="movie" value="'+file+'"><PARAM value="transparent" name="wmode"><param name="quality" value="high"><param name="loop" value="true"><param name="play" value="true"><embed src="'+file+'" width='+width+' height='+height+' quality="high" play="true" loop="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/object>';	
	}	
} 

function BannerDisplay3(ids2,file,ext,width,height) {
	var layer = eval(	'document.getElementById("'+ids2+'")');
	layer.innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width='+width+' height='+height+'><param name="movie" value="'+file+'"><PARAM value="transparent" name="wmode"><param name="quality" value="high"><param name="loop" value="true"><param name="play" value="true"><embed src="'+file+'" width='+width+' height='+height+' quality="high" play="true" loop="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/object>';
}


function BannerDisplay1(file,ext,width,height) { 
	if(ext == 'gif') {
		document.write('<img src='+file+' width='+width+' height='+height+' border=0>');
	} else {
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width='+width+' height='+height+'><param name="movie" value="'+file+'"><PARAM value="transparent" name="wmode"><param name="quality" value="high"><param name="loop" value="true"><param name="play" value="true"><embed src="'+file+'" width='+width+' height='+height+' quality="high" play="true" loop="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/object>');	
	}	
} 

