Help with indexes

1. Provide the SQL to create a bitmap index on a column named survey_vals in a table named results.
2. Describe the overall characteristics of the data in the survey_vals column. (In other words, why is the data in this column a good candidate for a bit-mapped index)
3. Provide the SQL to create a function-based index on a column called lastname in a table named authors.
4. Provide an example of a query that would justify the use of a function-based index that you created in number 3.
5. Provide the SQL to create a sequence named yourname_cmis420 that starts with 50,000 and has a maximum value of 100,000.
Once you have completed these exercises, save the file as yourname_indexes.sql and submit via the assignments folder by the due date.

submit via the assignments folder by the due dateDon't know if its before or after due date, but...
1).
SQL> create table results (survey_vals varchar2(10)) ;
Table created.
SQL> create bitmap index idx_results_survey_vals on results(survey_vals) ;
Index created.
SQL>2). without having the DDLs of the objects involved and the type of queries that will be asked from this table, it will be hard to tell.
3).
SQL> create table authors (lastname varchar2(50)) ;
Table created.
SQL> create index idx_authors_lastname on authors(upper(lastname)) ;
Index created.
SQL>4). Could be used for case-insensitive queries.
5).
SQL> create sequence yourname_cmis420 start with 50000 maxvalue 100000 ;
Sequence created.
SQL>

Similar Messages

  • Help with indexing in PHP

    Hello,
    I use dbxml version 2.2.13 with PHP.
    I am trying to index a document but seems that without success because the performance doesn't change.
    The doc has 1600 elements and executing a query takes about 0.22 secs
    The xquery looks like this (a bit simplified):
    <pre>
    declare namespace ns1 = "urn:...";
    declare function local:foo ($p1 as element(), $p2 as element()) as item() {
    let $a := data($p2/AAA)
    let $b := data($p2/BBB)
    let $r := $p1//CCC/*[name()=\$a][@ns1:attr1=\$b]
    return $r/DDD
    local:foo( doc("...")/*[1] , ... )
    </pre>
    I create the container like this:
    $mgr->createContainer($qcname,DBXML_INDEX_NODES);
    I have 4 questions:
    Q1) Which index strategy should I take?
    I have tested using "CCC" , "node-element-presence-none" but no speed up occurs.
    The qplan shows sth like:
    <OQPlan>P(node-element-presence-none,=,CCC)</OQPlan>
    So seems the index is correctly set.
    It is strategy ok? Which other indexes should I use?
    Q2) should the indexes be inserted before or after inserting the document, or is this irrelevant?
    Q3) If I create the container from php as shown before, and then I open it with dbxml it shows:
    Type of default container: NodeContainer
    Index Nodes: off
    However if I create the container directly from dbxml it
    Type of default container: NodeContainer
    Index Nodes: on
    Why is that?
    Q4) I need to repeat several times $mgr->query(....) . Does this affect somehow the data base acces performance?
    I'd be glad if someone could help me to make the indexes work..
    Best,
    /Enric

    Q2) should the indexes be inserted before or after
    inserting the document, or is this irrelevant?In the sense that this will not affect what the indexes contain, this is irrelevent. However, we normally recommend adding indexes before documents, or you would risk a lengthy re-index operation.
    Q3) If I create the container from php as shown
    before, and then I open it with dbxml it shows:
    Type of default container: NodeContainer
    Index Nodes: off
    However if I create the container directly from dbxml
    it
    Type of default container: NodeContainer
    Index Nodes: on
    Why is that?This is a bug in the PHP API - it is also why your indexes made no difference for you. You will need to create your container outside PHP using DBXML_INDEX_NODES.
    Q4) I need to repeat several times $mgr->query(....)
    . Does this affect somehow the data base acces
    performance?If the query is run several times, you would benefit from preparing it once, and executing it from the XmlQueryExpression object.
    John

  • Urgent help with Index page needed

    Can anyone help? I use Dreamweaver 8 to modify and update my
    work's website and I've come across a very strange problem that I
    haven't seen before. I amended a news page, entitled 'news.html'
    and uploaded it as normal last week. I also put a few new pictures
    on the index page and did the same. It was fine at that point,
    however having looked at the page four days later, the news page
    now shows as the home page when you visit the site. It isn't
    calling itself the index page as the browser still shows as the
    page as 'news.html'.
    But the strange thing is, when you first go to the site or
    click the homepage from an internal page, you get a very quick
    glimpse of the original index page before the news page replaces
    it. Almost overwrites it.
    VERY confused. Have tried re uploading the index page and am
    running out of solutions. Any help most welcome.

    On Wed, 21 Feb 2007 11:54:52 +0000 (UTC), "Rach JH"
    <[email protected]> wrote:
    >Can anyone help? I use Dreamweaver 8 to modify and update
    my work's website and
    >I've come across a very strange problem that I haven't
    seen before. I amended a
    >news page, entitled 'news.html' and uploaded it as normal
    last week. I also put
    >a few new pictures on the index page and did the same. It
    was fine at that
    >point, however having looked at the page four days later,
    the news page now
    >shows as the home page when you visit the site. It isn't
    calling itself the
    >index page as the browser still shows as the page as
    'news.html'.
    >
    > But the strange thing is, when you first go to the site
    or click the homepage
    >from an internal page, you get a very quick glimpse of
    the original index page
    >before the news page replaces it. Almost overwrites it.
    >
    > VERY confused. Have tried re uploading the index page
    and am running out of
    >solutions. Any help most welcome.
    URL?
    Win
    Win Day, Wild Rose Websites
    http://www.wildrosewebsites.com
    [email protected]
    Skype winifredday

  • Help with indexing of files

    Hello,
    I have some text files and I have the words and their frequencies from each text
    file. Now I want to create an index for the words inorder to get the common
    number of words in the given text files.
    which method will be good for this part ... i'm thinking of vectors.
    Any help ??
    Thanks in advance

    Thanks for the reply.
    Is this possible to do it as a matrix representation i.e., like
             File1        File2      File3
    Word1      3            2           0            =    5
    Word2      1            1           4            =    6
    Word3      0            2           1            =    3If I'm correct, incase of HashMap, I have to use 2 keys (word & file) and
    1 value. I have the list of words, files and list of number of times the word
    appears in each file. Could you please tell me the best method to map them ?
    Thanks

  • Matcher.start() and end() help with indexing.....

    I looked at the API and tried to figure out the following...
    public class class2{
        String[] x = {"abba"};
        public static void main(String args[]){
            Pattern p = Pattern.compile("a?");
            Matcher m = p.matcher("a");
           while(m.find()){
               System.out.println(m.start()+" "+ m.end());
    }To my understanding the start() returns the int index for the previous match and is zero based? Is this true?
    And the end () returns the last index in the form of an int and is 1 based?
    Finally Why do i get a second loop in my while block? I was under the impression that once the "a" was tested the while loop would fail as there are no more "a" characters? Is there something I am missing?

    Yucca wrote:
    sabre150 wrote:
    start() gives one the index of the first character of the match. end() gives one the index of the first character after the match. Your find() gives you a match against the 'a' of width 1. There Pattern then steps on past the match so the find() starts after the first match and looks again. Since your regex says the 'a' is optional you get a second match of zero width. The find then steps on past the second match (find() always advances by at least one char) so you cannot have any further matches.Ok so do you mean that the end() returns the last position of the current matchNo. end() gives the index of the character following the match.
    (which is zero based) All indexes are zero based.
    and then the start moves from that same position meaning that the start position will always be the end position on previous match?Nearly. The start for finding the next match will be the end() of the previous match except when the previous match was of zero width when it will be 1+ end(). i.e. the start position always advances at least one character.
    Edited by: sabre150 on Dec 19, 2008 3:24 PM

  • Help with index

    Hellow ,
    I have doubts about who is the index owner.
    Lets assume a senario 1
    schema name user1- contains table named table1
    user1 has granted index object privilege on table1 to user2
    now user2 create an index on table1 in his schema
    create index indt1 on user1.table1
    now my question is who is the owner of the index user1 on whoes table index is created
    or user2 who created the index and is contained in his schema .
    when user2 issues USER_INDEXES (describes the indexes owned by the current user.)will it reflect this in view.
    when user1 issues USER_INDEXES (describes the indexes owned by the current user.)will it reflect in this view.
    And what will this view reflect ALL_INDEXES( describes indexes on all tables accessible to the current user.) when each user issues this .
    Lets assume a senario 2
    schema name user1- contains table named table1
    user2 has CREATE ANY INDEX system privilege.
    now user2 create an index on table1 in user3 schema
    create index user3.indt1 on user1.table1
    now my question is who is the owner of the index
    user1 on whoes table index is created or
    user2 who created the index or
    user3 in whoses schema index is contained .
    To create a function-based index one needs QUERY REWRITE system privilege.
    and the EXECUTE object privilege on the function(s) used in the function-based index
    But who should have thses privs.The table owner or index owner

    The simplest way to find out is to test and see, as demonstrated below.
    scott@ORA92> CREATE USER user1 IDENTIFIED BY user1
      2  /
    User created.
    scott@ORA92> CREATE USER user2 IDENTIFIED BY user2
      2  /
    User created.
    scott@ORA92> CREATE USER user3 IDENTIFIED BY user3
      2  /
    User created.
    scott@ORA92> GRANT CONNECT, RESOURCE TO user1, user2, user3
      2  /
    Grant succeeded.
    scott@ORA92> GRANT CREATE ANY INDEX TO user2
      2  /
    Grant succeeded.
    scott@ORA92> CONNECT user1/user1
    Connected.
    scott@ORA92> @ LOGIN
    scott@ORA92> SET ECHO OFF
    GLOBAL_NAME
    user1@ORA92
    1 row selected.
    user1@ORA92> CREATE TABLE table1 (col1 NUMBER, col2 NUMBER)
      2  /
    Table created.
    user1@ORA92> CONNECT user2/user2
    Connected.
    user1@ORA92> @ LOGIN
    user1@ORA92> SET ECHO OFF
    GLOBAL_NAME
    user2@ORA92
    1 row selected.
    user2@ORA92> CREATE INDEX indt1 ON user1.table1 (col1)
      2  /
    Index created.
    user2@ORA92> CREATE INDEX user3.indt3 ON user1.table1 (col2)
      2  /
    Index created.
    user2@ORA92> SELECT index_name, table_owner, table_name
      2  FROM   user_indexes
      3  WHERE  index_name IN ('INDT1', 'INDT3')
      4  /
    INDEX_NAME                     TABLE_OWNER                    TABLE_NAME
    INDT1                          USER1                          TABLE1
    1 row selected.
    user2@ORA92> CONNECT user1/user1
    Connected.
    user2@ORA92> @ LOGIN
    user2@ORA92> SET ECHO OFF
    GLOBAL_NAME
    user1@ORA92
    1 row selected.
    user1@ORA92> SELECT index_name, table_owner, table_name
      2  FROM   user_indexes
      3  WHERE  index_name IN ('INDT1', 'INDT3')
      4  /
    no rows selected
    user1@ORA92> SET LINESIZE 150
    user1@ORA92> SELECT owner, index_name, table_owner, table_name
      2  FROM   all_indexes
      3  WHERE  index_name IN ('INDT1', 'INDT3')
      4  /
    OWNER                          INDEX_NAME                     TABLE_OWNER                    TABLE_NAME
    USER2                          INDT1                          USER1                          TABLE1
    USER3                          INDT3                          USER1                          TABLE1
    2 rows selected.

  • Need help with creating template. Changes are not going through to index.html page

    Hi all,
    I have an issue with my template that I am creating and also a question about creating template Regions (Repeating and Editable).
    Somehow my changes to my index.dwt are not changing my index.html page.
    Also my other question is: For my top navigation bar and left navigation bar links, do I need to select and define each individual button or link as Repeating/Editable Region? or can I just select the whole navigation bar (the one on the top) etc...
    Below are my steps for creating my template...I am kinda fairly new to using DW and this is my first attempt to making a template following the DW tutorial CD that came with DW CS3.
    I appreciate any help with this...regards, Dano
    -Open my index.html file
    -File/save as template
    -Save
    -update links - yes
    -Select Repeating and Editable Regions (I selected the whole top navigation bar and selected Repeating Region and Editable Region, same with the left side navigation links)
    -File close all
    -Open the index.dwt
    -Save as and selected the index.html and chose to overide it..
    When I make changes to my index.dwt it is not changing the index.html
    I feel that I am missing some important steps here.....
    Website address
    www.defenseproshop.com

    Figured out

  • Can you help with InDesign CS5 index problem?

       This is my first attept at creating an Index. I've pretty much tried everything I can think of to get this index to work properly. I think I might have made some fundamental errors in creating this document. I created a document and not a book. I placed 5 text files without linking them. I thought I could simply use the index panel and enter my words from the toc and front matter and InDesign would find all the occurences in the document. But when I ran the index I got the toc pg numbers and the index pg numbers only, i.e., Illumination vi-225 (p225 being the index pg). So far I have:
    reentered all the index entries to using the "whole document" because I had originally chose "This page" for each entry - that didn't work
    then I threaded the 5 text files thinking that might work - nope!
    then I saved the file as a book and tried using that - that didn't work.
       And yes, I have searched the Adobe CS5 help books, videos, online sites, etc. I'm hoping it's something simple! I would truly appreciate any help with this. Thank you!
       Sue

    You don't have any Shape layers, so you won't have any fill or stroke options.  If you had a rectangle and line layer, you have either deleted them, or caused them to be rasterized.  That would also remove any Fill and Stroke options from the Options bar.
    The 'little camera' at the bottom of the Tool bar, is the Quick mask icon.  Clicking on it toggles between standard and Quick mask modes, like you said.  Clicking on it is exactly the same as hitting the q key.  It has absolutely nothing to do with Shape layers.
    What you need to do now, is regroup.  What exactly are you trying to achieve, and what do you expect to see in your Workspace?  You will have noticed that your workspace is context sensitive.  It automatically changes according to what tools are selected, or what function you are using at any particular time.

  • I need help with event structure. I am trying to feed the index of the array, the index can vary from 0 to 7. Based on the logic ouput of a comparison, the index buffer should increment ?

    I need help with event structure.
    I am trying to feed the index of the array, the index number can vary from 0 to 7.
    Based on the logic ouput of a comparison, the index buffer should increment
    or decrement every time the output of comparsion changes(event change). I guess I need to use event structure?
    (My event code doesn't execute when there is an  event at its input /comparator changes its boolean state.
    Anyone coded on similar lines? Any ideas appreciated.
    Thanks in advance!

    You don't need an Event Structure, a simple State Machine would be more appropriate.
    There are many examples of State Machines within this forum.
    RayR

  • Help with CIS Lab - Flesch Readability Index

    I am a first year computer science student and I need some help with one of our projects. It is working on the Flesch Readibility Index.
    We have to create three classes: word, sentence and Flesch (which will include the main method)
    The word class has to have the methods countSyllables, getWord and isVowel. We already did that.
    The sentence class has to have methods countWords, and nextWord.
    We have countWords but are having a lot of problems with nextWord.
    As of right now when we call the nextWord() method from the main method, we are given only the first or last word in the sentence. I'm using a string tokenizer to do this.
    I need to somehow figure out how to make the method where when it is called it gives one word, remembers the word it gave and then when called again gives the next word because the method cannot be passed any value. It would be a lot easier if I could pass what word I wanted and then just use an array.
    Here is what my partner and I have so far:
    import java.util.*;
    import java.io.*;
    * Write a description of class Sentence here.
    * @author (your name)
    * @version (a version number or a date)
    public class Sentence
        String sentence;
        private int tokenCount;
        public Sentence(String s)
            sentence = new String(s);
        public int countWords()
            int numWords = 0;
            boolean prevWhitespace = true;
            for (int i = 0; i < sentence.length(); i++)
                char c = sentence.charAt(i);
                boolean currWhitespace = Character.isWhitespace(c);
                if (prevWhitespace && !currWhitespace)
                    numWords++;
                prevWhitespace = currWhitespace;
            return numWords;
        public Word nextWord()
            StringTokenizer tokens = new StringTokenizer(sentence, " .,", false);
            Word test = new Word("");
            tokenCount = tokens.countTokens();
            for (int i = 0; i < tokenCount; i++)
                    test = new Word(tokens.nextToken());
            return test;
        public static void main(String[] args)
            Sentence test = new Sentence("The quick sly fox jumped over the lazy brown dog.");
            System.out.println(test.nextWord().getWord());
            System.out.println(test.nextWord().getWord());
            System.out.println(test.nextWord().getWord());
            System.out.println(test.nextWord().getWord());
            System.out.println(test.nextWord().getWord());
    }Where the main method gives us:
    dog
    dog
    dog
    dog
    dogAnother thing is that for nextWord() the return type has to be Word.
    Here is a link to the full lab:
    http://users.dickinson.edu/~braught/courses/cs132f02/labs/lab07.html
    Any help you can give would be GREATLY appreciated

    Please read the teacher's instructions again. All the information that you need to know is in there. They explicitly state: "use a StringTokenizer as part of the the instance data". Read up on what instance data means. Utilize this instruction and it should fall into place.
    Edited by: petes1234 on Oct 28, 2007 8:34 AM

  • INDEX generation does it help with my selct querry

    Can anyone suggest the best way to write the select statement below is my select statement and my INDEX XXX...
    I'm not sure how much it will effect the performance ...can someone throw some light on my issue..
    My Index is XXX in BSIS table with bukrs hkont gjahr monat prctr kostl in sequence
    SELECT  bukrs hkont gjahr belnr buzei
              monat dmbtr kostl prctr xref3 shkzg budat bldat
                                   FROM  bsis
        INTO CORRESPONDING FIELDS OF TABLE itab
        WHERE  bukrs IN   bukrs  
          AND  hkont IN   hkont 
          AND  gjahr EQ   gjahr  
          AND  monat EQ   monat  
          AND  prctr IN   prctr 
          AND  kostl IN   s_kostl.

    You can mention the index to be used in the SELECT statement. I believe it is Oracle database.
    Here is your SELECT statement with INDEX usage -
    SELECT bukrs hkont gjahr belnr buzei
    monat dmbtr kostl prctr xref3 shkzg budat bldat
    FROM bsis
    INTO CORRESPONDING FIELDS OF TABLE itab
    WHERE bukrs IN bukrs
    AND hkont IN hkont
    AND gjahr EQ gjahr
    AND monat EQ monat
    AND prctr IN prctr
    AND kostl IN s_kostl
    %_hints oracle 'INDEX("BSIS~XXX")'.
    I believe 'XXX' is your index or replace XXX by index name.

  • Looking for help with movie loading in a different spot every time page reloads.

    Hello,
    I have a Flash movie that I need to jump to a one of 6 chosen frames when say a user hits the back button or home in the site. I just dont want the same user seeing the flash movie replay in the same spot everytime they go back to home.
    ANY help with this is appreciated.
    Thanks ahead of time.
    -Ann
    Here is what I have scripted:
    var numbers:Array = [2,114,415,687,960,1195,1485];
    _root.firstTime = true;
    if(firstTime) {
        firstTime = false;
        var frame:Number = Math.floor(Math.random() * numbers.Length);
        gotoAndPlay(numbers[frame]);
    I have also tried this:
    Array.prototype.shuffle = function() {
    for (var ivar = this.length-1; ivar>=0; ivar--) {
    var p = random(ivar+1);
    var t = this[ivar];
    this[ivar] = this[p];
    this[p] = t;
    ASSetPropFlags(Array.prototype, ["shuffle"], 1, 1);
    var Array_ar:Array = new Array(2,114,415,687,960,1195,1485);
    Array_ar.shuffle();
    index = 0;
    function load_random() {
    gotoAndPlay(Array_ar[index++]);
    if (index == Array_ar.length) {
    (index=0);
    load_random();
    But this keep jumping to frame 1 each time i hit back or refresh.
    Thanks again.

    That did not work. It loops back to the frame that it first loaded to not to frame 1 the beginning.
    It tried putting gotoAndPlay(numbers[frame]); on the very last frame, then I made a new keyframe after the very last frame and neither worked.
    You can see the swf here:
    http://www.shared-vision.net/testsites/edi/EDIflashtest2.html
    Thank you for your help.
    -Ann

  • I need help with shooting in my flash game for University

    Hi there
    Ive tried to make my tank in my game shoot, all the code that is there works but when i push space to shoot which is my shooting key it does not shoot I really need help with this and I would appriciate anyone that could help
    listed below should be the correct code
    //checking if the space bar is pressed and shooting is allowed
    if(evt.keyCode == 32 && shootAllow){
        //making it so the user can't shoot for a bit
        shootAllow = false;
        //declaring a variable to be a new Bullet
        var newBullet:Bullet = new Bullet();
        //changing the bullet's coordinates
        newBullet.y = tank_mc.y + tank_mc.width/2 - newBullet.width/2;
        newBullet.x = tank_mc.x;
        //then we add the bullet to stage
        addChild(newBullet);
    listed below is my entire code
    import flash.display.MovieClip;
        //declare varibles to create mines
    //how much time before allowed to shoot again
    var cTime:int = 0;
    //the time it has to reach in order to be allowed to shoot (in frames)
    var cLimit:int = 12;
    //whether or not the user is allowed to shoot
    var shootAllow:Boolean = true;
    var minesInGame:uint;
    var mineMaker:Timer;
    var cursor:MovieClip;
    var index:int=0;
    var tankMine_mc:MovieClip;
    var antiTankmine_mc:MovieClip;
    var maxHP:int = 100;
    var currentHP:int = maxHP;
    var percentHP:Number = currentHP / maxHP;
    function initialiseMine():void
        minesInGame = 15;
        //create a timer fires every second
        mineMaker = new Timer(6000, minesInGame);
        //tell timer to listen for Timer event
        mineMaker.addEventListener(TimerEvent.TIMER, createMine);
        //start the timer
        mineMaker.start();
    function createMine(event:TimerEvent):void
    //var tankMine_mc:MovieClip;
    //create a new instance of tankMine
    tankMine_mc = new Mine();
    //set the x and y axis
    tankMine_mc.y = 513;
    tankMine_mc.x = 1080;
    // adds mines to stage
    addChild(tankMine_mc);
    tankMine_mc.addEventListener(Event.ENTER_FRAME, moveHorizontal);
    function moveHorizontal(evt:Event):void{
        evt.target.x -= Math.random()*5;
        if (evt.target.x >= stage.stageWidth)
            evt.target.removeEventListener(Event.ENTER_FRAME, moveHorizontal);
            removeChild(DisplayObject(evt.target));
    initialiseMine();
        //declare varibles to create mines
    var atmInGame:uint;
    var atmMaker:Timer;
    function initialiseAtm():void
        atmInGame = 15;
        //create a timer fires every second
        atmMaker = new Timer(8000, minesInGame);
        //tell timer to listen for Timer event
        atmMaker.addEventListener(TimerEvent.TIMER, createAtm);
        //start the timer
        atmMaker.start();
    function createAtm(event:TimerEvent):void
    //var antiTankmine_mc
    //create a new instance of tankMine
    antiTankmine_mc = new Atm();
    //set the x and y axis
    antiTankmine_mc.y = 473;
    antiTankmine_mc.x = 1080;
    // adds mines to stage
    addChild(antiTankmine_mc);
    antiTankmine_mc.addEventListener(Event.ENTER_FRAME, moveHorizontal);
    function moveHorizontal_2(evt:Event):void{
        evt.target.x -= Math.random()*10;
        if (evt.target.x >= stage.stageWidth)
            evt.target.removeEventListener(Event.ENTER_FRAME, moveHorizontal);
            removeChild(DisplayObject(evt.target));
    initialiseAtm();
    function moveForward():void{
        bg_mc.x -=10;
    function moveBackward():void{
        bg_mc.x +=10;
    var tank_mc:Tank;
    // create a new Tank and put it into the variable
    // tank_mc
    tank_mc= new Tank;
    // set the location ( x and y) of tank_mc
    tank_mc.x=0;
    tank_mc.y=375;
    // show the tank_mc on the stage.
    addChild(tank_mc);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onMovementKeys);
    //creates the movement
    function onMovementKeys(evt:KeyboardEvent):void
        //makes the tank move by 10 pixels right
        if (evt.keyCode==Keyboard.D)
        tank_mc.x+=5;
    //makes the tank move by 10 pixels left
    if (evt.keyCode==Keyboard.A)
    tank_mc.x-=5
    //checking if the space bar is pressed and shooting is allowed
    if(evt.keyCode == 32 && shootAllow){
        //making it so the user can't shoot for a bit
        shootAllow = false;
        //declaring a variable to be a new Bullet
        var newBullet:Bullet = new Bullet();
        //changing the bullet's coordinates
        newBullet.y = tank_mc.y + tank_mc.width/2 - newBullet.width/2;
        newBullet.x = tank_mc.x;
        //then we add the bullet to stage
        addChild(newBullet);
    if (tank_mc.hitTestObject(antiTankmine_mc))
            //tank_mc.gotoAndPlay("hit");
            currentHP -= 10;
            // remove anti tank mine
            removeChild(antiTankmine_mc);
    if (tank_mc.hitTestObject(tankMine_mc))
            //tank_mc.gotoAndPlay("hit");
            currentHP -= 10;
            // remove anti tank mine
            removeChild(tankMine_mc);
        //var maxHP:int = 100;
    //var currentHP:int = maxHP;
    //var percentHP:Number = currentHP / maxHP;
        //Incrementing the cTime
    //checking if cTime has reached the limit yet
    if(cTime < cLimit){
        cTime ++;
    } else {
        //if it has, then allow the user to shoot
        shootAllow = true;
        //and reset cTime
        cTime = 0;
    function updateHealthBar():void
        percentHP = currentHP / maxHP;
        healthBar.barColor.scaleX = percentHP;
        if(currentHP <= 0)
            currentHP = 0;
            trace("Game Over");
        updateHealthBar();

    USe the trace function to analyze what happens and what fails to happen in the code you showed.  trace the conditional values to see if they are set up to allow a shot when you press the key

  • Need help with Template - unbalanced #EndEditable tag

    I am unable to use this template to create a new page and get the "unbalanced #EndEditable tag" error.
    If I open the file independently it looks great - otherwise I get the error.
    Code for internal_students.dwt
    There is an error at line 45, column 79 (absolute position 2188)
    <div id="metanav"><!-- #BeginLibraryItem "/Library/metaNav.lbi" -->
    <p><a href="../Library/contact/index.html">Contact Us</a></p>
    <!-- #EndLibraryItem --></div>
            <div id="navigation">
                <div id="navigation_l">
                    <div id="navigation_r"><!-- #BeginLibraryItem "/Library/mainNav.lbi" --> <ul>
                            <li><a href="../index.html" class="first"><img src="../images/spacer.gif" alt="CAITE Homepage" width="75" height="20" border="0" /></a></li>
                            <li><a href="../about/index.html">About</a></li>
      <li><a href="../news/index.html">News And Events</a></li>
      <li><a href="../educators/index.html">For Educators</a></li>
      <li><a href="../students/index.html">For Students</a></li>
      <li><a href="../industry/index.html" class="last">For Industry</a></li>
                        </ul>
    <!-- #EndLibraryItem --></div>
    I need help with this as the site and templates were created 2/3 years before I arrived on the job.
    Thank you
    Cheryl

    Okay
    - This is on-line page  http://caite.cs.umass.edu/students/index.html
    If you want code from template here it is:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/internal_about.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>CAITE - Commonwealth Alliance for Information Technology Education</title>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    <meta name="Description" content="Commonwealth Alliance for Information Technology Education (CAITE) to design and carry out comprehensive programs that address under representation in information technology (IT) education and the workforce. CAITE will focus on women and minorities in groups that are underrepresented in the Massachusetts innovation economy" />
    <meta name="Keywords" content="Commonwealth Alliance for Information Technology Education CAITE Massachusetts women minorities information technology IT" />
    <meta name="robots" content="all, index, follow" />
    <meta name="revisit-after" content="14 days" />
    <meta name="author" content="Outreach Web Team" />
    <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable --><!-- InstanceEndEditable -->
    <link rel="shortcut icon" href="/images/favicon.ico" />
    <script type="text/javascript" src="../scripts/jquery.js"></script>
    <script type="text/javascript" src="../scripts/jquery.easing.js"></script>
    <script type="text/javascript" src="../scripts/jquery.pngfix.js"></script>
    <script language="JavaScript" type="text/JavaScript">
        <!--
        $(document).ready(function() {
            $("img[@src$=png], div#wrapper_l, div#wrapper_r, div#whatsnew").pngfix();
        //-->
    </script>
    <link href="../css/screenstyle.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="../css/printstyle.css" rel="stylesheet" type="text/css" media="print" />
    </head>
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <body>  
        <div id="wrapper">
            <div id="metanav"><!-- #BeginLibraryItem "/Library/metaNav.lbi" -->
    <p><a href="../Library/contact/index.html">Contact Us</a></p>
    <!-- #EndLibraryItem --></div>
            <div id="navigation">
                <div id="navigation_l">
                    <div id="navigation_r"><!-- #BeginLibraryItem "/Library/mainNav.lbi" --> <ul>
                            <li><a href="../index.html" class="first"><img src="../images/spacer.gif" alt="CAITE Homepage" width="75" height="20" border="0" /></a></li>
                            <li><a href="../about/index.html">About</a></li>
      <li><a href="../news/index.html">News And Events</a></li>
      <li><a href="../educators/index.html">For Educators</a></li>
      <li><a href="../students/index.html">For Students</a></li>
      <li><a href="../industry/index.html" class="last">For Industry</a></li>
                        </ul>
    <!-- #EndLibraryItem --></div>
                    <!-- end navigation right -->
                </div><!-- end navigation left -->
           </div><!-- end navigation -->
            <div id="wrapper_l">
                <div id="wrapper_r">
                      <div id="innerwrapper">
                        <div id="internalBanner-print"> <h1>Commonwealth Alliance for Information Technology Education (CAITE)</h1></div>
                        <div id="internalBanner"><!-- InstanceBeginEditable name="internalBanner" -->
                          <div class="students-banner">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="125" height="188" align="left" valign="top" id="homeImage"><img src="../images/logo_vertical_small.png" alt="CAITE" width="105" height="188" /></td>
                                <td align="left" valign="top" id="internal-banner-quote"><div id="internalQuote">
                                    <div id="internalQuote-inner">
                                      <p>CAITE designs and carrys out comprehensive programs that address under-representation in information technology (IT).</p>
                                  </div>
                                </div></td>
                              </tr>
                            </table>
                        </div>
                        <!-- InstanceEndEditable --></div> <!-- end banner -->
                        <div id="internalContent">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="317" align="left" valign="top" id="secondary-content">
                                  <!-- InstanceBeginEditable name="SecondaryNav" --><!-- #BeginLibraryItem "/Library/studentNav.lbi" -->
                                  <h3><a href="../students/index.html">For Students</a></h3>
                                  <div id="secondaryNav">
                                    <ul>
                                      <li><a href="http://www.takeITgoanywhere.org" target="_blank">TakeITgoanywhere.org</a></li>
                                    </ul>
    </div><!-- #EndLibraryItem --><!-- InstanceEndEditable -->
                                </td>
                                <td align="left" valign="top" id="contentCell"><!-- InstanceBeginEditable name="mainContent" -->
                                  <h1>For Students</h1>
                                  <p>The University of Massachusetts Amherst is leading a Commonwealth Alliance for Information Technology Education (CAITE) to design and carry out comprehensive programs that address under representation in information technology (IT) education and the workforce. CAITE will focus on women and minorities in groups that are underrepresented in the Massachusetts innovation economy; that is, economically, academically, and socially disadvantaged residents.</p>
                                  <p>The project will pilot a series of outreach programs supported by educational pathways in three regions (one rural, one suburban, and one urban). The project will include work with high school teachers, staff, and counselors. CAITE will identify best practices and disseminate, deploy, extend and institutionalize these best practices statewide and nationally.</p>
                                  <p>Community colleges are the centerpiece of CAITE because of the central role they play in reaching out to underserved populations and in serving as a gateway to careers and further higher education.</p>
                                  <p>This project will build a broad alliance built on its leadership in and partnership with the Commonwealth Information Technology Initiative (CITI), the Boston Area Advanced Technological Education Center (BATEC), regional Louis Stokes Alliances and NSF EGEP programs, and other partnerships and initiatives focused on information technology education and STEM pipeline issues</p>
                                  <p> </p>
                                <!-- InstanceEndEditable --></td>
                              </tr>
                          </table>
                        </div>
                        <div id="alliances">
                              <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td height="30"  align="left" valign="top"><h2><a href="../about/alliances.html">Alliances</a></h2></td>
                                </tr>
                                <tr>
                                  <td  align="center" valign="middle"><!-- #BeginLibraryItem "/Library/AllianceTable.lbi" --><p>
    <table border="0" cellpadding="2" cellspacing="0">
                                    <tr>
                                      <td width="35"  align="center" valign="middle"> </td>
                                      <td  align="center" valign="middle"><a href="http://www.citi.mass.edu/" target="_blank"><img src="../images/logo_citi.jpg" alt="Citi" width="65" height="50"  border="0 /"></a></td>
                                      <td align="center" valign="middle"><a href="http://www.batec.org/index.php" target="_blank"><img src="../images/logo_batec.jpg" alt="BATEC" width="69" height="46" border="0" /></a></td>
                                      <td  align="center" valign="middle"><a href="http://www.nsf.gov/index.jsp" target="_blank"><img src="../images/nsflogo.gif" alt="NSF" width="64" height="65" border="0" ></a></td>
                                      <td  align="center" valign="middle"><a href="http://www.nelsamp.neu.edu/" target="_blank"><img src="../images/nelsamplogo.gif" width="100" border="0"></a></td>
                                      <td  align="center" valign="middle"><p><a href="http://mysite.verizon.net/milnerm/" target="_blank"><img src="../images/umlsamp.png" width="85" height="63" border="0"></a></p>                                  </td>
                                      <td  align="center" valign="middle"><a href="http://www.neagep.org/index.asp" target="_blank"><img src="../images/nealogo.gif" border="0" ></a></td>
      </tr>
                                  </table>
    <!-- #EndLibraryItem --></td>
                                </tr>
                          </table>
                        </div>
                    </div> <!-- end inner wrapper -->
                </div><!-- end wrapper right -->
            </div><!-- end wrapper left -->
            <div id="bottom">
                <div id="bottom_l">
                    <div id="bottom_r"> </div><!-- end bottom right -->
                </div><!-- end bottom left -->
            </div>  <!-- end bottom -->
        </div><!-- end wrapper -->
        <div id="copyright"><!-- #BeginLibraryItem "/Library/copyright.lbi" -->
    <p>Sponsored by CAITE an NSF CISE Broadening Participation in Computing Alliance<br />
    &copy; copyright 2008 <a href="http://www.umass.edu/" target="_blank">University of Massachusetts, Amherst</a></p>
    <font color="#666666"><br>
    </font>
    <p><font color="#666666" size=2>  This material is based upon work supported by the National Science Foundation under Grant No.s NSF-0634412 and NSF-0837739. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.</font> </p>
    <!-- #EndLibraryItem --></div>    
    <!-- end copyright -->
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-7435501-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>
        </body>
    <!-- InstanceEnd --></html>

  • I need Help with a website I've created

    I need help with a website I've created (www.jonathanhazelwood.com/lighthouse) I created the folowing site with dreamweaver at my current resolution 1366 by 768. Looks great on my screen resolution but if it is viewed on other resolutions the menu moves and some of the text above and below. How can I keep all content centered and working like it does on 1366 by 768 on all resolutions. The htm to my site is below I started off with a blank template through dreamweaver CS5.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>The Lighthouse Church</title>
    <style type="text/css">
    <!--
    body {
        font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
        background: #42413C;
        margin: 0;
        padding: 0;
        color: #000;
        background-color: #000;
    /* ~~ Element/tag selectors ~~ */
    ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
        padding: 0;
        margin: 0;
    h1, h2, h3, h4, h5, h6, p {
        margin-top: 0;     /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
        padding-right: 15px;
        padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
    a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
        border: none;
    /* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
    a:link {
        color: #42413C;
        text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
    a:visited {
        color: #6E6C64;
        text-decoration: underline;
    a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
        text-decoration: none;
    /* ~~ this fixed width container surrounds all other elements ~~ */
    .container {
        width: 960px;
        background: #FFF;
        margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
    /* ~~ This is the layout information. ~~
    1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
    .content {
        padding: 10px 0;
    /* ~~ miscellaneous float/clear classes ~~ */
    .fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
        float: right;
        margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
        float: left;
        margin-right: 8px;
    .clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the overflow:hidden on the .container is removed */
        clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    #apDiv1 {
        position:absolute;
        width:352px;
        height:2992px;
        z-index:1;
        top: 171px;
        left: 507px;
    #apDiv2 {
        position:absolute;
        width:961px;
        height:1399px;
        z-index:1;
        left: 187px;
        top: 1px;
    #apDiv3 {
        position:absolute;
        width:961px;
        height:1001px;
        z-index:1;
        top: -2px;
    #apDiv4 {
        position:absolute;
        width:963px;
        height:58px;
        z-index:1;
        left: 0px;
        top: 101px;
    #apDiv5 {
        position:absolute;
        width:961px;
        height:1505px;
        z-index:1;
        top: -5px;
    #apDiv6 {
        position:absolute;
        width:962px;
        height:150px;
        z-index:1;
        left: 0px;
        top: -1px;
    #apDiv7 {
        position:absolute;
        width:361px;
        height:25px;
        z-index:2;
        left: 35px;
        top: 1308px;
    #apDiv8 {
        position:absolute;
        width:320px;
        height:24px;
        z-index:2;
        left: 200px;
        top: 1479px;
    #apDiv9 {
        position:absolute;
        width:962px;
        height:63px;
        z-index:3;
        left: -10px;
        top: -1292px;
    #apDiv10 {
        position:absolute;
        width:270px;
        height:27px;
        z-index:2;
        left: 200px;
        top: 1478px;
    #apDiv11 {
        position:absolute;
        width:961px;
        height:44px;
        z-index:3;
        left: 195px;
        top: 183px;
    -->
    </style>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    #apDiv12 {
        position:absolute;
        width:295px;
        height:23px;
        z-index:4;
        left: 198px;
        top: 1px;
    #apDiv13 {
        position:absolute;
        width:135px;
        height:22px;
        z-index:5;
        left: 1001px;
        top: 3px;
    #apDiv14 {
        position:absolute;
        width:309px;
        height:992px;
        z-index:1;
        left: 33px;
        top: 479px;
    #apDiv15 {
        position:absolute;
        width:327px;
        height:999px;
        z-index:1;
        left: 324px;
    #apDiv16 {
        position:absolute;
        width:262px;
        height:1000px;
        z-index:2;
        left: 674px;
        top: 477px;
    #apDiv17 {
        position:absolute;
        width:85px;
        height:34px;
        z-index:1;
        left: -379px;
        top: 1001px;
    #apDiv18 {
        position:absolute;
        width:200px;
        height:115px;
        z-index:6;
    #apDiv19 {
        position:absolute;
        width:168px;
        height:31px;
        z-index:3;
        left: 448px;
        top: 1451px;
    #apDiv20 {
        position:absolute;
        width:94px;
        height:33px;
        z-index:3;
        left: 384px;
        top: 1477px;
    body {
        background-color: #000;
        margin-left: 0px;
        margin-right: 0px;
    #apDiv21 {
        position:absolute;
        width:920px;
        height:200px;
        z-index:4;
        left: 19px;
        top: 233px;
    </style>
    </head>
    <body>
    <div class="container">
      <div class="content">
        <div id="apDiv5">
          <div id="apDiv16">
            <div id="apDiv17">
              <map name="Map2" id="Map2">
                <area shape="rect" coords="4,2,77,28" href="http://www.myspace.com/lighthousechurch1" />
              </map>
              <img src="paypal-donate-button.png" width="83" height="33" border="0" usemap="#Map" />
              <map name="Map" id="Map">
                <area shape="rect" coords="2,2,80,30" href="https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=HgApKd0bxyPQv1ixwBW3HgWXaLxPIiT Po9gSsRELLQp72IZ2-_8uvSmCLRO&dispatch=5885d80a13c0db1f8e263663d3faee8d9384d85353843a619606 282818e091d0" />
              </map>
            </div>
          </div>
          <div id="apDiv21">
            <blockquote>
              <blockquote>
                <blockquote>
                  <blockquote>
                    <blockquote>
                      <blockquote>
                        <p><img src="faithexplosion.png" width="314" height="225" /></p>
                      </blockquote>
                    </blockquote>
                  </blockquote>
                </blockquote>
              </blockquote>
            </blockquote>
          </div>
          <div id="apDiv14">
            <div id="apDiv15">
              <div>
                <div>
                  <p> Special Message from Perry Stone </p>
                  <h2> Was Jesus Born on December 25?</h2>
                  <p> 12/20/2010 </p>
                  <p><img alt="iStock_000003631829XSmall" src="http://www.voe.org/images/iStock_000003631829XSmall.jpg" width="300" height="234" /></p>
                  <p>Last   year, in response to the growing number of Christians who celebrate   Hanukkah but hate Christmas, I wrote an article for this website titled   &ldquo;Hanukkah or Christmas?&rdquo; I explained why I think Jesus was either   conceived or birthed on December 25.</p>
                </div>
              </div>
              <div>
                <div><a href="http://www.voe.org/Prophecy-Update/what-happened-to-global-warming.html"> READ MORE</a>
                  <p> Prophecy Update </p>
                  <h2> What Happened to Global Warming?</h2>
                  <p> 12/17/2010 </p>
                  <p> </p>
                </div>
              </div>
              <div>
                <div></div>
              </div>
              <div>
                <div></div>
              </div>
            </div>
            <div>
              <p><font size="2">Special Word</font></p>
              <p><font size="2">January 7th, 2011</font></p>
              <p> <font size="2">Dear Viewers:</font></p>
              <p><font size="2">We have now entered into one of the most trying times; but also one of the most glorious            times in church history.  Many things are coming upon the world and also upon the church and we (the church) must be totally            prepared to take up our cross daily and venture out into the lost and</font></p>
              <p>  <a href="http://sermon.lighthousechurchinc.org/2011/01/07/special-word-1711-evangelist-barbara-lync h.aspx" target="_parent">Click Here for More</a></p>
            </div>
            <p> </p>
            <div></div>
            <div>
            <!--//              weAddFlash("lhi09hdr.swf",800, 100,"true","true","high","showall","true","#ffffff");              //--></div>
            <div></div>
            <p> </p>
          </div>
          <img src="lighthousegraphic2.jpg" width="960" height="1509" />
          <div id="apDiv20"><img src="myspacebutton.jpg" width="89" height="30" border="0" usemap="#Map3" />
            <map name="Map3" id="Map3">
            <area shape="rect" coords="3,2,87,28" href="http://www.myspace.com/lighthousechurch1" />
          </map>
      </div>
        </div>
      <p> </p>
      </div>
    <!-- end .container --></div>
    <div id="apDiv10"><font size="1"><font color="#FFFFFF">Copyright 2011 The Lighthouse Church Inc.</font></font></div>
    <div id="apDiv11">
      <ul id="MenuBar1" class="MenuBarHorizontal">
        <li><a href="#">Home</a>    </li>
        <li><a href="#" class="MenuBarItemSubmenu">Our Pastor</a>
          <ul>
            <li><a href="#">Fresh Word</a></li>
            <li><a href="#">Itinerary</a></li>
            <li><a href="#">Prophetic Word</a></li>
            <li><a href="#">Sermons</a></li>
            <li><a href="#">Special Words</a></li>
            <li><a href="#">Word of Month</a></li>
          </ul>
        </li>
        <li><a href="#">Men Ministry</a></li>
        <li><a href="#" class="MenuBarItemSubmenu">Ministers</a>
          <ul>
            <li><a href="#">Chris Gore</a></li>
    </ul>
        </li>
        <li><a href="#" class="MenuBarItemSubmenu">Our Church</a>
          <ul>
            <li><a href="#">Contact Us</a></li>
            <li><a href="#">Donate</a></li>
            <li><a href="#">Events</a></li>
            <li><a href="#">Our Store</a></li>
            <li><a href="#">Prayer Request</a></li>
            <li><a href="#">Salvation</a></li>
            <li><a href="#">Subscribe</a></li>
            <li><a href="#">Vision</a></li>
            <li><a href="#">We Believe</a></li>
          </ul>
        </li>
        <li><a href="#" class="MenuBarItemSubmenu">Resources</a>
          <ul>
            <li><a href="#">Prepare for Disaster</a></li>
            <li><a href="#">How to Fast</a></li>
            <li><a href="#">Heaven &amp; Hell</a></li>
            <li><a href="#">Warfare Prayers</a></li>
            <li><a href="#">Wisdom Words</a></li>
          </ul>
        </li>
        <li><a href="#" class="MenuBarItemSubmenu">Prophetic</a>
          <ul>
            <li><a href="#">Article Archive</a></li>
            <li><a href="#">Audio Prophecies</a></li>
            <li><a href="#">Color for Year</a></li>
            <li><a href="#">Major Articles</a></li>
            <li><a href="#">Prophecy Archive</a></li>
            <li><a href="#">Prophetic Articles</a></li>
            <li><a href="#">Word for Year</a></li>
          </ul>
        </li>
      </ul>
    </div>
    <div id="apDiv12"><font size="1"><font color="#FFFFFF">6 South Railroad Ave Wyoming,DE 19934</font></font></div>
    <div id="apDiv13"><font size="1"><font color="#FFFFFF">Phone:(302) 697-1472</font></font></div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>

    Look at all the apdiv's you have.  Those are absolutely positioned layers.  I'm assuming by your post that you are very new to Dreamweaver and HTML and CSS.  I would highly recommend not using absolutely positioned layers until you have a better grasp on HTML and CSS.
    Looking at your code I would suggest that you consider using one of Dreamweaver's built in, or downloadable templates as a starting point and work from there. 
    http://www.adobe.com/devnet/dreamweaver/articles/dreamweaver_custom_templates.html

Maybe you are looking for