/**
 * @version   3.0.12 October 1, 2010
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2010 RocketTheme, LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 */

var RokIEWarn=new Class({site:"sitename",initialize:function(f){var d=f;this.box=new Element("div",{id:"iewarn"}).inject(document.body,"top");var g=new Element("div").inject(this.box).setHTML(d);var e=this.toggle.bind(this);var c=new Element("a",{id:"iewarn_close"}).addEvents({mouseover:function(){this.addClass("cHover");},mouseout:function(){this.removeClass("cHover");},click:function(){e();}}).inject(g,"top");this.height=$("iewarn").getSize().size.y;this.fx=new Fx.Styles(this.box,{duration:1000}).set({top:$("iewarn").getStyle("top").toInt()});this.open=false;var b=Cookie.get("rokIEWarn"),a=this.height;if(!b||b=="open"){this.show();}else{this.fx.set({top:-a});}return;},show:function(){this.fx.start({top:0});this.open=true;Cookie.set("rokIEWarn","open",{duration:7});},close:function(){var a=this.height;this.fx.start({top:-a});this.open=false;Cookie.set("rokIEWarn","close",{duration:7});},status:function(){return this.open;},toggle:function(){if(this.open){this.close();}else{this.show();}}});

