/**
 * @author DBCorp
 * @version 1.0
 * @package actionsex.nl
 */

//START BOOKMARK AND HOMEPAGE SCRIPT
var ua			=navigator.userAgent.toLowerCase();
var ischrome	=(ua.indexOf('chrome')!=-1);
var isKonq		=(ua.indexOf('konqueror')!=-1);
var isSafari	=(ua.indexOf('webkit')!=-1);
var isMac		=(ua.indexOf('mac')!=-1);
var buttonStr	=isMac?'Command/Cmd':'CTRL';
	
var thisname	= "actionsex.nl";
var thisurl 	= "http://www.actionsex.nl/";
var thistitle 	= "ActionSex.nl"; 

	// START BOOKMARK SCRIPT
	function bookmark() {
		if (window.sidebar){ // Mozilla Firefox Bookmark
			window.sidebar.addPanel(thistitle, thisurl,"");
		}else if( window.external ){ 
			if(ischrome){ //Chrome
				alert('U dient op CTRL + D te drukken om '+thisname+' aan uw favorieten toe te voegen.');
			}else{ // IE Favorite
				window.external.AddFavorite(thisurl, thistitle);
			}
		}else{
			if(isKonq){ //Chrome
				alert('U dient op CTRL + B te drukken om '+thisname+' aan uw favorieten toe te voegen.');
			}else if(window.home || isSafari){ // Firefox, Netscape, Safari, iCab
				alert('U dient op '+buttonStr+' + D te drukken om '+thisname+' aan uw favorieten toe te voegen.');
			}else if(!window.print || isMac){ // IE5/Mac and Safari 1.0
				alert('U dient op Command/Cmd + D te drukken om '+thisname+' aan uw favorieten toe te voegen.');    
			}else{
				alert('U dient '+thisname+' handmatig toe te voegen aan uw favorieten');
			}
		}
	}
	// END BOOKMARK SCRIPT
	// START HOMEPAGE SCRIPT
	function homepage(){	
		if (window.sidebar){ // Mozilla Firefox Bookmark
			alert('Sleep het icoontje links naast het webadres naar het "Home" icoontje in de werkbalk, om '+thisname+' in te stellen als jouw startpagina.');
		}else if(window.external){ // IE Favorite
			if(ischrome){ //Chrome
				alert('Om '+thisname+' als uw startpagina in te stellen, dient u dit handmatig in te stellen in uw browser opties.');
			}else{
				theobj = document.anchors[0];
				theobj.style.behavior='url(#default#homepage)';
				theobj.setHomePage(thisurl);
			}
		}else{
			alert('Om '+thisname+' als uw startpagina in te stellen, dient u dit handmatig in te stellen in uw browser opties.');
		}
	}
	// END HOMEPAGE SCRIPT
//END BOOKMARK AND HOMEPAGE SCRIPT
