// JavaScript Document


                       
                        //-------------------------------------------------
                        function check_browser(){
                                        this.ver=navigator.appVersion
                                        this.dom=document.getElementById?1:0
                                        this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
                                        this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
                                        this.ie4=(document.all && !this.dom)?1:0;
                                        this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
                                        this.ns4=(document.layers && !this.dom)?1:0;
                                        this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5);
                                        return this;
                        }
                        //-------------------------------------------------
                        function check_banner(){
                                        var bw = new check_browser();
                                        var PageWidth = (bw.ns4 || bw.ns5) ? innerWidth : document.body.offsetWidth - 20;
                                        var PageHeight = (bw.ns4 || bw.ns5) ? innerHeight : document.body.offsetHeight - 20;
                                        if (parent && (PageWidth < 300 || PageHeight < 200)) {
													    var el = document.getElementById(bar_id);
                                                        //el.style.display = "none";
                                        }
                        }
                        //-------------------------------------------------
                        function banner_links_sh(isc){
                                var el = document.getElementById('banner_links');
                                if(el.style.display=='none') el.style.display = 'block';
                                else{
                                        if(!isc) return true;
                                        el.style.display = 'none';
                                }
                                return true;
                        }
                        //-------------------------------------------------
						
                        //-------------------------------------------------
                        function ss(w,id) {window.status = w;return true;}
                        //-------------------------------------------------
                        function cs(){window.status='';}
                        //-------------------------------------------------
                        function ca(a) {top.location.href=document.getElementById(a).href;}
                        //-------------------------------------------------
                        function ga(o,e) {if (document.getElementById) {a=o.id.substring(1);p = "";r = "";g = e.target;if (g) {t = g.id;f = g.parentNode;if (f) {p = f.id;h = f.parentNode;if (h)r = h.id;}}else {h = e.srcElement;f = h.parentNode;if (f) p = f.id;t = h.id;}if (t==a || p==a || r==a)return true;top.location.href=document.getElementById(a).href;}}
                        //-------------------------------------------------
						window.onload = function () {
							check_banner();
							fif_baf();

						}
						
						function getRandom(except) {							
							var randomnumber=Math.ceil(Math.random()*3);
							if (except != null && randomnumber == except) return getRandom(except);
							return randomnumber;
						}
						
						google_ads_function_call_bav = 0;
						
						 function google_ad_request_done(google_ads) {
								google_ads_function_call_bav++;
							   
							    var banner_codes = new Array;
								banner_codes[1] = '<scr' + 'ipt type="text/javascript"><!--' + "\n"
									+ 'google_ad_client = "pub-3460518834604685";'
									+ 'google_ad_width = 180;'
									+ 'google_ad_height = 60;'
									+ 'google_ad_output = "html";'
									+ 'google_ad_format = "180x60_as_rimg";'
									+ 'google_cpa_choice = "CAAQ56j8zwEaCHvU9tBAqJJaKMu293M";'
									+ 'google_ad_channel = "";'
									
									+ "\n//-->\n</" + "script>\n"
									+ '<scr' + 'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></' + 'script>';
								
								banner_codes[2] = '<scr' + 'ipt type="text/javascript"><!--' + "\n"
									+ 'google_ad_client = "pub-3460518834604685";'
									+ 'google_ad_width = 180;'
									+ 'google_ad_height = 60;'
									+ 'google_ad_output = "html";'
									+ 'google_ad_format = "180x60_as_rimg";'
									+ 'google_cpa_choice = "CAAQ4fqy0gEaCPI0fZSM10VxKL3D93M";'
									+ 'google_ad_channel = "";'
									
									+ "\n//-->\n</" + "script>\n"
									+ '<scr' + 'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></' + 'script>';
									
								banner_codes[3] = '<scr' + 'ipt type="text/javascript"><!--' + "\n"
									+ 'google_ad_client = "pub-3460518834604685";'
									+ 'google_ad_width = 180;'
									+ 'google_ad_height = 60;'
									+ 'google_ad_output = "html";'
									+ 'google_ad_format = "180x60_as_rimg";'
									+ 'google_cpa_choice = "CAAQ3Pi39gEaCJahiY1_ceFvKMzD4IEB";'
									+ 'google_ad_channel = "";'
									
									+ "\n//-->\n</" + "script>\n"
									+ '<scr' + 'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></' + 'script>';
							   
							   if (google_ads_function_call_bav==2) {
									return;
							   	}
							  
								if (google_ads_function_call_bav ==1 && google_ads.length < 1 ) {
									document.write ('<div style="text-align:center">' + _100ws_banner + ' &nbsp; <span id="sec_ref_banner_bae"></span></div>');
									var fr1 = getRandom(null);
									document.write ('<div style="display:none; width: 160px">' + banner_codes[fr1] + '</div>');
									return;
								}
								if (google_ads.length != 3) {
									 document.write("<table cellpadding='0' cellspacing='0'  BORDER=0 style='width:755px;height: 70px; background-color:#ffffff;border-style:solid;border-width:0px;border-color:#000000;' align='center'><tr><td>");
								}
								if (google_ads_function_call_bav==1) {
									
									document.write("<table cellpadding='0' cellspacing='0'  BORDER=0 style='width:" + (google_ads.length*255) + "px;height: 70px; background-color:#ffffff;border-style:solid;border-width:1px;border-color:#000000;' align='center'>");
									document.write("<tr><td align='left' style='padding: 2 2 2 2;background-color:#E9E9E9;border-style:solid;border-width:0 0 1px 0;border-color:#000000;'" + (google_ads.length==1 ? ' colspan="2"' : ' colspan="' + google_ads.length + '"') + ">");
									if (google_info.feedback_url) {
									  document.write("<a href='" + google_info.feedback_url +"' style='color:#333333;font-family:Tahoma;font-size: 9px; padding-left:6px; text-decoration:none;'>Ads by Goooogle</a>");
	
									} else {
									  document.write("Ads By Google");
									}
									document.write("</td></tr><tr>");
									if (google_ads[0].type == 'text') {
											for(i = 0; i < google_ads.length; ++i) {
													document.write("<td align='left' nowrap style='padding:2 2 2 2;cursor:pointer;cursor:hand;'>" +
													"<table width='100%' height='100%' bgcolor='#F4FAFF' style='border: 1px solid #000000; padding:2 2 2 2;' cellspacing='0' cellpadding='2'>"+
													"<tr><td id='taw"+i+"' onFocus=\"ss('go to "+google_ads[i].visible_url+"')\"  onMouseOver=\"ss('go to "+google_ads[i].visible_url+"')\" "+
													"onMouseOut=\"cs()\" onClick=\"ga(this,event)\"><a id='aw"+i+"' target='_top' style='font-weight:bold;font-family:Tahoma; font-size:12px;"+
													"color:#0000FF;' href='" +  google_ads[i].url + "'>" +
													google_ads[i].line1 + "</a><br>" +
													"<div style='font-family:Tahoma; font-size:11px; color:#000000;'>"+google_ads[i].line2 + "<br>" +
													google_ads[i].line3 + "<br></div>" +
													"<a style='font-family:Tahoma; font-size:11px; color:green;' href='" + google_ads[i].url + "' >" +
													google_ads[i].visible_url +
													"</a></td></tr></table></td>");
											}
											document.write("</tr>");
									}
									if (google_ads[0].type == 'image') {
									  document.write("<tr><td align='center'>" +
											"<a href='" + google_ads[0].url + "'style='text-decoration: none'>" +
											"<img src='" + google_ads[0].image_url +
											"' height='" + google_ads[0].height +
											"' width='" + google_ads[0].width +
											"' border='0'></a></td></tr>");
									}
									document.write ("</table>");
									
								}						
																							
                        		if (google_ads.length != 3) {
									 document.write("</td><td>");
									 
									if (google_ads_function_call_bav ==1 && google_ads.length==1) {
										document.write(_100ws_banner);										
									}

									if (google_ads_function_call_bav==1  && google_ads.length==2) {
										var fr1 = getRandom(null);
										document.write ('<div id="sec_ref_banner_bae"></div>');
										document.write('<div style="display:none; width: 160px">' + banner_codes[fr1] + '</div>');
										
									}
									 document.write("</td></tr></table>");
									
								}
						}
							

						_100ws_banner = '<a href="http://www.100webspace.com"><img src="/icons/100ws/100WebSpace-1.gif" border="0"></a>';
		
                       	google_ad_client = "pub-3460518834604685";
                        google_ad_channel ="7616598233";
                        google_ad_output = "js";
                        google_max_num_ads = 3;
                        google_safe     = "high";
                        google_feedback = "on";
                        google_ad_type  = "image";
                        google_color_line = "ff0000";
                    
document.write('<scr' + 'ipt language="JavaScript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"' + '></' + 'script>');

function fif_baf () {
	var ifs = document.getElementsByTagName('iframe');

	if (!ifs || ifs.length==0) return;
	if (ifs[0].src.indexOf('http://pagead2.googlesyndication.com') == 0) {
		ifs[0].style.display = 'none';
		var srcc = ifs[0].src;
		document.getElementById('sec_ref_banner_bae').innerHTML='<iframe name="google_ads_frame" width='+google_ad_width+' height='+google_ad_height+' frameborder="0" src='+srcc+' marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no"></iframe>';
	}
}

