//---- Created using Likno Web Modal Windows Builder ver. 1.1.142.2 -----

// Copyright (c) Likno Software 2008-2009
// This code is property of Likno Software and licensed for use in *websites* only. It is *not* licensed for use in distributable implementations (applications or CD-based webs), unless the related license is provided by Likno Software.
// Any unauthorized use, reverse-engineering, alteration, transmission, transformation, or copying of any means (electronic or not) is strictly prohibited and will be prosecuted.
// *Removal of the present copyright notice is strictly prohibited*

var headID = document.getElementsByTagName("head")[0];

var lwmwName = 'videos';

var nua=navigator.userAgent,scriptNo=(nua.indexOf('Chrome')>-1)?2:((nua.indexOf('Safari')>-1)?7:(nua.indexOf('Gecko')>-1)?2:((document.layers)?3:((nua.indexOf('Opera')>-1)?4:((nua.indexOf('Mac')>-1)?5:1))));var lwmwmpi=document.location,xt="";
var mpa=lwmwmpi.protocol+"//"+lwmwmpi.host;
var lwmwmpi=lwmwmpi.protocol+"//"+lwmwmpi.host+lwmwmpi.pathname;
if(scriptNo==1){oBC=document.all.tags("BASE");if(oBC && oBC.length) if(oBC[0].href) lwmwmpi=oBC[0].href;}
while (lwmwmpi.search(/\\/)>-1) lwmwmpi=lwmwmpi.replace("\\","/");
lwmwmpi=lwmwmpi.substring(0,lwmwmpi.lastIndexOf("/")+1);
var e=document.getElementsByTagName("SCRIPT");
for (var i=0;i<e.length;i++){if (e[i].src){if (e[i].src.indexOf(lwmwName+".js")!=-1){xt=e[i].src.split("/");if (xt[xt.length-1]==lwmwName+".js"){xt=e[i].src.substring(0,e[i].src.length-lwmwName.length-3);if (e[i].src.indexOf("://")!=-1){lwmwmpi=xt;}else{if(xt.substring(0,1)=="/")lwmwmpi=mpa+xt; else lwmwmpi+=xt;}}}}}
while (lwmwmpi.search(/\/\.\//)>-1) {lwmwmpi=lwmwmpi.replace("/./","/");}

var videos,video1,video2,video3,video4,Gallery;

if (typeof(jQuery) == 'undefined'){
	var newScript_jQ = document.createElement('script');
	newScript_jQ.type = 'text/javascript';
	newScript_jQ.onload = jQloaded;
	newScript_jQ.onreadystatechange = jQloaded;
	newScript_jQ.src = lwmwmpi+"jquery.js";
	headID.appendChild(newScript_jQ);
} else jQloaded();

function jQloaded(){
	if (typeof(jQuery) != 'undefined'){ 
		var newScript_lib = document.createElement('script');
		newScript_lib.type = 'text/javascript';
		newScript_lib.src = lwmwmpi+"likno-modal-lib.js";
		newScript_lib.onload = load_videos;
		newScript_lib.onreadystatechange = load_videos;
		headID.appendChild(newScript_lib);
	}
}

function load_videos() {if (typeof(jQuery) != 'undefined' && typeof(jQuery.liknoModal) != 'undefined'){jQuery.videos = jQuery.extend(true, {}, jQuery.liknoModal);jQuery.videos.impl.defaults = jQuery.extend(true, {}, jQuery.videos.impl.defaults, {modalClass: 'videos',overlayId: 'videos-overlay',containerId: 'videos-container',zIndex:2000,overlayCss:{backgroundColor:'#000000'},opacity:50,close:{closeClass: 'videos-close',overlayClose:true,escClose:true,show:true,text:"<div name='myLiknoModalCloseName'><img src='"+lwmwmpi+"videos/image_006_close.png' /></div>", textCss:nRTC("top: -10px; right:-10px; font-family:Verdana,Tahoma,Arial,Helvetica,sans-serif; font-size:18px; color:#000000; font-weight:bold;")},position:[0,0],positionType:0,containerCss:nRTC("width:800px;height:700px;font-family:Verdana,Arial,Helvetica,sans-serif; font-size:11px;"),domainCode:'246C373D5B223638373437343730222C22334132463246222C223233373536453643363936443639373436353634333132333246225D2C246C352C246C363D5B223636363936433635222C223643364636333631364336383646373337343246222C223233373536453643363936443639373436353634333132333246225D3B',ajaxLoadImage:""+lwmwmpi+"videos/ajax-loader-clock.gif", ajaxLoadDiv:"<div id='modalAjax' style='background-image:url("+lwmwmpi+"videos/ajax-loader-clock.gif);background-position: center center; background-repeat: no-repeat;'></div>",header:{show:false},footer:{show:false},wrapCss:nRTC("font-family:Tahoma, Arial, Helvetica, sans-serif; font-size:11px; background-color:#393939; border:4px solid #555555;padding:20px;color:#cccccc;line-height:18px;text-align:justify;"),isMultiSheet:false, currentSheet:0,loop:true,play:{autoStart:false,pauseByMouse:false,direction:0,delay:1500},navigationBar:{maxSheets:9,show:true,showFirst:true,showPrev:true,showPlayPause:true,showNext:true,showLast:true,showSheets:true,cssClasses:".videos{border-width:0px;margin:0px;padding:0px;}",text:"Sheets:",images:{butFirst:lwmwmpi+'videos/image_064_first.png',butFirstOver:lwmwmpi+'videos/image_064_first_over.png',butPrev:lwmwmpi+'videos/image_064_previous.png',butPrevOver:lwmwmpi+'videos/image_064_previous_over.png',butPlay:lwmwmpi+'videos/image_064_play.png',butPlayOver:lwmwmpi+'videos/image_064_play_over.png',butPause:lwmwmpi+'videos/image_064_pause.png',butPauseOver:lwmwmpi+'videos/image_064_pause_over.png',butNext:lwmwmpi+'videos/image_064_next.png',butNextOver:lwmwmpi+'videos/image_064_next_over.png',butLast:lwmwmpi+'videos/image_064_last.png',butLastOver:lwmwmpi+'videos/image_064_last_over.png'}},transition:{openWhat:{height:'show'}, openHow: 0,closeWhat:{height:'hide'}, closeHow: 0},dataId: "videos-data"});lwmw_preloadImages(jQuery.videos.impl.defaults);jQuery(function () {jQuery("#video1").click(function(){video1();});jQuery("#video2").click(function(){video2();});jQuery("#video3").click(function(){video3();});jQuery("#video4").click(function(){video4();});jQuery("#Gallery").click(function(){Gallery();});});videos = function (data, options) {return jQuery.videos.impl.init(data, options);};videos.close = function (doNext) {return jQuery.videos.impl.close(doNext);};var videos_video1_options = jQuery.extend(true,{ }, jQuery.videos.impl.defaults, {modalFullId: "videos_video1"});lwmw_preloadImages(videos_video1_options);videos.video1=video1=function(options){if (typeof options == "number") options = {currentSheet: options};jQuery.videos.impl.init("<div externalUrl='http://www.alwaysandforeverbridal.net/videos/index.htm' />",jQuery.extend(true, {}, videos_video1_options,options));};var videos_video2_options = jQuery.extend(true,{ }, jQuery.videos.impl.defaults, {modalFullId: "videos_video2"});lwmw_preloadImages(videos_video2_options);videos.video2=video2=function(options){if (typeof options == "number") options = {currentSheet: options};jQuery.videos.impl.init("<div externalUrl='http://www.alwaysandforeverbridal.net/videos/video2.htm' />",jQuery.extend(true, {}, videos_video2_options,options));};var videos_video3_options = jQuery.extend(true,{ }, jQuery.videos.impl.defaults, {modalFullId: "videos_video3"});lwmw_preloadImages(videos_video3_options);videos.video3=video3=function(options){if (typeof options == "number") options = {currentSheet: options};jQuery.videos.impl.init("<div externalUrl='http://www.alwaysandforeverbridal.net/videos/video3.htm' />",jQuery.extend(true, {}, videos_video3_options,options));};var videos_video4_options = jQuery.extend(true,{ }, jQuery.videos.impl.defaults, {modalFullId: "videos_video4"});lwmw_preloadImages(videos_video4_options);videos.video4=video4=function(options){if (typeof options == "number") options = {currentSheet: options};jQuery.videos.impl.init("<div externalUrl='http://www.alwaysandforeverbridal.net/videos/video4.htm' />",jQuery.extend(true, {}, videos_video4_options,options));};var videos_Gallery_options = jQuery.extend(true,{ }, jQuery.videos.impl.defaults, {modalFullId: "videos_Gallery"});lwmw_preloadImages(videos_Gallery_options);videos.Gallery=Gallery=function(options){if (typeof options == "number") options = {currentSheet: options};jQuery.videos.impl.init("<div externalUrl='http://www.alwaysandforeverbridal.net/gallery/index.php' />",jQuery.extend(true, {}, videos_Gallery_options,options));};}}
/*142.2*/
