jQuery(function($) {
$('#homecol1').crossSlide({
  sleep: 2, //in sec
  fade: 1   //in sec
}, [
  { src: 'safety-surfacing-images/surfacing-portfolio-01.gif', href: 'safety-surfacing-portfolio.htm' },
  { src: 'safety-surfacing-images/surfacing-portfolio-02.gif', href: 'safety-surfacing-portfolio.htm' },
    { src: 'safety-surfacing-images/surfacing-portfolio-03.gif', href: 'safety-surfacing-portfolio.htm' }

]);
});
 function bookmark()  
 {  
     if (navigator.appName == 'Microsoft Internet Explorer')  
     {  
	 
	 	if(parseInt(navigator.appVersion) >= 4){
         window.external.AddFavorite(window.location,document.title);  
		 }
     }  
 } 


/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll,resize){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable='+resize+' '
win = window.open(mypage,myname,settings)
}




//Defines bookmark/favourite details and messeges for different browsers

var bookmarkurl="http://www.safetysurfacinguk.co.uk/";
var bookmarktitle="Rainbow Safety Surfacing";

function bookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle);

else if (window.sidebar) 
        alert('This feature only works for Internet Explorer, use Control+D to bookmark This website');
        
else if( window.opera && window.print ) 
        alert('This feature only works for Internet Explorer, use Control+T to bookmark This website');
}
