$(document).ready( function() { $('textarea.HTML').tinymce({ script_url : '/js/tiny_mce/tiny_mce.js', theme : "advanced", theme_advanced_buttons1 : "bold,italic,underline,strikethrough,link,unlink,code", theme_advanced_buttons2 : "", theme_advanced_buttons3 : "", theme_advanced_buttons4 : "", //theme_advanced_blockformats : "pre", theme_advanced_toolbar_location : "bottom", theme_advanced_toolbar_align : "left", theme_advanced_resizing : false, relative_urls : false, convert_newlines_to_brs : true, forced_root_block : false, force_br_newlines : true, force_p_newlines : false, // Example content CSS (should be your site CSS) content_css : "/css/1_main_styles.css,/css/imports.css,/css/content.css" }); $('textarea.HTMLExtented').tinymce({ script_url : '/js/tiny_mce/tiny_mce.js', theme : "advanced", theme_advanced_buttons1 : "bold,italic,underline,strikethrough,link,unlink,bullist,numlist,formatselect,code", theme_advanced_buttons2 : "", theme_advanced_buttons3 : "", theme_advanced_buttons4 : "", theme_advanced_blockformats : "h1,h2,h3,p", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_resizing : false, relative_urls : false, //theme_advanced_width : "475", //theme_advanced_height : "600", //convert_newlines_to_brs : true, // forced_root_block : false, // force_br_newlines : false, // force_p_newlines : false, // Example content CSS (should be your site CSS) content_css : "/css/1_main_styles.css,/css/imports.css,/css/content.css" }); $('.DeselectImage').click( function() { thisId = $(this).attr('thisId'); $('#'+thisId).attr('value',''); $('#'+thisId+'_preview').html(''); return false; }) $(".BlankValue").click( function () { $thisID = $(this).attr('blank'); $("#"+$thisID).attr("value",''); }) $('.aScrollTo').click( function(){ var thisTarget = $(this).attr('href'); $.scrollTo($(thisTarget),1000); return false; }); }) $(function() { $('#change_language').change( function() { window.location.href = '?change_language='+$(this).attr('value'); }) $("a.NavLeft_link").click( function() { window.location.href = '?activFrontPage='+$(this).attr('href')+'&mode='+$('#mode').attr('value'); return false; }) $("a.NavLeft_link_content").click( function() { window.location.href = '?newcontent='+$(this).attr('thisid'); return false; }) $('.AdminSelect').hover( function() { var newRightPosition = $(this).outerWidth(); var AdminElement = $(this).children('div.ElementNavPosition').children('div.ElementNav'); var AdminElementWidth = AdminElement.outerWidth(); newRightPosition = newRightPosition - AdminElementWidth; $(this).addClass('selectedElement'); AdminElement.css('left',newRightPosition+'px'); AdminElement.css('display','block'); }, function() { $(this).removeClass('selectedElement'); $(this).children('div.ElementNavPosition').children('div.ElementNav').css('display','none'); } ); $('table.AdminSelect').hover( function() { $(this).addClass('selectedElement'); $(this).addClass('selectedTable'); var AdminElement = $('#ElementNavTable'+$(this).attr('id')); var newRightPosition = $(this).parent().css('width'); newRightPosition = parseInt(newRightPosition); newRightPosition = newRightPosition-1; AdminElement.css('left',newRightPosition+'px'); AdminElement.css('display','block'); }, function() { $(this).removeClass('selectedElement'); $(this).removeClass('selectedTable'); $('#ElementNavTable'+$(this).attr('id')).css('display','none'); } ); $('iframe.AdminSelect').hover( function() { $(this).addClass('selectedElement'); $(this).addClass('selectedIFrame'); var AdminElement = $('#ElementNavIFrame'+$(this).attr('id')); AdminElement.css('display','block'); }, function() { $(this).removeClass('selectedElement'); $(this).removeClass('selectedTable'); $('#ElementNavIFrame'+$(this).attr('id')).css('display','none'); } ); $('ul.AdminSelect').hover( function() { var AdminElement = $(this).children().children('div.ElementNav'); $(this).addClass('selectedElement'); var thisWidth = $(this).outerWidth(); newRightPosition = thisWidth-1; AdminElement.css('left',newRightPosition+'px'); AdminElement.css('display','block'); }, function() { $(this).removeClass('selectedElement'); $('#ElementNavTable'+$(this).attr('id')).css('display','none'); } ); $('div.ElementNav').hover( function() { $(this).css('display','block'); }, function() { /*$(this).css('display','none');*/ } ); $('div.ElementNavTable').hover( function() { var thisTable = $('#'+$(this).attr('thisTable')); thisTable.addClass('selectedTable'); $(this).css('display','block'); }, function() { var thisTable = $('#'+$(this).attr('thisTable')); thisTable.removeClass('selectedTable'); $(this).css('display','none'); } ); $('.openShadowbox').click( function() { var openShadowbox = true; var strLink = $(this).attr('href'); var strTitle = $(this).attr('title'); if ($(this).hasClass('ElementSelectortable')) { intRows = prompt('Geben Sie Die Reihen ein'); intCols = prompt('Geben Sie Die Spalten ein'); strLink = strLink + '&rows=' + intRows + '&cols=' +intCols; window.location.href = strLink; openShadowbox = false; } if (openShadowbox) { Shadowbox.open({ content: strLink, player: "iframe", title: strTitle, /*height: 900,*/ width: 700 }); } return false; } ) $('div.FormtableLayer > input').focus( function() { var objLayerInput = $(this); var objLayerBox = objLayerInput.parent().children('div.FormtableLayerBox'); var strTarget = objLayerInput.attr('target'); objLayerBox.addClass('FormtableLayerBoxOpen'); $.get(strTarget, function(returnHTML) { objLayerBox.html(returnHTML); objLayerBox.children('a').click( function() { var thisValue = $(this).attr('href'); objLayerInput.attr('value',thisValue); return false; }) }) }); $('div.FormtableLayer > input').blur( function() { $(this).parent().children('div.FormtableLayerBox').removeClass('FormtableLayerBoxOpen'); }); $('div.FormtableLayerBox').hover( function() { $(this).css('display','block'); }, function() { $(this).css('display','none'); } ); $('select.SetNewSortorder').change( function() { var object_id = $(this).attr('object_id'); var menu_id = $(this).attr('menu_id'); var parent_id = $(this).attr('parent_id'); var newsortorder = $(this).attr('value'); var strUrl = '?mode=changeorder&id='+object_id+'&menu_id='+menu_id+'&parent_id='+parent_id+'&newsortorder='+newsortorder; window.location.href = strUrl; }); }) Shadowbox.init({ players: ["iframe"] }); function setImageName(imgPath,imgName,thisId) { Shadowbox.close(); $('#'+thisId).attr('value',imgName); var strHTML = ''; $('#'+thisId+'_preview').html(strHTML); } $('.AdminSelect').hover( function() { $(this).addClass('selectedElement'); $(this).children('div.ElementNavPosition').children('div.ElementNav').css('display','block'); }, function() { $(this).removeClass('selectedElement'); $(this).children('div.ElementNavPosition').children('div.ElementNav').css('display','none'); } ); function showContentPlayer(MovieName) { var requiredMajorVersion = 8; var requiredMinorVersion = 0; var requiredRevision = 24; var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision); if(hasRightVersion) { AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0', 'width', '422', 'height', '262', 'src', '/flash/player?autoplay=no&imagePath=/flash/media/'+MovieName+'.jpg&moviePath=/flash/media/'+MovieName+'.flv', 'quality', 'high', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'align', 'middle', 'play', 'true', 'loop', 'true', 'scale', 'noscale', 'wmode', 'transparent', 'devicefont', 'false', 'id', 'playerContext', 'bgcolor', '#ffffff', 'name', '/flash/player', 'menu', 'true', 'allowScriptAccess','sameDomain', 'allowFullScreen','true', 'movie', '/flash/player?autoplay=no&imagePath=/flash/media/'+MovieName+'.jpg&moviePath=/flash/media/'+MovieName+'.flv', 'salign', '' ); } }