﻿/// <reference path="jquery-1.3.2-vsdoc.js" />

//$().ready(function() {

//    $('div').hide();
//    
//    $('#question').change(function() {
//    var id;
//        $('#question option:selected').each(function(){
//           id =  $(this).attr('value');
//        });
//   
//    
//        $('div').hide();
//        $('div[id=' + id + '])').show();
//    }).trigger("change");

//});


$().ready(function() {
    var s = {
        tabs: 'div[rel=tab]',
        change: 'select',
        selector: 'select option:selected'
    };

    $(s.tabs).hide();
    
    $(s.change).change(function() {
        $(s.selector).each(function() {
            $(s.tabs).hide();
        
            var id = $(this).attr('value');
            $(id).show();
        });
    }).change();


});

      function popitup(url) {
	                    newwindow=window.open(url,'name','height=500,width=700,screenX=350,screenY=350,resizable=1,scrollbars=1');
	                    if (window.focus) {newwindow.focus()}
	                    return false;
                    }
