window.addEvent('domready', function() {
/////check window size/////
var WNW = (window.getWidth());
if (WNW < 950) {
new Asset.css('CSS/sm.css');
new Fx.Morph($('wrapper'), {duration: 1000}).set({});
new Fx.Morph($('JDM_header'), {duration: 1000}).set({});
new Fx.Morph($('top'), {duration: 1000}).set({});
new Fx.Morph($('grey_box'), {duration: 1000}).set({});
new Fx.Morph($('main'), {duration: 1000}).set({});
new Fx.Morph($('main_wpr'), {duration: 1000}).set({});
new Fx.Morph($('p_main'), {duration: 1000}).set({});
}

	var nav = new Swiff('IMG/flash/JDM_header.swf', {
    width: '932', 
    height: '156',
	vars: {LOC: 'main'},
    container: 'JDM_header'
	});

	var nav = new Swiff('IMG/flash/p_main.swf', {
    width: '100%', 
    height: '100%',
	vars: {LOC: 'main'},
    container: 'p_main'
	});

	var nav = new Swiff('IMG/flash/DS_CD_bnr.swf', {
    width: '100%', 
    height: '100%',
    wmode: 'opaque',
    container: 'DS_CD_bnr'
	});

	var nav = new Swiff('IMG/flash/widgets/tril_love.swf', {
    width: '293', 
    height: '169',
    wmode: 'opaque',
    container: 'unmistakable_widg'
	});

});

window.addEvent('resize', function() {
/////check window size/////
var WNW = (window.getWidth());
if (WNW < 950) {
new Asset.css('CSS/sm.css');
new Fx.Morph($('wrapper'), {duration: 1000}).set({});
new Fx.Morph($('JDM_header'), {duration: 1000}).set({});
new Fx.Morph($('top'), {duration: 1000}).set({});
new Fx.Morph($('grey_box'), {duration: 1000}).set({});
new Fx.Morph($('main'), {duration: 1000}).set({});
new Fx.Morph($('main_wpr'), {duration: 1000}).set({});
new Fx.Morph($('p_main'), {duration: 1000}).set({});
}else{
new Asset.css('CSS/lrg.css');
new Fx.Morph($('wrapper'), {duration: 1000}).set({});
new Fx.Morph($('JDM_header'), {duration: 1000}).set({});
new Fx.Morph($('top'), {duration: 1000}).set({});
new Fx.Morph($('grey_box'), {duration: 1000}).set({});
new Fx.Morph($('main'), {duration: 1000}).set({});
new Fx.Morph($('main_wpr'), {duration: 1000}).set({});
new Fx.Morph($('p_main'), {duration: 1000}).set({});
}
});
