%%
%% This is file `SBUKPresentation.sty', Ver 0.2
%% Created by Sayyed Ahmad Mousavi
%%   ___ _______________________________
%%   Copyright © 2013 Sayyed Ahmad Mousavi
%%    Email: s.a.mousavi@hotmail.com
%%   
%% 
%% 
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{SBUKPresentation}%
[2010/07/21 Style for using with bidipresentation class]

\usepackage[RL]{flowfram}
\usepackage{wallpaper}
\usepackage{morefloats}
\usepackage{floatrow}
\usepackage{graphicx}
\usepackage{transparent}

\usepackage{eso-pic}

\usepackage{environ}
\usepackage{color}
\usepackage{xcolor}
\usepackage{tikz}\usetikzlibrary{shapes,snakes}
\usepackage{pstricks}
\geometry{paperwidth=255mm,paperheight=170mm,top=25mm, rmargin=10mm, bottom=10mm,lmargin=10mm}
%, 
%%رنگ ها

\def\linktc#1#2{\definecolor{link-text}{#1}{#2}}
\def\sidebartc#1#2{\definecolor{sidebar-text}{#1}{#2}}
\def\rtopbarc#1#2{\definecolor{topbar1-color}{#1}{#2}}
\def\ltopbarc#1#2{\definecolor{topbar2-color}{#1}{#2}}
\def\ltopbartc#1#2{\definecolor{topbar2-text}{#1}{#2}}
\def\rbotbarc#1#2{\definecolor{botbar1-color}{#1}{#2}}
\def\lbotbarc#1#2{\definecolor{botbar2-color}{#1}{#2}}
\def\lbotbartc#1#2{\definecolor{botbar2-text}{#1}{#2}}

%%%%%%%%%%%%%%%%%%%%%%
% \includegraphics[scale=0.13]{arm_en.png}
%\usepackage[colorlinks,linkcolor=link-text,setpagesize=false,pdfhighlight=/N]{hyperref}%

%%%%%%%%%%%%%%%%%


% \newdynamicframe[1,>1]{66mm}{.1cm}{123mm}{160mm}[topbar1]
% \setdynamicframe*{topbar1}{valign=c,backcolor=botbar2-color,textcolor=botbar2-text}%topbar1-color}

\newdynamicframe[2,>1]{255mm}{2.5cm}{-10mm}{135mm}[topbar2]
\setdynamicframe*{topbar2}{valign=c,textcolor=topbar2-text,backcolor=topbar2-color}
\newdynamicframe[2,>1]{25mm}{2.5cm}{-10mm}{135mm}[topbar1]
\setdynamicframe*{topbar1}{valign=c,textcolor=topbar2-text,backcolor=topbar2-color}
%%محتویات نواربالا




%%نوار پایین
\newstaticframe[2,>1]{200mm}{9mm}{75mm}{-10mm}[botbar1]
\setstaticframe*{botbar1}{backcolor=botbar1-color,textcolor=botbar2-text}
\newstaticframe[2,>1]{110mm}{9mm}{-10mm}{-10mm}[botbar2]
\setstaticframe*{botbar2}{valign=c,textcolor=botbar2-text,backcolor=botbar2-color}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%
\NewEnviron{myframe}[5]{
\AddToShipoutPicture*{\put(-30,-10){\includegraphics[scale=1.3]{./images/background}}}
\tikzstyle{mybox} = [draw=#2, fill=#4, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitle} =[fill=#5, text=#3]
\begin{tikzpicture}\node [mybox] (box){\setRTL
\begin{minipage}{0.95\textwidth}
\BODY
  \end{minipage}};
\node[fancytitle, left=10pt] at (box.north east) {\hboxR{{ \Large{#1}}}};\end{tikzpicture} 
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% محیط قرمز
%1 متن اسلاید
\tikzstyle{redframe} = [draw=red!80, fill=none, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitleghazye} =[fill=yellow!20, text=red]
%%%%%%%
\NewEnviron{redframe}[1]{
\begin{tikzpicture}\node [redframe] (box){\setRTL\begin{minipage}{0.95\textwidth}
\BODY
  \end{minipage}};\node[fancytitleghazye, left=10pt] at (box.north east) {\hboxR{{\Large{#1}}}};\end{tikzpicture} 
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% محیط سبز
\tikzstyle{greenframe} = [draw=green, fill=none, very thick, rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitletarif} =[fill=green!20, text=green]
%%%%%%%
 \NewEnviron{greenframe}[1]{
\begin{tikzpicture}\node [greenframe] (box){\setRTL\begin{minipage}{0.95\textwidth}
\BODY
  \end{minipage}};\node[fancytitletarif, left=10pt] at (box.north east) {\hboxR{{\Large{#1}}}};\end{tikzpicture} 
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% محیط آبی
\tikzstyle{blueframe} = [draw=blue, fill=none, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitlemesal} =[fill=blue!20, text=blue]
%%%%%%%%%
 \NewEnviron{blueframe}[1]{
\begin{tikzpicture}\node [blueframe] (box){\setRTL\begin{minipage}{0.95\textwidth}
\BODY 
  \end{minipage}};\node[fancytitlemesal, left=10pt] at (box.north east) {\hboxR{{\Large{#1}}}};\end{tikzpicture} 
}
%%%%%%%%%%%%%%%%%
\usepackage{latexsym,amsmath,amssymb,amsfonts,amscd,array,colortbl}

%%%%%%%%%%%%%%%%%%%%%
\NewEnviron{samframe}[1]{
\begin{rawslide}
\begin{dynamiccontents*}{topbar2}
\AddToShipoutPicture*{\put(-60,-10){\includegraphics[scale=1.3]{./images/background}}}
\hspace*{1cm}
{\Huge\textbf{#1}}
\end{dynamiccontents*}
\begin{dynamiccontents*}{topbar1}
\hspace*{1cm}
\hfill\includegraphics[scale=0.14]{./images/arm_en}
\end{dynamiccontents*}
% \vspace*{\fill}
\Large\BODY\
\end{rawslide}
}

\tikzstyle{boxStyle} = [draw=blue!80, fill=blue!9, very thick,
  rectangle, rounded corners=3mm, inner sep=10pt, inner ysep=15pt]
\tikzstyle{boxTitleStyle} =[fill=blue!80, rectangle, rounded corners=2mm,
  text=white, inner sep=10pt, inner ysep=7pt, left=10pt]

\NewEnviron{sambox}[1]
 {\begin{tikzpicture}
    \node [boxStyle]  (box)
     {\begin{minipage}{0.95\textwidth}\begin{RTL}\BODY\end{RTL}\end{minipage}};
    \node[boxTitleStyle] at (box.north east) {\textbf{#1}};
  \end{tikzpicture}}
%%%%%%%%%%%%%%%%%%%%%%%%

%% 
%% Copyright © 2013      by  Sayyed Ahmad Mousavi     <s.a.mousavi@hotmail.com>
%% 
%% 
%%
%% End of file `sam.sty'.