//parameters: file name,type(flash or image), file,width,height,link(if its type is image)
//you can make the array longer
var TOPAD=[
["/sms2/about.html","flash","/flash/GST-url.swf","520","62",""],
["/sms2/acknowledgments.html","flash","/flash/fla.swf","520","62",""],
["/sms2/browser_compat.html","flash","/flash/fla_antibody.swf","520","62",""],
["/sms2/codon_plot.html","flash","/flash/fla_gene.swf","520","62",""],
["/sms2/codon_usage.html","flash","/flash/fla_genomic.swf","520","62",""],
["/sms2/color_align_cons.html","flash","/flash/fla_long.swf","520","62",""],
["/sms2/color_align_prop.html","flash","/flash/fla_peptide.swf","520","62",""],
["/sms2/combine_fasta.html","flash","/flash/fla_sirna.swf","520","62",""],
["/sms2/cpg_islands.html","flash","/flash/fla_sirna_mech.swf","520","62",""],
["/sms2/dna_pattern.html","flash","/flash/DNA-url.swf","520","62",""],
["/sms2/dna_stats.html","flash","/flash/DNA-url.swf","520","62",""],
["/sms2/embl_fasta.html","flash","/flash/GST-url.swf","520","60",""],
["/sms2/embl_feat.html","flash","/flash/WB_url.swf","520","60",""],
["/sms2/embl_trans.html","flash","/flash/fla.swf","520","62",""],
["/sms2/filter_dna.html","flash","/flash/DNA-url.swf","520","62",""],
["/sms2/filter_protein.html","flash","/flash/fla.swf","520","62",""],
["/sms2/fuzzy_search_dna.html","flash","/flash/DNA-url.swf","520","62",""],
["/sms2/fuzzy_search_protein.html","flash","/flash/fla_antibody.swf","520","62",""],
["/sms2/genbank_fasta.html","flash","/flash/fla_gene.swf","520","62",""],
["/sms2/genbank_feat.html","flash","/flash/fla_genomic.swf","520","62",""],
["/sms2/genbank_trans.html","flash","/flash/fla_long.swf","520","62",""],
["/sms2/genetic_code.html","flash","/flash/fla_peptide.swf","520","62",""],
["/sms2/gnu_license.html","flash","/flash/fla_sirna.swf","520","62",""],
["/sms2/group_dna.html","flash","/flash/DNA-url.swf","520","62",""],
["/sms2/group_protein.html","flash","/flash/fla_sirna_mech.swf","520","62",""],
["/sms2/ident_sim.html","flash","/flash/GST-url.swf","520","60",""],
["/sms2/index.html","flash","/flash/WB_url.swf","520","60",""],
["/sms2/iupac.html","flash","/flash/fla.swf","520","62",""],
["/sms2/links.txt","flash","/flash/fla_gene.swf","520","62",""],
["/sms2/mirror.html","flash","/flash/fla_genomic.swf","520","62",""],
["/sms2/multi_rev_trans.html","flash","/flash/fla_long.swf","520","62",""],
["/sms2/mutate_dna.html","flash","/flash/DNA-url.swf","520","62",""],
["/sms2/mutate_for_digest.html","flash","/flash/fla_peptide.swf","520","62",""],
["/sms2/mutate_protein.html","flash","/flash/fla_sirna.swf","520","62",""],
["/sms2/one_to_three.html","flash","/flash/fla_sirna_mech.swf","520","62",""],
["/sms2/orf_find.html","flash","/flash/GST-url.swf","520","60",""],
["/sms2/pairwise_align_dna.html","flash","/flash/WB_url.swf","520","60",""],
["/sms2/pairwise_align_protein.html","flash","/flash/fla.swf","520","62",""],
["/sms2/pcr_primer_stats.html","flash","/flash/fla_antibody.swf","520","62",""],
["/sms2/pcr_products.html","flash","/flash/fla_gene.swf","520","62",""],
["/sms2/primer_map.html","flash","/flash/fla_genomic.swf","520","62",""],
["/sms2/protein_iep.html","flash","/flash/fla_long.swf","520","62",""],
["/sms2/protein_mw.html","flash","/flash/fla_peptide.swf","520","62",""],
["/sms2/protein_pattern.html","flash","/flash/fla_sirna.swf","520","62",""],
["/sms2/protein_stats.html","flash","/flash/fla_sirna_mech.swf","520","62",""],
["/sms2/random_coding_dna.html","flash","/flash/GST-url.swf","520","60",""],
["/sms2/random_dna.html","flash","/flash/DNA-url.swf","520","62",""],
["/sms2/random_protein.html","flash","/flash/WB_url.swf","520","60",""],
["/sms2/range_extract_dna.html","flash","/flash/fla.swf","520","62",""],
["/sms2/range_extract_protein.html","flash","/flash/fla_antibody.swf","520","62",""],
["/sms2/reference.html","flash","/flash/fla_gene.swf","520","62",""],
["/sms2/rest_digest.html","flash","/flash/fla_genomic.swf","520","62",""],
["/sms2/rest_map.html","flash","/flash/fla_long.swf","520","62",""],
["/sms2/rest_summary.html","flash","/flash/fla_peptide.swf","520","62",""],
["/sms2/rev_comp.html","flash","/flash/fla_sirna.swf","520","62",""],
["/sms2/rev_trans.html","flash","/flash/fla_sirna_mech.swf","520","62",""],
["/sms2/sample_dna.html","flash","/flash/DNA-url.swf","520","62",""],
["/sms2/sample_protein.html","flash","/flash/GST-url.swf","520","60",""],
["/sms2/search_patterns.html","flash","/flash/WB_url.swf","520","60",""],
["/sms2/shuffle_dna.html","flash","/flash/DNA-url.swf","520","62",""],
["/sms2/shuffle_protein.html","flash","/flash/fla.swf","520","62",""],
["/sms2/three_to_one.html","flash","/flash/fla_antibody.swf","520","62",""],
["/sms2/translate.html","flash","/flash/fla_gene.swf","520","62",""],
["/sms2/trans_map.html","flash","/flash/GST-url.swf","520","60",""]

];

var path=location.pathname;


function showtopad(){
 	for(var i=0;i<TOPAD.length;i++){
 		if(TOPAD[i][0]==path){
 			var whichone=i;
 			if(TOPAD[whichone][1]=="flash"){
 				document.write("<br><br><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0'");	
 				document.write("width='"+635+"' ");
 				document.write("height='"+73+"'>");
 				document.write("<param name='wmode' value='transparent'>");
 				document.write("<param name='movie' value='"+"http://www.genscript.com/cgi-bin/promotion/flash?align=center"+"'>");
 				document.write("<param name='quality' value='high'>");
 				document.write("<embed src='"+"http://www.genscript.com/cgi-bin/promotion/flash?align=center"+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+635+"' height='"+73+"'></embed></object>");
 			}
 			
			//if(TOPAD[whichone][0]=="image"){
			//	document.write("<a href='"+TOPAD[whichone][5]+"'>"+"<img src='"+TOPAD[whichone][2]+"' border=0 width='"+TOPAD[whichone][3]+"' height='"+TOPAD[whichone][4]+"'>"+"</a>");
			//}
			break;
		}
	}
}










function showtopad2(){
	for(var i=0;i<TOPAD.length;i++){
		if(TOPAD[i][0]==path){
			var whichone=i;
			if(TOPAD[whichone][1]=="flash"){
				document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0'");	
				document.write("width='"+TOPAD[whichone][3]+"' ");
				document.write("height='"+TOPAD[whichone][4]+"'>");
				document.write("<param name='wmode' value='transparent'>");
				document.write("<param name='movie' value='"+TOPAD[whichone][2]+"'>");
				document.write("<param name='quality' value='high'>");
				document.write("<embed src='"+TOPAD[whichone][2]+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+TOPAD[whichone][3]+"' height='"+TOPAD[whichone][4]+"'></embed></object>");
			}
			
			if(TOPAD[whichone][0]=="image"){
				document.write("<a href='"+TOPAD[whichone][5]+"'>"+"<img src='"+TOPAD[whichone][2]+"' border=0 width='"+TOPAD[whichone][3]+"' height='"+TOPAD[whichone][4]+"'>"+"</a>");
			}
			break;
		}
	}
}

//please do not delete it; for output advertise in the future(Maybe)
function showbottomad(){
	
}

function showrightad(){
/*
	document.write("<br><br><br><br><br><br><br><br>");	
	document.write("<table cellpadding=0 cellspacing=0 width=200>");
	document.write("<tr><td rowspan=3 bgcolor=grey width=1 height=200></td><th colspan=3 align=center>GenScript Corporation</th></tr>");
	document.write("<tr><td width=10>&nbsp;</td><td valign=top><br>");
	document.write("<div class=description>");
	document.write("<li>Gene Synthesis for only <font color=red>$1.25/bp</font>. <a href='http://www.genscript.com/gene_synthesis.html'>More ...</a>");
	document.write("<br><Br>");

	document.write("<li>Custom polyclonal antibody: complete protein A purified with peptide package: <font color=red>$950</font>. <a href='http://www.genscript.com/antibody.html'>More ...</a>");
	document.write("<br><br>");
	document.write("<li>Monoclonal antibody: starting from  <font color=red>$3990</font>. <a href='http://www.genscript.com/antibody.html'>More ...</a> ");
	document.write("<br><br>");
	document.write("<li>Receive a cool <font color=red><a href=http://www.genscript.com/cgi-bin/promotion/electronic.cgi?pcode=168>office electronics</a></font> of your choice for ordering.");

	document.write("<br><br>");
//	document.write("<li>Receive an <font color=red><a href=http://www.genscript.com/cgi-bin/promotion/ipod.cgi?pcode=168>iPod</a></font> or <font color=red><a href=http://www.genscript.com/cgi-bin/promotion/palm.cgi?pcode=168>Palm PDA</a></font> for <a href='http://www.genscript.com/ipod/dna_purification_promotion.htm'>DNA purification kit purchase</a>.");
//	document.write("<br><br>");
	document.write("<li>Receive a <font color=red><a href=http://www.genscript.com/cgi-bin/promotion/dvd.cgi?pcode=168>DVD movie</a></font> of your choice for ordering.");
	document.write("</ul>");
	document.write("</div>");
	document.write("</td></tr>");
	document.write("<tr><td colspan=2>&nbsp;</td></tr>");
	document.write("</table>");
*/
}

