// JavaScript Document

// Seitenmenu start  

if (typeof window.attachEvent=='object'){
document.write('<!--[if lte IE 6]>\n'+
'<script type="text/javascript">\n'+
'var ie6_or_less=1;\n'+
'<\/script>\n'+
'<![endif]-->\n'+
'<!--[if lt IE 5.5]>\n'+
'<script type="text/javascript">\n'+
'var less_than_ie5_5=1;\n'+
'<\/script>\n'+
'<![endif]-->')
}

var menu=[], resizereinit=true;
function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}

function getedge(o, is_top){
var edge;
if (is_top)
edge=window.pageYOffset? window.pageYOffset : truebody().scrollTop? truebody().scrollTop : 0;
else{
edge=o.menupos=='left'? 0 : truebody().clientWidth? truebody().clientWidth : window.innerWidth&&truebody().offsetHeight<=window.innerHeight? window.innerWidth :  window.innerWidth? window.innerWidth-20 : 0;
edge+=window.pageXOffset? window.pageXOffset : truebody().scrollLeft? truebody().scrollLeft: 0;
}
return edge;
}

function keep_in_view(o){
if(o.keepinview){
if(o.m.ft){
o.m.ft=0;
o.m.topP=o.m.offsetTop;
o.m.ltop=0;
}
var pt=getedge(o, 'top'), ks=typeof o.keepinview=='number'&&o.keepinview<o.m.topP&&o.keepinview>0? o.keepinview : o.m.topP, smooth=0;
if (pt!=o.m.ltop){
if(o.menupos=='top')
o.m.style.visibility='hidden';
smooth = pt>o.m.topP-ks? .2 * (pt - o.m.ltop - o.m.topP + ks) : o.m.ltop>0? -.2 * o.m.ltop : 0;
smooth = smooth > 0 ? Math.ceil(smooth) : Math.floor(smooth);
}
else if(o.menupos=='top')
o.m.style.visibility='';
o.m.style.top=(o.m.style.top? parseInt(o.m.style.top) : o.m.topP)+smooth+'px';
o.m.ltop += smooth;
}
if(o.menupos=='top'){
if(typeof o.menuleft=='string'){
o.m.style.left=o.menuleft
o.m.style.marginLeft=Math.floor(o.m.getElementsByTagName('div')[0].offsetWidth/-2)+'px';
o.lleft=o.m.offsetLeft;
}
o.m.style.marginLeft=0;
o.m.style.left=o.lleft+(window.pageXOffset? window.pageXOffset : truebody().scrollLeft? truebody().scrollLeft: 0)+'px';
}
else
o.m.style.left=getedge(o)-(o.menupos=='right'? o.m.offsetWidth : 0)+'px';
}
function move(el, num){
el.getElementsByTagName('div')[0].style[el.menupos]=parseInt(el.getElementsByTagName('div')[0].style[el.menupos])+num+'px';
if(el.menupos=='right'){
if(el.kviewtype=='absolute')
el.style.left=parseInt(el.style.left)-num+'px';
el.style.width=parseInt(el.style.width)+num+'px';
}
if(num>0)
el.moving=setTimeout(function(){movein(el)}, el.menuspeed)
else
el.moving=setTimeout(function(){moveout1(el)}, el.menuspeed)
}
function movein(el){
var m1=parseInt(el.getElementsByTagName('div')[0].style[el.menupos]);
if(el.moving)
clearTimeout(el.moving);
if (m1<-1*el.borderwidth)
move(el, Math.min(-1*m1-el.borderwidth, 10));
}
function moveout(el){
if(el.moving)
clearTimeout(el.moving);
el.moving=setTimeout(function(){moveout1(el)}, el.menupause);
}
function moveout1(el){
var aw=el.menupos=='top'? el.b.offsetHeight : el.b.offsetWidth, m1=el.getElementsByTagName('div')[0];
if(el.moving)
clearTimeout(el.moving);
if (parseInt(m1.style[el.menupos])>aw-(el.menupos=='top'? m1.offsetHeight : m1.offsetWidth)+10)
move(el, -10);
else {
m1.style[el.menupos]=aw-(el.menupos=='top'? m1.offsetHeight : m1.offsetWidth)+'px';
if(el.menupos=='right'){
el.style.width=aw+'px';
if(el.kviewtype=='absolute'){
var ed=truebody().clientWidth? truebody().clientWidth : window.innerWidth&&truebody().offsetHeight<=window.innerHeight? window.innerWidth :  window.innerWidth? window.innerWidth-20 : 0;
ed+=window.pageXOffset? window.pageXOffset : truebody().scrollLeft? truebody().scrollLeft: 0;
el.style.left=ed-el.offsetWidth+'px';
}
}
}
}
function to_em(n, o){
return Math.round((n/(16*parseInt(o.fontsize)/100))*1000)/1000;
}
function getrows(o){
var r=o.menuItems.length+(o.wrapbar? 1 : 0);
for (var i_tem = 0; i_tem < o.menuItems.length; i_tem++)
if (o.menuItems[i_tem][4]&&o.menuItems[i_tem][4]=='no')
r--;
return r;
}
function make_bar(o){
var bt=o.menupos=='right'||o.menupos=='top'? '<tr>' : '';
bt+='<td id="'+o.id+'bar" '+(o.menupos=='top'? 'colspan="'+o.d_colspan : 'rowspan="'+getrows(o))+'">'
if (!/<img/.test(o.bartext.toLowerCase())){
for (var i_tem = 0; i_tem < o.bartext.length-(o.menupos=='top'? 1 : 0); i_tem++)
bt+=o.menupos=='top'&&o.bartext.charAt(i_tem)==' '? '\u00a0 ' : o.menupos=='top'? o.bartext.charAt(i_tem)+' ' : '<br>'+o.bartext.charAt(i_tem);
bt+=o.menupos=='top'? o.bartext.charAt(o.bartext.length-1)+'</td>' : '<br>\u00a0</td>';
}
else
bt+=o.bartext+'</td>'
return bt+(o.menupos=='right'? '\n' : '</tr>\n');
}

function make_style(o){
if(o.user_defined_stylesheet&&!o.design_mode)
return '';
var sheet=''
sheet+='#'+o.id+' {\n'+
(o.menupos=='top'? 'top:0;\n' : 'top:'+o.menutop+'px; /*set initial Height from top*/\n')+
(o.menupos=='top'? 'left:'+o.menuleft+(typeof o.menuleft=='number'? 'px' : '')+';\n' : '')+
(o.menupos=='right'&&o.kviewtype=='fixed'? 'right:0;\n' : '')+
'position:'+o.kviewtype+';\n'+
'overflow:'+(o.menupos=='right'? 'hidden' : 'visible')+';\n'+
'z-index:100;\n'+
(o.menupos=='left'? 'left:0;\n' : '')+
'}\n'+
'#'+o.id+' div {\n'+
'border-width:'+(typeof o.outbrdwidth=='number'? o.outbrdwidth+'px' : o.outbrdwidth)+'; /*Menu\'s outer border*/\n'+
'border-style:'+o.outbrdstyle+';\n'+
(o.outbrdcolor=='none'? '' : 'border-color:'+o.outbrdcolor+';\n')+
'position:absolute;\n'+
'color:black;\n'+
'background-color:transparent;\n'+
'}\n'+
'#'+o.id+' table {\n'+
'border:'+o.borderwidth+'px '+o.borderstyle+' '+o.bordercolor+'; /*Menu\'s inner border*/\n'+
(o.menupos=='top'? 'border-left-width:0;\n' : '')+
(o.menupos=='top'? 'border-bottom-width:0;\n' : '')+
'font-family:'+o.menufont+', sans-serif; /*Overall font for Menu*/\n'+
'font-size:'+o.fontsize+';\n'+
'border-collapse:collapse;\n'+
'background-color:'+(o.allowtransparent? 'transparent' : o.bordercolor)+';\n'+
'width:'+to_em(o.barwidth+o.hdingwidth+o.borderwidth*(o.d_colspan+2), o)+'em;\n'+
'}\n'+
'#'+o.id+' td { /*Characteristics for cells in the menu table - do not specify width here*/\n'+
'border-bottom:'+o.borderwidth+'px '+o.borderstyle+' '+o.bordercolor+';\n'+
'border-left:'+o.borderwidth+'px '+o.borderstyle+' '+o.bordercolor+';\n'+
'height:'+to_em(o.linkheight, o)+'em;\n'+
'padding:0;\n'+
'margin:0;\n'+
'text-align:'+o.linktxtalign+';\n'+
'}\n'+
'#'+o.id+' #'+o.id+'bar { /*Characteristics for initially visible \'draw\' bar (the vertical cell)*/\n'+
(o.menupos=='top'? 'height:' : 'width:')+to_em(o.barwidth+(document.all||o.menupos=='top'? o.borderwidth*2 : 0), o)+'em;\n'+
'background-color:'+o.barbgcolor+';\n'+
'color:'+o.barcolor+';\n'+
'font-weight:'+o.barfontweight+';\n'+
'text-align:'+o.baralign+';\n'+
(o.menupos=='top'? '' : 'border-width:0;\n')+
'cursor:default;\n'+
'}\n'+
'#'+o.id+' .heading { /*Characteristics for heading cells in the menu table*/\n'+
'height:'+to_em(o.hdingheight, o)+'em;\n'+
'color:'+o.hdingcolor+';\n'+
'font-weight:'+o.hdingfontweight+';\n'+
'text-indent:'+o.hdingindent+'ex;\n'+
'background-color:'+o.hdingbgcolor+'; /*Background Color for menu headings */\n'+
'width:'+to_em(o.hdingwidth, o)+'em; /*This will be the menu body width.  This'+(o.menupos!='top'? ' (plus #'+o.id+'bar width for left and right menus)' : '')+' and 4 times the border width should also be the menu table\'s approximate width*/\n'+
'vertical-align:'+o.hdingvalign+';\n'+
'text-align:'+o.hdingtxtalign+';\n'+
'border-left-color:'+o.hdingbgcolor+';\n'+
'border-left-style:solid;\n'+
'}\n'+
(o.wrapbar&&o.menupos!='top'? '#'+o.id+' #'+o.id+'lastrow {\n'+
'height:'+to_em(o.barwidth, o)+'em;\n'+
'background-color:'+o.barbgcolor+';\n'+
'border-width:0;\n'+
'margin:0 0 '+o.borderwidth+'px '+o.borderwidth+'px;\n'+
'}\n' : o.menupos!='top'? '#'+o.id+' #'+o.id+'lastrow {\n'+
'border-bottom-width:0;\n'+
'margin:0 0 '+o.borderwidth+'px '+o.borderwidth+'px;\n'+
'}\n' : '')+
'#'+o.id+' a {\n'+
'width:100%;\n'+
'height:100%;\n'+
'display:block;\n'+
'padding-top:'+to_em(o.linktopad, o)+'em;\n'+
'}\n';
if(o.design_mode){
if(document.getElementById('ooostyle'))
alert('Only one menu\'s script generated styles may be displayed at a time!\n\nCurrently showing '+document.getElementById('ooostyle').tell+'\'s stylesheet\n\n(or there is a syntax error - most\n\u00a0\u00a0\u00a0\u00a0likely in the menuItem.js file)');
else{
var isusing=o.user_defined_stylesheet? ' not' : '';
var sw=(window.innerWidth? window.innerWidth : truebody().clientWidth)/1.5; 
document.write('<textarea id="ooostyle" cols="'+Math.floor(sw/8)+'" rows="65" wrap="off" style="margin-left:-'+Math.floor(sw/2)+'px;overflow:auto;position:absolute;top:10px;left:50%;z-index:1000;">\n')
document.write('\/* '+o.id+'\'s Script Generated Styles: */\n\/* '+o.id+' is'+isusing+' currently using these via the script */\n\n'+sheet);
document.write('\n\/* End '+o.id+'\'s Script Generated Styles */');
document.write('</textarea>')
document.getElementById('ooostyle').tell=o.id;
}
}
if(!o.user_defined_stylesheet)
return '<style type="text/css">\n'+sheet+'</style>';
return '';
}
function make_style_make_menu(o, s){
if(s){
if(!o.id) {alert('a unique id is required for each menu');return;};
if(!o.menuItems||o.menuItems.constructor!=Array) {alert('an array of menu items is required for each menu');return;};
if(!o.menutop) {o.menutop=150};
if(!o.menuleft) {o.menuleft='50%'};
if(!o.keepinview&&typeof o.keepinview=='boolean')
o.keepinview=false;
else if(!o.keepinview) {o.keepinview=30};
if(!o.menuspeed) {o.menuspeed=20};
if(!o.menupause) {o.menupause=500};
if(!o.d_colspan) {o.d_colspan=2};
if(!o.allowtransparent) {o.allowtransparent=false};
if(!o.barwidth) {o.barwidth=22};
if(!o.hdingwidth) {o.hdingwidth=149};
if(!o.hdingheight) {o.hdingheight=22};
if(!o.hdingindent) {o.hdingindent=1};
if(!o.linkheight) {o.linkheight=16};
if(!o.outbrdwidth) {o.outbrdwidth=0};
if(!o.outbrdcolor) {o.outbrdcolor="none"};
if(!o.outbrdstyle) {o.outbrdstyle="none"};
if(!o.borderwidth) {o.borderwidth=1};
if(!o.bordercolor) {o.bordercolor="black"};
if(!o.borderstyle) {o.borderstyle="solid"};
if(!o.barcolor) {o.barcolor="white"};
if(!o.barbgcolor) {o.barbgcolor="#444444"};
if(!o.barfontweight) {o.barfontweight="bold"};
if(!o.baralign) {o.baralign="center"};
if(!o.menufont) {o.menufont="verdana"};
if(!o.fontsize) {o.fontsize="80%"};
if(!o.hdingcolor) {o.hdingcolor="white"};
if(!o.hdingbgcolor) {o.hdingbgcolor="#170088"};
if(!o.hdingfontweight) {o.hdingfontweight="bold"};
if(!o.hdingvalign) {o.hdingvalign="middle"};
if(!o.hdingtxtalign) {o.hdingtxtalign="left"};
if(!o.linktopad) {o.linktopad=0};
if(!o.linktxtalign) {o.linktxtalign="left"};
if(!o.linktarget) {o.linktarget=""};
if(!o.menupos) {o.menupos="left"};
if(!o.bartext) {o.bartext="SIDE MENU"};
if(!o.user_defined_stylesheet) {o.user_defined_stylesheet=false};
if(!o.user_defined_markup) {o.user_defined_markup=false};
if(!o.design_mode) {o.design_mode=false};
if(!o.wrapbar) {o.wrapbar=false};
if(!o.kviewtype) {o.kviewtype='absolute'};
if(typeof ie6_or_less!='undefined')
o.kviewtype='absolute';
else if(o.menupos=='top'&&o.kviewtype=='absolute')
o.kviewtype='fixed';
while(!o.menuItems[o.menuItems.length-1])
o.menuItems.length=o.menuItems.length-1;
document.write(make_style(o));
return;
}
else {
if(o.design_mode||!o.user_defined_markup){
var hw=o.hdingwidth;

var tb='<div id="'+o.id+'" onmouseover="movein(this);" onmouseout="moveout(this);"><div><table>\n';
tb+=o.menupos=='right'? make_bar(o) : '';
for (var i_tem = 0; i_tem < o.menuItems.length; i_tem++){
if ((o.menupos=='top'&&i_tem==0)||i_tem>0&&(!o.menuItems[i_tem-1][4]||o.menuItems[i_tem-1][4]!=='no'))
tb+='<tr>'
if (o.menuItems[i_tem][1]&&o.menuItems[i_tem][1]!==''){
tb+='<td '+(i_tem==o.menuItems.length-1&&!o.wrapbar&&o.menupos!='top'? 'id="'+o.id+'lastrow" ' : '')+'colspan="'+(o.menuItems[i_tem][3]&&o.menuItems[i_tem][3]!==''? o.menuItems[i_tem][3] : o.d_colspan)+'"><a href="'+o.menuItems[i_tem][1]+'" target="'+(o.menuItems[i_tem][2]? o.menuItems[i_tem][2] : o.linktarget)+'">'+o.menuItems[i_tem][0]+'</a></td>'
}
else
tb+='<td '+(i_tem==o.menuItems.length-1&&!o.wrapbar&&o.menupos!='top'? 'id="'+o.id+'lastrow" ' : '')+'class="heading" '+(o.menuItems[i_tem][3]&&o.menuItems[i_tem][3]!==''&&o.menuItems[i_tem][3]!==o.d_colspan? 'style="width:'+to_em(hw*o.menuItems[i_tem][3]/o.d_colspan, o)+'em;'+(i_tem>0&&o.menuItems[i_tem-1][4]&&o.menuItems[i_tem-1][4]=='no'? 'border-left-width:0;margin-left:'+o.borderwidth+'px;' : '')+'" ' : '')+'colspan="'+(o.menuItems[i_tem][3]&&o.menuItems[i_tem][3]!==''? o.menuItems[i_tem][3] : o.d_colspan)+'">'+o.menuItems[i_tem][0]+'</td>'
if (!o.menuItems[i_tem][4]||o.menuItems[i_tem][4]!=='no')
tb+=o.menupos=='left'&&i_tem==0? make_bar(o) : '</tr>\n';
}
tb+=o.wrapbar&&o.menupos!='top'? '<tr><td id="'+o.id+'lastrow" colspan="'+o.d_colspan+'">\u00a0</td></tr>\n' : '';
tb+=o.menupos=='top'? make_bar(o) : '';

if(!o.user_defined_markup)
document.write(tb+'</table></div></div>')
}
if(o.design_mode)
document.getElementById('ooostyle').value+='\n\n<!-- The Markup for '+o.id+' -->\n\n'+tb+'</table></div></div>\n\n<!-- End '+o.id+'\'s Markup -->'
o.m=document.getElementById(o.id);
var b=document.getElementById(o.id+'bar');
o.m.b=b;
o.m.ft=1;
o.m.menupos=o.menupos;
o.m.menupause=o.menupause;
o.m.menuspeed=o.menuspeed;
o.m.borderwidth=o.borderwidth;
o.m.kviewtype=o.kviewtype;
resizevent(o);
if(o.menupos=='top'&&typeof window.attachEvent=='object'&&typeof ie6_or_less!='undefined')
window.attachEvent('onscroll', function(){o.m.style.visibility='hidden';});
if(o.kviewtype=='absolute'&&(o.menupos!='top'||(typeof ie6_or_less!='undefined'&&typeof window.attachEvent=='object')))
setInterval(function(){keep_in_view(o)}, 20)
}
}

function resizevent(o){
var m1=o.m.getElementsByTagName('div')[0], bo=o.menupos=='top'? o.m.b.offsetHeight : o.m.b.offsetWidth;
m1.style[o.menupos]=bo-(o.menupos=='top'? m1.offsetHeight : m1.offsetWidth)+'px'
if(o.menupos=='right'){
if(o.kviewtype=='absolute')
o.m.style.left=getedge(o)-o.m.offsetWidth+'px';
o.m.style.width=bo+'px';
o.m.style.height=m1.offsetHeight+'px';
if(typeof less_than_ie5_5!='undefined'){
o.m.onmouseover(o.m);
o.m.onmouseout(o.m);
}
}
if(o.menupos=='top'){
o.m.style.width=m1.style.width=o.m.getElementsByTagName('table')[0].offsetWidth+'px';
if(typeof o.menuleft=='string')
o.m.style.marginLeft=Math.floor(m1.offsetWidth/-2)+'px';
}
}

var ontextresizeLastSize = false;
if (window.attachEvent) window.attachEvent("onload", initOntextresizeListener);
else if (window.addEventListener) window.addEventListener("load", initOntextresizeListener, false);
function initOntextresizeListener() {
if(!resizereinit||typeof less_than_ie5_5!='undefined')
return;
	var testDiv = document.createElement("div");
	testDiv.style.position = "absolute";
	testDiv.style.height = "1em";
	testDiv.style.width = "1em";
	testDiv.style.top = "-2em";
	testDiv.style.left = "-2em";
	var docTestDiv = document.body.appendChild(testDiv);
	docTestDiv.id = "ontextresizeTestDiv";
	ontextresizeListener = setInterval("ontextresizeCheckTestDiv()",100);
}
function ontextresizeCheckTestDiv() {
	if (ontextresizeLastSize!=document.getElementById("ontextresizeTestDiv").offsetWidth) {
		if (ontextresizeLastSize && window.ontextresize) window.ontextresize.call();
		ontextresizeLastSize = document.getElementById("ontextresizeTestDiv").offsetWidth;
	}
}
window.ontextresize=function(){
for (var i_tem = 0; i_tem < menu.length; i_tem++)
if(typeof menu[i_tem]!='undefined')
resizevent(menu[i_tem]);
};

function make_menus(){
if(document.getElementById){
for (var i_tem = 0; i_tem < menu.length; i_tem++)
if(typeof menu[i_tem]!='undefined')
make_style_make_menu(menu[i_tem], 's');
for (i_tem = 0; i_tem < menu.length; i_tem++)
if(typeof menu[i_tem]!='undefined')
make_style_make_menu(menu[i_tem]);
}
}
//One global variable to set, use true if you want the menus to reinit when the user changes text size (recommended):
resizereinit=true;



menu[1] = {
id:'menu1', //use unique quoted id (quoted) REQUIRED!!
user_defined_stylesheet:false, //if true, prevents script from generating stylesheet for this menu
user_defined_markup:false, //if true, prevents script from generating markup for this menu
design_mode:false,  //if true, generates a report of the script generated/intended styles and markup (as a design aid)
menutop:60,     // initial top offset - except for top menu, where it is meaningless
menuleft:'45%',    // initial left offset - only for top menu, as pixels (can be a quoted percentage - ex: '50%')
keepinview:80,   // Use false (for not static) - OR - true or numeric top offset when page scrolls
menuspeed:20,    // Speed of menu sliding smaller is faster (interval of milliseconds)
menupause:500,   // How long menu stays out when mouse leaves it (in milliseconds)
d_colspan:3,     // Available columns in menu body as integer
allowtransparent:false, // true to allow page to show through menu if other bg's are transparent or border has gaps
barwidth:20,     // bar (the vertical cell) width
wrapbar:true,    // extend and wrap bar below menu for a more solid look (default false) - will revert to false for top menu
hdingwidth:210,  // heading - non linked horizontal cells width
hdingheight:25,  // heading - non linked horizontal cells height
hdingindent:1,   // heading - non linked horizontal cells text-indent represents ex units (@8 pixels decimals allowed)
linkheight:20,   // linked horizontal cells height
linktopad:3,     // linked horizontal cells top padding
borderwidth:1,   // inner border-width used for this menu
/////////////////////////// quote these properties: /////////////////////
bordercolor:'#a08b63',  // inner border color
borderstyle:'solid',    // inner border style (solid, dashed, inset, etc.)
outbrdwidth:'0ex 0ex 0ex 0ex', // outer border-width used for this menu (top right bottom left)
outbrdcolor:'lightblue', // outer border color
outbrdstyle:'solid',     // outer border style (solid, dashed, inset, etc.)
barcolor:'white',        // bar (the vertical cell) text color
barbgcolor:'#mintcream',    // bar (the vertical cell) background color
barfontweight:'bold',    // bar (the vertical cell) font weight
baralign:'center',       // bar (the vertical cell) right left or center text alignment
menufont:'arial',      // menu font
fontsize:'75%',          // express as percentage with the % sign
hdingcolor:'white',      // heading - non linked horizontal cells text color
hdingbgcolor:'#d2b48c',  // heading - non linked horizontal cells background color
hdingfontweight:'bold',  // heading - non linked horizontal cells font weight
hdingvalign:'middle',    // heading - non linked horizontal cells vertical align (top, middle or center)
hdingtxtalign:'left',    // heading - non linked horizontal cells right left or center text alignment
linktxtalign:'left',     // linked horizontal cells right left or center text alignment
linktarget:'',           // default link target, leave blank for same window (other choices: _new, _top, or a window or frame name)
kviewtype:'fixed',       // Type of keepinview - 'fixed' utilizes fixed positioning where available, 'absolute' fluidly follows page scroll
menupos:'top',         // set side that menu slides in from (right or left or top)
bartext:'MY MENU',       // bar text (the vertical cell) use text or img tag
///////////////////////////

bartext:'Seiten - Menu',
menupos:'right',
kviewtype:'fixed', 


menuItems:[ // REQUIRED!!
//[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header

  ["Navigation"], //create header
  ["Startseite", "index.php?s=home", ""],
  ["Der Verein", "index.php?s=verein",""],
  ["Was gibt es neues", "index.php?s=home", ""],
  ["Downloads", "index.php?s=home", ""],
  ["Link uns", "index.php?s=home", ""],
  ["Impressum", "index.php?s=home", "", 1, "no"], //create two column row
  ["Kontakt", "index.php?s=home", "",1],

  ["Gor - Portal"],
  ["Registrieren","index.php?s=home",""],
  ["Login","index.php?s=home",""],

  ["Externe Links", "", ""], //create header
  ["no", "index.php?s=home", "_new"]

]}; // REQUIRED!! do not edit or remove

////////////////////Stop Editing/////////////////

make_menus();

// Seiten menü ende


// Header rotation 
(function(a){
  a.fn.wtRotator=function(z){
    var l="inside";
    var r="outside";
    var B=0;
    var C=1;
    var k={TL:0,TC:1,TR:2,BL:3,BC:4,BR:5};
    var e=0;
    var h={"block.top":e++,"block.right":e++,"block.bottom":e++,"block.left":e++,"block.drop":e++,"diag.fade":e++,"diag.exp":e++,"rev.diag.fade":e++,"rev.diag.exp":e++,"block.fade":e++,"block.exp":e++,"block.top.zz":e++,"block.bottom.zz":e++,"block.left.zz":e++,"block.right.zz":e++,"spiral.in":e++,"spiral.out":e++,"vert.tl":e++,"vert.tr":e++,"vert.bl":e++,"vert.br":e++,"fade.left":e++,"fade.right":e++,"alt.left":e++,"alt.right":e++,"blinds.left":e++,"blinds.right":e++,"vert.random.fade":e++,"horz.tl":e++,"horz.tr":e++,"horz.bl":e++,"horz.br":e++,"fade.top":e++,"fade.bottom":e++,"alt.top":e++,"alt.bottom":e++,"blinds.top":e++,"blinds.bottom":e++,"horz.random.fade":e++,none:e++,fade:e++,"h.slide":e++,"v.slide":e++,random:e++};
    var x={fade:0,down:1,right:2,up:3,left:4,none:5};var o=250;var f=75;var b=50;var q=5000;var w=800;var v=600;var n=600;
    var g="updatetext";
    
    function c(G,P,N,R,M,H,I){
      var J;var E;var L;var Q=null;
      var S=function(){
            L=Math.ceil(P/R);if(L>o){
                R=Math.ceil(P/o);
                L=Math.ceil(P/R)
            }
      var U="";
      for(var T=0;T<L;T++){
        U+="<div class='vpiece' id='"+T+"'/>"}G.addToScreen(U);
        J=G.$el.find("div.vpiece");
        E=new Array(L);J.each(function(V){a(this).css({left:(V*R),height:N});E[V]=a(this)})
      };
      this.clear=function(){clearInterval(Q);J.stop(true).css({"z-index":2,opacity:0})};
      this.displayContent=function(T,U){D(T,U);
      if(U==h["vert.random.fade"]){O(T)}else{F(T,U)}};
      var D=function(T,U){switch(U){case h["vert.tl"]:case h["vert.tr"]:K(T,-N,1,R,false);
      break;
      case h["vert.bl"]:case h["vert.br"]:K(T,N,1,R,false);
      break;
      case h["alt.left"]:case h["alt.right"]:K(T,0,1,R,true);
      break;
      case h["blinds.left"]:case h["blinds.right"]:K(T,0,1,0,false);
      break;default:K(T,0,0,R,false)}};
      var K=function(W,T,U,Y,aa){var X=W.attr("src");var Z=0;var V=0;
      if(G.autoCenter()){Z=(N-W.height())/2;V=(P-W.width())/2}J.each(function(ac){var ab=((-ac*R)+V);if(aa){T=(ac%2)==0?-N:N}a(this).css({background:M+" url('"+X+"') no-repeat",backgroundPosition:ab+"px "+Z+"px",opacity:U,top:T,width:Y,"z-index":3})})};var F=function(V,W){var Y,U,X,T;switch(W){case h["vert.tl"]:case h["vert.bl"]:case h["fade.left"]:case h["blinds.left"]:case h["alt.left"]:Y=0;U=L-1;X=1;break;default:Y=L-1;U=0;X=-1}Q=setInterval(function(){a(J.get(Y)).animate({top:0,opacity:1,width:R},H,G.easing(),function(){if(a(this).attr("id")==U){G.setComplete(V)}});if(Y==U){clearInterval(Q)}Y+=X},I)};var O=function(U){t(E);var T=0;var V=0;Q=setInterval(function(){E[T++].animate({opacity:1},H,G.easing(),function(){if(++V==L){G.setComplete(U)}});if(T==L){clearInterval(Q)}},I)};S()}function u(G,P,N,R,M,H,I){var J;var E;var L;var Q=null;var S=function(){L=Math.ceil(N/R);if(L>o){R=Math.ceil(N/o);L=Math.ceil(N/R)}var U="";for(var T=0;T<L;T++){U+="<div class='hpiece' id='"+T+"'><!-- --></div>"}G.addToScreen(U);J=G.$el.find("div.hpiece");E=new Array(L);J.each(function(V){a(this).css({top:(V*R),width:P});E[V]=a(this)})};this.clear=function(){clearInterval(Q);J.stop(true).css({"z-index":2,opacity:0})};this.displayContent=function(T,U){D(T,U);if(U==h["horz.random.fade"]){O(T)}else{F(T,U)}};var D=function(T,U){switch(U){case h["horz.tr"]:case h["horz.br"]:K(T,P,1,R,false);break;case h["horz.tl"]:case h["horz.bl"]:K(T,-P,1,R,false);break;case h["alt.top"]:case h["alt.bottom"]:K(T,0,1,R,true);break;case h["blinds.top"]:case h["blinds.bottom"]:K(T,0,1,0,false);break;default:K(T,0,0,R,false)}};var K=function(X,W,U,T,aa){var Y=X.attr("src");var Z=0;var V=0;if(G.autoCenter()){Z=(N-X.height())/2;V=(P-X.width())/2}J.each(function(ac){var ab=((-ac*R)+Z);if(aa){W=(ac%2)==0?-P:P}a(this).css({background:M+" url('"+Y+"') no-repeat",backgroundPosition:V+"px "+ab+"px",opacity:U,left:W,height:T,"z-index":3})})};var F=function(U,V){var X,T,W;switch(V){case h["horz.tl"]:case h["horz.tr"]:case h["fade.top"]:case h["blinds.top"]:case h["alt.top"]:X=0;T=L-1;W=1;break;default:X=L-1;T=0;W=-1}Q=setInterval(function(){a(J.get(X)).animate({left:0,opacity:1,height:R},H,G.easing(),function(){if(a(this).attr("id")==T){G.setComplete(U)}});if(X==T){clearInterval(Q)}X+=W},I)};var O=function(U){t(E);var T=0;var V=0;Q=setInterval(function(){E[T++].animate({opacity:1},H,G.easing(),function(){if(++V==L){G.setComplete(U)}});if(T==L){clearInterval(Q)}},I)};S()}function m(N,O,J,P,M,D,W){var L;var E;var Q;var I;var K;var Y;var X;var V=function(){I=Math.ceil(J/P);K=Math.ceil(O/P);Y=I*K;if(Y>o){P=Math.ceil(Math.sqrt((J*O)/o));I=Math.ceil(J/P);K=Math.ceil(O/P);Y=I*K}var ac="";for(var ab=0;ab<I;ab++){for(var aa=0;aa<K;aa++){ac+="<div class='block' id='"+ab+"-"+aa+"'/>"}}N.addToScreen(ac);E=N.$el.find("div.block");E.data({tlId:"0-0",trId:"0-"+(K-1),blId:(I-1)+"-0",brId:(I-1)+"-"+(K-1)});var Z=0;Q=new Array(Y);L=new Array(I);for(var ab=0;ab<I;ab++){L[ab]=new Array(K);for(var aa=0;aa<K;aa++){L[ab][aa]=Q[Z++]=E.filter("#"+(ab+"-"+aa)).data("top",ab*P)}}};this.clear=function(){clearInterval(X);E.stop(true).css({"z-index":2,opacity:0})};this.displayContent=function(Z,aa){switch(aa){case h["diag.fade"]:S(Z,0,P,0);T(Z,{opacity:1},false);break;case h["diag.exp"]:S(Z,0,0,0);T(Z,{opacity:1,width:P,height:P},false);break;case h["rev.diag.fade"]:S(Z,0,P,0);T(Z,{opacity:1},true);break;case h["rev.diag.exp"]:S(Z,0,0,0);T(Z,{opacity:1,width:P,height:P},true);break;case h["block.fade"]:S(Z,0,P,0);F(Z);break;case h["block.exp"]:S(Z,1,0,0);F(Z);break;case h["block.drop"]:S(Z,1,P,-(I*P));F(Z);break;case h["block.top.zz"]:case h["block.bottom.zz"]:S(Z,0,P,0);H(Z,aa);break;case h["block.left.zz"]:case h["block.right.zz"]:S(Z,0,P,0);R(Z,aa);break;case h["spiral.in"]:S(Z,0,P,0);U(Z,false);break;case h["spiral.out"]:S(Z,0,P,0);U(Z,true);break;default:S(Z,1,0,0);G(Z,aa)}};var S=function(Z,af,aj,ae){var ag=0;var ab=0;if(N.autoCenter()){ag=(J-Z.height())/2;ab=(O-Z.width())/2}var ah=Z.attr("src");for(var ad=0;ad<I;ad++){for(var ac=0;ac<K;ac++){var ai=((-ad*P)+ag);var aa=((-ac*P)+ab);L[ad][ac].css({background:M+" url('"+ah+"') no-repeat",backgroundPosition:aa+"px "+ai+"px",opacity:af,top:(ad*P)+ae,left:(ac*P),width:aj,height:aj,"z-index":3})}}};var T=function(Z,ah,ae){var ag=new Array(Y);var aa,ad,ab,ac;var ai=(I-1)+(K-1);if(ae){aa=ai;ad=-1;ab=-1;ac=E.data("tlId")}else{aa=0;ad=ai+1;ab=1;ac=E.data("brId")}var af=0;while(aa!=ad){i=Math.min(I-1,aa);while(i>=0){j=Math.abs(i-aa);if(j>=K){break}ag[af++]=L[i][j];i--}aa+=ab}af=0;X=setInterval(function(){ag[af++].animate(ah,D,N.easing(),function(){if(a(this).attr("id")==ac){N.setComplete(Z)}});if(af==Y){clearInterval(X)}},W)};var R=function(ac,ad){var ab=true;var aa=0,Z,af,ae;if(ad==h["block.left.zz"]){ae=(K%2==0)?E.data("trId"):E.data("brId");Z=0;af=1}else{ae=(K%2==0)?E.data("tlId"):E.data("blId");Z=K-1;af=-1}X=setInterval(function(){L[aa][Z].animate({opacity:1},D,N.easing(),function(){if(a(this).attr("id")==ae){N.setComplete(ac)}});if(L[aa][Z].attr("id")==ae){clearInterval(X)}(ab?aa++:aa--);if(aa==I||aa<0){ab=!ab;aa=(ab?0:I-1);Z+=af}},W)};var H=function(ac,ad){var ab=true;var aa,Z=0,af,ae;if(ad==h["block.top.zz"]){ae=(I%2==0)?E.data("blId"):E.data("brId");aa=0;af=1}else{ae=(I%2==0)?E.data("tlId"):E.data("trId");aa=I-1;af=-1}X=setInterval(function(){L[aa][Z].animate({opacity:1},D,N.easing(),function(){if(a(this).attr("id")==ae){N.setComplete(ac)}});if(L[aa][Z].attr("id")==ae){clearInterval(X)}(ab?Z++:Z--);if(Z==K||Z<0){ab=!ab;Z=(ab?0:K-1);aa+=af}},W)};var G=function(ab,ac){var ae=new Array(Y);var af;var ad=0;switch(ac){case h["block.left"]:af=E.data("brId");for(var Z=0;Z<K;Z++){for(var aa=0;aa<I;aa++){ae[ad++]=L[aa][Z]}}break;case h["block.right"]:af=E.data("blId");for(var Z=K-1;Z>=0;Z--){for(var aa=0;aa<I;aa++){ae[ad++]=L[aa][Z]}}break;case h["block.top"]:af=E.data("brId");for(var aa=0;aa<I;aa++){for(var Z=0;Z<K;Z++){ae[ad++]=L[aa][Z]}}break;default:af=E.data("trId");for(var aa=I-1;aa>=0;aa--){for(var Z=0;Z<K;Z++){ae[ad++]=L[aa][Z]}}}ad=0;X=setInterval(function(){ae[ad++].animate({width:P,height:P},D,N.easing(),function(){if(a(this).attr("id")==af){N.setComplete(ab)}});if(ad==Y){clearInterval(X)}},W)};var F=function(aa){t(Q);var Z=0;count=0;X=setInterval(function(){Q[Z].animate({top:Q[Z].data("top"),width:P,height:P,opacity:1},D,N.easing(),function(){if(++count==Y){N.setComplete(aa)}});Z++;if(Z==Y){clearInterval(X)}},W)};var U=function(Z,ah){var ag=0,af=0;var ak=I-1;var al=K-1;var ab=0;var ae=al;var aj=new Array();while(ak>=0&&al>=0){var ai=0;while(true){aj[aj.length]=L[ag][af];if((++ai)>ae){break}switch(ab){case 0:af++;break;case 1:ag++;break;case 2:af--;break;case 3:ag--}}switch(ab){case 0:ab=1;ae=(--ak);ag++;break;case 1:ab=2;ae=(--al);af--;break;case 2:ab=3;ae=(--ak);ag--;break;case 3:ab=0;ae=(--al);af++}}if(aj.length>0){if(ah){aj.reverse()}var ad=aj.length-1;var aa=aj[ad].attr("id");var ac=0;X=setInterval(function(){aj[ac].animate({opacity:1},D,N.easing(),function(){if(a(this).attr("id")==aa){N.setComplete(Z)}});if(ac==ad){clearInterval(X)}ac++},W)}};V()}function y(bx,bs){var aq=d(bs.width,825);var bn=d(bs.height,300);var bg=A(bs.button_margin,4);var an=bs.transition.toLowerCase();var av=d(bs.transition_speed,w);var X=d(bs.delay,q);var aL=bs.auto_start;var V=bs.cpanel_position.toLowerCase();var a4=bs.cpanel_align.toUpperCase();var ah=d(bs.button_width,24);var aX=d(bs.button_height,24);var G=bs.display_thumbs;var aJ=bs.display_dbuttons;var aH=bs.display_playbutton;var aR=bs.display_numbers;var be=bs.display_thumbimg;var ac=bs.display_timer;var aB=bs.cpanel_mouseover;var az=bs.text_mouseover;var ab=bs.mouseover_pause;var ak=bs.tooltip_type.toLowerCase();var ax=bs.text_effect.toLowerCase();var bt=bs.text_sync;var aw=bs.play_once;var Y=bs.auto_center;var a5=bs.easing;var aj;var at;var J;var I;var Q;var aN;var aZ;var bb;var ao;var a6;var aQ;var ag;var ai;var aT;var a8;var au;var aP;var E;var T;var F;var a0;var ad;var L;var R;var P;var bc;var S;var M;var aD;var aa;this.$el=bx;this.init=function(){ai=bx.find(".wt-rotator");aT=ai.find("div.screen");F=ai.find("div.c-panel");L=F.find("div.buttons");a0=F.find("div.thumbnails");ad=a0.find(">ul:first>li");M=a("<div id='rotator-tooltip'/>");bb=null;at=0;J=-1;aj=ad.size();aD=new Array(aj);ao=a6=aQ=false;bh(h[an]);aI();a2();aU();br();aA();ai.css({width:aq,height:bn+(V==r?T.outerHeight():0)});if(az){ai.hover(af,am)}else{ai.bind(g,a3)}var by=aT.css("background-color");if(aQ){Q=new c(this,aq,bn,d(bs.vert_size,b),by,av,d(bs.vstripe_delay,75))}if(a6){aN=new u(this,aq,bn,d(bs.horz_size,b),by,av,d(bs.hstripe_delay,75))}if(ao){aZ=new m(this,aq,bn,d(bs.block_size,f),by,av,d(bs.block_delay,25))}a9(0);aG(at)};this.setComplete=function(by){D(by)};this.addToScreen=function(by){au.append(by)};this.autoCenter=function(){return Y};this.easing=function(){return a5};var aI=function(){var by="<div class='desc'/>								<div class='preloader'/>								<div id='timer'/>";aT.append(by);aP=aT.find("div.desc");E=aT.find("div.preloader");aT.css({width:aq,height:bn});aP.append("<div class='inner-bg'/><div class='inner-text'/>");aa=aP.find("div.inner-text");a8=a("<div id='strip'/>");if(an=="h.slide"){aT.append(a8);a8.css({width:2*aq,height:bn});ad.removeAttr("effect")}else{if(an=="v.slide"){aT.append(a8);a8.css({width:aq,height:2*bn});ad.removeAttr("effect")}else{aT.append("<a href='#'></a>");au=aT.find(">a:first")}}};var br=function(){if(G||aJ||aH){var bz=aq-(L.width()+bg);if(a0.width()>bz){a0.width(bz)}if(V==l){F.css({"margin-top":bg,"margin-right":0,"margin-bottom":bg,"margin-left":0});var by=F.outerHeight(true);switch(k[a4]){case k.TL:bk(0,-by);a7("left");break;case k.TC:bk(0,-by);a7("center");break;case k.TR:bk(0,-by);a7("right");break;case k.BL:bk((bn-by),bn);a7("left");break;case k.BC:bk((bn-by),bn);a7("center");break;default:bk((bn-by),bn);a7("right")}if(aB){ai.hover(bu,aC)}}else{F.wrap("<div class='outer-cp'/>");T=ai.find(".outer-cp");T.css({"padding-top":bg,"padding-bottom":bg,height:F.height()});switch(k[a4]){case k.TL:bw(true);a7("left");break;case k.TC:bw(true);a7("center");break;case k.TR:bw(true);a7("right");break;case k.BL:bw(false);a7("left");break;case k.BC:bw(false);a7("center");break;default:bw(false);a7("right")}}F.css("visibility","visible").click(al)}};var bk=function(by,bz){F.data({offset:bz,pos:by}).css({top:(aB?bz:by)})};var bw=function(by){if(by){T.css({"border-top":"none",top:0});aT.css("top",T.outerHeight())}else{T.css({"border-bottom":"none",top:bn});aT.css("top",0)}F.css("top",bg)};var a7=function(by){if(by=="center"){F.css("left",Math.round((aq-F.outerWidth(true)-bg)/2));a0.css("float","left");L.css("float","left");F.prepend(a0)}else{if(by=="left"){F.css("left",bg);a0.css("float","left");L.css("float","left")}else{F.css("right",0);a0.css("float","right");L.css("float","right")}}if(G){F.height(a0.height())}else{F.height(L.height())}};var aU=function(){R=L.find("div.play-btn");P=L.find("div.prev-btn");bc=L.find("div.next-btn");var by={"margin-right":bg,width:ah,height:aX};if(aJ){P.css(by).click(ar).mouseover(H).mouseout(aY).mousedown(al);bc.css(by).click(K).mouseover(H).mouseout(aY).mousedown(al)}else{P.hide();bc.hide()}if(aH){if(aL){R.addClass("pause")}R.css(by).click(ae).mouseover(H).mouseout(aY).mousedown(al)}else{R.hide()}if(ab){ai.hover(aO,Z)}};var aA=function(){S=aT.find("#timer").data("pct",1);if(ac){var by=bs.timer_align.toLowerCase();S.css("visibility","visible");S.css("top",by=="top"?0:bn-S.height())}else{S.hide()}};var a2=function(){var by=aa.outerHeight()-aa.height();ad.each(function(bB){var bA=a(this).find(">a:first");var bz=h[a(this).attr("effect")];if(bz==undefined||bz==h["h.slide"]||bz==h["v.slide"]){bz=h[an]}else{bh(bz)}a(this).data({imgurl:bA.attr("href"),caption:bA.attr("title"),effect:bz,delay:d(a(this).attr("delay"),X)});bj(a(this),by);aD[bB]=a(this);if(aR){a(this).append(bB+1)}});aa.css({width:"auto",height:"auto"}).html("");aP.css("visibility","visible");if(be){ad.addClass("image");ad.find(">a:first").removeAttr("title").find(">img").removeAttr("alt")}if(bs.shuffle){O()}if(G){ad.css({width:ah,height:aX,"line-height":aX+"px","margin-right":bg}).mouseover(bm).mouseout(W).mousedown(al);a0.height(ad.outerHeight(true)).click(ay);if(ak=="text"||ak=="image"){bl()}}else{ad.hide()}};var bj=function(by,bA){var bz=by.find(">div:hidden");var bC=d(parseInt(bz.css("width"))-bA,300);var bB=d(parseInt(bz.css("height"))-bA,0);aa.width(bC).html(bz.html());if(bB<aa.height()){bB=aa.height()}by.data("textbox",{x:bz.css("left"),y:bz.css("top"),w:bC+bA,h:bB+bA+1,color:bz.css("color"),bgcolor:bz.css("background-color")})};var bl=function(){a("body").append(M);var by,bz;if(ak=="text"){M.append("<div class='tt-txt'/>");by="txt-up";bz="txt-down";ad.mouseover(bp).mouseout(aM).bind("mousemove",U)}else{if(ak=="image"){aW();by="img-up";bz="img-down";ad.mouseover(bi).mouseout(aM)}}switch(k[a4]){case k.TL:case k.TC:case k.TR:M.data("bottom",true).addClass(bz);break;default:M.data("bottom",false).addClass(by)}if(jQuery.browser.msie&&parseInt(jQuery.browser.version)<=6){M.css("background-image","none").children().css("margin",0)}};var bi=function(bz){var by=aD[a(this).index()].data("tt-img");if(by!=undefined){M.find(">img").hide();by.show();if(by[0].complete||by[0].readyState=="complete"){var bB=M.data("bottom")?a(this).outerHeight():-M.outerHeight();var bA=a(this).offset();M.css({top:bA.top+bB,left:bA.left+((a(this).outerWidth()-M.outerWidth())/2)}).stop(true,true).delay(n).fadeIn(300)}}};var bp=function(bz){var by=aD[a(this).index()].data("caption");if(by!=""){M.find(">div.tt-txt").html(by);var bA=M.data("bottom")?0:-M.outerHeight(true);M.css({top:bz.pageY+bA,left:bz.pageX}).stop(true,true).delay(n).fadeIn(300)}};var U=function(by){var bz=M.data("bottom")?0:-M.outerHeight(true);M.css({top:by.pageY+bz,left:by.pageX})};var aM=function(){M.stop(true,true).fadeOut(0)};var bu=function(){F.stop(true).animate({top:F.data("pos"),opacity:1},v)};var aC=function(){F.stop(true).animate({top:F.data("offset"),opacity:0},v)};var ay=function(bA){var by=a(bA.target);if(by[0].nodeName!="LI"){by=by.parents("li").eq(0)}var bz=by.index();if(bz>-1&&bz!=at){ag=bz<at?B:C;bd();J=at;at=bz;aG(at);aM()}return false};var bm=function(){a(this).addClass("thumb-over")};var W=function(){a(this).removeClass("thumb-over")};var ar=function(){ag=B;bd();J=at;at=(at>0)?(at-1):(aj-1);aG(at);return false};var K=function(){ag=C;bd();J=at;at=(at<aj-1)?(at+1):0;aG(at);return false};var ae=function(){aL=!aL;a(this).toggleClass("pause",aL);aL?aS():N();return false};var Z=function(){aL=true;R.toggleClass("pause",aL);aS()};var aO=function(){aL=false;R.toggleClass("pause",aL);N()};var aE=function(by){if(by==aj-1){aL=false;R.toggleClass("pause",aL)}};var H=function(){a(this).addClass("button-over")};var aY=function(){a(this).removeClass("button-over")};var a3=function(bz){if(!aP.data("visible")){aP.data("visible",true);var bA=aD[at].find(">div:first").html();if(bA&&bA.length>0){var by=aD[at].data("textbox");aa.css("color",by.color);aP.find(".inner-bg").css({"background-color":by.bgcolor,height:by.h-1});switch(x[ax]){case x.fade:aV(bA,by);break;case x.down:bf(bA,by,{width:by.w,height:0},{height:by.h});break;case x.right:bf(bA,by,{width:0,height:by.h},{width:by.w});break;case x.left:bf(bA,by,{"margin-left":by.w,width:0,height:by.h},{width:by.w,"margin-left":0});break;case x.up:bf(bA,by,{"margin-top":by.h,height:0,width:by.w},{height:by.h,"margin-top":0});break;default:bv(bA,by)}}}};var bo=function(){aP.data("visible",false).stop(true,true);switch(x[ax]){case x.fade:if(jQuery.browser.msie){aa.css("opacity",0)}aP.fadeOut(v,function(){a(this).css("display","none")});break;case x.down:aa.html("");aP.animate({height:0,"margin-top":aP.outerHeight()},v);break;case x.right:aa.html("");aP.animate({width:0,"margin-left":aP.outerWidth()},v);break;case x.left:aa.html("");aP.animate({width:0},v);break;case x.up:aa.html("");aP.animate({height:0},v);break;default:aP.css("display","none")}};var bf=function(bB,bA,bz,by){aa.html("");aP.stop(true).css({display:"block",top:bA.y,left:bA.x,"margin-top":0,"margin-left":0}).css(bz).animate(by,v,function(){aa.html(bB)})};var aV=function(bz,by){aa.css("opacity",1).html(bz);aP.css({top:by.y,left:by.x,width:by.w,height:by.h}).stop(true,true).fadeIn(v,function(){if(jQuery.browser.msie){aa[0].style.removeAttribute("filter")}})};var bv=function(bz,by){aP.stop(true).css({display:"block",top:by.y,left:by.x,width:by.w,height:by.h});aa.html(bz)};var af=function(){ai.unbind(g).bind(g,a3).trigger(g)};var am=function(){ai.unbind(g);bo()};var aG=function(bA){if(aw){aE(bA)}ad.filter(".curr-thumb").removeClass("curr-thumb");a(ad.get(bA)).addClass("curr-thumb");I=aD[bA].data("delay");bo();if(!bt){ai.trigger(g)}if(au){var bB=aD[bA].find(">a:nth-child(2)");var by=bB.attr("href");if(by){au.unbind("click",al).css("cursor","pointer").attr({href:by,target:bB.attr("target")})}else{au.click(al).css("cursor","default")}}if(aD[bA].data("img")){E.hide();aK(aD[bA].data("img"))}else{var bz=a("<img class='main-img'/>");bz.attr("src",aD[bA].data("imgurl"));if(bz[0].complete||bz[0].readyState=="complete"){E.hide();bq(aD[bA],bz);aK(bz)}else{E.show();bz.load(function(){E.hide();bq(aD[bA],a(this));aK(a(this))}).error(function(){alert("Error loading image")})}}};var aK=function(by){if(aQ){Q.clear();ap()}if(a6){aN.clear();ap()}if(ao){aZ.clear();ap()}var bz=aD[at].data("effect");if(bz==h.none||bz==undefined){D(by);return}else{if(bz==h.fade){ba(by);return}else{if(bz==h["h.slide"]){a1(by,"left",aq);return}else{if(bz==h["v.slide"]){a1(by,"top",bn);return}}}}if(bz==h.random){bz=Math.floor(Math.random()*(e-5))}if(bz<=h["spiral.out"]){aZ.displayContent(by,bz)}else{if(bz<=h["vert.random.fade"]){Q.displayContent(by,bz)}else{aN.displayContent(by,bz)}}};var ap=function(){if(J>=0){var bz=au.find("img#curr-img").attr("src");var bA=aD[J].data("imgurl");if(bz!=bA){au.find("img.main-img").removeAttr("id").hide();var by=au.find("img.main-img").filter(function(){return a(this).attr("src")==bA});a(by.get(0)).show()}}};var D=function(by){if(bt){ai.trigger(g)}au.find("img.main-img").removeAttr("id").hide();by.attr("id","curr-img").show();aS()};var ba=function(by){au.find("img#curr-img").stop(true,true);au.find("img.main-img").removeAttr("id").css("z-index",0);by.attr("id","curr-img").stop(true,true).css({opacity:0,"z-index":1}).show().animate({opacity:1},av,a5,function(){au.find("img.main-img:not('#curr-img')").hide();if(bt){ai.trigger(g)}aS()})};var a1=function(bC,bE,bB){a8.stop(true,true);var by=a("#curr-img",a8);if(by.size()>0){a8.find(".main-img").removeAttr("id").parents(".content-box").css({top:0,left:0});bC.attr("id","curr-img").parents(".content-box").show();var bA,bz;if(ag==B){a8.css(bE,-bB);bA=by;bz=0}else{bA=bC;bz=-bB}bA.parents(".content-box").css(bE,bB);var bD=(bE=="top")?{top:bz}:{left:bz};a8.stop(true,true).animate(bD,av,a5,function(){a8.find(".main-img:not('#curr-img')").parents(".content-box").hide();bA.parents(".content-box").css({top:0,left:0});a8.css({top:0,left:0});if(bt){ai.trigger(g)}aS()})}else{a8.css({top:0,left:0});a8.find(".main-img").parents(".content-box").hide().css({top:0,left:0});bC.attr("id","curr-img").parents(".content-box").show();if(bt){ai.trigger(g)}aS()}};var aW=function(bA){for(var bA=0;bA<aj;bA++){var by=aD[bA];var bz=by.find(">a:first>img");if(bz.size()==1){bz.addClass("tt-img");M.append(bz);by.data("tt-img",bz)}}};var a9=function(bz){try{var by=aD[bz];var bB=a("<img class='main-img'/>");bB.attr("src",by.data("imgurl"));bB.load(function(){if(!by.data("img")){bq(by,a(this))}bz++;if(bz<aj){a9(bz)}}).error(function(){bz++;if(bz<aj){a9(bz)}})}catch(bA){}};var bq=function(bA,bB){if(an=="h.slide"||an=="v.slide"){a8.append(bB);aF(bB);var by=a("<div class='content-box'/>").css({width:aq,height:bn});bB.wrap(by);bB.css("display","block");var bz=bA.find(">a:nth-child(2)");if(bz){bB.wrap(bz)}}else{au.append(bB);aF(bB)}bA.data("img",bB)};var aF=function(bB){if(Y&&bB.width()>0&&bB.height()>0){var bE=(bn-bB.height())/2;var bA=(aq-bB.width())/2;var bD=0,bC=0,bz=0,by=0;if(bE>0){bz=bE}else{if(bE<0){bD=bE}}if(bA>0){by=bA}else{if(bA<0){bC=bA}}bB.css({top:bD,left:bC,"padding-top":bz,"padding-bottom":bz,"padding-left":by,"padding-right":by})}};var aS=function(){if(aL&&bb==null){var by=Math.round(S.data("pct")*I);S.animate({width:(aq+1)},by,"linear");bb=setTimeout(K,by)}};var bd=function(){clearTimeout(bb);bb=null;S.stop(true).width(0).data("pct",1)};var N=function(){clearTimeout(bb);bb=null;var by=1-(S.width()/(aq+1));S.stop(true).data("pct",by)};var O=function(){for(var bA=0;bA<aD.length;bA++){var by=Math.floor(Math.random()*aD.length);var bz=aD[bA];aD[bA]=aD[by];aD[by]=bz}};var bh=function(by){if(by==h.random){ao=a6=aQ=true}else{if(by<=h["spiral.out"]){ao=true}else{if(by<=h["vert.random.fade"]){aQ=true}else{if(by<=h["horz.random.fade"]){a6=true}}}}};var al=function(){return false}}var d=function(D,E){if(!isNaN(D)&&D>0){return D}return E};var A=function(D,E){if(!isNaN(D)&&D>=0){return D}return E};var t=function(D){var H=D.length;for(var G=0;G<H;G++){var E=Math.floor(Math.random()*H);var F=D[G];D[G]=D[E];D[E]=F}};var p={width:825,height:300,button_width:24,button_height:24,button_margin:4,auto_start:true,delay:q,transition:"fade",transition_speed:w,cpanel_position:l,cpanel_align:"BR",timer_align:"top",display_thumbs:true,display_dbuttons:true,display_playbutton:true,display_imgtooltip:true,display_numbers:true,display_thumbimg:false,display_timer:true,mouseover_pause:false,cpanel_mouseover:false,text_mouseover:false,text_effect:"fade",text_sync:true,tooltip_type:"text",shuffle:false,play_once:false,auto_center:false,block_size:f,vert_size:b,horz_size:b,block_delay:25,vstripe_delay:75,hstripe_delay:75,easing:""};var s=a.extend({},p,z);return this.each(function(){var D=new y(a(this),s);D.init()})}})(jQuery);
// Header rtation end

      
