
	document.write('<div id=\"PCGHelp\" style=\"background: url(\'styles/bildr/theme/images/adBG.gif\'); height: 107px; width: 951px; margin: 15px auto; position: relative; display: block;\"><style>#PCGHelp #adInfo, #PCGHelp #adHide{text-indent: -9999px;position: absolute;top: 52px;right: 40px;width: 30px;}#PCGHelp #adInfo{ right: 38px; }#PCGHelp #adHide{ right: 3px; }#modalBox{position: fixed;top: 100px;z-index: 100;margin-left: -445px;left: 50%;width: 850px;background: white;padding: 10px;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;-webkit-box-shadow: 0 0 20px rgba(0,0,0,.5);-moz-box-shadow: 0 0 20px rgba(0,0,0,.5);box-shadow: 0 0 20px rgba(0,0,0,.5);border: solid 10px yellow;font: 13px/18px Georgia, serif;}#modalMask{position: fixed;top: 0;left: 0;z-index: 99;width: 100%;height: 100%;background: rgba(0,0,0,.5);}#modalBox p{margin: 5px 0;}#modalBox div{margin-bottom: 10px;}#modalBox .button{-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;-webkit-box-shadow: 0 0 5px rgba(0,0,0,.2);-moz-box-shadow: 0 0 5px rgba(0,0,0,.2);box-shadow: 0 0 5px rgba(0,0,0,.2);border: solid 1px #ccc;background: #eee;padding: 3px 8px;margin-right: 10px;color: #333;}</style><a id=\"adInfo\" href=\"#\">info</a><a id=\"adHide\" href=\"#\">hide</a><div class=\"ga\" style=\"position: absolute; top: 6px; left: 10px;\">');
	
	google_ad_client = "pub-5398719259847980";
	/* 728x90, created 10/16/10 - bildr */
	google_ad_slot = "5568978872";
	google_ad_width = 728;
	google_ad_height = 90;
	
	
	document.write('<script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
	document.write('</div></div>');

	
		window.addEvent('domready', function(){
			
			if($('adInfo')){
			$('adInfo').addEvent('click', function(e){
				e.stop();
				var modalBox = new Element('div', {id:'modalBox'}).inject($(document.body));
				var modalMask = new Element('div', {id:'modalMask'}).inject($(document.body));
														
				$('modalMask').addEvent('click', function(){
					$('modalBox').destroy();
					$('modalMask').destroy();
				});
				
				modalBox.set('html', '<div><p>At bildr we love our community and we love to give things away and have promotions to promote that community.</p><p>But... Because bildr is not a business and takes no income the only way we can do this is by having this simple forum advertisement</p><p>The coolest part is that because we have no operation costs right now, <strong>every cent from the advertisements (including what adam should be holding for tax purposes) goes into the Promotions, Contests and Giveaways (PCGs)</strong></p></div><hr /><div><p>We know that no matter how noble the ads are, that some people just absolutely hate them. Well for this reason you can just turn them off</p><p>But if you want to help out the community, consider leaving them on so we can continue to do cool things for you guys</p></div><hr /><p><strong>Wait... If every cent goes to PCGs, shouldn\'t I just click the ads over and over?</strong> <br />NO! Please don\'t!!!!! - This will cause us to lose all funds, and our advertisements</p><hr /><p>You can see all the <a href=\"http://forum.bildr.org/viewforum.php?f=28\">current PCGs here</a></p>');
				
								
			});
			}
			
			
			if($('adShow')){
			$('adShow').addEvent('click', function(e){
				e.stop();
				var modalBox = new Element('div', {id:'modalBox'}).inject($(document.body));
				var modalMask = new Element('div', {id:'modalMask'}).inject($(document.body));
														
				$('modalMask').addEvent('click', function(e){
					$('modalBox').destroy();
					$('modalMask').destroy();
				});
				
				modalBox.set('html', '<p>Thanks!</p>');	
				var show = new Request({url: '/bridge/ads/turnOn.php'}).post();
				
			});
			}

			if($('adHide')){
			$('adHide').addEvent('click', function(e){
				e.stop();
				var modalBox = new Element('div', {id:'modalBox'}).inject($(document.body));
				var modalMask = new Element('div', {id:'modalMask'}).inject($(document.body));
														
				$('modalMask').addEvent('click', function(e){
					$('modalBox').destroy();
					$('modalMask').destroy();
				});

				modalBox.set('html', '<p>Only registered users only can disabled the advertisements</p>');
				
				
				if($('hide')){
					var hide = new Request({url: '/bridge/ads/turnOff.php',
					
					onComplete: function(){
					$('modalBox').destroy();
					$('modalMask').destroy();
					}});
					
					$('hide').addEvent('click', function(e){
						e.stop();
						hide.post();
					});
					
					$('keep').addEvent('click', function(e){
						e.stop();
						$('modalBox').destroy();
						$('modalMask').destroy();
					});
				
				}
				
			});
			}
			

			
			
		});




