// What is $(document).ready ? See: http://flowplayer.org/tools/using.html#document_ready
$(document).ready(function() {

	var ievs = (/MSIE (\d+\.\d+);/.test(navigator.userAgent));

	 if (ievs){

	    var iev=new Number(RegExp.$1);
		
	    if ((iev==6)) {
	    	// select the overlay element - and "make it an overlay"
	    	$("#detect").overlay({

	    		// custom top position
	    		top: 100,

	    		// some expose tweaks suitable for facebox-looking dialogs
	    		expose: {
	    			// you might also consider a "transparent" color for the mask
	    			color: '#fff',

	    			// load mask a little faster
	    			loadSpeed: 200,

	    			// highly transparent
	    			opacity: 0.8
	    		},
	    		// disable this for modal dialog-type of overlays
	    		closeOnClick: true,

	    		// we want to use the programming API
	    		api: true
	    	// load it immediately after the construction
	    	}).load();
	    }
    }

});
