function CreateBookmarkLink() {
  title = "Running 42"; 
  url = "http://www.running42.com"; 
  if (window.sidebar) { // Mozilla Firefox Bookmark	
  window.sidebar.addPanel(title, url,"");
  } else if( window.external ) { // IE Favorite
  window.external.AddFavorite( url, title);
  }	else { 
      alert("Diese Funktion wird leider von ihrem Browser nicht unterstützt");}
  }
  
  function show_flash(widht,height,src,cyt,trans)
{
if (window.ActiveXObject)
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+widht+'" height="'+height+'" id="'+src+'">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="'+src+'" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="wmode" value="'+trans+'">');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<PARAM NAME=FlashVars VALUE="'+cyt+'">');
document.write('<embed src="'+src+'" quality="high" FlashVars="'+cyt+'" bgcolor="#ffffff" width="'+widht+'" height="'+height+'" name="'+src+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" wmode="'+trans+'" />');
document.write('</object>');
}
else
{
document.write('<object id="'+src+'" data="'+src+'" type="application/x-shockwave-flash" width="'+widht+'" height="'+height+'">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="'+src+'" />');
document.write('<param name="quality" value="high" />');
// document.write('<param name="wmode" value="'+trans+'">');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<PARAM NAME=FlashVars VALUE="'+cyt+'">');
document.write('<embed src="'+src+'" quality="high" FlashVars="'+cyt+'" bgcolor="#ffffff" width="'+widht+'" height="'+height+'" name="'+src+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}
}

$().ready(function(){
do_ship_link();
		$("#box_categories").accordion({
			header:'.title',
			selectedClass:"title_active",
			alwaysOpen:false,
			autoheight:false,
			fillSpace:false,
			active: false,
			animated:'firstclose'
		});
		
		$('.subnav_ajax').bind('click',function(){
		var checked_basename = check_ssl($(this).attr('href'));
		$.ajax({url:checked_basename,data:{ajax:'1'},dataType:'html',success:function(data){$('#main_putin').html(data);do_ship_link();},beforeSend:function(){$('#main_putin').html('<div class="ajax_loading">&nbsp;</div>');}});
								return true;				
		});
				  });

 function check_ssl(mod_url){
 					// SSL mod
					if(typeof mod_url != 'undefined'){
					var mod_href = '';
					if(typeof mod_ajax_request != 'undefined'){
					var mod_href = mod_url.replace(mod_ajax_normal_server,mod_ajax_ssl_server)
					}else{
					var mod_href = mod_url;
					}
					return mod_href;
					}
 }
 function do_ship_link(){
				    $(".ship_link").click(function(){
window.open($(this).attr('href'),'popup','toolbar=0, scrollbars=yes, resizable=yes, height=720, width=750');
return false;});	 
 }
