

document.write('<style type="text/css"> #fixme {left: 0px; position: absolute; top: 0px; } DIV > DIV#fixme { position: fixed; } PRE.fixit { 	overflow: auto; } </style> <!--[if gte IE 5.5]><![if lt IE 7]> <style type="text/css"> div#fixme { left: expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + "px" ); top: expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + "px" ); } div#fixmetoo { right: auto; bottom: auto; left: expression( ( 0 - fixmetoo.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + "px" ); top: expression( ( 0 - fixmetoo.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + "px" ); } </style> <![endif]><![endif]-->');


// if these values are not set, then use these default values

if(typeof vertical_space=="undefined"){
   	vertical_space = 25;    
}

if(typeof text_align=="undefined"){
   	text_align = 'center';    
}

if(typeof info_text=="undefined"){
   	info_text = "New files at MMFILES: "; 
}

if(typeof text_color=="undefined"){
	text_color = 'CC0000';    
}
// leave this AFTER text_color above
if(typeof info_text_color=="undefined"){
	info_text_color = text_color;    
}
// leave this AFTER text_color
if(typeof price_text_color=="undefined"){
	price_text_color = text_color;    
}


if(typeof bar_color=="undefined"){
   bar_color = 'FCFCFA';    
}

if(typeof bar_boder_color=="undefined"){
   	 bar_boder_color = 'CCCCCC';    
}

if(typeof bar_opacity=="undefined"){
   	bar_opacity = 90;    
}

if(typeof total_listings=="undefined"){
   	 total_listings=5;    
}

if(typeof max_title_size=="undefined"){
   	 max_title_size=21;    
}

if(typeof items_space=="undefined"){
   	 items_space=10;    
}

if(typeof font_family=="undefined"){
   	 font_family='Arial, Helvetica, sans-serif';    
}

if(typeof font_size=="undefined"){
   	 font_size = 11;    
}

if(typeof icon_image=="undefined"){
   	 icon_image = 'http://www.mmfiles.com/scripts/affiliates/top_bar/page_white_flash.gif';    
}


// leave this CSS here AFTER we know the variables
document.write('<style type="text/css">.mm_bar_info_text{color:#'+info_text_color+';} .mm_bar_link {background-image:url('+icon_image+'); background-position: 0px '+(Math.floor(font_size/3)-3)+'px; margin-top:0px; padding-left:20px; margin-left:'+items_space+'px; background-repeat:no-repeat; padding-bottom:2px; padding-top:1px; color:#'+text_color+'; font-weight:normal; text-decoration:none;}.mm_bar_price{color:#'+price_text_color+';}</style>');



listings_counter = 0;

href_addon = '';

// we will allow "apage=" and "source=" in URL of each listing, so decide how URL will be formated
if(typeof apage!="undefined"){
	href_addon += "?apage="+apage;
}
if(typeof source!="undefined" && typeof apage!="undefined"){
	href_addon += "&source="+source;
}
if(typeof source!="undefined" && typeof apage=="undefined"){
	href_addon += "?source="+source;
}

document.write('<div id="vertical_space_for_bar" style="clear:both; display:block; height:'+vertical_space+'px;"></div>');
document.write('<div><div id="fixme" style="font-size:'+font_size+'px; width:100%; text-align:'+text_align+'; font-family:'+font_family+'; padding:5px; filter:alpha(opacity='+bar_opacity+'); -moz-opacity:.'+bar_opacity+'; opacity:.'+bar_opacity+'; background-color:#'+bar_color+'; border-bottom:1px solid #'+bar_boder_color+'; z-index:99999;">'+'<span class="mm_bar_info_text">'+info_text+'</span>&nbsp;');




var mm_bar_titles = new Array(); 
var mm_bar_urls = new Array(); 
var mm_bar_prices = new Array(); 

	
mm_bar_titles[0] = 'Auto slide banner';
mm_bar_urls[0] = 'http://www.mmfiles.com/flash/banner_rotators/auto_slide_banner_2055.html';
mm_bar_prices[0] = '6';

	
mm_bar_titles[1] = 'Love is blind';
mm_bar_urls[1] = 'http://www.mmfiles.com/flash/animations/love_is_blind_2054.html';
mm_bar_prices[1] = '5';

	
mm_bar_titles[2] = 'Product zoom magnifying glass toggle';
mm_bar_urls[2] = 'http://www.mmfiles.com/flash/image_loaders/product_zoom_magnifying_glass_toggle_2053.html';
mm_bar_prices[2] = '3';

	
mm_bar_titles[3] = 'X-treme 3d carousel menu xml as2';
mm_bar_urls[3] = 'http://www.mmfiles.com/flash/menus/x_treme_3d_carousel_menu_xml_as2_2042.html';
mm_bar_prices[3] = '12';

	
mm_bar_titles[4] = 'Auto slide banner in as3.0';
mm_bar_urls[4] = 'http://www.mmfiles.com/flash/actionscript/auto_slide_banner_in_as3_0_2036.html';
mm_bar_prices[4] = '5';

	
mm_bar_titles[5] = 'Xml driven flv player';
mm_bar_urls[5] = 'http://www.mmfiles.com/flash/actionscript/xml_driven_flv_player_2035.html';
mm_bar_prices[5] = '6';

	
mm_bar_titles[6] = 'Lotus flower';
mm_bar_urls[6] = 'http://www.mmfiles.com/flash/animations/lotus_flower_2040.html';
mm_bar_prices[6] = '6';

	
mm_bar_titles[7] = 'Mini portfolio site - the price went down!!!';
mm_bar_urls[7] = 'http://www.mmfiles.com/flash/templates/mini_portfolio_site_the_price_went_down__2039.html';
mm_bar_prices[7] = '8';

	
mm_bar_titles[8] = 'Dynamic xml driven menu';
mm_bar_urls[8] = 'http://www.mmfiles.com/flash/menus/dynamic_xml_driven_menu_2038.html';
mm_bar_prices[8] = '5';

	
mm_bar_titles[9] = 'Powerful flash multimedia gallery xml';
mm_bar_urls[9] = 'http://www.mmfiles.com/flash/media_players/powerful_flash_multimedia_gallery_xml_2029.html';
mm_bar_prices[9] = '25';





// loop over javascript array of links and print them
for(ii=0; ii<mm_bar_titles.length; ii++){
	// only show if not over user given limit
    if(ii < total_listings){
        if(mm_bar_titles[ii].length > max_title_size){
            mm_bar_titles[ii] = mm_bar_titles[ii].substring(0, max_title_size)+"...";
        }
        
        document.write('<a class="mm_bar_link" style="color:#'+text_color+';" href="'+mm_bar_urls[ii]+href_addon+'">'+mm_bar_titles[ii]+' <span class="mm_bar_price">($'+mm_bar_prices[ii]+')</span></a>');
    }
    // add some space after links, needed for right aligned text bar 
    if(ii==total_listings){ 
    	document.write('&nbsp;&nbsp;&nbsp;&nbsp;');
    }

}

	document.write('<a href="#" style="text-decoration:none;" title="29ms">&nbsp;&nbsp;</a>');


document.write('</div></div>'); // close the two opened divs  
  


