function PopUp() {

    if (BrowserDetect.browser == 'Explorer' && BrowserDetect.version == '6' && BrowserDetect.OS == 'Windows') {

        window.open("http://www.domesticabusewb.org.uk/domesticabuseforum/html/IE6_Java_Safety.html");
        
    }

    else {

        var check
        check = document.getElementById('pop_overlay').style.display;

        if (check == 'block') {
            document.getElementById('pop_overlay').style.display = 'none';
            document.getElementById('pop_container').style.display = 'none';
            document.getElementById('twitter').style.display = 'block';
        }
        else {
            document.getElementById('pop_overlay').style.display = 'block';
            document.getElementById('pop_container').style.display = 'block';
            document.getElementById('twitter').style.display = 'none';
        }

        if (BrowserDetect.browser == 'Firefox' && BrowserDetect.version == '3' && BrowserDetect.OS == 'Windows') {

            document.getElementById('History_1').innerHTML = '<img src = "../../images/domesticabuseforum/common/History/Step_1_Firefox_v3.gif" alt= "Click on tools in the top menu of Firefox, and then scroll down to clear private data and click on that." />';
            document.getElementById('History_2').innerHTML = '<img src = "../../images/domesticabuseforum/common/History/Step_2_Firefox_v3.gif" alt= "Make sure that the check box &quotBrowsing History&quot is checked, and then click on &quotClear Private Data Now&quot." />';
            document.getElementById('History_1_Text').innerHTML = "1. Click on 'Clear Private Data' within 'Tools' in the top menu of Firefox.";
            document.getElementById('History_2_Text').innerHTML = "2. Click on 'Clear Private Data Now' with 'Browsing History' ticked.";
        }

        else if (BrowserDetect.browser == 'Firefox' && BrowserDetect.version != '3' && BrowserDetect.OS == 'Windows') {

            document.getElementById('History_1').innerHTML = '<img src = "../../images/domesticabuseforum/common/History/Step_1_Firefox_v2.gif" alt= "Click on tools in the top menu of Firefox, and then scroll down to clear private data and click on that." />';
            document.getElementById('History_2').innerHTML = '<img src = "../../images/domesticabuseforum/common/History/Step_2_Firefox_v2.gif" alt= "Make sure that the check box &quotBrowsing History&quot is checked, and then click on &quotClear Private Data Now&quot." />';
            document.getElementById('History_1_Text').innerHTML = "1. Click on 'Clear Private Data' within 'Tools' in the top menu of Firefox.";
            document.getElementById('History_2_Text').innerHTML = "2. Click on 'Clear Private Data Now' with 'Browsing History' ticked.";
        }

        else if (BrowserDetect.browser == 'Firefox' && BrowserDetect.version != '3' && BrowserDetect.OS == 'Linux') {

            document.getElementById('History_1').innerHTML = '<img src = "../../images/domesticabuseforum/common/History/Step_1_Firefox_v2.gif" alt= "Click on tools in the top menu of Firefox, and then scroll down to clear private data and click on that." />';
            document.getElementById('History_2').innerHTML = '<img src = "../../images/domesticabuseforum/common/History/Step_2_Firefox_v2.gif" alt= "Make sure that the check box &quotBrowsing History&quot is checked, and then click on &quotClear Private Data Now&quot." />';
            document.getElementById('History_1_Text').innerHTML = "1. Click on 'Clear Private Data' within 'Tools' in the top menu of Firefox.";
            document.getElementById('History_2_Text').innerHTML = "2. Click on 'Clear Private Data Now' with 'Browsing History' ticked.";
        }

        else if (BrowserDetect.browser == 'Explorer' && BrowserDetect.version == '7' && BrowserDetect.OS == 'Windows') {

            document.getElementById('pop_inner').style.height = '75%';
            document.getElementById('History_1').innerHTML = '<img src = "../../images/domesticabuseforum/common/History/Step_1_IE_v7.gif" alt= "Click on tools in the top menu of Explorer, and select Delete Browsing History from the list." />';
            document.getElementById('History_2').innerHTML = '<img src = "../../images/domesticabuseforum/common/History/Step_2_IE_v7.gif" alt= "Click on &quotDelete History&quot in the pop up box that appears." />';
            document.getElementById('History_1_Text').innerHTML = "1. Click on 'Delete Browsing History' within 'Tools' in the top menu of Explorer.";
            document.getElementById('History_2_Text').innerHTML = "2. Click on 'Delete History' in the pop up box that appears.";
        }

        else if (BrowserDetect.browser == 'Chrome' && BrowserDetect.version == '0.2' && BrowserDetect.OS == 'Windows') {

            document.getElementById('pop_inner').style.height = '60%';
            document.getElementById('History_1').innerHTML = '<img src = "../../images/domesticabuseforum/common/History/Step_1_Chrome_v0-2.gif" alt= "Click on the wrench icon in the top right of the browser, and click on History in the drop down box that appears." />';
            document.getElementById('History_2').innerHTML = '<img src = "../../images/domesticabuseforum/common/History/Step_2_Chrome_v0-2.gif" alt= "Click on the relavent &quotDelete History for this day&quot link" />';
            document.getElementById('History_1_Text').innerHTML = "1. Click on 'Delete Browsing History' within 'Tools' in the top menu of Explorer.";
            document.getElementById('History_2_Text').innerHTML = "2. Click on 'Delete History' in the pop up box that appears.";
        }

        else if (BrowserDetect.browser == 'Opera' && BrowserDetect.OS == 'Windows') {

            document.getElementById('History_1').innerHTML = '<img src = "../../images/domesticabuseforum/common/History/Step_1_Opera.gif" alt= "Click on tools in the top menu of Opera, and then scroll down to History and click on that." />';
            document.getElementById('History_2').innerHTML = '<img src = "../../images/domesticabuseforum/common/History/Step_2_Opera.gif" alt= "Click on Today in the table that appears, then click on the delete button above it." />';
            document.getElementById('History_1_Text').innerHTML = "1. Click on 'Customise and Control Google Chrome' (the wrench button) in the top menu of Chrome, and then scroll down to 'History' and click on that.";
            document.getElementById('History_2_Text').innerHTML = "2. Click on the top 'Delete history for this day' link in the table that appears.";

        }

        else {

            document.getElementById('History_1').style.display = 'none';
            document.getElementById('History_2').style.display = 'none';
            document.getElementById('History_1_Text').innerHTML = "Unfortunately " + BrowserDetect.browser + " version " + BrowserDetect.version + " is unsupported by this walk-through guide. Please refer to " + BrowserDetect.browser + "'s help section for details of how to delete your history.";
            document.getElementById('History_2_Text').style.display = 'none';
        }

    }

}


