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 google_affiliate_network(size)  {var scripttext = "";if (display_ads) {if (size == "TOP_728x90") {var today = new Date();var maxDate = new Date(2100,0,1,23,59,59);var adEndCounter = -1;var adNoEndCounter = -1;var ads_end_arr = new Array();var ads_noend_arr = new Array();for (var i=0; i< google_affiliate_ads_arr.length; i++) {if(i%2 == 0) {var date_arr = (google_affiliate_ads_arr[i]).split("-");var adDate = new Date(date_arr[0], date_arr[1]-1, date_arr[2], 23, 59, 59);if(today<adDate) {if(adDate > maxDate) {ads_noend_arr[++adNoEndCounter] = google_affiliate_ads_arr[i+1];} else {ads_end_arr[++adEndCounter] = google_affiliate_ads_arr[i+1];}}}}var num_ads_end = ads_end_arr.length ;var num_ads_noend = ads_noend_arr.length;var rand_no = 0;if(num_ads_end !=0) {rand_no = Math.ceil(num_ads_end * Math.random());scripttext = ads_end_arr[rand_no-1];} else {rand_no = Math.ceil(num_ads_noend * Math.random());scripttext = ads_noend_arr[rand_no-1];}}} else {scripttext = '<img src="../../images/_advertisements/banner728x90_google.gif" alt="" width="728" height="90" border="0" />';}return scripttext;}function showMyPromo() {scripttext = '<iframe src="http:/' + '/' + getDomain() + '/php/ads/ads.php" frameborder="0" width="468" height="60" scrolling="no" allowtransparency="true" hspace="0" vspace="0" marginheight="0" marginwidth="0"></iframe>';return scripttext;}function showAdOne() {if (display_ads) {scripttext = "<div style='height:250px;'><b>Place your ad here</b><a href='../../contact/advertise_mobilefish/advertise_mobilefish.html' onfocus='this.blur()'><br /><br />Size: 120x250px<br /><br />25 &euro; / 30 days<br />on all pages</a></div>";} else {scripttext = '<img src="../../images/_advertisements/amazon120x240.gif" alt="" width="120" height="240" 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_type = "mpu";\n'+ 'ch_width = 728;\n'+ 'ch_height = 90;\n'+ 'ch_color_bg = "6F84B9";\n'+ 'ch_color_border = "6F84B9";\n'+ 'ch_color_title = "FFFFFF";\n'+ 'ch_color_site_link = "FFFFFF";\n'+ 'ch_color_text = "FEE19B";\n'+ 'ch_non_contextual = 4;\n'+ 'ch_vertical ="premium";\n'+ 'ch_font_title = "Arial";\n'+ 'ch_font_text = "Arial";\n'+ 'ch_sid = "Chitika Premium";\n'+ 'ch_alternate_ad_url = "http://'+getDomain()+'/chitika/amazon_script.html";\n'+ 'var ch_queries = new Array( );\n'+ 'var ch_selected=Math.floor((Math.random()*ch_queries.length));\n'+ 'if ( ch_selected < ch_queries.length ) {\n'+ 'ch_query = ch_queries[ch_selected];\n'+ '}\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" />';}}return scripttext;}function referrerAdsChitika(ref) {var scripttext = "";if (ref == "chitika") {if (display_ads) {scripttext = '<a href="https:/' + '/chitika.com/mm_overview.php?refid=robertlie" style="text-decoration: none;">\n'+ '<img src="http:/' + '/scripts.chitika.net/eminimalls/logos/125x125.png" border="0" height="125" width="125" alt="Get Chitika eMiniMalls" title="Get Chitika eMiniMalls" />\n'+ '<' + '/a>\n';} else {scripttext = '<img src="../../images/_advertisements/referrer_chitika125x125.gif" alt="" width="125" height="125" border="0" />';}}return scripttext;}function display_ad_left() {return amazon("120x240");}function display_ad2_left() {return showAdOne();}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() {if (display_promotion) {scriptval = showMyPromo();} else {scriptval = "<iframe src='http:/" + "/" +getDomain() + "/cache/ads/ads_468x60.html' width='468' height='60' scrolling='no'  marginwidth='0' style='border:none;' frameborder='0'></iframe>";}return scriptval;}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() {}