Cramer = {}
Cramer.Behavior = (function(){
function init() {
    if (arguments.callee.done) return;
    arguments.callee.done = true;
    if (_timer) clearInterval(_timer);

	//YOUR INIT CODE GOES HERE
	/*@cc_on @*/
    /*@if (@_jscript_version < 5.7)
    fakeIt.create();
    /*@end @*/
	var controls = getElementsByClass("control");
	for (var i=0; i<controls.length; i++) {
			controls[i].onclick=slide.init;
		}
	var contact = getElementsByClass("contact");
	for (i=0; i<contact.length; i++) {
			contact[i].onclick=function() {
				box.show($('msg'));
				return false;
			}
		}
	var emailContact = getElementsByClass("contact-email");
	for (i=0; i<emailContact.length; i++) {
			emailContact[i].onclick=function() {
				box.show($('msg'));
			    $("ContactUs1_hdnField").value = "true";
				return false;
			}
		}
	var terms = getElementsByClass("terms");
	for (i=0; i<terms.length; i++) {
			terms[i].onclick=function() {
				box.show($('terms'));
				return false;
			}
		}
	var bubbles = getElementsByClass("bubbles");
	for (i=0; i<bubbles.length; i++) {
			bubbles[i].onmouseover=bubble.show;
			bubbles[i].onmouseout=bubble.hide;
		}
		
	var buttonClose = getElementsByClass("btn-close");
	for (i=0; i<buttonClose.length; i++) {
			buttonClose[i].onclick=function() {
				faq.closeAll();
				return false;
			}
		}
		
   if( $("print-button")){
   $("print-button").onclick=function(){
                                         window.print();
                                         return false;
                                        }
   };
   	if (document.body.className=="home") {
	    var flickrBadges =  getElementsByClass("flickr_badge_image");
	    for (var i=0; i<flickrBadges.length; i++){
	        flickrBadges[i].getElementsByTagName("a")[0].setAttribute("target","_blank");
	    }
	};
	if ($("answers")) {
	    faq.init();
	};
	if ($("interview-schools")) {
	    faq.initSchools();
	}
	resize();




//bug fix for background image flickers in Internet Explorer
/*@cc_on @*/
/*@if (@_win32)
	document.execCommand("BackgroundImageCache", false, true);  
/*@end @*/

};
if (document.addEventListener) {
    document.addEventListener("DOMContentLoaded", init, false);
};
/*@cc_on @*/
/*@if (@_win32)
    document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");
    var script = $("__ie_onload");
    script.onreadystatechange = function() {
        if (this.readyState == "complete") {
            init(); // call the onload handler
        }
    };
/*@end @*/
if (/WebKit/i.test(navigator.userAgent)) { // sniff
    var _timer = setInterval(function() {
        if (/loaded|complete/.test(document.readyState)) {
            init(); // call the onload handler
        }
    }, 10);
};
window.onload = init;

function $() {
	var elements = [];
	for (var i = 0; i < arguments.length; i++) {
		var element = arguments[i];
		if (typeof element == 'string')
			element = document.getElementById(element);
		if (arguments.length == 1)
			return element;
		elements.push(element);
	}
	return elements;
};
function insertAfter(parent, node, referenceNode) {
      parent.insertBefore(node, referenceNode.nextSibling);
};
function preloadImages(){
	var pics = [];
	for(var i=0;i<arguments.length;i++){
        pics[i]=new Image();
        pics[i].src=arguments[i];
		}
};
function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft;
		curtop = obj.offsetTop;
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		}
	}
	return [curleft,curtop];
};
function getElementsByClass(theclass,node,tag) {
    var classElements = [];
    if ( node == null )
        node = document;
    if ( tag == null )
        tag = '*';
    var els = node.getElementsByTagName(tag);
    var elsLen = els.length;
    var pattern = new RegExp("(^|\\s)"+theclass+"(\\s|$)");
    for (i = 0, j = 0; i < elsLen; i++) {
        if ( pattern.test(els[i].className) ) {
            classElements[j] = els[i];
            j++;
        }
    }
	return classElements;
};
function getStyle(obj,prop) {
	var x = document.getElementById(obj);
	if (x.currentStyle)
		var y = x.currentStyle[prop];
	else if (window.getComputedStyle)
		var y = document.defaultView.getComputedStyle(x,null).getPropertyValue(prop);
	return y;
};
function ajax( options ) {
    options = {
        type: options.type || "POST",
        url: options.url || "",
        timeout: options.timeout || 5000,
        onComplete: options.onComplete || function(){},
        onError: options.onError || function(){},
        onSuccess: options.onSuccess || function(){},
        data: options.data || ""
    };
	if ( typeof XMLHttpRequest == "undefined" )
    	XMLHttpRequest = function(){
        	return new ActiveXObject(
            	navigator.userAgent.indexOf("MSIE 5") >= 0 ? "Microsoft.XMLHTTP" : "Msxml2.XMLHTTP"
        );
    };
	var xml = new XMLHttpRequest();
    xml.open(options.type, options.url, true);
    var requestDone = false;
    setTimeout(function(){
         requestDone = true;
    }, options.timeout);
    xml.onreadystatechange = function(){
        if ( xml.readyState == 4 && !requestDone ) {
            if ( httpSuccess( xml ) ) {
                options.onSuccess( httpData( xml, options.data ) );
            } else {
                options.onError();
            }
            options.onComplete();
            xml = null;
        }
    };
    xml.send();
    function httpSuccess(r) {
        try {
            return !r.status && location.protocol == "file:" ||
                ( r.status >= 200 && r.status < 300 ) ||
                r.status == 304 ||
                navigator.userAgent.indexOf("Safari") >= 0 && typeof r.status == "undefined";
        } catch(e){}
        return false;
    }
    function httpData(r,type) {
    	switch (type) {
			case  "xml" :
				data=r.responseXML;
				break;
			case "script" :
				data=eval(r.responseText);
				break;
			case "text" :
				data=r.responseText;
				break;				
			default:
				data=r.responseText;
				break;				
			}
       return data;
    }
};
function getFirstChild(element) {
    element = element.firstChild;
    return element && element.nodeType != 1 ? nextSibling(element) : element;
};
function getPreviousSibling(element) {
    do {
        element = element.previousSibling;
    } while ( element && element.nodeType != 1 );
    return element;
};
function getNextSibling(element) {
    do {
        element = element.nextSibling;
    } while ( element && element.nodeType != 1 );
    return element;
};
function getLastChild(element) {
   element = elem.lastChild;
    return element && element.nodeType != 1 ? prevSibling(element) : element;
};

function addEvent(element, type, handler) {
	if (!handler.$$guid) handler.$$guid = addEvent.guid++;
	if (!element.events) element.events = {};
	var handlers = element.events[type];
	if (!handlers) {
		handlers = element.events[type] = {};
		if (element["on" + type]) {
			handlers[0] = element["on" + type];
		}
	}
	handlers[handler.$$guid] = handler;
	element["on" + type] = handleEvent;
};
addEvent.guid = 1;
function removeEvent(element, type, handler) {
	if (element.events && element.events[type]) {
		delete element.events[type][handler.$$guid];
	}
};
function handleEvent(event) {
	var returnValue = true;
	event = event || fixEvent(window.event);
	var handlers = this.events[event.type];
	for (var i in handlers) {
		this.$$handleEvent = handlers[i];
		if (this.$$handleEvent(event) === false) {
			returnValue = false;
		}
	}
	return returnValue;
};
function fixEvent(event) {
	event.preventDefault = fixEvent.preventDefault;
	event.stopPropagation = fixEvent.stopPropagation;
	return event;
};
fixEvent.preventDefault = function() {
	this.returnValue = false;
};
fixEvent.stopPropagation = function() {
	this.cancelBubble = true;
};
function addClass(element, className) {
    if (!hasClass(element, className)) {
      element.className += (element.className ? " " : "") + className;
    }
};
  
function hasClass(element, className) {
    var regexp = new RegExp("(^|\\s)" + className + "(\\s|$)");
    return regexp.test(element.className);
};

function removeClass(element, className) {
    var regexp = new RegExp("(^|\\s)" + className + "(\\s|$)", "g");
    element.className = trim(element.className.replace(regexp, "$2"));
};

function toggleClass(element, className) {
    if (hasClass(element, className)) {
      removeClass(element, className);
    } else {
      addClass(element, className);
    }
};
function getText(e) {
    var t = "";
	e = e.childNodes || e;
	for ( var j = 0; j < e.length; j++ ) {
        t += e[j].nodeType != 1 ?
            e[j].nodeValue : text(e[j].childNodes);
    }
    return t;
};
function trim(string) {
  return string.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
};
//foley recruiting
function resize() {
	$("wood").style.height=$("menu").offsetHeight+"px";
	 /*@cc_on @*/
    /*@if (@_jscript_version < 5.7)
     if ($("profile-body").offsetHeight<600){
		$("profile-body").style.height="600px";
	};
    /*@end @*/
};
var fakeIt = {
    create : function() {
        var fake = document.createElement("div");
        var temp = $("profile-body").innerHTML;
        fake.innerHTML=temp;
      // fake.style.height=$("profile-body").offsetHeight + "px";
        fake.setAttribute("id","fake");
        $("container").appendChild(fake);
        if ($("fake").offsetHeight < 600) {
            $("profile-body").style.height=$("fake").style.height="600px";
        }
        else {
            $("profile-body").style.height=$("fake").offsetHeight + "px";
        }
        $("profile-body").innerHTML="";
    }
};
var bubble = {
   timer: null, 
    show : function() {
       var that = this;
       var callback = function() {
            addClass(that.parentNode,"active");
       }
      clearTimeout(bubble.timer);
       bubble.timer = setTimeout(callback,400);
    },
    hide : function() {
        removeClass(this.parentNode,"active");
        clearTimeout(bubble.timer);
   }
};
var slide = {
	init : function() {
		var parent=slide.getParent(this);
		if ( !parent.getAttribute("rel") ) {
			parent.setAttribute("rel",parent.getElementsByTagName("dd")[0].offsetHeight-36)
		};
		setTimeout(function() {
			 slide.up(parent.getElementsByTagName("dd")[0]);
		},25)
		return false;
	}, 
	down : function(obj) {
		var parent=slide.getParent(obj);
		if (obj.style.display!="block") {
			obj.style.display="block"
		};
		
		var currHeight=parseInt(obj.style.height);
		if (obj.offsetHeight <= parent.getAttribute("rel")) { 
			obj.style.height = ( parseInt(currHeight) + 20) +"px"; 
		    /*@cc_on @*/
            /*@if (@_jscript_version < 5.7)
           
             $("profile-body").style.height = $("fake").offsetHeight +"px";
            /*@end @*/
			setTimeout(function() {
			 slide.down(obj);
		},25);
			
		} else {
			/*@cc_on @*/
                /*@if (@_jscript_version < 5.7)
                $("profile-body").style.height = $("fake").offsetHeight +"px"; ;
                /*@end @*/
				obj.style.height = parent.getAttribute("rel")+"px"; 
			    if (parent.id == "youtube" && obj.getElementsByTagName("div")[0].style.display != "block" ) {
		            var videos = obj.getElementsByTagName("div")[0];
		            videos.style.display="block"
		        }
				var control = getElementsByClass("control", parent);
				if (hasClass(control[0], "closed")) {
					removeClass(control[0], 'closed');
											  }
				control[0].onclick = function(){
						slide.up(obj);
						return false;
					};
		}
	},
	up :  function(obj) {
		var parent=slide.getParent(obj);
		if (parent.id == "youtube" && obj.getElementsByTagName("div")[0].style.display != "none" ) {
		    var videos = obj.getElementsByTagName("div")[0];
		    videos.style.display="none";
		    /*@cc_on @*/
           /*@if (@_win32)
            $("youtubeholder").innerHTML = $("youtubeholder").innerHTML;
            /*@end @*/
		}
		var currHeight= ( parseInt(obj.style.height) || parent.getAttribute("rel"));
		var backHeight=parseInt($("profile-body").style.height);
		if (currHeight >= 20 ) { 
			obj.style.height = ( parseInt(currHeight) - 20) +"px"; 
			/*@cc_on @*/
            /*@if (@_jscript_version < 5.7)
            $("profile-body").style.height = $("fake").offsetHeight +"px";;
            /*@end @*/
			setTimeout(function() {
			 slide.up(obj);
		},25);
			
		} else {
				obj.style.height = "0px"; 
				obj.style.display = "none";
		    /*@cc_on @*/
            /*@if (@_jscript_version < 5.7)
             $("profile-body").style.height=$("fake").offsetHeight + "px";
            /*@end @*/
				var control = getElementsByClass("control", parent);
				addClass(control[0], 'closed');
				control[0].onclick = function(){
						slide.down(obj);
						return false;
					};
		}
	},
	getParent: function(obj){
		var parent = obj.parentNode;
		while (parent.tagName != "DL") {
				parent = parent.parentNode;
		};
		return parent;
	}
};

var faq = {
    steps : 10,
    time : 30,
    pad : 10,
    init : function() {
        var DDs = $("answers").getElementsByTagName("dd");
        var DTs = $("answers").getElementsByTagName("dt");
        var LIs = $("answers").getElementsByTagName("li");
        var DLs = $("answers").getElementsByTagName("dl");
        var aHeight;
        var qHeight;
        var qsHeight=0;
        var i,j;
        for (i=0;i<DDs.length;i++) {
            qHeight= DTs[i].offsetHeight;
            aHeight= DDs[i].offsetHeight + faq.pad;
            DTs[i].setAttribute("maxHeight",qHeight);
            DDs[i].setAttribute("maxHeight",aHeight);
            addClass(DDs[i],"initialized");
            addEvent(DTs[i],"click",faq.down);
        };
        for (i=0;i<DLs.length;i++) {
            DTs = DLs[i].getElementsByTagName("dt");
            for (j=0;j < DTs.length;j++) {
                  qsHeight= parseInt(qsHeight) + parseInt(DTs[j].getAttribute("maxHeight")) + 2 ;
                }
            DLs[i].setAttribute("maxHeight",qsHeight);
            qsHeight=0;
            
        };
        for (i=0;i<LIs.length;i++) {
            addClass(LIs[i],"initialized");
             addEvent(LIs[i].getElementsByTagName("h3")[0],"click",faq.down);
        };
                      /*@cc_on @*/
               /*@if (@_jscript_version < 5.7)
               if($("fake").offsetHeight >600) {
             $("profile-body").style.height=$("fake").offsetHeight + "px";
            } else {
            $("profile-body").style.height=$("fake").style.height = "600px"
            }
            
            /*@end @*/
        addClass($("answers"),"initialized");
        if (document.location.hash != "") {
            var current = document.location.hash.replace("#","")
            faq.down(getPreviousSibling($(current).parentNode.parentNode),undefined, faq.steps);
            faq.down($(current).parentNode,undefined, faq.steps);
           
        }
        
    },
	initSchools : function() {
        var LIs = $("interview-schools").getElementsByTagName("li");
        var i;
        for (i=0;i<LIs.length;i++) {
			if (LIs[i].getElementsByTagName("h3")[0]) {
				addEvent(LIs[i].getElementsByTagName("h3")[0],"click",faq.down);
				LIs[i].getElementsByTagName("div")[0].setAttribute("maxHeight",parseInt(LIs[i].getElementsByTagName("div")[0].offsetHeight));
				addClass(LIs[i],"initialized");
			}
        };
              /*@cc_on @*/
               /*@if (@_jscript_version < 5.7)
               if($("fake").offsetHeight >600) {
             $("profile-body").style.height=$("fake").offsetHeight + "px";
            } else {
            $("profile-body").style.height=$("fake").style.height = "600px"
            }
            
            /*@end @*/
        addClass($("interview-schools"),"initialized");
        if (document.location.hash != "") {
            var current = document.location.hash.replace("#","")
            faq.down(getNextSibling($(current)),undefined, faq.steps);
        }
    },
    down : function(obj, units, count) {
       if (obj.nodeName===undefined) {
            obj=this;
       };
       if (count===undefined) {
            count=faq.steps;
       };
       if (obj.nodeName.toLowerCase() == "dt") {
            var theTarget = getNextSibling(obj);
            if (count > 0 ) {
               if (units===undefined) {
                  units = faq.getUnits(parseInt(theTarget.getAttribute("maxHeight")));
                  theTarget.style.height="0px";
                  theTarget.parentNode.setAttribute("maxHeight", 
                                                            parseInt(theTarget.parentNode.getAttribute("maxHeight")) 
                                                            +
                                                            parseInt(theTarget.getAttribute("maxHeight"))
                                                           
                                                            );
                  addClass(theTarget,"open");
                  addClass(obj,"open");
               }
               theTarget.style.height=parseInt(theTarget.style.height) + units + "px";
               theTarget.parentNode.style.height=parseInt(theTarget.parentNode.style.height) + units + "px";
              /*@cc_on @*/
               /*@if (@_jscript_version < 5.7)
               if($("fake").offsetHeight >600) {
             $("profile-body").style.height=$("fake").offsetHeight + "px";
            } else {
            $("profile-body").style.height=$("fake").style.height = "600px";
            }
            
            /*@end @*/
               //$("profile-body").style.height = parseInt($("profile-body").style.height) + units + "px";
               count=count-1;
               setTimeout(function() {
                            faq.down(obj,count,units)
                         },faq.time);
           } else if (count == 0) {
                theTarget.style.height = theTarget.getAttribute("maxHeight") + "px";
                theTarget.parentNode.style.height=theTarget.parentNode.getAttribute("maxHeight") + "px";
                removeEvent(obj,"click",faq.down);
                addEvent(obj,"click",faq.up);
           }
       } else if (obj.nodeName.toLowerCase() == "h3") {
            var theTarget = obj.parentNode.getElementsByTagName("dl")[0] || obj.parentNode.getElementsByTagName("div")[0] ;
            if (count > 0 ) {
               if (units===undefined) {
                  units = faq.getUnits(parseInt(theTarget.getAttribute("maxHeight")));
                  theTarget.style.height="0px";
                  addClass(theTarget.parentNode,"open");
               }
               theTarget.style.height=parseInt(theTarget.style.height) + units + "px";
              /*@cc_on @*/
               /*@if (@_jscript_version < 5.7)
               if($("fake").offsetHeight >600) {
             $("profile-body").style.height=$("fake").offsetHeight + "px";
            } else {
            $("profile-body").style.height=$("fake").style.height ="600px"
            }
            
            /*@end @*/
               //$("profile-body").style.height = parseInt($("profile-body").style.height) + units + "px";
               count=count-1;
               setTimeout(function() {
                            faq.down(obj,units,count)
                         },faq.time);
           } else if (count == 0) {
               theTarget.style.height = theTarget.getAttribute("maxHeight") + "px";
                removeEvent(obj,"click",faq.down);
                addEvent(obj,"click",faq.up);
           } 
       }
    },
    up : function(obj, units, count) {
       if (obj.nodeName===undefined) {
            obj=this;
       };
       if (count==undefined) {
            count=faq.steps;
       };
       if (obj.nodeName.toLowerCase() == "dt") {
            var theTarget = getNextSibling(obj);
            if (count > 0 ) {

               if (units===undefined) {
                  units = faq.getUnits(parseInt(theTarget.getAttribute("maxHeight")));
                  theTarget.parentNode.setAttribute("maxHeight", 
                                                            parseInt(theTarget.parentNode.getAttribute("maxHeight")) 
                                                            -
                                                            parseInt(theTarget.getAttribute("maxHeight"))
                                                            
                                                            );
                  removeClass(obj,"open");
               }
               theTarget.style.height=(parseInt(theTarget.style.height) - units) + "px";
              /*@cc_on @*/
               /*@if (@_jscript_version < 5.7)
               if($("fake").offsetHeight >600) {
             $("profile-body").style.height=$("fake").offsetHeight + "px";
            } else {
            $("profile-body").style.height=$("fake").style.height = "600px"
            }
            
            /*@end @*/
               theTarget.parentNode.style.height=(parseInt(theTarget.parentNode.style.height) - units) + "px";
               count=count-1;
               setTimeout(function() {
                            faq.up(obj,units,count)
                         },faq.time);
           } else if (count == 0) {
                theTarget.style.height = "0px";
                removeClass(theTarget,"open");
                theTarget.parentNode.style.height=theTarget.parentNode.getAttribute("maxHeight") + "px";
                removeEvent(obj,"click",faq.up);
                addEvent(obj,"click",faq.down);
           }
       } else if (obj.nodeName.toLowerCase() == "h3") {
            var theTarget = obj.parentNode.getElementsByTagName("dl")[0] || obj.parentNode.getElementsByTagName("div")[0] ;
            if (count > 0 ) {
            
               if (units===undefined) {
                  units = faq.getUnits(parseInt(theTarget.getAttribute("maxHeight")));
               }
               theTarget.style.height=(parseInt(theTarget.style.height) - units) + "px";
              /*@cc_on @*/
               /*@if (@_jscript_version < 5.7)
               if($("fake").offsetHeight >600) {
             $("profile-body").style.height=$("fake").offsetHeight + "px";
            } else {
            $("profile-body").style.height=$("fake").style.height = "600px"
            }
            
            /*@end @*/
               //$("profile-body").style.height = parseInt($("profile-body").style.height) + units + "px";
               count=count-1;
               setTimeout(function() {
                            faq.up(obj,units,count)
                         },faq.time);
           } else if (count == 0) {
               theTarget.style.height = "0px";
               removeClass(theTarget,"open");
               removeClass(obj.parentNode,"open");
               removeEvent(obj,"click",faq.up);
               addEvent(obj,"click",faq.down);
           } 
       }
    },
    getUnits : function(num) {
        var units;
        units = parseInt(num/faq.steps);
        return units;
   },
   closeAll : function() {
        var timer = 0;
        var openedDT = getElementsByClass("open", document, "dt");
        var openedLI = getElementsByClass("open", document, "li");
        
        if (openedLI.length == 0) {
            return false;
        }
        
        if (openedDT.length > 0){
            timer= 800;
        }
        
        for (i=0; i<openedDT.length; i++) {
                var obj = openedDT[i];
                faq.up(obj);
            }
            
        var callback=function(){  
            for (i=0; i<openedLI.length; i++) {
                    var obj = getFirstChild(openedLI[i]);
                    faq.up(obj);
                }
        }
        setTimeout(callback, timer);
    }
        
};
var box = {
	show : function(obj) { 
	    var close = getElementsByClass("close",obj);
    	//$("cloak-div").style.visibility=
    	obj.style.visibility="visible";
    	if ($("youtubeholder")){
    	    $("youtubeholder").style.visibility="hidden";
        }
        if ($("terms-holder")) {
	      $("terms-holder").style.display="block";
	    }
        box.position(obj);
        addEvent(window,"resize",function() {
                                        box.position(obj)
                                 });
		addEvent(window,"scroll",function() {
                                        box.position(obj)
                                 });
    	addEvent(close[0],"click", function() {
    	                                        box.hide(obj);
    	});
	},
	hide :  function(obj) {
	    var close = getElementsByClass("close",obj);
	    //$("cloak-div").style.visibility=
	    obj.style.visibility="hidden";
	    if ($("youtubeholder")){
    	   $("youtubeholder").style.visibility="visible";
        }
	    
	    obj.style.left="-1000px";
	    if ($("ContactUs1_ContactSuccessPannel")) {
	      document.location.replace(document.location);
	    }
	    if ($("terms-holder")) {
	      $("terms-holder").style.display="none";
	    }
	    var forms = getElementsByClass("form-item");
	    for (i=0;i<forms.length;i++) {
	       if (forms[i].getElementsByTagName("input")[0]){
	        forms[i].getElementsByTagName("input")[0].value="";
	       }
	       else if (forms[i].getElementsByTagName("textarea")[0]){
	       forms[i].getElementsByTagName("textarea")[0].value="";
	       }
	        
	    }
	    $("ContactUs1_ValidationSummary").style.display="none";
	    removeEvent(close[0],"click", box.hide);  
	    removeEvent(window,"resize",function() {
                                        box.position(obj)
                                 });
	    removeEvent(window,"scroll",function() {
                                        box.position(obj)
                                 });
    },
    position : function(obj) {
    var scrollOffset = new Array;
		if (self.pageYOffset){
			scrollOffset[0] = self.pageXOffset;
			scrollOffset[1] = self.pageYOffset;
		}
		else if (document.documentElement && document.documentElement.scrollTop){
			scrollOffset[0] = document.documentElement.scrollLeft;
			scrollOffset[1] = document.documentElement.scrollTop;	
		}
		else if (document.body){
			scrollOffset[0] = document.body.scrollLeft;
			scrollOffset[1] = document.body.scrollTop;	
		}	
    	var docHeight = (typeof( window.innerHeight ) == 'number') ? docHeight = window.innerHeight : docHeight = document.documentElement.clientHeight;
    	var docWidth = (typeof( window.innerWidth ) == 'number') ? docWidth = window.innerWidth : docWidth = document.documentElement.clientWidth;
    	//$("cloak-div").style.height=(docHeight)+scrollOffset[1]+"px";
    	obj.style.left=(docWidth/2)-(($("msg").offsetWidth/2)+scrollOffset[0])+"px";
    	obj.style.top=(docHeight/2)-($("msg").offsetHeight/2)+scrollOffset[1]+"px";
    }
};

	return {
//PUBLIC METHODS AND ATTRIBUTES GO HERE
// IN THE RETURNED OBJECT
		//Methods look like this
		//method1 : function(){ alert(method1")},
		//called Cramer.Behavior.method1();
		//Attrributes look like this
		ytplayer : null
		//accessed as Cramer.Behavior.attribute1
	};
})();

