//<![CDATA[

/*
als je op de portfolio bent, dan zorgt de bookmark link ervoor dat je de geselecteerde pagina hebt gebookmarkt
voor IE is dit script, voor FF en Opera is er een anchor tag met een rel=sidebar link die wordt geupdate door de index van de portfolio
*/

photoID = 0;
folderID = 0;
photoName = '';

function bookmark2(){
	// relocate var to redirect naar de gebookmarkte pagina
	relocate = false;

	if(photoID == 0) {
		thisUrl = window.location;
		thisTitle = 'Aangaande Terschelling';
	} else {
		thisUrl = location.protocol+'//'+location.host+location.pathname+'?folderID='+folderID+'&fileID='+photoID;
		thisTitle = 'Aangaande Terschelling Foto '+photoName;
		relocate = true;
	}
	//alert(thisUrl);

	/*
		this script is only called in case of internet explorer
		howewer keep this for reference and maybe other browers that identify strangly and might use this
	*/
	
	if (window.sidebar) {
		// Mozilla Firefox Bookmark
		// dit werkt niet want hij opent de urls in de sidebar..
		window.sidebar.addPanel(thisTitle, thisUrl,"");
		//alert('Wacht even tot de pagina herladen is en druk op Ctrl-D om deze pagina te bookmarken.');
	} else if( window.external ) {
		// IE Favorite
		window.external.AddFavorite( thisUrl, thisTitle); }
	else if(window.opera && window.print) {
		// Opera Hotlist
		window.sidebar.addPanel(thisTitle, thisUrl,"");
		//alert('Wacht even tot de pagina herladen is en druk op Ctrl-T om deze pagina te bookmarken.');
	}

	if(relocate)
		location.href = thisUrl;

}
//]]>
