function manageContent(){
 initialize();
 initPlayer();
}
var map;
function initialize() {
 if (document.getElementById("icar_map")) {
  var latlng = new google.maps.LatLng(40, 10);
  var myMarkers = new Array(
  new Array(
   "Tokyo, Japan: 1983, 1985, 1993, 1999",
   new google.maps.LatLng(35.68518697509638, 139.76226806640625)
  ),
  new Array(
   "Versailles, France: 1987",
   new google.maps.LatLng(48.805619828930276, 2.132930755615239)
  ),
  new Array(
   "Columbus, OH, USA: 1989",
   new google.maps.LatLng(39.9602803542958, -83.00012588500975)
  ),
  new Array(
   "Pisa Italy: 1991",
   new google.maps.LatLng(43.7162791618341, 10.399627685546879)
  ),
  new Array(
   "Saint Feliu de Guixols, Spain: 1995",
   new google.maps.LatLng(41.78206502192826, 3.029689788818364)
  ),
  new Array(
   "Monterey, CA, USA: 1997",
   new google.maps.LatLng(36.600576508481055, -121.89464569091795)
  ),
  new Array(
   "Budapest, Hungary: 2001",
   new google.maps.LatLng(47.49325471120555, 19.05685424804688)
  ),
  new Array(
   "Coimbra, Portugal: 2003",
   new google.maps.LatLng(40.21224408267641, -8.428707122802729)
  ),
  new Array(
   "Seattle, WA, USA: 2005",
   new google.maps.LatLng(47.60760974936466, -122.31950759887694)
  ),
  new Array(
   "Jeju, Korea: 2007",
   new google.maps.LatLng(33.49910492888608, 126.53318405151367)
  ),
  new Array(
   "Munich, Germany: 2009",
   new google.maps.LatLng(48.07807894349864, 11.625976562500004)
  ),
  new Array(
   "Tallinn, Estonia: 2011",
   new google.maps.LatLng(59.428315784042574, 24.782104492187504)
  ),
  new Array(
   "Montevideo, Uruguay: 2013",
   new google.maps.LatLng(-34.883611, -56.181944)
  )
 );
 var myOptions = {zoom: 1, center: latlng, disableDefaultUI: true, mapTypeId: google.maps.MapTypeId.ROADMAP};
 map = new google.maps.Map(document.getElementById("icar_map"), myOptions);
 var myInfoWindow = new google.maps.InfoWindow({
			content: ""
		})
		for (obj in myMarkers){
			var marker = new google.maps.Marker({
				position: myMarkers[obj][1], 
				map: map
			});

			attachMarkerInfo(marker, myMarkers[obj][0]);
		}

	}
}
	
function attachMarkerInfo(marker, markerContent){
 var infowindow = new google.maps.InfoWindow({
			content: markerContent,
		});
 google.maps.event.addListener(marker, 'click', function() {
			infowindow.open(map,marker);
		});

}
function icarStoreRedirect(){
 document.getElementById("reg_front").style.display='none';
 document.getElementById("reg_redirect").style.display='block';
 window.location="http://icar2011.shops.pipfrog.com/?mode=list";
}

function initPlayer(){
 if (document.getElementById("myplayer")){
  var cnt = document.getElementById("myplayer");
  var src = 'wmvplayer.xaml';
  var cfg = {height:'360',width:'480',file:'http://media.ttu.ee/icar2011',autostart:'true'};
  var ply = new jeroenwijering.Player(cnt,src,cfg);
 }
}
