multimediabox = {
	theid: 0,
	box_w: 323,
	box_h: 264,
	platform: '20min',
	
	mark_navi: function(theid) {
		
		
		//get all a
		var geta = document.getElementById("frontbox_flapps").getElementsByTagName("a");
		//unmark old
		for (c=0;c < geta.length; c++) {
			if (geta[c].className.indexOf("activ") > -1) {
				geta[c].className = geta[c].className.replace(/ activ/g, "");	
				//debug: alert(geta[c].className);			
			}	
		}
		
		//mark active
		document.getElementById(theid).className = document.getElementById(theid).className + " activ";
		//debug: alert(document.getElementById(theid).className);
		//change popup link -> is handled by show_player()
		//document.getElementById("frontbox_bottom_link").setAttribute("href","http://www.20min.ch/videotv/?channel_id=" + multimediabox.theid);
	},
	
	load_a_player: function() {
		//size dynamisch: multimediabox.box_w + multimediabox.box_h in html def.
		var so = new SWFObject("http://www.20min.ch/videotv/player_inline_videotv.swf","videotv",multimediabox.box_w,multimediabox.box_h, "0", "#000000");
    so.addVariable("movie_width", multimediabox.box_w);
    
	  so.addParam("quality", "high");
	  so.addParam("scale", "noscale"); 
	  so.addParam("wmode", "transparent"); 
	  so.addVariable("browser",navigator.appVersion);
	  so.addVariable("channel_only", "true");
	  so.addVariable("inline", "false");
	  so.addVariable("showLogo", "true");
	  so.addVariable("showLogo1", "true");
	  so.addVariable("autoStart", "false");
	  so.addVariable("channel_id", multimediabox.theid);
	  so.addVariable("video_id", ""); 
	  so.addVariable("page_id", "0");
	  so.addVariable("pf", multimediabox.platform);
	  theimage = "http://www.20min.ch/videotv/last_images/"+multimediabox.theid+"_story_big.jpg";
		so.addVariable("imageURL", theimage);
		//memo:dynamisch?
		so.addVariable("channel_only", "true");
		//memo:dynamisch?		
  	so.addVariable("loop", "true");
  	//more params
  	so.addVariable("logo_url", "http://www.20min.ch/videotv/logo_d_323.png");
  	so.addVariable("extern", "true");
    //go
	  so.write("flashcontent_sideline");
	},
	
	load_as_iframe: function(theurl,thewidth,theheight) {
		document.getElementById("flashcontent_sideline").innerHTML = '<iframe src="'+theurl+'" style="width:'+thewidth+'px !important;height:'+theheight+'px !important;" frameborder="0"></iframe>';
	}

};
