//<![CDATA[
var lasthtml = '';
var lastid = '';
vidsid = new Array();
function se(a) { var e=document.getElementById(a).style;var r='block';if (e.display=='block') { r='none'; } e.display=r; document.getElementById(a).style.height='auto'; return false; }
function resizeimg(e, p) { document.getElementById(p).src = 'http://cdn.susanwayland.com/graphics/posts/news'+e+'b.jpg'; }
function insertvideo(a,b) {
	document.getElementById('vi'+a).style.background = '#000000'; 
	document.getElementById('vi'+a).innerHTML = '<div><embed src="http://cdn.susanwayland.com/scripts/flvp.swf" width="480" height="380" allowfullscreen="true" flashvars="&autostart=true&volume=100&displayheight=360&file=http://cdn.susanwayland.com/graphics/galleries/preview/s'+a+'/intro.flv&height=380&width=480&overstretch=false&shuffle=false&showdigits=false&showicons=false&showvolume=false&type=flv" /></'+'div>';
	return false; }

function showinfo(e, ident,titel,today,online,comming,video,desc,s,p, on) {
	if (!e) e=window.event;
	var x = (e.x ? e.x : e.layerX);
	var y = (e.y ? e.y : e.layerY);
	
	var d = document.getElementById(ident);
	if (on) { d.style.display = 'block'; } else {  d.style.display = 'none'; }
	
	d.style.top = (y+20)+'px';
	d.style.left = x+'px';
	
	var info = '';
	if (online.length>0) info += '<span>'+online+'</span><br />';
	if (comming.length>0) info +='<span style="color:#844">'+comming+'</span><br />';
	if (today.length>0) info += '<b>'+today+'</b><br />';
	if (titel.length>0) info += '<b>'+titel+'</b><br />';
	if (video.length>0) info += '<i>'+video+'</i><br />';
	if (s>0) info += ' <img src="http://cdn.susanwayland.com/graphics/galleries/bigt/s'+s+'/pic0'+p+'.jpg" /><br />';
	if (desc.length>0) info += desc;
	d.innerHTML = info;
}

function displaytextblock(h,session,mytext,mylink)
{
document.write('<p class="comment '+h+'" id="'+session+'">'+mytext+'</p>'+
							 '<a class="swap" id="c'+session+'" href="#" onclick="sh(\''+session+'\');return false;">'+mylink+' &gt;&gt;&gt;</a>');    
}

function insertintro(a) {
var so = new SWFObject('http://cdn.susanwayland.com/scripts/flvp.swf','m'+a,'148','224','1');
so.addParam('flashvars','&file=http://cdn.susanwayland.com/graphics/galleries/videos-intro/'+a+'.flv&autostart=true&bufferlength=1&controlbar=none&repeat=always');
so.write('play'+a);
}
function insertintro2(a,mylink) {
var so = new SWFObject('http://cdn.susanwayland.com/scripts/flvp.swf','m'+a,'148','224','1');
so.addParam('flashvars','&file='+mylink+'&type=youtube&autostart=true&bufferlength=1&controlbar=none&repeat=always&stretching=fill');
if (lastid) document.getElementById(lastid).innerHTML = lasthtml;
lastid = 'play'+a;
lasthtml = document.getElementById(lastid).innerHTML;
so.write(lastid);
}
function flashvidy(pic,session,vidsession,ylink)
{
if (ylink=='') {
	var so = new SWFObject('/scripts/shine.swf','m'+vidsession,'150','225','1');
	so.addParam('flashvars','&picture='+pic+'&session='+session+'&vidsession='+vidsession);
} else {
	var so = new SWFObject('/scripts/shine2.swf','m'+vidsession,'150','225','1');
	so.addParam('flashvars','&picture='+pic+'&session='+session+'&vidsession='+vidsession+'&mylink='+ylink);
}
so.write('play'+vidsession);
}

var mhr  = null;
function GetXMLHRequest() {
	if (window.XMLHttpRequest) {// Mozilla, Safari, ...
		var object = new XMLHttpRequest();
		if (object.overrideMimeType) {
			object.overrideMimeType('text/html; charset=ISO-8859-1');
		}
	} else if (window.ActiveXObject) {	// IE
		try {
			object = new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) {
			try {
				object = new ActiveXObject("Microsoft.XMLHTTP");
			} catch(e) {}
		}
	} else {
		return false;
	}
	return object;
}
function updatenewsblock(http, a) {
	if (http && http.readyState == 4) {
		if (http.status == 200) {
			content = http.responseText;
			document.getElementById(a).innerHTML=content;
		} 
	}
}
function importnews(a,b) {
	mhr = GetXMLHRequest();
	if (!mhr) return false;
	mhr.onreadystatechange = function() { updatenewsblock(mhr, a); };
	mhr.open('GET', '/includeV3/latestnews.v7.php?l='+b, true);
	mhr.send(null);
}
//]]>