function changeClass(id, newClass) {
	if (document.getElementById(id)) document.getElementById(id).className=newClass;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  xsWin = window.open(theURL,winName,features);
  xsWin.focus();
}

var openedMenu = false;
function openMenu(id) {
	if (document.getElementById(id)){
		if (openedMenu == false){ 
			 document.getElementById(id).style.display = "block";
			 openedMenu = true;
			}
		else { document.getElementById(id).style.display = "none"; 
			openedMenu = false;
			}
	}

}

// JavaScript Document
function changeSrc(id, newSrc) {
   document.getElementById(id).src=newSrc;
}
function changeStyle(id, newStyle){
    document.getElementById(id).style.display=newStyle;
}

function CreateBookmarkLink(ai) {
	title = "Meiden.com - Bekend van TV";   
	if (ai == ""){ 
		url = "http://www.meiden.com";  
	}
	else { 
		url = "http://www.meiden.com/?ai="+ai+""; 
	}
	if (window.sidebar) { 	// Mozilla Firefox Bookmark	
		window.sidebar.addPanel(title, url,"");	
	}
	else if( window.external ) { // IE Favorite		
		window.external.AddFavorite(url,title)
	}	
	else if(window.opera && window.print) { // Opera Hotlist		
	} 
} 

function vpsplugin(model_id, p) {
    model_id = (model_id) ? model_id : '';
    theURL = 'http://mysecurewallet.nl/islive/?m=' + model_id + '&p=' + p;
    wnd = window.open(theURL,'winName');
	wnd.focus();
}

function vpspopup(url, p) {
    var params = "left=10,top=20,width=485,height=460,border=0,scrollbars=1,resizable=1,status=0,toolbar=0,menubar=0,location=0";
    infoWin = window.open('http://' + url + '?&p='+ p +'&pi=', 'popupvenster', params);
	infoWin.focus();

}
//no frameset allowed (anti-hotlink)
if (parent.frames.length){
  top.location.href= document.location;	
}