// JavaScript Document
			   
	//function to show dialog   
    showDialog = function( newText, newTitle, emailAddress ) {
	
	$myWindow = jQuery('#dialogDiv');

	//grab the content from the #colOne div
	var newContent = newText + ' #colOne';
	
	//instantiate the dialog
	$myWindow.load(newContent,function(response, status, xhr) {
  if (status == "success") {
	  		//put an email address on the top of the page
	 		$('<div class="mini-nav noEscape"><ul class="alt"><li><a onClick="var s=s_gi(s_account); s.linkTrackVars=\'events\'; s.linkTrackEvents=\'event38\'; s.events=\'event38\'; s.tl(this,\'o\',\'Open Position Application: ' + newTitle + '\');" href="mailto:' + emailAddress + '@webroot.com?subject=' + newTitle + ' | WS">Apply for this position</a></li></ul></div>').prependTo('div#dialogDiv.ui-dialog-content #colOne .inner');

			//put in the ending text,email address and About Webroot at the end
			$('<p>If you would like an opportunity to work with this widely recognized worldwide leader in technology security, send your resume to <a onClick="var s=s_gi(s_account); s.linkTrackVars=\'events\'; s.linkTrackEvents=\'event38\'; s.events=\'event38\'; s.tl(this,\'o\',\'Open Position Application: ' + newTitle + '\');" href="mailto:' + emailAddress + '@webroot.com?subject=' + newTitle + ' | WS">' + emailAddress + '@webroot.com</a> for consideration.</p><p>Principals only - no third parties, please. Webroot Software, Inc. is an Equal Opportunity Employer.</p><h5>About Webroot Software</h5><p><a href="http://www.webroot.com/En_US/index.html">Webroot</a> provides industry-leading Internet security solutions for consumers, enterprises and small and medium businesses worldwide. Webroot products consistently receive top review ratings by respected third parties and have been adopted by millions globally. In addition to our award-winning business and consumer software, Webroot now protects enterprises with Webroot&reg; Security Software-as-a-Service (SaaS). Webroot Web Security SaaS and Webroot E-Mail Security SaaS are subscription-based services that provide on-demand web, email and archiving solutions, giving organizations a flexible and cost-effective alternative to on-premise security. </p><p>Founded in 1997, Webroot is globally recognized for providing innovative, best-of-breed security solutions that protect personal information and corporate assets from online and internal threats. The company is privately held and backed by some of the industry\'s leading venture capital firms, including <a target="_blank" href="http://www.tcv.com/">Technology Crossover Ventures</a>, <a target="_blank" href="http://www.accel.com/">Accel Partners</a> and <a target="_blank" href="http://www.mayfield.com/">Mayfield</a>. Webroot currently has more than 300 employees worldwide. Our headquarters are located in Boulder, Colorado, with offices in Mountain View, California, Europe, Japan and Australia.</p><br/><br/>').appendTo('div#dialogDiv.ui-dialog-content #colOne .inner');
  		};
			
	}).dialog({ height:700,
				width: 760,
				modal: true,
				position: 'center',
				autoOpen:true,
				title:newTitle,
				overlay: { opacity: 0.9, background: 'black'}
				});

		
        //if the contents have been hidden with css, you need this
        $myWindow.show(); 
		
		
		
        //open the dialog
        $myWindow.dialog("open");
		
		//put the window and overlay above the locale selector
		$('.ui-widget-overlay').css('z-index', 99998);
		$('.ui-dialog').css('z-index',99999);
		$('.ui-widget').css('z-index',99999);
		$('.ui-widget-content').css('z-index',99999);
		$('.ui-corner-all').css('z-index',99999);
		$('.ui-draggable').css('z-index',99999);
		$('.ui-resizable').css('z-index',99999);	
     }

    //function to close dialog, probably called by a button in the dialog
    closeDialog = function() {
		$myWindow.dialog( "destroy" );

        $myWindow.dialog("close");
    }
	