this._lockroot=true; stop();

// fullscreen and exit
//openfull.onPress = function(){fscommand("fullscreen", "true"); }
//exitfull.onPress = function(){fscommand("fullscreen", "false"); }
//exit.onPress = function(){fscommand("quit");
}
//transions //import mx.transitions.*;
//import mx.transitions.easing.*
;
//var myTransitionManager:TransitionManager = new TransitionManager(search)
;
//TransitionManager.start(search,{type:Fade, direction:Transition.IN, duration:2
, easing:None.easeNone});
//TransitionManager.start(search,{type:Fly, direction:Transition.IN, duration:1, easing:None.easeNone, startPoint:9});
//TransitionManager.start(choice,{type:Fade, direction:Transition.IN, duration:2, easing:None.easeNone});
//TransitionManager.start(choice,{type:Fly, direction:Transition.IN, duration:2, easing:None.easeNone, startPoint:9});
//TransitionManager.start(go,{type:Fade, direction:Transition.IN, duration:2, easing:None.easeNone});
//TransitionManager.start(go,{type:Fly, direction:Transition.IN, duration:3, easing:None.easeNone, startPoint:9});
//TransitionManager.start(info,{type:Fade, direction:Transition.IN, duration:2, easing:None.easeNone});
//TransitionManager.start(info,{type:Fly, direction:Transition.IN, duration:4, easing:None.easeNone, startPoint:9});
//var myTransitionManager:TransitionManager = new TransitionManager(uop);
//TransitionManager.start(uop,{type:Fade, direction:Transition.IN, duration:20, easing:None.easeNone});
//TransitionManager.start(uop,{type:Zoom, direction:Transition.IN, duration:11, easing:None.easeNone});

go.tabEnabled = true;
info.tabEnabled = true;
search.tabIndex = 1;
choice.tabIndex = 2;
go.tabIndex = 3
;
info.tabIndex = 4
;

choice.setStyle("borderStyle","none");
choice.setStyle("fontFamily","Arial");
choice.setStyle(
"fontSize",12);
choice.setStyle("color","0x000000");
choice.setStyle("disabledcolor","0x000000");
choice.setStyle("textRollOverColor",0x000000);
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147

choice.setStyle(
"textSelectedColor",0x000000);
choice.setStyle(
"rollOverColor",0x000000);
choice.setStyle(
"selectionColor",0x000000);

choice.dropdown.setStyle(
"fontSize",11);
choice.dropdown.setStyle(
"borderStyle","solid");
choice.dropdown.setStyle(
"borderColor","0x3C508E");

go.setStyle("borderStyle","none");
go.setStyle(
"fontFamily","Arial");
go.setStyle(
"fontSize",12);
go.setStyle(
"color","0x000000");
go.setStyle(
"disabledcolor","0x000000");

info.setStyle("borderStyle","none");
info.setStyle(
"fontFamily","Arial");
info.setStyle(
"fontSize",12);
info.setStyle(
"color","0x000000");
info.setStyle(
"disabledcolor","0x000000");

search.setStyle("fontFamily","Arial");
search.setStyle(
"fontSize",12);
search.setStyle(
"color","0x000000");
search.setStyle(
"disabledcolor","0x000000");

_global.styles.Alert.setStyle("color",0x000000);
_global.styles.Alert.setStyle(
"borderStyle","solid");
_global.styles.Alert.setStyle(
"borderColor",0x3C508E);
_global.styles.Alert.setStyle(
"buttonColor",0x3C508E);
_global.styles.Alert.setStyle(
"borderCapColor",0x3C508E);
_global.styles.Alert.setStyle(
"highlightColor",0x3C508E);
_global.styles.Alert.setStyle(
"shadowCapColor",0x3C508E);
_global.styles.Alert.setStyle(
"backgroundColor",0xffffff);
_global.styles.Alert.setStyle(
"themeColor",0x3C508E);

go.setStyle("themeColor",0x3C508E);
help.setStyle(
"themeColor",0x3C508E);
info.setStyle(
"themeColor",0x3C508E);
search.setStyle(
"themeColor",0x3C508E);
search.setStyle(
"borderStyle", "alert");
choice.setStyle(
"themeColor",0x3C508E);

//openfull.setStyle("themeColor",0x3C508E);
//exitfull.setStyle("themeColor",0x3C508E);
//exit.setStyle("themeColor",0x3C508E);

// set focus for searchfield

search.onSetFocus = function() { if (search.text == null || search.text == "" || search.text == "Please enter your search term here...") { search.text = ""; } };

 

//search.onKillFocus = function() {
//search.text = "Please enter your search term..."
//
}
// searchfunctio
n

go.onRelease =
function() {

if (search.text == null || search.text == "" || search.text == "Please enter your search term here...") {

search.setStyle("borderStyle","alert","0x990000");

setStyle("borderColor","0x3C508E");

getURL("javascript:alert('Please enter your search term')");

} else { getURL(choice.value+search.text, "_blank"); } };

// enter button

var kl = new Object(); kl.onKeyUp = function() {

if (Key.getCode() == 13) { 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
172 173 174 175
if (search.text == null || search.text == "" || search.text == "Please enter

your search term here") { search.setStyle("borderStyle","menuBorder"); getURL("javascript:alert('Please enter your search term')");

} else { getURL(choice.value+search.text, "_blank"); }

} }; Key.addListener(kl);

// info

myListener = new Object(); info.addEventListener("click",myListener); myListener.click = function() {

mx.controls.Alert.cancelLabel = "close";

mx.controls.Alert.show("© "+yy+" "+newline+"Christopher Germann","Info",

mx.controls.Alert.CANCEL,_root,whichButton,mx.controls.Alert.OK); }; whichButton = function (myAction) {

if (myAction.detail == mx.controls.Alert.CANCEL) {

// no action

}

// end else if

};

// date

function set_date1() {
dat = date1.text;

retur
n (null);

}

function get_date1() { _
temp = String(dat);
if (_temp != date1.text) {

date1.text = _temp; }
return (null); }// End of the function
set_date1();
date1.onChanged =
function() { set_date1(); };
functio
n onEnterFrame() {

get_date1();
yy = new Date().getFullYear(); return (null);

}

 

// context

function createCpContextMenu() {

if (this.getSWFVersion()<=6) { Stage.showMenu = false; return;

}

// end if

var _loc1 = new ContextMenu();

var _loc2 = new ContextMenuItem("www.psychology-search.com", adobeHomeMenuItemHandler); _loc1.customItems.push(_loc2);
_loc1.hideBuiltInItems(); this.menu = _loc1; }

function adobeHomeMenuItemHandler() { getURL(" http://www.psychology-search.com ", "_blank"); }

// End of the function

createCpContextMenu();