var ad_max = 3;var ref_max = 3;var link_max = 3;var ad_counter =0;var ref_counter = 0;var link_counter = 0;var google_start = '<script type="text/javascript"><!--\n'+ 'google_ad_client = "pub-0337924350061493";\n';var google_end   = '/' + '/--' + '><' + '/script>\n'+ '<script type="text/javascript" src="http:/' + '/pagead2.googlesyndication.com/pagead/show_ads.js">\n'+ '<' + '/script>\n';function googleManageAds(size) {var scripttext = "";if (display_ads) {scripttext = google_start;}if (size == "LHS_120x90_LINKAD" && link_counter<link_max) {link_counter++;if (display_ads) {scripttext += 'google_ad_slot = "5430847875";\n'+ 'google_ad_width = 120;\n'+ 'google_ad_height = 90;\n'} else {scripttext = '<img src="../../images/_advertisements/linkad_120x90.gif" alt="" width="120" height="90" border="0" />';}}if (size == "QUICKGUIDE_120x90_LINKAD"  && link_counter<link_max) {link_counter++;if (display_ads) {scripttext += 'google_ad_slot = "4438852857";\n'+ 'google_ad_width = 120;\n'+ 'google_ad_height = 90;\n'} else {scripttext = '<img src="../../images/_advertisements/linkad_120x90_green.gif" alt="" width="120" height="90" border="0" />';}}if (size == "RELATED_INFO_468x15_LINKAD"  && link_counter<link_max) {link_counter++;if (display_ads) {scripttext += 'google_ad_slot = "8618564443";\n'+ 'google_ad_width = 468;\n'+ 'google_ad_height = 15;\n'} else {scripttext = '<img src="../../images/_advertisements/banner468x15_a.gif" alt="" width="468" height="15" border="0" />';}}if (size == "HEADER_468x15_LINKAD"  && link_counter<link_max) {link_counter++;if (display_ads) {scripttext += 'google_ad_slot = "9795638636";\n'+ 'google_ad_width = 468;\n'+ 'google_ad_height = 15;\n'} else {scripttext = '<img src="../../images/_advertisements/banner468x15_b.gif" alt="" width="468" height="15" border="0" />';}}if (size == "BELOW_QUICKGUIDE_468x60_ADUNIT"  && ad_counter<ad_max) {ad_counter++;if (display_ads) {scripttext += 'google_ad_slot = "0952035312";\n'+ 'google_ad_width = 468;\n'+ 'google_ad_height = 60;\n'} else {scripttext = '<img src="../../images/_advertisements/banner468x60_2.gif" alt="" width="468" height="60" border="0" />';}}if (size == "TOPBUTTON_468x60_ADUNIT"  && ad_counter<ad_max) {ad_counter++;if (display_ads) {scripttext += 'google_ad_slot = "9843199208";\n'+ 'google_ad_width = 468;\n'+ 'google_ad_height = 60;\n'} else {scripttext = '<img src="../../images/_advertisements/banner468x60.gif" alt="" width="468" height="60" border="0" />';}}if (size == "RHS_160x600_ADUNIT"  && ad_counter<ad_max) {ad_counter++;if (display_ads) {scripttext += 'google_ad_slot = "8872066935";\n'+ 'google_ad_width = 160;\n'+ 'google_ad_height = 600;\n'} else {scripttext = '<img src="../../images/_advertisements/banner160x600.gif" alt="" width="160" height="600" border="0" />';}}if (size == "POPUP_468x60_ADUNIT"  && ad_counter<ad_max) {ad_counter++;if (display_ads) {scripttext += 'google_ad_slot = "2016875292";\n'+ 'google_ad_width = 468;\n'+ 'google_ad_height = 60;\n'} else {scripttext = '<img src="../../images/_advertisements/banner468x60_popup.gif" alt="" width="468" height="60" border="0" />';}}if (size == "POPUP_234x60_ADUNIT"  && ad_counter<ad_max) {ad_counter++;if (display_ads) {scripttext += 'google_ad_slot = "3026296670";\n'+ 'google_ad_width = 234;\n'+ 'google_ad_height = 60;\n'} else {scripttext = '<img src="../../images/_advertisements/banner234x60_popup.gif" alt="" width="234" height="60" border="0" />';}}if (size == "BELOW_CONTENT_300x250_ADUNIT"  && ad_counter<ad_max) {ad_counter++;if (display_ads) {scripttext += 'google_ad_slot = "8863064751";\n'+ 'google_ad_width = 300;\n'+ 'google_ad_height = 250;\n'} else {scripttext = '<img src="../../images/_advertisements/banner300x250.gif" alt="" width="300" height="250" border="0" />';}}if (size == "INSIDE_CONTENT_300x250_ADUNIT"  && ad_counter<ad_max) {ad_counter++;if (display_ads) {scripttext += 'google_ad_slot = "6890238920";\n'+ 'google_ad_width = 300;\n'+ 'google_ad_height = 250;\n'} else {scripttext = '<img src="../../images/_advertisements/banner300x250_2.gif" alt="" width="300" height="250" border="0" />';}}if (size == "INSIDE_CONTENT_300x250_ADUNIT_2" && ad_counter<ad_max) {ad_counter++;if (display_ads) {scripttext += 'google_ad_slot = "6189865858";\n'+ 'google_ad_width = 300;\n'+ 'google_ad_height = 250;\n'} else {scripttext = '<img src="../../images/_advertisements/banner300x250_3.gif" alt="" width="300" height="250" border="0" />';}}if (size == "INSIDE_CONTENT_300x250_ADUNIT_3"  && ad_counter<ad_max) {ad_counter++;if (display_ads) {scripttext += 'google_ad_slot = "5267453349";\n'+ 'google_ad_width = 300;\n'+ 'google_ad_height = 250;\n'} else {scripttext = '<img src="../../images/_advertisements/banner300x250_4.gif" alt="" width="300" height="250" border="0" />';}}if (size == "LHS_120x60_REF"  && ref_counter<ref_max) {ref_counter++;if (display_ads) {scripttext += ''} else {scripttext = '<img src="../../images/_advertisements/referrer_adsense120x60.gif" alt="" width="120" height="60" border="0" />';}}if (size == "MAINNAV_468x60_REF"  && ref_counter<ref_max) {ref_counter++;if (display_ads) {scripttext += ''} else {scripttext = '<img src="../../images/_advertisements/banner468x60_godaddy.gif" alt="" width="468" height="60" border="0" />';}}if (display_ads) {scripttext += google_end;if (scripttext.indexOf('google_ad_slot') == -1){scripttext = "";}}return scripttext;}function amazon(size) {var scripttext = "";if (size == "120x240") {if (display_ads_amazon) {scripttext = '<script type="text/javascript"><!--\n'+ 'amazon_ad_tag = "mobilefishcom-20";\n'+ 'amazon_ad_width = "120";\n'+ 'amazon_ad_height = "240";\n'+ 'amazon_ad_logo = "hide";\n'+ 'amazon_color_border = "BBCDE1";\n'+ 'amazon_color_background = "BBCDE1";\n'+ 'amazon_color_text = "2a50a8";\n'+ 'amazon_color_link = "003399";\n'+ 'amazon_color_price = "2a50a8";\n'+ 'amazon_color_logo = "000000";\n'+ '/' + '/--' + '><' + '/script>\n'+ '<script type="text/javascript" src="http:/' + '/www.assoc-amazon.com/s/ads.js">\n'+ '<' + '/script>\n';} else {scripttext = '<img src="../../images/_advertisements/amazon120x240.gif" alt="" width="120" height="240" border="0" />';}}if (size == "728x90") {if (display_ads_amazon) {scripttext = '<script type="text/javascript"><!--\n'+ 'amazon_ad_tag = "mobilefishcom-20";\n'+ 'amazon_ad_width = "728";\n'+ 'amazon_ad_height = "90";\n'+ 'amazon_ad_logo = "hide";\n'+ 'amazon_color_border = "6F84B9";\n'+ 'amazon_color_background = "6F84B9";\n'+ 'amazon_color_text = "FEE19B";\n'+ 'amazon_color_link = "FBFCFD";\n'+ 'amazon_color_price = "FEE19B";\n'+ 'amazon_color_logo = "000000";\n'+ '/' + '/--' + '><' + '/script>\n'+ '<script type="text/javascript" src="http:/' + '/www.assoc-amazon.com/s/ads.js">\n'+ '<' + '/script>\n';} else {scripttext = '<img src="../../images/_advertisements/banner728x90_google.gif" alt="" width="728" height="90" border="0" />';}}return scripttext;}function chitika(size) {var scripttext = "";if (size == "728x90") {if (display_ads) {scripttext = '<script type="text/javascript"><!--\n'+ 'ch_client = "robertlie";\n'+ 'ch_width = 728;\n'+ 'ch_height = 90;\n'+ 'ch_type = "mpu";\n'+ 'ch_sid = "Banner728x90";\n'+ 'ch_alternate_ad_url = "http://'+getDomain()+'/chitika/amazon_script.html";\n'+ 'ch_color_site_link = "FFFFFF";\n'+ 'ch_color_title = "FFFFFF";\n'+ 'ch_color_border = "6F84B9";\n'+ 'ch_color_text = "FEE19B";\n'+ 'ch_color_bg = "6F84B9";\n'+ '/' + '/--' + '><' + '/script>\n'+ '<script  src="http:/' + '/scripts.chitika.net/eminimalls/amm.js" type="text/javascript">\n'+ '<' + '/script>\n';} else {scripttext = '<img src="../../images/_advertisements/banner728x90_chitika.gif" alt="" width="728" height="90" border="0" />';}}if (size == "160x600") {if (display_ads) {scripttext = '<script type="text/javascript"><!--\n'+ 'ch_client = "robertlie";\n'+ 'ch_width = 160;\n'+ 'ch_height =600;\n'+ 'ch_type = "mpu";\n'+ 'ch_sid = "Banner160x600";\n'+ 'ch_color_site_link = "003399";\n'+ 'ch_color_title = "003399";\n'+ 'ch_color_border = "8FA4CB";\n'+ 'ch_color_text = "000000";\n'+ 'ch_color_bg = "BBCDE1";\n'+ '/' + '/--' + '><' + '/script>\n'+ '<script  src="http:/' + '/scripts.chitika.net/eminimalls/amm.js" type="text/javascript">\n'+ '<' + '/script>\n';} else {scripttext = '<img src="../../images/_advertisements/banner160x600_chitika.gif" alt="" width="160" height="600" border="0" />';}}return scripttext;}function display_ad_left() {return amazon("120x240");}function display_ad2_left() {return chitika('160x600');}function display_ad_topleft2() {return googleManageAds('LHS_120x90_LINKAD');}function display_ad_quickguide() {return googleManageAds('QUICKGUIDE_120x90_LINKAD');}function display_ad_related_information() {return googleManageAds("RELATED_INFO_468x15_LINKAD");}function display_ad_related_information2() {return googleManageAds("HEADER_468x15_LINKAD");}function display_ad_below_quickguide() {return googleManageAds("BELOW_QUICKGUIDE_468x60_ADUNIT");}function display_ad_right() {return googleManageAds('RHS_160x600_ADUNIT');}function display_ad_below_content() {return googleManageAds('BELOW_CONTENT_300x250_ADUNIT');}function display_ad_inside_content() {return googleManageAds('INSIDE_CONTENT_300x250_ADUNIT');}function display_ad_inside_content_2() {return googleManageAds('INSIDE_CONTENT_300x250_ADUNIT_2');}function display_ad_inside_content_3() {return googleManageAds('INSIDE_CONTENT_300x250_ADUNIT_3');}function display_ad_near_top_button(displayAds) {return googleManageAds('TOPBUTTON_468x60_ADUNIT');}function display_ad_popupwindow() {return googleManageAds('POPUP_468x60_ADUNIT');}function display_ad_popupwindow_3() {return googleManageAds('POPUP_234x60_ADUNIT');}function display_ad_topleft1() {return "";}function display_ad_top_right() {return chitika('728x90');}function display_ad_below_mainnav() {return "";}function display_ad_top_left() {document.write('<a href="http:/' + '/'+getDomain() +'"><img src="../../images/mobilefish_logo.gif" alt="Mobilefish.com homepage" width="272" height="90" border="0" /></a>');}function display_ad_footer_left() {document.write('&nbsp;');}function display_ad_footer_right() {document.write('&nbsp;');}function display_ad_footer_top() {}function display_ad_footer_bottom() {}
