//names
var n1 = 'espen'
var n2 = 'kaya'
var n3 = 'petter'
var n4 = 'tore'
var n5 = 'bjorn'
//var n6 = 'elisabeth' //slutta
var n7 = 'ole-christian'
var n8 = 'thomas'
var n9 = 'ine'
var n10 = 'sarah'
var n11 = 'camilla'
var n12 = 'snorre'
var n13 = 'jorgen'

//header variables
var h1 = '<div id="header" style="background-image:url(http://www.blogsoft.org/blogg.no/kunder/sonen/v2/progblogg/header_'
var h2 = '.jpg);"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="711" height="189">'
var h3 = '<param name="movie" value="http://www.blogsoft.org/blogg.no/kunder/sonen/v2/progblogg/header.swf" />'
var h4 = '<param name="quality" value="high" />'
var h5 = '<param name="wmode" value="transparent" />'
var h6 = '<param name="flashvars" value="tt='
var h7 = '&amp;dt='
var h8 = '&amp;" /><embed src="http://www.blogsoft.org/blogg.no/kunder/sonen/v2/progblogg/header.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="711" height="189" wmode="transparent" flashvars="tt='
var h9 = '&amp;dt='
var h10 = '&amp;"></embed></object></div>'

//blogger variables
var p1 = '<div class="item" style="background-image:url(http://www.blogsoft.org/blogg.no/kunder/sonen/v2/portal/p_'
var p2 = ');"><a href="http://'
var p3 = '/" class="image"><img src="http://www.blogsoft.org/blogg.no/common/spacer.gif" alt="" /\></a><a href="http://'
var p4 = '/" class="name">'
var p5 = '</a></div>'

//video variables
var v1 = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="185" height="174"><param name="movie" value="http://www.blogsoft.org/blogg.no/kunder/sonen/v2/progblogg/profilevid.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="flashvars" value="ptxt=Om '
var v2 = '&amp;file=http://www.blogsoft.org/blogg.no/kunder/sonen/v2/progblogg/sonen_'
var v3 = '" /><embed src="http://www.blogsoft.org/blogg.no/kunder/sonen/v2/progblogg/profilevid.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="185" height="174" wmode="transparent" flashvars="ptxt=Om '
var v4 = '&amp;file=http://www.blogsoft.org/blogg.no/kunder/sonen/v2/progblogg/sonen_'
var v5 = '"></embed></object>'
//no video
var v6 ='<div style="height:175px;overflow:hidden;background-image:url(http://www.blogsoft.org/blogg.no/kunder/sonen/v2/progblogg/blogprofile_'
var v7 ='.jpg);background-repeat:no-repeat;"><img src="http://www.blogsoft.org/blogg.no/common/spacer.gif" width="185" height="139" /><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="185" height="36"><param name="movie" value="http://www.blogsoft.org/blogg.no/kunder/sonen/v2/progblogg/novid.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="flashvars" value="ptxt=Om '
var v8 = '" /><embed src="http://www.blogsoft.org/blogg.no/kunder/sonen/v2/progblogg/novid.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="185" height="36" wmode="transparent" flashvars="ptxt=Om '
var v9 = '"></embed></object></div>'


function profilevid(profile){
if (location.href.indexOf("http://espenk.blogg.no/") != -1){document.write(v1 + profile + v2 + n1 + v3 + profile + v4 + n1 + v5);}
//if (location.href.indexOf("http://espenk.blogg.no/") != -1){document.write(v6 + 'espen' + v7 + 'espen' + v8 + 'espen' + v9 );}
else {document.write('');}
if (location.href.indexOf("http://kayathekid.blogg.no/") != -1){document.write(v1 + profile + v2 + n2 + v3 + profile + v4 + n2 + v5);}
else {document.write('');}
//if (location.href.indexOf("http://petterblogg.no/") != -1){document.write(v1 + profile + v2 + n3 + v3 + profile + v4 + n3 + v5);}
if (location.href.indexOf("http://petterblogg.no/") != -1){document.write(v6 + 'petter' + v7 + 'petter' + v8 + 'petter' + v9 );}
else {document.write('');}
if (location.href.indexOf("http://torepetterson.blogg.no/") != -1){document.write(v1 + 'tore' + v2 + n4 + v3 + 'tore' + v4 + n4 + v5);}
else {document.write('');}
if (location.href.indexOf("http://bjornoedegard.blogg.no/") != -1){document.write(v1 + 'bjørn' + v2 + n5 + v3 + 'bjørn' + v4 + n5 + v5);}
else {document.write('');}
//if (location.href.indexOf("http://testblogg19.blogg.no/sonen2/") != -1){document.write(v1 + profile + v2 + n6 + v3 + profile + v4 + n6 + v5);}
//else {document.write('');}
if (location.href.indexOf("http://olechristian.blogg.no/") != -1){document.write(v1 + 'ole' + v2 + n7 + v3 + 'ole' + v4 + n7 + v5);}
else {document.write('');}
if (location.href.indexOf("http://thomasdahl.blogg.no/") != -1){document.write(v1 + 'thomas' + v2 + n8 + v3 + 'thomas' + v4 + n8 + v5);}
else {document.write('');}
if (location.href.indexOf("http://ineamundsen.blogg.no/") != -1){document.write(v1 + 'ine' + v2 + n9 + v3 + 'ine' + v4 + n9 + v5);}
else {document.write('');}
if (location.href.indexOf("http://zibidihone.blogg.no/") != -1){document.write(v1 + 'sarah' + v2 + n10 + v3 + 'sarah' + v4 + n10 + v5);}
else {document.write('');}
if (location.href.indexOf("http://cammiewolf.blogg.no/") != -1){document.write(v1 + 'camilla' + v2 + n11 + v3 + 'camilla' + v4 + n11 + v5);}
else {document.write('');}
if (location.href.indexOf("http://testblogg19.blogg.no/sonen2/") != -1){document.write(v1 + profile + v2 + n12 + v3 + profile + v4 + n12 + v5);}
else {document.write('');}
if (location.href.indexOf("http://testblogg19.blogg.no/sonen2/") != -1){document.write(v1 + profile + v2 + n13 + v3 + profile + v4 + n13 + v5);}
else {document.write('');}
//video test
if (location.href.indexOf("http://testblogg19.blogg.no/sonen2/") != -1){document.write(v1 + profile + v2 + n11 + v3 + profile + v4 + n11 + v5);}
else {document.write('');}
}

function header(title,desc){
//header urls - dersom url stemmer med indexOf puttes flash-headeren inn med riktig bakgrunnsbilde. bruker variabler fra "names" og "header".
if (location.href.indexOf("http://espenk.blogg.no/") != -1){document.write(h1+ n1 +h2+h3+h4+h5+h6+ title +h7+ desc +h8+ title +h9+ desc +h10);}
else {document.write('');}
if (location.href.indexOf("http://kayathekid.blogg.no/") != -1){document.write(h1+ n2 +h2+h3+h4+h5+h6+ title +h7+ desc +h8+ title +h9+ desc +h10);}
else {document.write('');}
if (location.href.indexOf("http://petterblogg.no/") != -1){document.write(h1+ n3 +h2+h3+h4+h5+h6+ title +h7+ desc +h8+ title +h9+ desc +h10);}
else {document.write('');}
if (location.href.indexOf("http://torepetterson.blogg.no/") != -1){document.write(h1+ n4 +h2+h3+h4+h5+h6+ title +h7+ desc +h8+ title +h9+ desc +h10);}
else {document.write('');}
if (location.href.indexOf("http://bjornoedegard.blogg.no/") != -1){document.write(h1+ n5 +h2+h3+h4+h5+h6+ title +h7+ desc +h8+ title +h9+ desc +h10);}
else {document.write('');}
//if (location.href.indexOf("http://bitsi.blogg.no/") != -1){document.write(h1+ n6 +h2+h3+h4+h5+h6+ title +h7+ desc +h8+ title +h9+ desc +h10);}
//else {document.write('');}
if (location.href.indexOf("http://olechristian.blogg.no/") != -1){document.write(h1+ n7 +h2+h3+h4+h5+h6+ title +h7+ desc +h8+ title +h9+ desc +h10);}
else {document.write('');}
if (location.href.indexOf("http://thomasdahl.blogg.no/") != -1){document.write(h1+ n8 +h2+h3+h4+h5+h6+ title +h7+ desc +h8+ title +h9+ desc +h10);}
else {document.write('');}
if (location.href.indexOf("http://ineamundsen.blogg.no/") != -1){document.write(h1+ n9 +h2+h3+h4+h5+h6+ title +h7+ desc +h8+ title +h9+ desc +h10);}
else {document.write('');}
if (location.href.indexOf("http://zibidihone.blogg.no/") != -1){document.write(h1+ n10 +h2+h3+h4+h5+h6+ title +h7+ desc +h8+ title +h9+ desc +h10);}
else {document.write('');}
if (location.href.indexOf("http://cammiewolf.blogg.no/") != -1){document.write(h1+ n11 +h2+h3+h4+h5+h6+ title +h7+ desc +h8+ title +h9+ desc +h10);}
else {document.write('');}
if (location.href.indexOf("http://blogg.no/") != -1){document.write(h1+ n12 +h2+h3+h4+h5+h6+ title +h7+ desc +h8+ title +h9+ desc +h10);}
else {document.write('');}
if (location.href.indexOf("http://blogg.no/") != -1){document.write(h1+ n13 +h2+h3+h4+h5+h6+ title +h7+ desc +h8+ title +h9+ desc +h10);}
else {document.write('');}

//function header test
if (location.href.indexOf("http://testblogg19.blogg.no/sonen2/") != -1){document.write(h1+ n11 +h2+h3+h4+h5+h6+ title +h7+ desc +h8+ title +h9+ desc +h10);}
else {document.write('');}
}
function progbloggers(){
document.write('<div class="hosts"><div class="navheader"><span>Sonen programlederne</span></div>');
if (location.href.indexOf("http://espenk.blogg.no/") != -1){document.write('');}
else {document.write(p1+'espen.jpg'+p2+'espenk.blogg.no'+p3+'espenk.blogg.no'+p4+'Espen'+p5);}
if (location.href.indexOf("http://kayathekid.blogg.no/") != -1){document.write('');}
else {document.write(p1+'kaya.jpg'+p2+'kayathekid.blogg.no'+p3+'kayathekid.blogg.no'+p4+'Kaya'+p5);}
if (location.href.indexOf("http://petterblogg.no/") != -1){document.write('');}
else {document.write(p1+'petter.jpg'+p2+'petterblogg.no'+p3+'petterblogg.no'+p4+'Petter'+p5);}
if (location.href.indexOf("http://torepetterson.blogg.no/") != -1){document.write('');}
else {document.write(p1+'tore.jpg'+p2+'torepetterson.blogg.no'+p3+'torepetterson.blogg.no'+p4+'Tore'+p5);}
if (location.href.indexOf("http://bjornoedegard.blogg.no/") != -1){document.write('');}
else {document.write(p1+'bjorn.jpg'+p2+'bjornoedegard.blogg.no'+p3+'bjornoedegard.blogg.no'+p4+'Bj&oslash;rn'+p5);}
//if (location.href.indexOf("http://bitsi.blogg.no/") != -1){document.write('');}
//else {document.write(p1+'elisabeth.jpg'+p2+'bitsi.blogg.no'+p3+'bitsi.blogg.no'+p4+'Elisabeth'+p5);}
if (location.href.indexOf("olechristian.blogg.no/") != -1){document.write('');}
else {document.write(p1+'ole.jpg'+p2+'olechristian.blogg.no'+p3+'olechristian.blogg.no'+p4+'Ole-Chr.'+p5);}
if (location.href.indexOf("http://thomasdahl.blogg.no/") != -1){document.write('');}
else {document.write(p1+'thomas.jpg'+p2+'thomasdahl.blogg.no'+p3+'thomasdahl.blogg.no'+p4+'Thomas'+p5);}
if (location.href.indexOf("http://ineamundsen.blogg.no/") != -1){document.write('');}
else {document.write(p1+'ine.jpg'+p2+'ineamundsen.blogg.no'+p3+'ineamundsen.blogg.no'+p4+'Ine'+p5);}
if (location.href.indexOf("http://zibidihone.blogg.no/") != -1){document.write('');}
else {document.write(p1+'sarah.jpg'+p2+'zibidihone.blogg.no'+p3+'zibidihone.blogg.no'+p4+'Sarah'+p5);}
if (location.href.indexOf("http://cammiewolf.blogg.no/") != -1){document.write('');}
else {document.write(p1+'camilla.jpg'+p2+'cammiewolf.blogg.no'+p3+'cammiewolf.blogg.no'+p4+'Camilla'+p5);}
document.write('</div>');	
}
