function NewSmallWindow(URL) {
	window.open(URL, "nieuw", "width=300,height=475,toolbars=false,location=false,resizable=false");
}

function WhiteLogo(){
	if (document.images) document.images['logo1'].src= 'part/images/nav/logo-w.jpg';
	if (document.images) document.images['logo2'].src= 'part/images/nav/logo-w.jpg';
	if (document.images) document.images['logo3'].src= 'part/images/nav/logo-w.jpg';
	return true;
}

function YellowLogo(){
	if (document.images) document.images['logo1'].src= 'part/images/nav/logo-g.jpg';
	if (document.images) document.images['logo2'].src= 'part/images/nav/logo-g.jpg';
	if (document.images) document.images['logo3'].src= 'part/images/nav/logo-g.jpg';
	 return true;
}

function OrangeLogo(){
	if (document.images) document.images['logo1'].src= 'part/images/nav/logo-o.jpg';
	if (document.images) document.images['logo2'].src= 'part/images/nav/logo-o.jpg';
	if (document.images) document.images['logo3'].src= 'part/images/nav/logo-o.jpg';
	return true;
}

function RestoreLogo(){
	if (document.images) document.images['logo1'].src= 'part/images/nav/logo-w.jpg';
	if (document.images) document.images['logo2'].src= 'part/images/nav/logo-g.jpg';
	if (document.images) document.images['logo3'].src= 'part/images/nav/logo-o.jpg';
	window.status=''; return true;
}

function getCookie(NameOfCookie){
    if (document.cookie.length > 0) {              
    begin = document.cookie.indexOf(NameOfCookie+"=");       
    if (begin != -1) {           
      begin += NameOfCookie.length+1;       
      end = document.cookie.indexOf(";", begin);
      if (end == -1) end = document.cookie.length;
        return unescape(document.cookie.substring(begin, end));
    } 
  }
  return null;
}

function setCookie(NameOfCookie, value, expiredays) {
var ExpireDate = new Date();
ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));

  document.cookie = NameOfCookie + "=" + escape(value) + 
  ((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
}

function delCookie (NameOfCookie) {
  if (getCookie(NameOfCookie)) {
    document.cookie = NameOfCookie + "=" +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}

function IndexPageCheckCookieExists(){
var CurrentBkgr=getCookie('CurrentBkgr');
if (CurrentBkgr==null) { setCookie('CurrentBkgr','sculpture',365) }
}

function SubPageCheckCookieExists(){
var CurrentBkgr=getCookie('CurrentBkgr');
if (CurrentBkgr==null) { setCookie('CurrentBkgr','mosaic',365) }
}


function sayHello(welkom){
nu = new Date();
if (nu.getHours() >= 18)
welkom = ("Goedenavond ! ");
else 
if (nu.getHours() >= 12)
welkom = ("Goedemiddag ! ");
else 
if (nu.getHours() >= 6)
welkom = ("Goedemorgen ! ");
else
welkom = ("Goedenacht ! ");
	
return welkom
}



function QV_zakelijk (){
   if (window.name!='bedrijfsuitjesfoto'
	&& !((self.innerHeight == 0) && (self.innerWidth == 0)))
  	    { top.location.replace('bedrijfsuitjes.htm');
}
}

function QV_beeldhouwen (){
   if (window.name!='bedrijfsuitjesfoto'
	&& !((self.innerHeight == 0) && (self.innerWidth == 0)))
  	    { top.location.replace('beeldhouwen-individueel.htm');
}
}

function QV_familie (){
   if (window.name!='bedrijfsuitjesfoto'
	&& !((self.innerHeight == 0) && (self.innerWidth == 0)))
  	    { top.location.replace('familiedagen.htm');
}
}

function QV_mozaiek (){
   if (window.name!='bedrijfsuitjesfoto'
	&& !((self.innerHeight == 0) && (self.innerWidth == 0)))
  	    { top.location.replace('mozaiek-workshop.htm');
}
}

function QV_vrijgezel (){
   if (window.name!='bedrijfsuitjesfoto'
	&& !((self.innerHeight == 0) && (self.innerWidth == 0)))
  	    { top.location.replace('vrijgezellenfeest-workshops.htm');
}
}



function frameJammer_hp(){
var framedPage = location.search;
//alert(framedPage);
if (framedPage.length>1 ){
	framedPage = framedPage.substring(1);
	var theSplit = framedPage.lastIndexOf('~');
	var thePage = framedPage.substring(0,theSplit);
	var theFrame = framedPage.substring(theSplit+1);
//	alert(''+theFrame+'.location.href = "'+ thePage +'";')
	eval(''+theFrame+'.location.href = "'+ thePage +'";')
	}
}

function Addfav(){
var url="http://www.geenkunst.info";
var title="Geen Kunst Bedrijfsuitjes & Creatieve Workshops";

if(document.all)
window.external.AddFavorite(url,title)
}


