
var	barn_infoArrBub 	= new Array();

/* ------------------ infoObject ------------------------------------------------
syntax för att fylla infoarray med information:
Bildreferens	Sommarrubrik	Serierubrik  länk	alt och title-text	länktext	ljudlänk

--- editering start -------------------------------------------------------------------------------------------------------------------------*/
barn_infoArrBub[0] = new barn_infoObjectBub('p3bubbel/images/ikoner/dojdoj.gif', 'Sommarserie:', 'Doj-Dojs hotell', '/barn/p3bubbel/dojdoj/', 'Doj-Dojs hotell', 'Senaste avsnittet', 'javascript:popPlayer(\'type=db&preview=db&Id=1175901\');');
barn_infoArrBub[1] = new barn_infoObjectBub('p3bubbel/images/ikoner/centralskolan.gif', 'Sommarserie:', 'Centralskolan', '/barn/p3bubbel/centralskolan/', 'Centralskolan', 'Senaste avsnittet', 'javascript:popPlayer(\'type=db&preview=db&Id=1197469\');');
barn_infoArrBub[2] = new barn_infoObjectBub('p3bubbel/images/ikoner/pauline.gif', 'Sommarserie:', 'Pauline i stallet', '/barn/p3bubbel/sommar/pauline/', 'Pauline i stallet', 'Senaste avsnittet', 'javascript:popPlayer(\'type=db&preview=db&Id=1201173\');');
barn_infoArrBub[3] = new barn_infoObjectBub('p3bubbel/images/ikoner/glaspusslet.gif', 'Sommarserie:', 'Glaspusslet', '/barn/p3bubbel/sommar/glaspusslet/', 'Glaspusslet', 'Senaste avsnittet', 'javascript:popPlayer(\'type=db&preview=db&Id=1203244\');');
barn_infoArrBub[4] = new barn_infoObjectBub('p3bubbel/images/ikoner/tindra.gif', 'Sommarserier', 'Tindra Trassel', '/barn/p3bubbel/sommar/tindra/', 'Tindra Trassel på turné', 'Senaste avsnittet', 'javascript:popPlayer(\'type=db&preview=db&Id=1200445\');');

/*- editering stop --------------------------------------------------------------------------------------------------------------------------*/


 
function barn_infoObjectBub(imgRef,strRubrikText,strText,strLink,strAltText,strLinkText,strSoundLink) {
	this.imgRef 		= imgRef;
	this.strRubrikText 		= strRubrikText;
	this.strText 		= strText;
	this.strLink		= strLink;	
	this.strLinkText	= strLinkText;	
	this.strAltText 	= strAltText;
	this.strSoundLink 	= strSoundLink;		
}

function barn_writeBubInfo() {
	if(document.getElementById("contentImageBubbel")) {
		document.getElementById("contentImageBubbel").innerHTML = '<a href="' + barn_infoArrBub[intShowBub].strLink + '" title="' + barn_infoArrBub[intShowBub].strAltText +'"><img src="' + barn_infoArrBub[intShowBub].imgRef +'" alt="' + barn_infoArrBub[intShowBub].strAltText +'" width="113" height="98" border="0" align="left"></a>';	
		document.getElementById("contentTextBubbel").innerHTML = '<span class="fontljus"><strong>' + barn_infoArrBub[intShowBub].strRubrikText + '</strong></span><p><span class="lop_rubrik_bla">' + barn_infoArrBub[intShowBub].strText + '</span><p><a href="' + barn_infoArrBub[intShowBub].strSoundLink + '" title="' + barn_infoArrBub[intShowBub].strAltText +' " class="lop_lank"><img src="images/hogtalare.gif" alt="" width="17" height="15" border="0" align="middle">Del 1</a> | <a href="' + barn_infoArrBub[intShowBub].strLink + '" title="' + barn_infoArrBub[intShowBub].strAltText +'" class="lop_lank">Fler delar</a>' + '</p>';
		
		/*document.getElementById("contentTextFavoriter").innerHTML = '<p><a href="' + barn_infoArrFav[intShowFav].strLink + '" title="' + barn_infoArrFav[intShowFav].strAltText +'">' + barn_infoArrFav[intShowFav].strLinkText + '</a> ' + barn_infoArrFav[intShowFav].strText + '</p>';*/
	}
}	

var intShowBub 	= Math.floor(Math.random() * barn_infoArrBub.length);

function expand(o) {
	currentObj = document.getElementById(o);
			if (currentObj.style.display != 'block' && currentObj.style.display != 'inline') {
				currentObj.style.display = 'block'; 
			} else {
				currentObj.style.display = 'none';
			}
	}

