function  write_small_thingus(swf,swf_id,w,h, id_small) {
   var fo = new SWFObject(swf, swf_id, w, h, "6", "#FFFFFF");
   fo.addParam("quality", "high");
   fo.addParam("wmode", "transparent");
//   fo.addVariable("buttonTitle", "Example 1");
   fo.write(id_small);

}

function  write_big_thingus(swf, swf_id, w, h, id_big) {
   var fo = new SWFObject(swf, swf_id, w, h, "6", "#FFFFFF");
   fo.addParam("quality", "high");
   fo.addParam("wmode", "transparent");
//   fo.addVariable("buttonTitle", "Example 1");
   fo.write(id_big);

}

function  show_small_thingus(id_small, id_big) {
	
   document.getElementById(id_big).style.top = '-1000px';
   document.getElementById(id_small).style.top = '0px';   
}

function  show_big_thingus(id_small, id_big) {
	
   document.getElementById(id_small).style.top = '-1000px';
   document.getElementById(id_big).style.top = '0px';
}


function write_divs (id_small, id_big) {
	
	document.write('<div id="'+id_small+'" onMouseOver="if (current_zzad_size==\'small\') { show_big_thingus(\''+id_small+'\',\''+id_big+'\');current_zzad_size=\'big\'; }" style="position:absolute;z-index:9999;right:0px;top:0px;">x</div>');
	document.write('<div id="'+id_big+'" onMouseOut="show_small_thingus(\''+id_small+'\',\''+id_big+'\');current_zzad_size=\'small\';" style="position:absolute;z-index:9999;right:0px;top:0px;">x</div>');
	
}


function zzad_initialize(swf_small, swf_id_small, w_small, h_small, id_small, swf_big, swf_id_big, w_big, h_big, id_big) {

	write_divs(id_small, id_big);
	write_big_thingus(swf_big, swf_id_big, w_big, h_big, id_big);
	write_small_thingus(swf_small, swf_id_small, w_small, h_small, id_small);
	show_small_thingus(id_small, id_big);
	
}

var current_zzad_size='small';
