﻿
// Generic function to send mail 
function sendmail(){ 
    var title = document.title; 
	var url = window.location.href; 
	var str='mailto: ?subject='+title+'&body='+"Empfohlene URL: " +url  + "%0A %0A Kleeberg Medizintechnik %0A Dipl. Phys. Stefan Kleeberg %0A %0A Rotthauser Straße 33e • 45309 Essen • Tel. 0800 276 5533 %0A Ihr Servicepartner für Motorbewegungsschienen • Verleih und Beratung auf Rezept!";
	location.href = str; 
} 


function book(title,url){
title = document.title;
url = window.location.href;
if (window.sidebar) // firefox
window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
var elem = document.createElement('a');
elem.setAttribute('href',url);
elem.setAttribute('title',title);
elem.setAttribute('rel','sidebar');
elem.click();
}
else if(document.all)// ie
window.external.AddFavorite(url, title);
}


			$(document).ready(function(){
				$("a[rel='example1']").colorbox();
				$("a[rel='example2']").colorbox({transition:"fade"});
				$("a[rel='example3']").colorbox({transition:"none", width:"75%", height:"75%"});
				$("a[rel='example4']").colorbox({slideshow:true});
				$(".example5").colorbox();
				$(".example6").colorbox({iframe:true, innerWidth:"425px", innerHeight:"344px"});
				$(".example7").colorbox({width:"70%", height:"90%", iframe:true});
				$(".kontaktform").colorbox({width:"800px", height:"90%", iframe:true, opacity:"0.2"});
                $(".impressum").colorbox({width:"450px", height:"520px", iframe:true});
				$(".example8").colorbox({width:"50%", inline:true, href:"#inline_example1"});
				$(".example9").colorbox({href:"haftungsausschluss.html div#myvar"});
			});
			



function video()
{
   jQuery().colorbox({html:'<object width="480" height="385" align="absmiddle>"<param name="movie" value="http://www.youtube.com/p/B97218CD49B1CE27?version=3&hl=de_DE&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/p/B97218CD49B1CE27?version=3&hl=de_DE&fs=1" type="application/x-shockwave-flash" width="480" height="385" allowscriptaccess="always" allowfullscreen="true"></embed></object>', width:"560px", height:"480px", opacity:"0.7"});
} 


function logo()
{
   jQuery().colorbox({html:'<object width="480" height="385" align="absmiddle>"<param name="movie" value="flash/logo2.swf"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="flash/logo2.swf" type="application/x-shockwave-flash" width="480" height="385" allowscriptaccess="always" allowfullscreen="true"></embed></object>', width:"560px", height:"480px", opacity:"1.0"});
} 


function menu2()
{
   jQuery().colorbox({html:'<embed src="kataloge.html" width="400px" height="400px">', width:"90%", height:"90%", opacity:"0.5"});
} 
function kataloge()
{
   jQuery().colorbox({html:'<iframe width="580" height="450" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="kataloge.html"></iframe>', width:"600px", height:"470",  opacity:"0.8"});
} 
function addthisgps()
{
   jQuery().colorbox({html:'<iframe width="640" height="480" frameborder="0" scrolling="auto" marginheight="0" marginwidth="0" src="http://www.addthis.com/bookmark.php?v=250&amp;username=webdesignwesel"></iframe>', width:"600px", height:"90%",  opacity:"0.3"});
} 

function mchart(){
	$.colorbox({href:"images/man.jpg", opacity:"0.80", photo:"true", slideshow:"true", initialWidth:"771", initialHeight:"590", transition:"fade", rel:"charts", title: function(){
    var url = $(this).attr('href');
    return '<a href="'+ "images/man.jpg" +'" target="_blank">Download</a> <img src="images/download.png" width="16" height="16" />';
}});
}
function ochart(){
	$.colorbox({href:"images/org.jpg", opacity:"0.80", photo:"true", slideshow:"true", initialWidth:"772", transition:"fade", initialHeight:"587", rel:"charts", title: function(){
    var url = $(this).attr('href');
    return '<a href="'+ "images/man.jpg" +'" target="_blank">Download</a> <img src="images/download.png" width="16" height="16" />';
}});
}
function anf()
{
   jQuery().colorbox({html:'<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.de/maps?f=q&amp;source=s_q&amp;hl=de&amp;geocode=&amp;q=http:%2F%2Fwww.wesel-webdesign.de%2Fgps%2Fwesel-gps.kml&amp;aq=&amp;sll=51.151786,10.415039&amp;sspn=16.924247,57.084961&amp;ie=UTF8&amp;ll=51.823047,6.653595&amp;spn=0.407434,0.878906&amp;z=10&amp;iwloc=geoxml_1&amp;output=embed"></iframe>', width:"90%", height:"90%", opacity:"0.3", speed:"999"});
} 
function anf2()
{
   jQuery().colorbox({html:'<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.de/maps?f=q&amp;source=s_q&amp;hl=de&amp;geocode=&amp;q=http:%2F%2Fwww.wesel-webdesign.de%2Fgps%2Fwesel-gps.kml&amp;aq=&amp;sll=51.151786,10.415039&amp;sspn=16.924247,57.084961&amp;ie=UTF8&amp;ll=51.823047,6.653595&amp;spn=0.407434,0.878906&amp;z=3&amp;iwloc=geoxml_1&amp;output=embed"></iframe>', width:"90%", height:"90%", opacity:"0.3", speed:"999"});
} 
function jslide()
{
   jQuery().colorbox({slideshow:true});
} 
function jpicture()
{
   jQuery().colorbox({width:"450px", height:"520px", iframe:true});
} 
function jframe()
{
   jQuery().colorbox({width:"450px", height:"520px", iframe:true});
}
