// http://www.pcurtis.com/popup_advanced.htm
// <title>Java Popup Window Example with size, title and background colour parameters</title>
// <script language="JavaScript1.2" type="text/javascript">
<!-- ;
var newwindow;
var wheight = 0, wwidth = 0;
 
function popitup5(url, title, iwidth, iheight, colour) {
var pwidth, pheight;
 
if ( !newwindow || newwindow.closed ) {
pwidth=iwidth+30;
pheight=iheight+30;
newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=50,left=10');
wheight=iheight;
wwidth=iwidth;
}
 
if (wheight!=iheight || wwidth!=iwidth ) {
pwidth=iwidth+30;
pheight=iheight+90;
newwindow.resizeTo(pwidth, pheight);
wheight=iheight;
wwidth=iwidth;
}
 
newwindow.document.clear();
newwindow.focus();
newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor= \"' + colour + '\"> <center>');
newwindow.document.writeln('<img src=' + url + ' title=\"' + title + '\" alt=\"' + title + '\" />');
newwindow.document.writeln('<br /><a href="javascript:window.close();">Close Window</a>');
newwindow.document.writeln('<\/center> <\/body> <\/html>');
newwindow.document.close();
newwindow.focus();
}
 
// Routines to tidy up popup windows when page is left
// Call with an onUnload="tidy5()" in body tag
 
function tidy5() {
if (newwindow && !newwindow.closed) { newwindow.close(); }
}
 
// Based on JavaScript provided by Peter Curtis at www.pcurtis.com -->

function g728() {
	document.write('<script type="text/javascript">\n' +
	'<!--\n' +
	'google_ad_client = "pub-6628747245246740";\n' +
	'google_ad_width = 728;\n' +
	'google_ad_height = 90;\n' +
	'google_ad_format = "728x90_as";\n' +
	'google_ad_channel ="1756235345";\n' +
	'google_color_border = "8A8A8A";\n' +
	'google_color_bg = "8A8A8A";\n' +
	'google_color_link = "0000CC";\n' +
	'google_color_url = "333333";\n' +
	'google_color_text = "333333";\n' +
	'//--></script>\n' +
	'<script type="text/javascript"\n' +
	'  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\n' +
	'</script>\n');
}

function gadba() {
	document.write('<script type="text/javascript">\n' +
	'<!--\n' +
	'google_ad_client = "pub-6628747245246740";\n' +
	'google_ad_width = 468;\n' +
	'google_ad_height = 60;\n' +
	'google_ad_format = "468x60_as";\n' +
	'google_ad_type = "text";\n' +
	'google_ad_channel ="1756235345";\n' +
	'google_color_border = "E6E6E6";\n' +
	'google_color_bg = "E6E6E6";\n' +
	'google_color_link = "0000CC";\n' +
	'google_color_url = "333333";\n' +
	'google_color_text = "333333";\n' +
	'//--></script>\n' +
	'<script type="text/javascript"\n' +
	'  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\n' +
	'</script>\n');
}

function gadb() {
	document.write('<script type="text/javascript"><!--\n' +
	'google_ad_client = "pub-6628747245246740";\n' +
	'google_ad_width = 336;\n' +
	'google_ad_height = 280;\n' +
	'google_ad_format = "336x280_as";\n' +
	'google_ad_type = "text";\n' +
	'google_ad_channel ="1756235345";\n' +
	'google_color_border = "E6E6E6";\n' +
	'google_color_bg = "E6E6E6";\n' +
	'google_color_link = "0000CC";\n' +
	'google_color_url = "333333";\n' +
	'google_color_text = "333333";\n' +
	'//--></script>\n' +
	'<script type="text/javascript"\n' +
	'  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\n' +
	'</script>\n');
}

function gads() {
	document.write('<script type="text/javascript"><!--\n' +
	'google_ad_client = "pub-6628747245246740";\n' +
	'google_ad_width = 180;\n' +
	'google_ad_height = 90;\n' +
	'google_ad_format = "180x90_0ads_al_s";\n' +
	'google_ad_channel ="1756235345";\n' +
	'google_color_border = "707070";\n' +
	'google_color_bg = "707070";\n' +
	'google_color_link = "0000CC";\n' +
	'google_color_url = "333333";\n' +
	'google_color_text = "333333";\n' +
	'//--></script>\n' +
	'<script type="text/javascript"\n' +
	'  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\n' +
	'</script>\n');
}